@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
    --bg: #f7f9fc;
    --panel: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --line: #dbe2ea;
    --brand: #0ea5e9;
    --brand-deep: #0369a1;
    --shadow: 0 14px 40px rgba(2, 36, 64, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Space Grotesk", "Noto Sans SC", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 8% -12%, rgba(14, 165, 233, 0.16), transparent 65%),
        radial-gradient(900px 500px at 92% -8%, rgba(3, 105, 161, 0.12), transparent 62%),
        var(--bg);
    line-height: 1.65;
    animation: page-fade-in 0.55s ease-out both;
}

body[data-page="home"] {
    background:
        radial-gradient(1150px 620px at 50% -30%, rgba(153, 27, 27, 0.42), transparent 66%),
        radial-gradient(860px 500px at 8% 4%, rgba(220, 38, 38, 0.18), transparent 68%),
        radial-gradient(780px 420px at 92% 2%, rgba(245, 196, 0, 0.14), transparent 70%),
        #06080f;
}

body:not([data-page="home"]) {
    color: #e5e7eb;
    background:
        radial-gradient(900px 500px at 50% -20%, rgba(220, 38, 38, 0.2), transparent 64%),
        radial-gradient(760px 420px at 82% 2%, rgba(245, 196, 0, 0.12), transparent 68%),
        #0a0f16;
}

.site-header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: slide-in-down 0.5s ease-out both;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 13px;
    transition: all 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0.85;
    transition: transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-color: var(--line);
    color: var(--brand-deep);
    background: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.lang-toggle {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    border-color: #93c5fd;
    color: var(--brand-deep);
    outline: none;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 20px 32px;
    display: grid;
    gap: 22px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: clamp(18px, 2.8vw, 30px);
    transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.scroll-target {
    scroll-margin-top: 112px;
}

body[data-page="home"] .site-header {
    padding-top: 18px;
    padding-bottom: 14px;
}

body:not([data-page="home"]) .brand {
    color: #f3f4f6;
}

body:not([data-page="home"]) .header-controls {
    background: rgba(5, 9, 15, 0.94);
    border: 1px solid #3b2730;
    border-radius: 999px;
    padding: 6px 8px;
}

body:not([data-page="home"]) .main-nav a {
    color: #d2d7df;
}

body:not([data-page="home"]) .main-nav a:hover,
body:not([data-page="home"]) .main-nav a:focus-visible {
    border-color: #7f1d1d;
    color: #ffe08a;
    background: #2a1212;
}

body:not([data-page="home"]) .lang-toggle {
    border-color: #8f6b00;
    background: #f5c400;
    color: #121212;
}

body:not([data-page="home"]) .lang-toggle:hover,
body:not([data-page="home"]) .lang-toggle:focus-visible {
    border-color: #ffd84d;
    background: #ffdb57;
    color: #121212;
}

body:not([data-page="home"]) .card {
    background: #11161f;
    border-color: #2a3242;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

body:not([data-page="home"]) .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7f1d1d, #f5c400 55%, #7f1d1d);
    opacity: 0.9;
}

body:not([data-page="home"]) h1,
body:not([data-page="home"]) h2,
body:not([data-page="home"]) h3 {
    color: #f8fafc;
}

body:not([data-page="home"]) p,
body:not([data-page="home"]) li {
    color: #c7d0de;
}

body:not([data-page="home"]) .grid article {
    border-color: #2a3242;
    background: #121a27;
}

body:not([data-page="home"]) .link-list a,
body:not([data-page="home"]) .page p a,
body:not([data-page="home"]) .page li a {
    color: #f5c400;
}

body:not([data-page="home"]) .page p a:hover,
body:not([data-page="home"]) .page li a:hover,
body:not([data-page="home"]) .link-list a:hover {
    color: #ffd84d;
}

body:not([data-page="home"]) .site-footer {
    color: #9fa8b7;
    border-top-color: #2a3242;
}

body:not([data-page="home"]) .footer-links a {
    color: #f5c400;
}

body:not([data-page="home"]) .footer-links a:hover {
    color: #ffd84d;
}

body:not([data-page="home"]) .footer-copy strong {
    color: #ffd84d;
}

body[data-page="home"] .brand {
    color: #f3f4f6;
}

body[data-page="home"] .header-controls {
    background: rgba(5, 9, 15, 0.94);
    border: 1px solid #3b2730;
    border-radius: 999px;
    padding: 6px 8px;
}

body[data-page="home"] .main-nav a {
    color: #d2d7df;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="home"] .main-nav a:focus-visible {
    border-color: #7f1d1d;
    color: #ffe08a;
    background: #2a1212;
}

body[data-page="home"] .lang-toggle {
    border-color: #8f6b00;
    background: #f5c400;
    color: #121212;
    font-weight: 700;
}

body[data-page="home"] .lang-toggle:hover,
body[data-page="home"] .lang-toggle:focus-visible {
    border-color: #ffd84d;
    background: #ffdb57;
    color: #121212;
}

body[data-page="home"] .hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(560px 280px at 50% -18%, rgba(220, 38, 38, 0.34), transparent 70%),
        radial-gradient(360px 210px at 8% -10%, rgba(185, 28, 28, 0.42), transparent 72%),
        radial-gradient(420px 220px at 94% 2%, rgba(245, 196, 0, 0.18), transparent 74%),
        #090d16;
    border-color: #3c2731;
}

