/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: var(--primary-red);
    max-width: 750px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* 主色调定义 */
:root {
    --primary-red: #c41e3a; /* 低饱和度中国红 */
    --gold: #d4af37; /* 哑光烫金 */
    --light-gold: #f5f0e6; /* 浅金色 */
    --white: #ffffff;
    --gray: #f0f0f0;
    --text-dark: #333333;
    --text-light: #666666;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--gold));
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-large {
    width: 80%;
    max-width: 400px;
    height: 60px;
    font-size: 18px;
    border-radius: 30px;
}

/* 顶部Banner */
.banner {
    background-image: url('/tp/画板 1.png');
    background-size: cover;
    background-position: top center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 875/560;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.banner-content {
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 200px;
    transform: translateY(-80px);
    margin-bottom: -80px;
    gap: 8px;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.location-invite {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.countdown {
    font-size: 16px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    margin-top: 24px;
}

.countdown span {
    display: inline-block;
    margin: 0 4px;
}

.countdown::before {
    content: "距活动结束还有";
    display: block;
    margin-bottom: 5px;
}

.countdown span#days,
.countdown span#hours,
.countdown span#minutes,
.countdown span#seconds {
    font-weight: 600;
}

/* 核心卖点区 */
.selling-points {
    padding: 40px 0;
    background-color: var(--primary-red);
    position: relative;
    z-index: 5;
}

.selling-points .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.point-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.point-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.point-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-red);
}

.point-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* 活动玩法说明 */
.how-to-play {
    padding: 40px 0;
    background-color: var(--primary-red);
}

.how-to-play .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.play-column {
    background-color: var(--white);
    border-radius: 12px;
    padding: 24px;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-red);
    text-align: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    padding: 12px;
    border-left: 3px solid var(--primary-red);
    margin-left: 8px;
}

.step-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

/* 奖品展示区 */
.prizes {
    padding: 40px 0;
    background-color: var(--primary-red);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    text-align: center;
}

