:root {
    --mexico-green: #006847;
    --mexico-white: #FFFFFF;
    --mexico-red: #CE1126;
    --gold: #FFD700;
    --cyan: #00bcd4;
    --dark-bg: #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 188, 212, 0.15) 0%, transparent 50%), /* 青色 */
        radial-gradient(circle at 85% 15%, rgba(255, 215, 0, 0.15) 0%, transparent 50%), /* 黄色 */
        radial-gradient(circle at 85% 85%, rgba(206, 17, 38, 0.15) 0%, transparent 50%), /* 红色 */
        radial-gradient(circle at 15% 85%, rgba(0, 104, 71, 0.15) 0%, transparent 50%);  /* 绿色 */
    background-attachment: fixed;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Top Banner / Header */
header {
    width: 100%;
    background: linear-gradient(to right, var(--mexico-green), var(--mexico-white), var(--mexico-red));
    height: 5px;
}

.navbar {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: rgba(0,0,0,0.8);
    border-bottom: 2px solid var(--gold);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 2px 2px 4px #000;
}

/* Hero / Main Promotions */
.container {
    width: 100%;
    max-width: 450px;
    padding: 10px;
    box-sizing: border-box;
}

.promo-card {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,215,0,0.3);
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
}

.promo-card:active {
    transform: scale(0.98);
}

.promo-card img {
    width: 100%;
    display: block;
}

/* Download Buttons Area */
.download-section {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.btn-download {
    flex: 1;
    padding: 12px 5px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-download:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.btn-apk { background: linear-gradient(135deg, #3DDC84 0%, #2cb768 100%); color: #000; border-color: #3DDC84; }
.btn-ios { background: linear-gradient(135deg, #555 0%, #333 100%); }

/* Social Channels */
.social-card-container {
    margin: 20px 0;
}

.social-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    margin-top: 15px;
    transition: transform 0.2s ease;
}

.social-card:active {
    transform: scale(0.98);
}

.social-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.social-telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

.social-card svg {
    margin-right: 15px;
    flex-shrink: 0;
}

.social-card-text {
    display: flex;
    flex-direction: column;
}

.social-card-text strong {
    font-size: 16px;
    font-weight: bold;
}

.social-card-text span {
    font-size: 13px;
    opacity: 0.9;
}

/* Modal / Popup Style */
#rewardModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(-45deg, rgba(26,26,26,0.9), rgba(0,104,71,0.85), rgba(26,26,26,0.9), rgba(206,17,38,0.85));
    background-size: 300% 300%;
    padding: 35px 25px 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 0, 0.1);
    width: 85%;
    max-width: 320px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    color: #fff;
    opacity: 0.9;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, breatheBg 6s ease-in-out infinite;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px dashed rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    pointer-events: none;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 0.9; }
}

@keyframes breatheBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.close-button {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: rgba(206, 17, 38, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: var(--gold);
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    z-index: 10;
}
.close-button:hover { transform: scale(1.1); color: #fff; }

.festive-icon {
    font-size: 42px;
    margin: -10px auto 5px auto;
    animation: floatGift 3s ease-in-out infinite;
    text-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

@keyframes floatGift {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.modal-content h2 { 
    background: none;
    color: var(--gold); 
    margin: 0 auto 10px auto;
    padding: 0;
    border: none;
    font-size: 28px;
    text-shadow: 0 0 15px rgba(255,215,0,0.5), 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: none;
    letter-spacing: 1px;
}

.voucher-divider {
    width: 100%;
    border-top: 2px dashed rgba(255, 215, 0, 0.4);
    margin: 15px 0 12px 0;
}

.modal-content p { 
    font-size: 16px; 
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    text-shadow: none;
    margin-bottom: 10px;
}

.prize-amount {
    font-size: 56px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 2px 2px 5px rgba(0,0,0,0.8);
    margin: 10px 0 25px 0;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 2px;
}

.btn-claim {
    background: linear-gradient(to bottom, var(--gold), #d4af37);
    border: 2px solid #FFF8DC;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 20px;
    color: var(--mexico-red);
    cursor: pointer;
    box-shadow: 0 6px 0 #b38f00, 0 10px 20px rgba(0,0,0,0.4);
    margin-top: 15px;
    text-transform: uppercase;
    animation: pulseGold 2s infinite;
    width: 90%;
}

.btn-claim:active {
    box-shadow: 0 2px 0 #b38f00;
    transform: translateY(4px);
    animation: none;
}

@keyframes pulseGold {
    0% { box-shadow: 0 6px 0 #997a00, 0 0 0 0 rgba(255, 215, 0, 0.6); }
    70% { box-shadow: 0 6px 0 #997a00, 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 6px 0 #997a00, 0 0 0 0 rgba(255, 215, 0, 0); }
}

footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #333;
    width: 100%;
     font-size: 14px; /* 您可以根据需要继续调大此数值，例如 18px 或 1.2rem */
    line-height: 1.6; /* 增加行高，防止字体变大后显得过于拥挤 */
}

/* =========================================
   Desktop & Tablet Styles (Responsive)
   ========================================= */
@media (min-width: 768px) {
    .container {
        max-width: 1000px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        padding: 40px 20px;
    }

    .promo-card {
        width: calc(50% - 15px); /* 并排显示两张宣传图 */
        margin-bottom: 30px;
    }

    /* 下载按钮区域独占一行，居中对齐，左安卓右苹果 */
    .download-section {
        width: 100%;
        margin: 10px auto 40px auto;
    }

    /* 社区卡片区域移动到正下方，同样左右并列居中 */
    .social-card-container {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .social-card-container h3 {
        width: 100%;
        margin-top: 0;
        margin-bottom: 5px;
    }

    .social-card {
        width: calc(50% - 15px);
        box-sizing: border-box;
        margin-top: 15px;
    }

    /* 大屏下的弹窗尺寸放大 */
    .modal-content {
        max-width: 400px;
        padding: 40px;
    }

    .modal-content h2 {
        font-size: 32px;
    }

    .modal-content p {
        font-size: 20px;
    }
    
    .btn-claim {
        padding: 15px 30px;
        font-size: 20px;
    }
}