body[data-page="home"] .hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 196, 0, 0.14), transparent 72%);
    pointer-events: none;
}

body[data-page="home"] .hero-shell {
    text-align: center;
    padding-top: clamp(28px, 5vw, 56px);
    padding-bottom: clamp(30px, 4vw, 44px);
}

body[data-page="home"] .hero-shell > * {
    position: relative;
    z-index: 2;
}

.cny-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cny-lantern {
    position: absolute;
    width: 64px;
    height: 78px;
    border-radius: 50% 50% 45% 45%;
    background: radial-gradient(circle at 40% 35%, #f87171, #b91c1c 62%, #7f1d1d);
    border: 2px solid rgba(245, 196, 0, 0.72);
    box-shadow: 0 12px 24px rgba(127, 29, 29, 0.5);
    transform-origin: top center;
    animation: cny-sway 4.6s ease-in-out infinite;
}

.cny-lantern::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 50%;
    width: 2px;
    height: 22px;
    background: rgba(245, 196, 0, 0.72);
    transform: translateX(-50%);
}

.cny-tassel {
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 4px;
    height: 16px;
    background: #f5c400;
    transform: translateX(-50%);
}

.cny-tassel::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 12px;
    height: 8px;
    background: #f5c400;
    border-radius: 0 0 8px 8px;
    transform: translateX(-50%);
}

.cny-lantern-left {
    top: 8px;
    left: clamp(16px, 4vw, 30px);
}

.cny-lantern-right {
    top: 8px;
    right: clamp(16px, 4vw, 30px);
    animation-delay: -2.1s;
}

.cny-knot {
    position: absolute;
    top: 20px;
    right: clamp(84px, 12vw, 140px);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #dc2626, #991b1b);
    color: #ffe08a;
    border: 1px solid rgba(245, 196, 0, 0.72);
    border-radius: 8px;
    transform: rotate(12deg);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(153, 27, 27, 0.44);
}

.cny-smoke {
    position: absolute;
    width: 200px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 140, 0.16), rgba(255, 120, 120, 0.06) 45%, transparent 72%);
    filter: blur(12px);
    opacity: 0.34;
    animation: cny-smoke-drift 6.8s ease-in-out infinite;
}

.cny-smoke-left {
    left: 6%;
    bottom: 12%;
}

.cny-smoke-right {
    right: 6%;
    bottom: 14%;
    animation-delay: -2.8s;
}

.cny-firework {
    position: absolute;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(248, 113, 113, 0.86) 0 10deg,
        transparent 10deg 20deg
    );
    opacity: 0.4;
    animation: cny-firework 2.5s ease-in-out infinite;
}

.cny-firework::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #0b1018;
}

.cny-firework::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd84d;
    box-shadow: 0 0 14px rgba(255, 216, 77, 0.85);
    transform: translate(-50%, -50%);
}

