@font-face {
    font-family: 'Scroll Sans';
    src: url('../assets/SourceHanSansLite.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-deep: #0d0d1a;
    --bg-dark: #141428;
    --bg-panel: #1a1a32;
    --bg-card: #1e1e3a;
    --bg-elevated: #252545;
    --text-primary: #e8e4dc;
    --text-secondary: #9a9688;
    --text-muted: #6a6660;
    --accent-gold: #C8A84E;
    --accent-gold-light: #D8B85E;
    --accent-gold-dim: #8B6914;
    --accent-amber: #e4a040;
    --accent-red: #c4554d;
    --accent-green: #5a8a5a;
    --accent-purple: #8a6aaa;
    --accent-blue: #5a8aaa;
    --border-subtle: rgba(200, 168, 78, 0.15);
    --border-gold: rgba(200, 168, 78, 0.35);
    --shadow-gold: 0 0 40px rgba(200, 168, 78, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-main: 'Scroll Sans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-display: 'Scroll Sans', 'PingFang SC', 'Microsoft YaHei', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.7;
}

h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(13, 13, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.03em;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo-img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-dl-btn {
    background: var(--accent-gold);
    color: var(--bg-deep) !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem !important;
    transition: background 0.3s, transform 0.2s !important;
}

.nav-dl-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-1px);
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200, 168, 78, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(138, 106, 170, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(90, 138, 170, 0.04) 0%, transparent 60%),
        var(--bg-deep);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) scale(0.3);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    line-height: 1.3;
}

.title-line.accent {
    font-size: 3.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 50%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc .highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(200, 168, 78, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 168, 78, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(200, 168, 78, 0.08);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   FEATURES
   ================================================================ */

.features {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================================================
   SHOWCASE
   ================================================================ */

.showcase {
    padding: 100px 24px;
    background: var(--bg-dark);
}

.showcase-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-text h2 {
    margin-bottom: 20px;
}

.showcase-text > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.02rem;
}

.showcase-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.showcase-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.showcase-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

/* ================================================================
   SCENE GALLERY
   ================================================================ */

.scene-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

.scene-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.35s ease;
    cursor: pointer;
}

.scene-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    z-index: 2;
}

.scene-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.scene-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    font-size: 0.72rem;
    color: var(--text-primary);
    background: linear-gradient(transparent, rgba(13, 13, 26, 0.85));
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity 0.3s;
}

.scene-card:hover span {
    opacity: 1;
}

.scene-lg {
    grid-column: span 2;
    grid-row: span 1;
}

.scene-wide {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 600px) {
    .scene-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .scene-lg {
        grid-column: span 2;
    }
}

/* ================================================================
   WORLD
   ================================================================ */

.world {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.world-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.world-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.world-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.world-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.world-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================================================
   SCENARIOS
   ================================================================ */

.scenarios {
    padding: 100px 24px;
    background: var(--bg-dark);
}

.scenario-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scenario-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.scenario-item:hover {
    border-color: var(--border-gold);
}

.scenario-type {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.type-tutorial { background: rgba(90, 138, 170, 0.2); color: var(--accent-blue); }
.type-horror { background: rgba(196, 85, 77, 0.2); color: var(--accent-red); }
.type-mystery { background: rgba(138, 106, 170, 0.2); color: var(--accent-purple); }
.type-adventure { background: rgba(228, 160, 64, 0.2); color: var(--accent-amber); }

.scenario-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.scenario-item > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-tags span {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(200, 168, 78, 0.06);
    border-radius: 10px;
}

/* ================================================================
   DOWNLOAD
   ================================================================ */

.download {
    padding: 100px 24px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.download-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.download-text h2 {
    margin-bottom: 16px;
}

.download-text > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

.download-requirements {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
}

.download-requirements h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.download-requirements ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.download-requirements li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.download-requirements li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.download-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dl-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.dl-card:hover {
    border-color: var(--border-gold);
    transform: translateX(4px);
    box-shadow: var(--shadow-gold);
}

.dl-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.dl-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dl-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dl-soon {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(200, 168, 78, 0.1);
    white-space: nowrap;
}

.dl-size {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.12);
    white-space: nowrap;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: 56px 24px 32px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.footer-brand h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 2px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1000px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
    .title-line { font-size: 2.2rem; }
    .title-line.accent { font-size: 2.6rem; }

    h2 { font-size: 1.8rem; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-inner { grid-template-columns: 1fr; gap: 40px; }
    .world-grid { grid-template-columns: repeat(2, 1fr); }
    .scenario-list { grid-template-columns: 1fr; }
    .download-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 1.4rem; }
    .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 600px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.8rem; }
    .nav-dl-btn { padding: 6px 14px; font-size: 0.78rem !important; }

    .hero { padding: 100px 16px 60px; }
    .hero-badge { font-size: 0.7rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .features-grid { grid-template-columns: 1fr; }
    .world-grid { grid-template-columns: 1fr; }
    .features { padding: 64px 16px; }
    .showcase { padding: 64px 16px; }
    .world { padding: 64px 16px; }
    .scenarios { padding: 64px 16px; }
    .scenarios { padding: 64px 16px; }
    .download { padding: 64px 16px; }
}