.prizes-ladder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.prize-layer {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.layer-1 {
    width: 30%;
}

.layer-2 {
    width: 60%;
}

.layer-3 {
    width: 80%;
}

.layer-4 {
    width: 100%;
}

.prize-card {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.prize-card img {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
}

.prize-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.prize-level {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-bottom-left-radius: 12px;
    z-index: 10;
}

.prize-card img {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
}



/* 奖品价值表 */
.prize-table-section {
    padding: 40px 0;
    background-color: var(--primary-red);
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.prize-table th,
.prize-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(196, 30, 58, 0.1);
}

.prize-table th {
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.prize-table tr:last-child td {
    border-bottom: none;
}

.prize-table tr:hover {
    background-color: rgba(196, 30, 58, 0.05);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .layer-1 {
        width: 40%;
    }
    
    .layer-2 {
        width: 70%;
    }
    
    .layer-3 {
        width: 90%;
    }
    
    .prize-card {
        min-width: 100px;
        max-width: 140px;
    }
    
    /* 表格响应式调整 */
    .prize-table {
        font-size: 12px;
    }
    
    .prize-table th,
    .prize-table td {
        padding: 8px;
    }
    
    .prize-table th {
        font-size: 12px;
    }
}

/* 渠道参与指引 */
.channels {
    padding: 40px 0;
    background-color: var(--primary-red);
}

.channel-list {
    list-style: none;
    margin: 0 0 12px 0;
    background-color: var(--white);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.channel-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.channel-item {
    font-size: 14px;
    color: var(--primary-red);
    padding: 12px 0;
    border-bottom: 1px solid rgba(196, 30, 58, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.channel-item:hover {
    color: var(--primary-red);
    transform: none;
}

.channel-item:last-child {
    border-bottom: none;
}

.channels .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.channels .btn-secondary {
    width: 100%;
    max-width: 300px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.channels .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* 渠道标注 */
.channel-note {
    font-size: 14px;
    color: var(--white);
    text-align: center;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.6;
    letter-spacing: 0.5px;
    max-width: 500px;
    padding: 0 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 抽奖说明协议 */
.lottery-agreement {
    padding: 40px 0;
    background-color: var(--primary-red);
}

.lottery-agreement .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    position: relative;
}

.agreement-content {
    width: 100%;
    max-width: 600px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px 20px 80px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0;
}

.agreement-content.expanded {
    margin-bottom: 30px;
    transform: translateY(0);
    padding: 20px;
}

.agreement-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    max-height: 90px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 1;
}

.agreement-text.expanded {
    max-height: 500px;
}

.agreement-text p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.agreement-text p:last-child {
    margin-bottom: 0;
}

.agreement-gradient {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.agreement-gradient.hidden {
    opacity: 0;
}

.agreement-toggle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    transition: all 0.3s ease;
    display: block;
    min-width: 120px;
    font-weight: 600;
    background: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    z-index: 3;
}

.agreement-toggle:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.agreement-toggle.expanded {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.agreement-toggle.expanded:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .channel-list {
        padding: 10px;
        max-width: 95%;
    }
    
    .channel-item {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .channel-note {
        font-size: 13px;
        padding: 0 12px;
        max-width: 95%;
    }
    
    .agreement-content {
        padding: 16px 16px 80px 16px;
        max-width: 95%;
    }
    
    .agreement-content.expanded {
        padding: 16px;
    }
    
    .agreement-text {
        font-size: 13px;
        max-height: 70px;
    }
    
    .agreement-text.expanded {
        max-height: 400px;
    }
    
    .agreement-gradient {
        bottom: 60px;
    }
    
    .agreement-toggle {
        bottom: 20px;
    }
}

/* 行动召唤区 */
.cta {
    padding: 40px 0;
    background-color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 底部信息栏 */
.footer {
    padding: 30px 0;
    background-color: var(--primary-red);
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-logo {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

/* 底部图片 */
.bottom-banner {
    background-image: url('/tp/画板 2.png');
    background-size: cover;
    background-position: bottom center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 875/560;
    position: relative;
    overflow: hidden;
    z-index: 10000;
}

/* 二维码弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, var(--light-gold), var(--white));
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-red);
}

.modal-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px solid var(--gold);
    padding: 10px;
    border-radius: 8px;
    background-color: var(--white);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 二维码提示词 */
.qr-tip {
    font-size: 14px;
    color: var(--primary-red);
    text-align: center;
    margin: 16px 0;
    font-weight: 500;
}

/* 验证部分样式 */
.verification-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.verification-tip {
    font-size: 14px;
    color: var(--primary-red);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

#verify-btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

#verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    .banner-title {
        font-size: 40px;
    }

    .selling-points .container {
        flex-direction: row;
    }

    .point-card {
        flex: 1;
    }

    .how-to-play .container {
        flex-direction: row;
    }

    .play-column {
        flex: 1;
    }

    .steps {
        flex-direction: row;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

/* 设备拦截提示样式 */
.device-blocker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
}

.device-blocker-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.device-blocker-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 16px;
}

.device-blocker-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.device-blocker-url {
    background-color: var(--gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
    text-align: left;
}

.device-blocker-url-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.device-blocker-url-value {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background-color: var(--white);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--gray);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.point-card, .play-column, .prize-card {
    animation: fadeIn 0.6s ease forwards;
}

.point-card:nth-child(1) {
    animation-delay: 0.1s;
}

.point-card:nth-child(2) {
    animation-delay: 0.2s;
}

.point-card:nth-child(3) {
    animation-delay: 0.3s;
}

.play-column:nth-child(1) {
    animation-delay: 0.2s;
}

.play-column:nth-child(2) {
    animation-delay: 0.3s;
}

.prize-card:nth-child(1) {
    animation-delay: 0.1s;
}

.prize-card:nth-child(2) {
    animation-delay: 0.2s;
}

.prize-card:nth-child(3) {
    animation-delay: 0.3s;
}

.prize-card:nth-child(4) {
    animation-delay: 0.4s;
}