.cny-firework-left {
    top: 14%;
    left: 10%;
}

.cny-firework-right {
    top: 20%;
    right: 11%;
    animation-delay: -1.2s;
}

.cny-firework-center {
    top: 36%;
    left: 50%;
    width: 92px;
    height: 92px;
    transform: translateX(-50%);
    opacity: 0.26;
    animation-delay: -0.6s;
}

.cny-crackers {
    position: absolute;
    width: 56px;
    height: 112px;
    background: linear-gradient(
        to bottom,
        rgba(245, 196, 0, 0.74) 0 20px,
        transparent 20px 100%
    ) center top / 2px 100% no-repeat;
    animation: cny-cracker-shake 5.2s ease-in-out infinite;
    opacity: 0.92;
}

.cny-crackers::before,
.cny-crackers::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 14px;
    border-radius: 7px;
    border: 1px solid rgba(245, 196, 0, 0.55);
    background: linear-gradient(180deg, #ef4444, #991b1b);
    box-shadow:
        0 18px 0 0 #b91c1c,
        0 36px 0 0 #dc2626,
        0 54px 0 0 #991b1b,
        0 72px 0 0 #b91c1c;
}

.cny-crackers::before {
    left: 12px;
    top: 18px;
}

.cny-crackers::after {
    left: 30px;
    top: 24px;
}

.cny-crackers-left {
    left: 24px;
    bottom: 26px;
}

.cny-crackers-right {
    right: 24px;
    bottom: 26px;
    animation-delay: -2.2s;
}

.cny-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fda4af;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.84);
    opacity: 0.7;
    animation: cny-blink 2.4s ease-in-out infinite;
}

.cny-spark-1 {
    top: 20%;
    left: 22%;
}

.cny-spark-2 {
    top: 30%;
    right: 24%;
    animation-delay: -0.9s;
}

.cny-spark-3 {
    top: 58%;
    right: 18%;
    animation-delay: -1.5s;
}

@keyframes cny-sway {
    0% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(-4deg);
    }
}

@keyframes cny-blink {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.9;
        transform: scale(1);
    }
}

@keyframes cny-firework {
    0%,
    100% {
        transform: scale(0.86);
        opacity: 0.24;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.5;
    }
}

@keyframes cny-smoke-drift {
    0%,
    100% {
        transform: translateY(0) scale(0.96);
        opacity: 0.24;
    }
    50% {
        transform: translateY(-8px) scale(1.04);
        opacity: 0.4;
    }
}

@keyframes cny-cracker-shake {
    0%,
    100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

.hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
}

.kicker {
    margin: 0;
    color: var(--brand-deep);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.festival-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffe08a;
    background: rgba(68, 20, 20, 0.92);
    border: 1px solid rgba(245, 196, 0, 0.52);
    letter-spacing: 0.04em;
}

.season-note {
    margin: 8px auto 0;
    padding: 10px 14px;
    border-left: 3px solid #ef4444;
    background: rgba(44, 15, 24, 0.6);
    border-radius: 10px;
    color: #cdd6e2;
    font-size: 0.95rem;
    max-width: 760px;
}

.lead {
    margin: 0 0 10px;
    max-width: 80ch;
    color: #1f2937;
}

body[data-page="home"] .hero h1,
body[data-page="home"] .hero .lead,
body[data-page="home"] .hero .kicker {
    color: #f3f4f6;
}

body[data-page="home"] .hero h1 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

body[data-page="home"] .hero .kicker {
    color: #ffd84d;
}

body[data-page="home"] .hero .lead {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
    color: #c8d1dd;
}

body[data-page="home"] .hero .actions {
    justify-content: center;
}

.zh {
    color: var(--muted);
}

.actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    position: relative;
    overflow: clip;
    isolation: isolate;
    display: inline-block;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background-position 0.35s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.28), transparent 56%);
    opacity: 0;
    transition: opacity 0.26s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn:hover::before,
.btn:focus-visible::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(130deg, #0284c7, #0ea5e9);
    background-size: 140% 140%;
    color: #fff;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.3);
}

