/**
 * 全局样式和变量
 */
:root {
    /* 颜色系统 */
    --bg-dark: #0a1128;         /* 深蓝背景 */
    --bg-darker: #050814;       /* 极暗蓝底部背景 */
    --brand-gold: #e2c073;      /* 主题金/黄色 */
    --brand-gold-hover: #f5d487;
    --text-main: #ffffff;       /* 主文本白 */
    --text-muted: #94a3b8;      /* 次级灰色文本，类似浅蓝灰 */
    
    /* 深色卡片背景，带一定透明度 */
    --card-bg: rgba(15, 23, 42, 0.4);
    --card-border: rgba(226, 192, 115, 0.3);
    --card-border-hover: rgba(226, 192, 115, 0.8);
    
    /* 光晕颜色 */
    --glow-color: rgba(30, 64, 175, 0.3);
    
    /* 字体 */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* 间距限制 */
    --container-max-width: 1200px;
    
    /* 动画 */
    --transition-speed: 0.3s;
}

/* 重置内置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    /* 创建深色径向渐变背景 */
    background: radial-gradient(circle at top center, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* 链接无下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* ==================================
 * 背景层 & 光晕效果
 * ================================== */
.bg-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    /* 视差平滑过渡 */
    transition: transform 0.1s ease-out;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.glow-1 {
    width: 600px; height: 600px;
    background: var(--glow-color);
    top: -200px; left: -100px;
}

.glow-2 {
    width: 800px; height: 800px;
    background: rgba(43, 85, 204, 0.2);
    bottom: -300px; right: -200px;
}

/* 扑克元素暗纹花纹 */
.poker-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.03; /* 极暗的纹理 */
    background-image: 
        radial-gradient(var(--text-main) 1px, transparent 1px),
        radial-gradient(var(--text-main) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* ==================================
 * 页面主干结构
 * ================================== */
.page-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部导航区 */
.header {
    padding: 40px 0;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--text-main);
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-gold);
    letter-spacing: 0.5px;
}

/* 核心展示区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 400;
}

/* 卡片布局区 */
.cards-section {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.info-card {
    flex: 1;
    max-width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(226, 192, 115, 0.1);
}

.card-title {
    font-size: 24px;
    color: var(--brand-gold);
    margin-bottom: 24px;
    font-weight: 600;
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.icon {
    width: 20px;
    height: 20px;
    color: var(--brand-gold);
}

.card-text {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.4;
}

/* ==================================
 * 底部区域
 * ================================== */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-bottom: 24px;
}

.privacy-link {
    color: var(--brand-gold);
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: var(--brand-gold-hover);
}

.beta-notice {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.copyright {
    color: rgba(148, 163, 184, 0.5); /* 更暗的灰色 */
    font-size: 14px;
}

/* ==================================
 * 动画系统
 * ================================== */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.slide-down {
    transform: translateY(-20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 有 active 类时回到正常形态 */
.fade-in.active { opacity: 1; }
.slide-down.active { transform: translateY(0); }

/* 延时控制：制造先后出现的层次感 */
.active.delay-1 { transition-delay: 0.2s; }
.active.delay-2 { transition-delay: 0.4s; }
.active.delay-3 { transition-delay: 0.6s; }

/* ==================================
 * 移动端适配 (H5)
 * ================================== */
@media (max-width: 768px) {
    .header {
        justify-content: center;
        padding: 24px 0;
    }
    
    .brand-name {
        font-size: 24px;
    }

    .hero-title {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .cards-section {
        flex-direction: column;
        gap: 16px;
    }

    .info-card {
        padding: 24px;
        max-width: 100%;
    }

    .glow-1 {
        width: 300px; height: 300px;
    }

    .glow-2 {
        width: 400px; height: 400px;
    }
}
