/* Base styles reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    /* 浅灰蓝背景 */
    background: #edf2f7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.container {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 35px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    z-index: 1;
    border: none;
}

/* Header styles */
.header {
    margin-bottom: 30px;
}

h1 {
    color: #2d3748; /* 深灰色 */
    font-size: 2.2rem;
    margin-bottom: 18px;
    font-weight: 600;
    text-shadow: none;
}

/* 祝贺图标样式 */
.celebration-icon {
    color: #3498db; /* 蓝色 */
    margin: 0 10px;
    display: none; /* 隐藏这些图标，因为截图中没有 */
}

.celebration-icons {
    display: none; /* 隐藏这些图标，因为截图中没有 */
}

p {
    color: #4a5568; /* 灰色 */
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.5;
}

p.highlight {
    color: #3498db; /* 蓝色 */
    font-weight: 600;
    font-size: 1.25rem;
    margin: 12px 0;
    line-height: 1.5;
}

p.selection-info {
    font-style: italic;
    color: #718096; /* 浅灰色 */
    margin-top: 10px;
    font-size: 1.15rem;
}

.chances-text {
    font-size: 1.2rem;
    margin: 25px 0;
    color: #4a5568; /* 灰色 */
    font-weight: 500;
}

.chances-text span {
    font-weight: 600;
    color: #3498db; /* 蓝色 */
}

/* Urgency banner */
.urgency-banner {
    background-color: #f7fafc; /* 非常浅的灰色 */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: none;
    box-shadow: none;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    background: #3498db; /* 蓝色 */
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.countdown-label {
    background-color: transparent !important;
    color: #4a5568 !important; /* 灰色 */
    font-size: 0.9rem !important;
    height: auto !important;
    width: auto !important;
    margin-top: 8px;
}

.urgency-text {
    color: #3498db; /* 蓝色 */
    font-weight: 600;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Gift box area styles - arranged in 2 rows */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    margin: 35px auto;
    max-width: 450px;
    perspective: 1000px;
}

.gift-box {
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
}

.gift-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.gift-box.flipped .gift-inner {
    transform: rotateY(180deg);
}

.gift-front, .gift-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.gift-front {
    background: #3498db; /* 蓝色 */
    color: white;
    border: none;
}

.gift-front i {
    font-size: 2.5rem;
    color: white;
    filter: none;
    animation: none;
}

.gift-back {
    background: white;
    color: #4a5568; /* 灰色 */
    transform: rotateY(180deg);
    border: 1px solid #e2e8f0; /* 浅灰色边框 */
    box-shadow: none;
}

.prize-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.prize-text {
    font-size: 1rem;
    font-weight: 600;
}

.prize-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 8px;
}

/* Win animation for gift box */
.gift-box .prize-icon:has(+ .prize-text:contains("You Win")) {
    animation: none; /* 移除动画，保持简洁 */
}

.instruction {
    margin: 25px 0;
    font-size: 1.2rem;
    color: #4a5568; /* 灰色 */
    font-weight: 500;
}

/* Modal styles - simplified */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: gentleModalFadeIn 0.6s ease;
    border: none;
}

@keyframes gentleModalFadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: #3498db; /* 蓝色 */
    color: white;
    padding: 25px;
    text-align: center;
    border: none;
}

.modal-body {
    padding: 35px;
    text-align: center;
}

/* Simple fixed prize display */
.fixed-prize-display {
    margin: 0 auto 25px;
    padding: 30px;
    background-color: #f7fafc; /* 非常浅的灰色 */
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e2e8f0; /* 浅灰色边框 */
}

.phone-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.phone-name {
    font-size: 2rem;
    font-weight: 600;
    color: #3498db; /* 蓝色 */
    margin-bottom: 10px;
}

.prize-description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #4a5568; /* 灰色 */
}

.confirmation-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #4a5568; /* 灰色 */
}

.redirect-text {
    font-size: 1rem;
    color: #718096; /* 浅灰色 */
    margin-top: 20px;
}

/* Phone confirmation page styles */
.phone-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 35px;
}

.phone-form {
    margin-top: 35px;
}

.phone-form input {
    width: 100%;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
}

.phone-form input:focus {
    outline: none;
    border-color: #3498db; /* 蓝色 */
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
}

.submit-button {
    background: #3498db; /* 蓝色 */
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #2980b9; /* 深蓝色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-message {
    background: #3498db; /* 蓝色 */
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: none;
    animation: gentleFadeIn 0.5s ease-in;
}

@keyframes gentleFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Offer page styles */
.offer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
}

.offer-header {
    text-align: center;
    margin-bottom: 35px;
}

.offer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* New iPhone image fallback style */
.offer-image-fallback {
    background-color: #f7fafc; /* 非常浅的灰色 */
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: none;
    border: 1px solid #e2e8f0; /* 浅灰色边框 */
}

.big-emoji {
    font-size: 120px;
    display: block;
    margin: 0 auto 25px;
}

.offer-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: none;
}

.offer-details {
    padding: 30px;
    background: #f7fafc; /* 非常浅的灰色 */
    border-radius: 8px;
    border-left: 4px solid #3498db; /* 蓝色 */
}

.offer-cta {
    text-align: center;
    margin-top: 35px;
}

.offer-button {
    background: #3498db; /* 蓝色 */
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
}

.offer-button:hover {
    background: #2980b9; /* 深蓝色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive styles */
@media (max-width: 500px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    
    .gift-front i {
        font-size: 2.2rem;
    }
    
    .prize-icon {
        font-size: 2.2rem;
    }
    
    .prize-text {
        font-size: 0.9rem;
    }
    
    p.highlight {
        font-size: 1.1rem;
    }
}