/* 黑色系深色主题配置 */
:root {
    --primary-blue: #3b82f6;
    --primary-green: #10b981;
    --primary-orange: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --bg-primary: #0a0a0f;
    --bg-card: rgba(17, 17, 24, 0.6);
    --bg-card-hover: #1a1a24;
    --border-color: rgba(42, 42, 58, 0.5);
    --accent-cyan: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    /* 修复了原先 height: 100vh 导致无法往下滚动的 Bug */
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%), radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 35%), radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 语言切换器 */
.lang-switcher {
    position: relative;
}

.lang-switcher select {
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 28px 6px 14px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.lang-switcher::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.lang-switcher select option {
    background: #1a1a24;
    color: var(--text-primary);
}

/* 主内容区 */
.main-container {
    padding-top: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.hero-section {
    width: 100%;
    max-width: 600px;
    padding: 20px 20px 16px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 20px;
}

.badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-cyan);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-subtitle span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-subtitle span svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-cyan);
}

/* 核心卡片 */
.card {
    width: 100%;
    max-width: 480px;
    padding: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.08), 0 0 80px rgba(6, 182, 212, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.notice-box {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0.9;
}

.loading-area {
    margin-bottom: 20px;
}

.loading-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 400;
}

.progress-bar-bg {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 6px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    height: 100%;
    width: 0%;
    border-radius: 12px;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.result-area {
    display: none;
    margin-bottom: 20px;
}

.success-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    letter-spacing: 1px;
}

/* 钱包地址框 */
.wallet-address-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px 48px 20px 20px;
    border-radius: 16px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 15px;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: left;
    position: relative;
    transition: all 0.3s;
}

.wallet-address-box:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.wallet-address-box .copy-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.wallet-address-box .copy-icon:hover {
    opacity: 1;
}

.wallet-address-box .copy-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-secondary);
}

/* 倒计时与按钮 */
.timer-display {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-base {
    color: var(--accent-cyan);
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    width: 100%;
}

.btn-base::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.5s;
}

.btn-base:hover {
    background: var(--bg-card-hover);
    text-shadow: 0 0 8px var(--accent-glow), 0 0 16px var(--accent-cyan);
}

.btn-base:hover::before {
    left: 100%;
}

.btn-base:active {
    transform: scale(0.96);
}

/* 底部绿色提示 */
.footer-tip {
    margin-top: 28px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(21, 128, 61, 0.18) 100%);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-tip-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e52 0%, #16a34a57 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7bff47;
}

.footer-tip-icon svg {
    width: 18px;
    height: 18px;
}

.footer-tip-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
}

.footer-tip-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.footer-tip-highlight {
    font-size: 14px;
    color: #4ade80;
    font-weight: 600;
}

.footer-tip-save {
    font-size: 12px;
    color: #4ade80;
    font-weight: 400;
}

/* FAQ区域 */
.faq-section {
    width: 100%;
    max-width: 560px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.faq-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.faq-section-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-cyan);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.faq-q-icon svg {
    width: 16px;
    height: 16px;
}

.faq-answer {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 38px;
}

.faq-footer {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    font-size: 12px;
    color: var(--accent-cyan);
    text-align: center;
}

/* 页脚 */
.footer-section {
    margin-top: auto;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* 响应式 - 平板及以下 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .lang-switcher select {
        padding: 5px 24px 5px 10px;
        font-size: 12px;
    }

    .hero-section {
        padding: 40px 20px 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .card {
        max-width: calc(100vw - 40px);
        padding: 24px;
        margin: 0 20px;
    }

    .hero-subtitle {
        gap: 8px;
    }

    .wallet-address-box {
        padding: 16px 40px 16px 14px;
        font-size: 13px;
    }

    .faq-section {
        padding: 0 16px;
    }
}

