:root {
    --bg: #fef7f9;
    --panel: rgba(255, 255, 255, 0.82);
    --line: rgba(210, 170, 190, 0.22);
    --line-strong: rgba(210, 170, 190, 0.38);
    --text: #3d2c3e;
    --muted: #9a8599;
    --accent: #e87a9a;
    --accent-soft: #c9a3d4;
    --accent-cool: #7cc0e8;
    --shadow: 0 12px 40px rgba(180, 120, 160, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: system-ui, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    background: #fef7f9;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(254, 247, 249, 0.5) 0%, rgba(254, 247, 249, 0.68) 40%, rgba(254, 247, 249, 0.92) 100%),
        url("1.avif") center / cover no-repeat;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    position: relative;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.topbar,
.feature-card,
.highlight-card,
.faq-card,
.cta-panel,
.footer {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 16px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 45%, var(--accent-cool) 100%);
    box-shadow: 0 0 18px rgba(232, 122, 154, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.nav-cta,
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #f0a3b8 0%, var(--accent) 55%, #d46a8a 100%);
    box-shadow: 0 8px 24px rgba(232, 122, 154, 0.25);
}

.button-secondary {
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.5);
}

.nav-cta:hover,
.button:hover,
.nav-cta:focus-visible,
.button:focus-visible {
    transform: translateY(-2px);
}

.nav-cta:hover,
.button-primary:hover,
.nav-cta:focus-visible,
.button-primary:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 12px 32px rgba(232, 122, 154, 0.35);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--accent);
}

.button.wide {
    width: 100%;
}

.section {
    padding: 96px 0 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 34px;
    align-items: center;
    min-height: calc(100vh - 128px);
    padding-top: 44px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-title,
.section-head h2,
.faq-card h2,
.cta-panel h2 {
    margin: 0;
    font-weight: 900;
    line-height: 1.08;
}

.hero-title {
    max-width: 11ch;
    font-size: clamp(3.1rem, 7vw, 6.1rem);
    letter-spacing: -0.04em;
}

.hero-title span {
    display: block;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(232, 122, 154, 0.18);
}

.hero-text,
.section-head p,
.feature-card p,
.highlight-card p,
.faq-item p,
.cta-panel p,
.footer p {
    color: var(--muted);
    line-height: 1.78;
    font-size: 1rem;
}

.hero-text {
    max-width: 58ch;
    margin: 26px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-points {
    display: grid;
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding-left: 20px;
    color: #5a4060;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 25%, rgba(232, 122, 154, 0.12), transparent 34%),
        radial-gradient(circle at 70% 80%, rgba(124, 192, 232, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    border: 1px solid var(--line);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.stat-item strong {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.stat-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-poster {
    flex: 1;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 248, 0.88));
    border: 1px solid var(--line);
}

.poster-kicker {
    margin-bottom: 14px;
    color: var(--accent-cool);
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-poster h2 {
    margin: 0;
    max-width: 9ch;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

.hero-poster p {
    max-width: 42ch;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.72;
}

.poster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.poster-tags span,
.chip-row span {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(210, 170, 190, 0.2);
    background: rgba(232, 122, 154, 0.06);
    color: #5a4060;
    font-size: 0.9rem;
}

.grid-glow {
    position: absolute;
    inset: auto -12% 6% 34%;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 122, 154, 0.18), transparent 62%);
    filter: blur(20px);
}

.section-head {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.section-head h2,
.faq-card h2,
.cta-panel h2 {
    font-size: clamp(2rem, 4.6vw, 3.8rem);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.highlight-card,
.faq-card,
.cta-panel {
    position: relative;
    border-radius: var(--radius-lg);
}

.feature-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 26px;
    border-radius: var(--radius-lg);
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
    cursor: pointer;
}

a.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(180, 120, 160, 0.16);
    border-color: var(--accent);
}

.feature-card::before,
.highlight-card::before,
.faq-card::before,
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(232, 122, 154, 0.2), transparent 45%, rgba(201, 163, 212, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-index,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(232, 122, 154, 0.08);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-card h3,
.highlight-card h3,
.faq-item h3 {
    margin: 18px 0 0;
    font-size: 1.35rem;
}

.feature-card p,
.highlight-card p {
    margin: 14px 0 0;
}

.highlight-board {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 0.8fr));
    gap: 18px;
    margin-top: 34px;
}

.highlight-card {
    min-height: 280px;
    padding: 28px;
}

.highlight-large {
    background:
        radial-gradient(circle at 88% 20%, rgba(201, 163, 212, 0.15), transparent 22%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 248, 0.85));
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 22px;
}

.faq-card,
.cta-panel {
    padding: 30px;
}

.faq-item + .faq-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(210, 170, 190, 0.15);
}

.faq-item p {
    margin: 10px 0 0;
}

.cta-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 192, 232, 0.1), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(232, 122, 154, 0.12), transparent 24%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 248, 0.88));
}

.cta-panel p {
    margin: 0;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    margin-top: 96px;
    border-radius: 28px;
}

.footer strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.footer p {
    margin: 10px 0 0;
    max-width: 52ch;
}

.footer-link {
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hot games showcase */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.hot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.hot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(180, 120, 160, 0.18);
    border-color: var(--accent);
}

.hot-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.4;
    overflow: hidden;
    background: #f5e8ef;
}

.hot-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.hot-card:hover .hot-cover img {
    transform: scale(1.06);
}

.hot-info {
    padding: 18px 20px 20px;
}

.hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(232, 122, 154, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hot-info h3 {
    margin: 10px 0 0;
    font-size: 1.1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 760px) {
    .mobile-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        justify-content: center;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(0deg, rgba(254, 247, 249, 0.96) 60%, rgba(254, 247, 249, 0) 100%);
        backdrop-filter: blur(12px);
    }

    .mobile-cta-bar .button {
        width: 100%;
        max-width: 400px;
        min-height: 50px;
        font-size: 1.05rem;
    }
}

@media (max-width: 1100px) {
    .topbar {
        border-radius: 28px;
        padding: 18px;
    }

    .nav-links {
        display: none;
    }

    .hero,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .matrix-grid,
    .highlight-board,
    .hot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-large {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
        padding-top: 12px;
    }

    .topbar {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-cta {
        display: none;
    }

    .section {
        padding-top: 72px;
    }

    .hero {
        gap: 24px;
        padding-top: 28px;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2.4rem, 12vw, 4.1rem);
    }

    .hero-stage {
        padding: 18px;
        gap: 16px;
    }

    .hero-poster {
        padding: 22px;
    }

    .matrix-grid,
    .highlight-board,
    .hot-grid {
        grid-template-columns: 1fr;
    }

    .highlight-large {
        grid-column: auto;
    }

    .faq-card,
    .cta-panel,
    .feature-card,
    .highlight-card,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .nav-cta,
    .button {
        transition: none;
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}