﻿/* =============================================
   死神模拟器 Wiki - 首页专属样式
   Apple Liquid Glass / Glassmorphism 风格
   ============================================= */

/* ---------- 0. Page Transitions (no flash) ---------- */
@view-transition { navigation: none; }

/* ---------- 1. CSS 变量 ---------- */
:root {
    --glass-bg: rgba(18, 14, 35, 0.58);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 14px;
    --glass-shadow: 0 18px 48px rgba(4, 8, 20, 0.28);
    --color-bg: #080613;
    --color-surface: #120e23;
    --color-surface-alt: #191530;
    --color-primary: #685898;
    --color-primary-glow: rgba(104, 88, 152, 0.28);
    --color-secondary: #f07090;
    --color-accent: #f01050;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text: #edf2ff;
    --color-text-muted: #b0a0b8;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --page-enter-duration: 320ms;
}

/* ---------- 1. 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #483868 var(--color-bg);
    background-color: var(--color-bg);
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--color-bg); }
html::-webkit-scrollbar-thumb { background: #483868; border-radius: 4px; }
html::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

body {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background: var(--color-bg);
    background-image:
        linear-gradient(180deg, rgba(8,6,19,0.94) 0%, rgba(8,6,19,0.99) 100%),
        radial-gradient(circle at 18% 18%, rgba(240,112,144,0.14) 0%, transparent 34%),
        radial-gradient(circle at 78% 16%, rgba(104,88,152,0.20) 0%, transparent 36%),
        radial-gradient(circle at 50% 100%, rgba(104,88,152,0.11) 0%, transparent 40%);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    background-attachment: fixed;
    background-color: var(--color-bg);
    animation: page-enter 400ms ease-out both;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: opacity;
}

@keyframes page-enter {
    from {  }
    to   { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- 2. 液态玻璃 (Liquid Glass) ---------- */
.glass {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%),
        var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255,255,255,0.02),
        var(--glass-shadow);
}

.glass-strong {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%),
        rgba(17, 24, 40, 0.82);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 22px 56px rgba(4, 8, 20, 0.32);
}

/* ---------- 3. 导航栏 ---------- */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s var(--transition-smooth), 
                backdrop-filter 0.4s, -webkit-backdrop-filter 0.4s,
                box-shadow 0.4s var(--transition-smooth),
                border-color 0.4s var(--transition-smooth);
    background: linear-gradient(135deg, rgba(8,12,24,0.88) 0%, rgba(18, 14, 35,0.84) 52%, rgba(20, 16, 36,0.9) 100%);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 36px rgba(5, 8, 18, 0.2);
}

.home-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240,112,144,0.16), rgba(104,88,152,0.28), transparent);
}

.home-nav.scrolled {
    background: linear-gradient(135deg, rgba(8,12,24,0.94) 0%, rgba(18, 14, 35,0.92) 52%, rgba(20, 16, 36,0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 18px 42px rgba(5, 8, 18, 0.35);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
    gap: 18px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 24px rgba(8, 12, 24, 0.26);
}
.nav-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 4px; position: relative; }
/* 液态玻璃滑动胶囊 */
.nav-capsule {
    content: '';
    position: absolute; top: 0; 
    height: 100%; width: var(--nav-w, 0);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(104,88,152,.22), rgba(240,112,144,.12));
    border: 1px solid rgba(104,88,152,.22);
    box-shadow: 0 0 20px rgba(104,88,152,.08);
    
    transition: left .45s cubic-bezier(.4,0,.2,1), width .45s cubic-bezier(.4,0,.2,1);
    z-index: 0; pointer-events: none;
    will-change: left, width;
}
.nav-links a {
    position: relative; z-index: 1;
    padding: 7px 14px; border-radius: 999px; font-size: 14px;
    color: var(--color-text-muted); border: 1px solid transparent;
    background: transparent;
    transition: color .2s, transform .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; transform: translateY(-1px); }