body[data-page="home"] .btn-primary {
    background: linear-gradient(130deg, #dc2626, #f5c400);
    background-size: 140% 140%;
    color: #fff7d6;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.34);
}

body[data-page="home"] .btn-secondary {
    border-color: #5f2b2b;
    background: #1b1320;
    color: #e2e8f0;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-position: 100% 0;
}

body[data-page="home"] .btn-secondary:hover,
body[data-page="home"] .btn-secondary:focus-visible {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.proof-strip {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #442935;
    background: rgba(22, 12, 18, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.proof-value {
    margin: 0;
    font-size: 1.35rem !important;
    font-weight: 700;
    color: #ffd84d !important;
    white-space: nowrap;
}

.proof-label {
    margin: 0;
    font-size: 0.8rem !important;
    color: #9fb0c8 !important;
}

body[data-page="home"] .feature-section {
    background: #120f16;
    border-color: #3c2731;
}

body[data-page="home"] .feature-section h2 {
    color: #ffd84d;
}

.feature-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    border: 1px solid #4a2e3a;
    border-radius: 14px;
    padding: 14px;
    background: #1a1520;
}

.feature-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feature-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5c400;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
}

.feature-card h3 {
    margin: 0;
    color: #f8fafc;
}

.feature-card p {
    margin: 0;
    color: #b4c0d3;
}

.cta-band {
    text-align: center;
    background:
        radial-gradient(360px 160px at 50% -20%, rgba(220, 38, 38, 0.28), transparent 72%),
        radial-gradient(300px 120px at 76% 0%, rgba(245, 196, 0, 0.14), transparent 70%),
        #13121b;
    border-color: #432b36;
}

.cta-band .kicker {
    color: #ffd84d;
}

.cta-band h2,
.cta-band p {
    color: #e5e7eb;
}

.cta-band .btn {
    margin-top: 4px;
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 3.2vw, 1.7rem);
}

h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

p {
    margin: 0 0 12px;
    color: #1f2937;
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid article {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fcfeff;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.link-list a {
    color: var(--brand-deep);
    text-decoration: none;
}

.page p a,
.page li a {
    color: #1d4ed8;
    text-decoration: none;
}

.page p a:hover,
.page li a:hover,
.link-list a:hover {
    color: #1e40af;
}

.list {
    padding-left: 18px;
    margin: 0;
}

.list li {
    margin-bottom: 8px;
}

.site-footer {
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 26px 20px 40px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

body[data-page="home"] .site-footer {
    color: #9fa8b7;
    border-top-color: #2a3242;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
}

body[data-page="home"] .footer-links a {
    color: #f5c400;
}

body[data-page="home"] .footer-links a:hover {
    color: #ffd84d;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.site-footer p {
    margin: 0;
    color: inherit;
    font-size: 0.9rem;
}

.footer-copy strong {
    color: #4f6079;
    font-weight: 700;
}

body[data-page="home"] .footer-copy strong {
    color: #ffd84d;
}

.footer-note {
    font-size: 0.8rem !important;
    opacity: 0.78;
}

/* Home refresh: black + yellow theme inspired by modern app landing pages */
body[data-page="home"] {
    background:
        radial-gradient(900px 500px at 50% -12%, rgba(255, 214, 74, 0.14), transparent 65%),
        radial-gradient(900px 600px at 6% 6%, rgba(255, 214, 74, 0.08), transparent 72%),
        radial-gradient(900px 600px at 94% 8%, rgba(255, 214, 74, 0.08), transparent 72%),
        #060708;
}

body[data-page="home"] .site-header {
    position: sticky;
    top: 12px;
    z-index: 40;
    padding-top: 14px;
    padding-bottom: 12px;
}

body[data-page="home"] .header-controls {
    background: rgba(8, 10, 12, 0.9);
    border: 1px solid #212327;
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

body[data-page="home"] .main-nav a {
    color: #a8adb8;
    border-color: transparent;
    background: transparent;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="home"] .main-nav a:focus-visible {
    border-color: #343942;
    color: #f8fafc;
    background: #111317;
}

body[data-page="home"] .lang-toggle {
    border-color: #ffe37d;
    background: linear-gradient(140deg, #ffe37d, #f5c400);
    color: #111213;
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.24);
}

body[data-page="home"] .lang-toggle:hover,
body[data-page="home"] .lang-toggle:focus-visible {
    border-color: #fff0ae;
    background: linear-gradient(140deg, #ffeb98, #ffd84d);
    color: #080909;
}

body[data-page="home"] .hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 30px;
    border: 1px solid #272a2f;
    background:
        radial-gradient(620px 320px at 50% -12%, rgba(255, 214, 74, 0.16), transparent 70%),
        linear-gradient(180deg, #090b0d 0%, #060708 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

body[data-page="home"] .hero::after {
    display: none;
}

body[data-page="home"] .hero-shell {
    text-align: center;
    padding-top: clamp(36px, 6vw, 72px);
    padding-bottom: clamp(28px, 4vw, 44px);
}

body[data-page="home"] .hero-shell > * {
    position: relative;
    z-index: 2;
}

.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.28;
    background: #ffe37d;
}

.hero-glow-left {
    left: -72px;
    top: 24px;
}

.hero-glow-right {
    right: -72px;
    top: 18px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 20%, black 34%, transparent 82%);
}

body[data-page="home"] .festival-pill {
    color: #1a1c21;
    background: linear-gradient(130deg, #fff0ad, #ffd84d);
    border: none;
}

body[data-page="home"] .kicker {
    color: #f5c400;
    letter-spacing: 0.08em;
}

body[data-page="home"] .hero h1 {
    color: #f5f7fb;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    line-height: 1.04;
}

body[data-page="home"] .hero .lead {
    color: #b7bec9;
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
}

body[data-page="home"] .season-note {
    max-width: 720px;
    border-left: 3px solid #f5c400;
    background: rgba(13, 15, 18, 0.76);
    color: #d4dae4;
}

body[data-page="home"] .actions {
    justify-content: center;
    gap: 12px;
}

body[data-page="home"] .btn {
    border-radius: 999px;
    padding: 11px 20px;
    border: 1px solid transparent;
}

body[data-page="home"] .btn-primary {
    background: linear-gradient(140deg, #ffe37d, #f5c400);
    color: #0a0b0d;
    box-shadow: 0 12px 28px rgba(245, 196, 0, 0.3);
}

body[data-page="home"] .btn-secondary {
    background: rgba(11, 13, 15, 0.92);
    border-color: #2f333a;
    color: #e6e9ef;
}

body[data-page="home"] .btn-secondary:hover {
    border-color: #3e444f;
}

.hero-products {
    margin: 18px auto 4px;
    width: min(840px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.product-card {
    border: 1px solid #2b2f36;
    border-radius: 18px;
    min-height: 156px;
    padding: 14px 12px 12px;
    background:
        linear-gradient(155deg, rgba(255, 227, 125, 0.14), rgba(255, 227, 125, 0) 46%),
        linear-gradient(180deg, #11141a 0%, #090b0f 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-2px);
    border-color: #454b56;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 227, 125, 0.1) inset;
    outline: none;
}

.product-card img {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.product-title {
    margin: 0;
    color: #edf1f7;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body[data-page="home"] .proof-strip {
    margin-top: 22px;
    gap: 12px;
}

body[data-page="home"] .proof-item {
    border: 1px solid #292d35;
    background: rgba(10, 12, 15, 0.86);
}

body[data-page="home"] .proof-value {
    color: #ffe37d !important;
}

body[data-page="home"] .proof-label {
    color: #9ea7b6 !important;
}

body[data-page="home"] .feature-section {
    background: #0b0d11;
    border-color: #252932;
}

body[data-page="home"] .feature-section h2 {
    color: #f0f4dc;
}

body[data-page="home"] .feature-card {
    border-color: #2a2f39;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 227, 125, 0.08), transparent 45%),
        #10141b;
}

body[data-page="home"] .feature-icon {
    background: linear-gradient(145deg, #ffe37d, #f5c400);
    color: #0e1013;
}

body[data-page="home"] .feature-card p {
    color: #aeb6c5;
}

body[data-page="home"] .cta-band {
    border-color: #2a2e37;
    background:
        radial-gradient(560px 220px at 50% -14%, rgba(255, 214, 74, 0.2), transparent 72%),
        #0b0e13;
}

body[data-page="home"] .cta-band h2 {
    color: #f5f7fb;
}

body[data-page="home"] .cta-band p {
    color: #b8c1cf;
}

body[data-page="home"] .scroll-target {
    background: #0b0e13;
    border-color: #2a2e37;
}

body[data-page="home"] .scroll-target h2,
body[data-page="home"] .scroll-target h3 {
    color: #f5f7fb;
}

body[data-page="home"] .scroll-target p,
body[data-page="home"] .scroll-target li {
    color: #b8c1cf;
}

body[data-page="home"] .scroll-target .link-list a,
body[data-page="home"] .scroll-target p a,
body[data-page="home"] .scroll-target li a {
    color: #ffe37d;
}

body[data-page="home"] .scroll-target .link-list a:hover,
body[data-page="home"] .scroll-target p a:hover,
body[data-page="home"] .scroll-target li a:hover {
    color: #fff0ad;
}

body[data-page="home"] .site-footer {
    border-top-color: #252a33;
    color: #959eac;
}

body[data-page="home"] .footer-links a,
body[data-page="home"] .footer-copy strong {
    color: #ffe37d;
}

.reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    filter: blur(2px);
    transition:
        opacity 0.62s ease,
        transform 0.62s ease,
        filter 0.62s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal.is-visible.card:hover,
.reveal.is-visible.product-card:hover,
.reveal.is-visible.feature-card:hover {
    transform: translateY(-2px);
}

body[data-page="home"] .reveal.is-visible.feature-card:hover {
    transform: translateY(-4px);
}

body[data-page="home"] .hero {
    animation: hero-enter 0.65s ease-out both;
}

body[data-page="home"] .festival-pill {
    animation: gentle-bob 3.4s ease-in-out infinite;
}

body[data-page="home"] .hero h1,
body[data-page="home"] .hero .lead,
body[data-page="home"] .hero .season-note,
body[data-page="home"] .hero .actions,
body[data-page="home"] .hero .hero-products,
body[data-page="home"] .hero .proof-strip {
    animation: soft-rise 0.7s ease both;
}

body[data-page="home"] .hero .lead {
    animation-delay: 80ms;
}

body[data-page="home"] .hero .season-note {
    animation-delay: 140ms;
}

body[data-page="home"] .hero .actions {
    animation-delay: 200ms;
}

body[data-page="home"] .hero .hero-products {
    animation-delay: 260ms;
}

body[data-page="home"] .hero .proof-strip {
    animation-delay: 320ms;
}

.hero-glow-left {
    animation: glow-drift-left 8s ease-in-out infinite;
}

.hero-glow-right {
    animation: glow-drift-right 8.4s ease-in-out infinite;
}

.hero-grid {
    animation: grid-drift 16s linear infinite;
}

.hero-products .product-card img {
    animation: float-card 5.8s ease-in-out infinite;
}

.hero-products .product-card:nth-child(2) img {
    animation-delay: 0.9s;
}

.hero-products .product-card:nth-child(3) img {
    animation-delay: 1.7s;
}

body[data-page="home"] .proof-item {
    animation: pulse-border 4.6s ease-in-out infinite;
}

body[data-page="home"] .proof-item:nth-child(2) {
    animation-delay: 0.6s;
}

body[data-page="home"] .proof-item:nth-child(3) {
    animation-delay: 1.2s;
}

body[data-page="home"] .feature-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
}

body[data-page="home"] .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.33);
    border-color: #3b4351;
}

body[data-page="home"] .cta-band .btn-primary {
    animation: cta-pulse 3.2s ease-in-out infinite;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes soft-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentle-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes glow-drift-left {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(12px, -8px) scale(1.06);
    }
}

@keyframes glow-drift-right {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-12px, 8px) scale(1.05);
    }
}

@keyframes grid-drift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 44px 22px, 22px 44px;
    }
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes pulse-border {
    0%,
    100% {
        border-color: #292d35;
    }
    50% {
        border-color: #3d4552;
    }
}

@keyframes cta-pulse {
    0%,
    100% {
        box-shadow: 0 12px 28px rgba(245, 196, 0, 0.3);
    }
    50% {
        box-shadow: 0 16px 36px rgba(245, 196, 0, 0.44);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

@media (max-width: 760px) {
    body[data-page="home"] .site-header {
        top: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        position: relative;
        padding-left: 14px;
        padding-right: 96px;
    }

    .site-header .brand {
        display: inline-flex;
    }

    /* 移动端：气泡条尽量长但不超出屏幕，相对屏幕水平居中 */
    .header-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px;
        width: 92vw;
        max-width: calc(100vw - 24px);
        margin-left: calc(4vw - 14px);
        padding-bottom: 0;
        box-sizing: border-box;
    }

    body[data-page="home"] .header-controls {
        background: rgba(8, 10, 12, 0.9);
        border: 1px solid #212327;
        border-radius: 999px;
        padding: 8px 10px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    }

    .lang-toggle {
        position: absolute;
        top: 10px;
        right: 14px;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .main-nav {
        width: auto;
        margin-top: 0;
        gap: 4px;
        justify-content: center;
        flex-wrap: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }

    .main-nav a {
        padding: 5px 6px;
        font-size: clamp(0.72rem, 2.4vw, 0.84rem);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .scroll-target {
        scroll-margin-top: 72px;
    }

    /* 竖屏下主操作区按钮竖排，避免挤在一起 */
    .hero .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }

    .hero .actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .site-footer {
        padding: 22px 18px 34px;
    }

    /* 与电脑端一致：上方 3 个产品卡片一行，下方 3 个数据块一行，整体居中 */
    .hero-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: min(420px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .product-card {
        min-height: auto;
        padding: 10px 8px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    .product-card img {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .product-card .product-title {
        margin: 0;
        font-size: 0.8rem;
        text-align: center;
    }

    .proof-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: min(420px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .proof-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 6px;
    }

    .proof-value {
        font-size: 1.1rem !important;
    }

    .proof-label {
        font-size: 0.7rem !important;
        text-align: center;
    }

    /* 移动端：feature 卡片居中，并减弱滚动时的动画干扰 */
    .feature-section .feature-grid {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-section .feature-card,
    .feature-section .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .feature-section .feature-card:hover {
        transform: translateY(-1px);
    }

    .cny-lantern {
        width: 48px;
        height: 58px;
    }

    .cny-knot {
        top: 18px;
        right: 60px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .cny-firework {
        width: 88px;
        height: 88px;
        opacity: 0.26;
    }

    .cny-firework-center {
        width: 72px;
        height: 72px;
    }

    .cny-smoke {
        width: 140px;
        height: 86px;
        opacity: 0.24;
    }

    .cny-crackers {
        transform: scale(0.86);
        transform-origin: bottom center;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 8px 14px 28px;
    }

    .site-header {
        padding: 16px 14px;
        padding-right: 90px;
    }

    .lang-toggle {
        right: 12px;
        min-width: 80px;
        padding: 7px 12px;
        font-size: 0.9rem;
    }

    .card {
        padding: 18px;
    }

    .hero.card {
        padding: 20px 16px;
    }

    .main-nav {
        gap: 4px;
    }

    .main-nav a {
        font-size: 0.82rem;
        padding: 6px 8px;
    }

    .festival-pill {
        font-size: 0.73rem;
        padding: 5px 10px;
    }

    .season-note {
        font-size: 0.9rem;
    }

    .hero .actions .btn {
        padding: 12px 16px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .cny-lantern {
        display: none;
    }

    .cny-knot {
        top: 14px;
        right: 14px;
    }

    .cny-crackers,
    .cny-firework-right,
    .cny-firework-center,
    .cny-smoke {
        display: none;
    }

    .cny-firework-left {
        top: 18%;
        left: 6%;
        width: 72px;
        height: 72px;
        opacity: 0.24;
    }

    .cny-spark-2,
    .cny-spark-3 {
        display: none;
    }
}

