/* ========== 主题变量 ========== */
:root {
    /* 主题色 */
    --primary-blue: #3B82F6;
    --primary-blue-light: #60A5FA;
    --accent-gold: #F59E0B;
    --accent-gold-light: #FBBF24;

    /* 浅色模式 (默认) */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-border: rgba(0, 0, 0, 0.06);
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
}

/* 深色模式 */
[data-theme="dark"] {
    --bg-primary: #0a0f1a;
    --bg-secondary: #121928;
    --bg-card: rgba(18, 25, 40, 0.85);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #E8ECF4;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    transition: background 0.4s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
    padding-top: 70px;
}

/* ========== 背景光晕 ========== */
.aurora-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-bg {
    position: absolute;
    inset: 0;
}

.float-blob-blue {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    filter: blur(120px);
    animation: floatBlob1 20s ease-in-out infinite;
}

.float-blob-orange {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: rgba(251, 146, 60, 0.18);
    border-radius: 50%;
    filter: blur(110px);
    animation: floatBlob2 25s ease-in-out infinite;
}

.float-blob-purple {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    animation: floatBlob3 22s ease-in-out infinite;
}

.float-blob-top {
    position: absolute;
    top: 5%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: rgba(34, 211, 238, 0.12);
    border-radius: 50%;
    filter: blur(90px);
    animation: floatBlob4 18s ease-in-out infinite;
}

/* 深色模式光晕 */
[data-theme="dark"] .float-blob-blue { background: rgba(59, 130, 246, 0.12); }
[data-theme="dark"] .float-blob-orange { background: rgba(251, 146, 60, 0.08); }
[data-theme="dark"] .float-blob-purple { background: rgba(139, 92, 246, 0.08); }
[data-theme="dark"] .float-blob-top { background: rgba(34, 211, 238, 0.06); }

/* 光晕浮动动画 */
@keyframes floatBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

@keyframes floatBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 20px) scale(1.08); }
    66% { transform: translate(30px, -30px) scale(0.92); }
}

@keyframes floatBlob3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(25px, 25px) scale(1.03); }
    40% { transform: translate(-15px, 35px) scale(0.97); }
    60% { transform: translate(-30px, -20px) scale(1.05); }
    80% { transform: translate(20px, -25px) scale(0.98); }
}

@keyframes floatBlob4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, 25px) scale(1.1); }
}

/* ========== Hero 内容容器 ========== */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    text-align: center;
    padding: 20px 0 60px;
}

/* ========== 头部导航 ========== */
header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 100%;
    max-width: 600px;
    padding: 0 16px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-card-border);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.navbar-close:hover { opacity: 1; }

.navbar-close svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.notice-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-gold);
    text-align: center;
    flex: 1;
}

/* ========== 品牌标签行 (参考图顶部Pills) ========== */
.brand-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.brand-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 44px; /* Touch target */
}

.brand-pill:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.pill-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    padding: 2px;
}