.nav-links a.active { color: #fff; background: transparent; border-color: transparent; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
/* 搜索栏 — 默认收起为图标，展开为输入框 */
.nav-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition: max-width .35s cubic-bezier(.4,0,.2,1), border-color .2s, box-shadow .2s, background .2s;
    max-width: 40px;
    flex-shrink: 1; min-width: 0;
    cursor: pointer;
    
}
.nav-search.open,.nav-search:focus-within { max-width: 360px; width: 280px;
    border-color: rgba(240, 112, 144,.28);
    box-shadow: 0 0 0 4px rgba(240, 112, 144,.12);
    background: rgba(255,255,255,.06);
}
.nav-search input {
    width: 0; min-width: 0; flex: 1 1 auto;
    padding: 8px 0;
    background: transparent; border: none;
    color: #fff; font-size: 13px; outline: none; font-family: var(--font-sans);
     transition: opacity .25s .1s, padding .3s;
    pointer-events: none;
    will-change: left, width;
}
.nav-search.open input,
.nav-search:focus-within input {
    opacity: 1; padding: 8px 0 8px 14px; pointer-events: auto;
}
.nav-search input::placeholder { color: rgba(255,255,255,.3); }
.nav-search button {
    width: 38px; height: 38px; padding: 0;
    background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.6);
    font-size: 16px; cursor: pointer; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s, color .3s, border-radius .3s, width .3s, padding .3s;
    font-family: var(--font-sans);
}
.nav-search.open button,
.nav-search:focus-within button {
    width: auto; padding: 8px 16px; border-radius: 0;
    background: var(--color-primary); color: #fff;
}
.nav-search button:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-search.open button:hover,
.nav-search:focus-within button:hover { background: #584878; filter: brightness(1.04); }

.nav-login-btn {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f01050, #901030);
    box-shadow: 0 10px 24px rgba(200,40,72,.22);
    transition: transform 0.2s, box-shadow 0.3s, filter 0.3s;
    white-space: nowrap;
}
.nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(200,40,72,.3);
    filter: brightness(1.02);
}

.nav-user {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.045); border: 1px solid var(--color-border);
    font-size: 13px; color: var(--color-text-muted); text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.nav-user:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.nav-user .role-badge {
    padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
}
.badge-student { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-teacher { background: rgba(171,118,232,.15); color: #a855f7; }
.badge-admin    { background: rgba(255,107,107,.15); color: #ff6b6b; }
.btn-logout {
    padding: 6px 12px; border-radius: 999px; font-size: 12px;
    background: rgba(255,255,255,.06); border: 1px solid var(--color-border);
    color: var(--color-text-muted); cursor: pointer; font-family: var(--font-sans);
    transition: background .2s, color .2s; white-space: nowrap;
}
.btn-logout:hover { background: rgba(239,68,68,.15); color: #f87171; border-color: rgba(239,68,68,.3); }

/* 汉堡菜单 (移动端) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 搜索切换按钮（移动端） */
.nav-search-toggle {
    display: none;
    width: 38px; height: 38px; border-radius: 50%;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 1px solid var(--color-border);
    color: rgba(255,255,255,.7); font-size: 16px; cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.nav-search-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- 4. Hero 区域（纯 Banner 无遮挡） ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.78) saturate(1.25);
}

/* 渐变遮罩 - 仅顶部导航栏压暗 + 底部过渡到背景色 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10,10,26,0.5) 0%,
            transparent 18%,
            transparent 70%,
            rgba(10,10,26,0.5) 88%,
            var(--color-bg) 100%
        );
}

/* ---------- 4.1 Hero Intro（滚动后出现） ---------- */
.hero-intro {
    padding: 64px 24px 48px;
    display: flex;
    justify-content: center;
}
.hero-intro-inner {
    position: relative;
    text-align: center;
    padding: 36px 44px 28px;
    max-width: 720px;
    width: 100%;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%),
        rgba(17, 24, 40, 0.82);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 22px 56px rgba(4, 8, 20, 0.32);
}



.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(104, 88, 152,.16), rgba(240, 112, 144,.08));
    border: 1px solid rgba(104, 88, 152, 0.22);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    letter-spacing: -0.5px;
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(13px, 1.6vw, 15px);
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #584878);
    box-shadow: 0 10px 28px var(--color-primary-glow);
    transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth), filter 0.25s var(--transition-smooth);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px var(--color-primary-glow);
    filter: brightness(1.03);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(17, 24, 40, 0.64);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 16px 36px rgba(4, 8, 20, 0.24);
    transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth), background 0.25s var(--transition-smooth), border-color 0.25s var(--transition-smooth);
}
.btn-glass:hover {
    background: rgba(17, 24, 40, 0.78);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 22px 44px rgba(4, 8, 20, 0.28);
}

/* 向下滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    animation: float-bounce 2.5s ease-in-out infinite;
}
.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.45);
    border-bottom: 2px solid rgba(255,255,255,0.45);
    transform: rotate(45deg);
}

@keyframes float-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- 5. 通用容器 ---------- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 6. Banner 信息条 ---------- */
.info-banner {
    padding: 48px 0 32px;
}

.banner-glass {
    position: relative;
    border-radius: 20px;
    padding: 32px 36px;
    overflow: hidden;
    text-align: center;
}
.banner-glass p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 6px;
}
.banner-glass p:last-child { margin-bottom: 0; }
.banner-glass a { color: var(--color-primary); transition: color 0.3s; }
.banner-glass a:hover { color: #f898a8; }
.banner-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

/* ---------- 7. 区块标题 ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-header h2 .highlight {
    background: linear-gradient(135deg, var(--color-primary), #f898a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header p {
    color: var(--color-text-muted);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- 8. 游戏亮点 ---------- */
.highlights-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(104, 88, 152,0.03) 50%, transparent 100%);
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.highlight-card {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s;
}
.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), #584878);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px var(--color-primary-glow);
}
.highlight-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.highlight-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ---------- 9. 最新动态 ---------- */
.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(200,40,72,0.025) 30%, rgba(240,112,144,0.02) 70%, transparent 100%);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.news-card {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.news-card .news-date {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.news-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.5;
}
.news-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.news-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(104, 88, 152, 0.15);
    color: var(--color-primary);
    margin-bottom: 14px;
}

