:root {
    --vh: 1vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    overflow-x: hidden;
    color: white;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 语言切换器样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.language-switcher .globe-icon {
    font-size: 16px;
    color: #ffd700;
}

.language-switcher .current-lang {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.language-switcher .dropdown-arrow {
    color: #cbd5e1;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-switcher.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* 语言菜单 */
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(26, 29, 41, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #cbd5e1;
    font-size: 14px;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.language-option.active {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.language-option .flag {
    font-size: 16px;
}

.language-option .lang-name {
    font-weight: 500;
}

/* 移动端语言切换器 */
/* 中等屏幕平板端优化 */
@media (min-width: 769px) and (max-width: 1023px) {
    .mobile-preview {
        /* 平板端适中放大，减少基础宽度 */
        scale: 1.15;
        max-width: 320px; /* 从350px减少到320px */
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 6px 10px;
    }
    
    .language-switcher .current-lang {
        font-size: 13px;
    }
    
    .language-menu {
        right: -5px;
        min-width: 140px;
    }
    
    .language-option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 背景动画 */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(26, 29, 41, 0.8) 30%, 
        rgba(15, 15, 35, 0.95) 70%, 
        rgba(0, 0, 0, 1) 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,215,0,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,215,0,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffd700, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(45, 27, 105, 0.1) 100%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(ellipse, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 215, 0, 0.05) 40%, 
        transparent 70%);
    filter: blur(100px);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    z-index: 10;
    max-width: 900px;
    position: relative;
    animation: fadeInUp 1s ease;
}

.brand-logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, 
        #ffd700 0%, 
        #ffed4e 25%, 
        #f59e0b 50%, 
        #ffd700 75%, 
        #ffed4e 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: gradient-shift 3s ease infinite, text-glow 2s ease-in-out infinite;
    text-shadow: 0 0 100px rgba(255, 215, 0, 0.5);
    position: relative;
}

.brand-logo::before {
    content: 'APG Game';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 90px rgba(255, 215, 0, 0.3); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.2s ease 0.5s both;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #94a3b8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease 0.8s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease 1.1s both;
}

.cta-btn {
    position: relative;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transform: translateY(0);
    text-align: center;
    min-height: 56px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #ffd700, #f59e0b, #ffd700);
    background-size: 200% 200%;
    color: #0a0a0a;
    box-shadow: 
        0 10px 40px rgba(255, 215, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.1);
    animation: btn-glow 3s ease infinite;
}

.cta-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.6),
        0 0 0 1px rgba(255, 215, 0, 0.3);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(20px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

@keyframes btn-glow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
    }
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease 1.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

/* 浮动元素 */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float-complex 8s ease-in-out infinite;
    filter: blur(0.5px);
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.floating-icon:nth-child(6) { top: 15%; left: 50%; animation-delay: 5s; }
.floating-icon:nth-child(7) { bottom: 20%; right: 30%; animation-delay: 6s; }
.floating-icon:nth-child(8) { top: 60%; right: 5%; animation-delay: 7s; }

@keyframes float-complex {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-40px) translateX(-5px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% { 
        transform: translateY(-20px) translateX(-10px) rotate(270deg) scale(1.05);
        opacity: 0.2;
    }
}

/* 功能展示区域 */
.features-showcase {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(26, 29, 41, 0.6) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(20px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.1);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1rem;
}

.feature-desc {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1rem;
}

/* 统计数据区域 */
.stats-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(26, 29, 41, 0.3) 50%, 
        rgba(45, 27, 105, 0.1) 100%);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.8s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 游戏预览区域 */
.game-preview {
    padding: 120px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-content {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInLeft 1s ease 0.5s forwards;
}

.preview-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.preview-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.preview-content strong {
    color: #ffd700;
}

.mobile-preview {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 1s ease 0.8s forwards;
    /* 电脑端增加高度35%，保持真机比例 */
    transform-origin: center;
    scale: 1.35;
}

.phone-mockup {
    background: linear-gradient(135deg, #1a1d29, #0f0f23);
    border-radius: 35px;
    padding: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 215, 0, 0.05) 100%);
    border-radius: 35px;
}

.screen-content {
    background: linear-gradient(135deg, #0f0f23, #1a1d29);
    border-radius: 25px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.game-timer {
    font-size: 3rem;
    font-weight: 900;
    color: #ffd700;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.side-option {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odd-option {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.even-option {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.vs-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.bet-button {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    border: none;
    color: #0a0a0a;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
}

.bet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

/* 最终CTA区域 */
.final-cta {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(26, 29, 41, 0.8) 50%, 
        rgba(0, 0, 0, 1) 100%);
    position: relative;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contract-info {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contract-address {
    font-family: 'Monaco', 'Menlo', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #ffd700;
    word-break: break-all;
    margin: 1rem 0;
}

/* 下载弹窗样式 */
.download-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.download-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.download-modal-content {
    background: linear-gradient(135deg, 
        rgba(26, 29, 41, 0.95) 0%, 
        rgba(15, 15, 35, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideInScale 0.3s ease;
    overflow: hidden;
}

.download-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-modal-header h3 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.download-modal-close {
    color: #cbd5e1;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.download-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.download-modal-body {
    padding: 1.5rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.download-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.download-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.download-arrow {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 下载状态样式 */
.downloading {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: #d1d5db !important;
    cursor: not-allowed !important;
    position: relative;
    overflow: hidden;
}

.downloading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: downloadProgress 2s infinite;
}

@keyframes downloadProgress {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 移动端弹窗优化 */
@media (max-width: 480px) {
    .download-modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .download-modal-header {
        padding: 1rem;
    }
    
    .download-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .download-modal-body {
        padding: 1rem;
    }
    
    .download-option {
        padding: 0.8rem;
    }
    
    .download-icon {
        font-size: 1.8rem;
        margin-right: 0.8rem;
    }
    
    .download-info h4 {
        font-size: 1rem;
    }
    
    .download-info p {
        font-size: 0.8rem;
    }
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loader-text {
    color: #cbd5e1;
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
/* 大屏幕桌面端优化 */
@media (min-width: 1024px) {
    .mobile-preview {
        /* 桌面端放大35%，但减少基础宽度 */
        scale: 1.35;
        max-width: 300px; /* 从350px减少到300px */
    }
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Hero 区域优化 */
    .hero-section {
        padding: 0 15px;
        min-height: 100vh;
    }
    
    .brand-logo {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-btn {
        width: 280px;
        max-width: 90vw;
        padding: 0.8rem 2rem;
        font-size: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-feature {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    /* 功能区域优化 */
    .features-showcase {
        padding: 80px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .feature-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* 统计区域优化 */
    .stats-section {
        padding: 80px 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* 游戏预览区域优化 */
    .game-preview {
        padding: 80px 15px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .preview-content {
        order: 2;
    }
    
    .mobile-preview {
        order: 1;
        max-width: 400px; /* 从364px增加到400px，更宽 */
        /* 手机端重置scale，使用宽度控制 */
        scale: 1;
    }
    
    .phone-mockup {
        padding: 15px;
    }
    
    .screen-content {
        padding: 1.2rem;
    }
    
    .game-timer {
        font-size: 2.5rem;
    }
    
    .vs-section {
        flex-direction: row;
        gap: 1rem;
    }
    
    .side-option {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1;
    }
    
    .vs-text {
        font-size: 1.5rem;
    }
    
    .bet-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* CTA区域优化 */
    .final-cta {
        padding: 80px 15px;
    }
    
    .final-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contract-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contract-address {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        line-height: 1.4;
    }
    
    /* 隐藏浮动元素以提高性能 */
    .floating-icon {
        display: none;
    }
    
    /* 动画优化 */
    .mobile-preview {
        animation: slideInUp 1s ease 0.3s forwards;
    }
    
    .preview-content {
        animation: slideInUp 1s ease 0.5s forwards;
    }
    
    /* 通用间距调整 */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .hero-section {
        padding: 0 10px;
    }
    
    .brand-logo {
        font-size: clamp(2rem, 15vw, 3rem);
    }
    
    .cta-btn {
        width: 260px;
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .features-showcase,
    .stats-section,
    .game-preview,
    .final-cta {
        padding: 60px 10px;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin: 0 5px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-preview {
        max-width: 370px; /* 从338px增加到370px，更宽 */
        /* 保持手机端的宽度优化 */
        scale: 1;
    }
    
    .game-timer {
        font-size: 2rem;
    }
    
    .vs-section {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .side-option {
        width: 100%;
        text-align: center;
    }
    
    .contract-info {
        padding: 1rem;
    }
    
    .contract-address {
        font-size: 0.75rem;
    }
    
    /* 字体大小调整 */
    .section-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .preview-content h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .preview-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    /* 特别小的屏幕优化 */
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-width: 300px;
    }
    
    .hero-feature {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-feature span:first-child {
        margin-right: 0.3rem;
    }
}

@media (max-width: 360px) {
    /* 最小屏幕优化 */
    .cta-btn {
        width: 240px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .mobile-preview {
        max-width: 340px; /* 从312px增加到340px，更宽 */
        /* 最小屏幕保持宽度优化 */
        scale: 1;
    }
    
    .phone-mockup {
        padding: 12px;
    }
    
    .screen-content {
        padding: 1rem;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        justify-items: center;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .hero-feature {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .cta-btn:hover,
    .feature-card:hover,
    .stat-card:hover,
    .bet-button:hover {
        transform: none;
    }
    
    .cta-btn:active {
        transform: scale(0.98);
    }
    
    .bet-button:active {
        transform: scale(0.98);
    }
    
    /* 增大触摸目标 */
    .cta-btn,
    .bet-button {
        min-height: 44px;
    }
    
    /* 优化文本选择 */
    .brand-logo,
    .section-title {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
    }
    
    .brand-logo {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        margin-bottom: 1.5rem;
    }
    
    .floating-icon {
        display: none;
    }
}