/* ===================================================
   Template Minimal — Clean Light / Casual Game
   Font: Nunito Sans (headings) + Inter (body)
   =================================================== */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body), 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content { flex: 1; }

h1, h2, h3, h4 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
a, button { outline: none; border: none; }
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}

::selection { background: var(--primary); color: #fff; }

/* ===== Navbar (sticky, not fixed) ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px var(--glow-primary);
}

.brand-icon.sm { width: 32px; height: 32px; border-radius: 10px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

.nav-links {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--hover-bg);
}

/* Pill-style download button */
.btn-pill-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 100px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--glow-primary);
}

.btn-pill-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--glow-primary);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--glow-primary);
}

.btn-primary.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    color: var(--primary);
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--primary);
    border-radius: 14px;
    background: transparent;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

/* ===== Hero: Split Layout ===== */
.hero {
    padding: 80px 0 100px;
    background: var(--bg);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Left */
.hero-left { }

.hero-badge-wrap { margin-bottom: 24px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--badge-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--primary);
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.hero-badge svg { color: var(--accent); fill: var(--accent); }

.hero-title {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title-accent {
    color: var(--primary);
}

.hero-desc {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}

.stat-label {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

/* Right: Banner image display — clean, modern */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
}

/* 主图：圆角 + 阴影 */
.hero-visual-img {
    width: 100%;
    border-radius: 24px;
    display: block;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.18),
        0 0 0 1px var(--border-subtle);
    object-fit: cover;
}

/* 底部渐变遮罩，融入背景 */
.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg), transparent);
    border-radius: 0 0 24px 24px;
    pointer-events: none;
}

/* 装饰：左上角小色块 */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -12px; right: -12px;
    width: 80px; height: 80px;
    border-radius: 20px;
    background: var(--gradient);
    opacity: 0.15;
    z-index: -1;
}

/* 浮动徽章 */
.hero-visual-badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    z-index: 2;
}

.badge-star {
    color: #F59E0B;
    font-size: 14px;
}

.badge-text {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.badge-sub {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 10px;
    padding: 4px 14px;
    background: var(--badge-bg);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

/* ===== Features: Alternating Rows ===== */
.features {
    padding: 100px 0;
    background: var(--bg-alt);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--border-subtle);
}

.feature-row {
    display: grid;
    /* 图片列固定宽度，文字列自适应 */
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
    padding: 32px;
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border-subtle);
    transform: translateY(-2px);
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > * {
    direction: ltr;
}

.feature-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-img-wrap img {
    width: 100%;
    height: auto;          /* 保持 9:16 完整比例，不裁切 */
    object-fit: contain;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.feature-row:hover .feature-img-wrap img {
    transform: scale(1.03);
}

.feature-text { }

.feature-num {
    display: inline-block;
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--badge-bg);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.feature-text h3 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text);
}

.feature-text p {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Highlights: 3-column grid ===== */
.highlights {
    padding: 100px 0;
    background: var(--bg);
}

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

.highlight-card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px 24px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary);
}

.highlight-card p {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
}

/* ===== About Description ===== */
.about-desc-section {
    padding: 80px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.about-desc-inner {
    max-width: 720px;
}

.about-body {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ===== How to Play: Horizontal Steps ===== */
.how-to-play {
    padding: 100px 0;
    background: var(--bg);
}

.htp-steps {
    display: flex;
    gap: 0;
    align-items: flex-start;
    justify-content: center;
}

.htp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    text-align: center;
}

.htp-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--glow-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.htp-connector {
    position: absolute;
    top: 26px;
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

.htp-step-last .htp-connector { display: none; }

.htp-text {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 160px;
    font-weight: 500;
}

/* ===== CTA: Rounded gradient card ===== */
.cta {
    padding: 80px 0;
    background: var(--bg-alt);
}

.cta-card {
    position: relative;
    background: var(--gradient);
    border-radius: 28px;
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 16px 60px var(--glow-primary);
}

.cta-bg-shape {
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-card h2 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
}

.cta-card p {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.6;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-desc {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-faint);
}

/* ===== Legal Page ===== */
.legal-page {
    padding: 100px 0 80px;
    flex: 1;
}

.legal-page .about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-content h1 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text);
}

.about-content h2 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin: 48px 0 16px;
    color: var(--text);
}

.about-content h3 {
    font-family: var(--font-heading), 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text);
}

.about-content p {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content strong { color: var(--text); }

.about-content hr {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 32px 0;
}

.about-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-content a:hover { color: var(--secondary); }

.about-content ul, .about-content ol {
    margin: 0 0 20px 20px;
    list-style: disc;
}

.about-content ol { list-style: decimal; }

.about-content li {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 44px; }
    .section-title { font-size: 32px; }
    .hero-inner { gap: 40px; }
    .hero-visual { max-width: 360px; }
    .feature-row { gap: 40px; padding: 32px; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .btn-pill-download { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-subtle);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .hero { padding: 48px 0 64px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-title { font-size: 36px; }
    .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-right { order: -1; }
    .hero-visual { max-width: 320px; }
    .feature-row,
    .feature-row-reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        direction: ltr;
        padding: 24px;
        margin-bottom: 20px;
    }
    .feature-row-reverse > * { direction: ltr; }
    .feature-img-wrap img { max-height: 280px; object-fit: cover; }    .feature-text h3 { font-size: 22px; }
    .features { padding: 72px 0; }
    .highlights { padding: 72px 0; }
    .highlights-grid { grid-template-columns: 1fr; }
    .htp-steps { flex-direction: column; align-items: flex-start; gap: 24px; max-width: 400px; margin: 0 auto; }
    .htp-step { flex-direction: row; text-align: left; gap: 16px; }
    .htp-circle { margin-bottom: 0; flex-shrink: 0; }
    .htp-connector { display: none; }
    .htp-text { max-width: none; }
    .cta-card { padding: 48px 28px; }
    .cta-card h2 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .section-title { font-size: 26px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .cta-card h2 { font-size: 26px; }
    .hero-visual { max-width: 260px; }
    h1 { font-size: 28px; }
}