/* ---------- 10. 游戏特色 ---------- */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(104, 88, 152,0.03) 50%, transparent 100%);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s;
    border-left: 3px solid var(--color-primary);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ---------- 11. 属性系统 ---------- */
.attributes-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(240,112,144,0.025) 40%, rgba(104, 88, 152,0.02) 80%, transparent 100%);
}
.attributes-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.attr-card {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s;
}
.attr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.attr-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(104, 88, 152,0.15), rgba(240,112,144,0.1));
}
.attr-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.attr-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- 12. 游戏信息侧栏 ---------- */
.info-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(104, 88, 152,0.03) 50%, transparent 100%);
}
.info-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.info-main {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
}
.info-main h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.info-main p {
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: 14.5px;
}

.info-sidebar {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
}
.info-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}
.info-item .label { color: var(--color-text-muted); }
.info-item .value { color: #fff; font-weight: 600; }

/* ---------- 13. FAQ ---------- */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(200,40,72,0.03) 50%, transparent 100%);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.faq-card {
    position: relative;
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(104,88,152,.03) 100%), var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--transition-smooth);
}
.faq-card:hover { transform: translateY(-3px); }
.faq-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.faq-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- 14. 页脚 ---------- */
.home-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 0 24px;
    margin-top: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(17,17,39,0.6) 30%, rgba(22,19,42,0.5) 100%);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 13px;
    color: var(--color-text-muted);
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--color-primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
}
.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--color-primary); }
.footer-bottom .visit-stats { color: rgba(104, 88, 152,0.55); font-size: 13px; margin-bottom: 10px; }

/* ---------- 15. 返回顶部 ---------- */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px; color: rgba(255,255,255,.85);
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
     visibility: hidden;
    transition: opacity .4s var(--transition-smooth), visibility .4s, transform .4s var(--transition-smooth);
    transform: translateY(12px) scale(.85);
    z-index: 1100;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { background: rgba(104,88,152,.22); transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 36px rgba(104,88,152,.18), inset 0 1px 0 rgba(255,255,255,.12); }

/* ---------- 16. 滚动显现动画 ---------- */
.reveal {
    
    transform: translateY(40px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 子元素依次延迟入场 */
.reveal-children > * {
    
    transform: translateY(30px);
    transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.reveal-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* Hero intro 由 .reveal 控制出现，不再用 animation */

@keyframes hero-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 17. 响应式设计 ---------- */

/* 大平板 / 小桌面 */
@media (max-width: 1024px) {
    .highlights-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .attributes-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links a { padding: 6px 10px; font-size: 13px; }
}

/* 平板 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 1000;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        font-size: 18px;
        padding: 12px 24px;
    }
    .nav-hamburger { display: flex; }

    .nav-search input { width: 0; }

    .highlights-grid,
    .features-grid,
    .news-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .attributes-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* 小平板 / 大手机 */
@media (max-width: 580px) {
    .home-nav, .site-nav { height: auto; }
    /* 搜索变为切换按钮 */
    .nav-search{max-width:40px}
    .nav-search.open{max-width:220px;width:220px}
    .nav-search-toggle{display:flex}
    /* 顶栏两行布局 */
    .nav-inner { flex-wrap: wrap; gap: 8px; padding: 6px 12px; height: auto; min-height: var(--nav-height); }
    .nav-logo { flex: 1; }
    .nav-right { width: 100%; justify-content: center; }
}

/* 手机 */
@media (max-width: 480px) {
    .nav-inner { padding: 4px 8px; }
    .nav-right { gap: 8px; }
    .nav-login-btn { padding: 6px 14px; font-size: 12px; }
    .nav-logo span { font-size: 14px; }

    .hero-intro { padding: 40px 16px 32px; }
    .hero-intro-inner { padding: 24px 18px 20px; }
    .hero { min-height: 100svh; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 13px; }

    .attributes-row { grid-template-columns: 1fr; }

    .section-header h2 { font-size: 22px; }
    .section-container { padding: 0 16px; }

    .highlight-card,
    .news-card,
    .feature-card,
    .faq-card { padding: 22px 18px; }

    .info-main,
    .info-sidebar { padding: 22px 18px; }
}

/* 超宽屏 */
@media (min-width: 1440px) {
    .section-container { max-width: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html::after { transition: none !important; }
}