/* 顶部品牌标签 Logo 背景 */
.brand-pill:nth-child(1) .pill-icon { background: #1a3a6b; }
.brand-pill:nth-child(2) .pill-icon { background: #1a1a3e; }
.brand-pill:nth-child(3) .pill-icon { background: #1c1c2e; }
.brand-pill:nth-child(4) .pill-icon { background: #1e2340; }
.brand-pill:nth-child(5) .pill-icon { background: #eef7ff; }

/* ========== 主标题区域 ========== */
.hero-title-section {
    margin-bottom: 40px;
}

.hero-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-trophy {
    height: 108px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
    flex-shrink: 0;
}

.gradient-title {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #F59E0B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== 主操作按钮 ========== */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-actions-logo {
    height: 96px;
    object-fit: contain;
}

.hero-logo-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF6B35, #EF4444);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hero-actions-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: none;
    min-height: 52px;
}

.hero-btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.hero-btn-primary:hover {
    background: var(--primary-blue-light);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}

.hero-btn-primary:active {
    opacity: 0.95;
}

.hero-btn-outline {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--bg-card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

/* ========== 分类标签 ========== */
.category-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.category-tag {
    padding: 12px 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    min-height: 44px; /* Touch target */
    display: inline-flex;
    align-items: center;
}

.category-tag:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

/* ========== 游戏供应商合作伙伴 ========== */
.partners-section {
    background: #3D4555;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 48px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 36px;
}

.partner-item {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
    cursor: default;
}

.partner-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== 品牌入口区 ========== */
.brand-cards-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 2x2 网格 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 卡片 */
.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* 左侧品牌色条 - 隐藏 */
.brand-card-accent {
    display: none;
}

/* Logo 头部区域 */
.brand-card-top {
    position: relative;
}

.brand-card-logo {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.brand-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Logo 背景色 */
.card-jy .brand-card-logo { background: linear-gradient(135deg, #1a1a3e, #2e2460); }
.card-hth .brand-card-logo { background: linear-gradient(135deg, #1c1c2e, #2a2a40); }
.card-mk .brand-card-logo { background: linear-gradient(135deg, #1e2340, #2c3358); }
.card-ai .brand-card-logo { background: linear-gradient(135deg, #e8f4fd, #d0e8f7); }

/* 标签 */
.brand-card-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.5px;
    color: white;
    z-index: 1;
}

.brand-card-tag.new { background: linear-gradient(135deg, #10B981, #059669); }
.brand-card-tag.hot { background: linear-gradient(135deg, #F59E0B, #EF4444); }

/* 卡片内容区 */
.brand-card-body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 品牌名 */
.brand-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 优惠文案 */
.brand-card-promo {
    font-size: 12px;
    color: var(--accent-gold);
    line-height: 1.4;
    font-weight: 500;
}

/* 按钮组 */
.brand-card-btns {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.bc-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 34px;
    text-align: center;
}

.bc-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.bc-btn.primary:hover {
    background: var(--primary-blue-light);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.bc-btn.ghost {
    background: transparent;
    border: 1.5px solid var(--bg-card-border);
    color: var(--text-secondary);
}

.bc-btn.ghost:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ========== 备用域名模块 ========== */
.backup-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 24px;
}

.backup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.backup-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.backup-tip {
    font-size: 12px;
    color: var(--text-muted);
}

.backup-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.backup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid var(--bg-card-border);
    border-radius: 50px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px; /* Touch target */
}

.backup-item:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.backup-url {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
}

.backup-copy-btn {
    padding: 8px 16px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 56px;
    min-height: 32px;
}

.backup-copy-btn:hover {
    background: var(--primary-blue-light);
}

.backup-copy-btn:active {
    opacity: 0.9;
}

.backup-copy-btn.copied {
    background: #10B981;
}

/* ========== 底部版权 ========== */
.site-footer {
    text-align: center;
    padding: 24px 16px 32px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

.site-footer p {
    margin: 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 900px) {
    .hero-trophy {
        height: 88px;
    }
    .gradient-title {
        font-size: 56px;
    }
    .hero-subtitle {
        font-size: 26px;
    }
    .partners-section {
        padding: 24px 20px;
    }
    .partners-grid {
        gap: 18px 28px;
    }
    .partner-item {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    header {
        top: 8px;
        padding: 0 12px;
    }
    .navbar {
        padding: 8px 16px;
    }
    .hero-content {
        padding: 0 16px;
    }
    .hero {
        padding: 10px 0 40px;
    }
    .brand-pills {
        gap: 8px;
        margin-bottom: 32px;
    }
    .brand-pill {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 40px;
    }
    .pill-icon {
        width: 18px;
        height: 18px;
    }
    .hero-main-title {
        gap: 8px;
    }
    .hero-trophy {
        height: 64px;
    }
    .gradient-title {
        font-size: 42px;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    .hero-description {
        font-size: 14px;
    }
    .hero-actions {
        gap: 16px;
        margin-bottom: 32px;
    }
    .hero-actions-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero-btn {
        width: 100%;
        padding: 14px 24px;
        min-height: 48px;
    }
    .category-tags {
        gap: 8px;
        margin-bottom: 32px;
    }
    .category-tag {
        padding: 10px 18px;
        font-size: 12px;
        min-height: 40px;
    }
    .partners-section {
        padding: 20px 16px;
        margin-bottom: 32px;
        border-radius: 14px;
    }
    .partners-grid {
        gap: 14px 20px;
    }
    .partner-item {
        font-size: 11px;
    }
    .brand-grid {
        gap: 10px;
    }
    .brand-card-logo {
        height: 48px;
        padding: 8px 16px;
    }
    .brand-card-body {
        padding: 12px;
        gap: 6px;
    }
    .brand-card-name {
        font-size: 14px;
    }
    .brand-card-promo {
        font-size: 11px;
    }
    .bc-btn {
        padding: 7px 0;
        font-size: 11px;
        min-height: 32px;
    }
    .backup-section {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .backup-list {
        gap: 10px;
    }
    .backup-item {
        padding: 12px 16px;
        gap: 10px;
        min-height: 44px;
    }
    .backup-url {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 60px;
    }
    .brand-pills {
        gap: 6px;
    }
    .brand-pill {
        padding: 6px 12px;
        font-size: 11px;
        gap: 6px;
        min-height: 36px;
    }
    .pill-icon {
        width: 16px;
        height: 16px;
    }
    .hero-main-title {
        flex-wrap: wrap;
        gap: 4px;
    }
    .hero-trophy {
        height: 36px;
    }
    .gradient-title {
        font-size: 28px;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .partners-section {
        padding: 16px 12px;
        border-radius: 12px;
    }
    .partners-grid {
        gap: 12px 16px;
    }
    .partner-item {
        font-size: 10px;
    }
    .category-tag {
        padding: 8px 14px;
        min-height: 36px;
    }
    .backup-item {
        flex: 1 1 100%;
        justify-content: space-between;
    }
    .brand-grid {
        gap: 8px;
    }
    .brand-card-logo {
        height: 42px;
        padding: 6px 12px;
    }
    .brand-card-body {
        padding: 10px;
        gap: 5px;
    }
    .brand-card-name {
        font-size: 13px;
    }
    .brand-card-promo {
        font-size: 10px;
    }
    .bc-btn {
        padding: 6px 0;
        font-size: 10px;
        min-height: 28px;
        border-radius: 6px;
    }
}

/* ========== 动画降级支持 ========== */
@media (prefers-reduced-motion: reduce) {
    .float-blob-blue,
    .float-blob-orange,
    .float-blob-purple,
    .float-blob-top {
        animation: none;
    }
    .gradient-title {
        animation: none;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
