/*
 * zh.css — Simplified-Chinese funnel restyle (/sell/zh/).
 *
 * Layered ON TOP of sell-landing.css: the base file supplies all structure,
 * form/step/FAQ/centre behaviour and responsive grids; this file only
 * re-skins typography and adds the bold "social-feed" display blocks
 * (oversized CJK headlines, big-number value props, sticker badges).
 *
 * Type strategy: body copy uses the system CJK stack (no webfont cost);
 * only headlines/numbers use Noto Sans SC 700/900, which Google serves as
 * unicode-range slices so just the rendered glyph ranges download.
 */

:root {
    --ink: #0a0a0a;
    --gold: #e3ab57;
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
}

.zh-body {
    font-family: var(--font);
    line-height: 1.6;
}

/* Slightly tighter CJK justification for body paragraphs. */
.zh-body p { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Language switcher (header)
   -------------------------------------------------------------------------- */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; font-size: .8rem; }
.lang-switch a,
.lang-switch span {
    display: inline-block; padding: .3rem .55rem; border-radius: 999px;
    text-decoration: none; color: var(--muted); line-height: 1; font-weight: 800;
    letter-spacing: .02em;
}
.lang-switch a:hover,
.lang-switch a:focus-visible { color: var(--ink); background: var(--surface); }
.lang-switch .is-current { color: #fff; background: var(--accent); }

/* Hide the "携手合作" partnership label on mobile so the header (logo +
   language switcher + Carro logo) doesn't crowd. The Carro logo stays,
   so the partnership is still conveyed. Desktop (>=768px) keeps it. */
@media (max-width: 767px) {
    .site-header__partnership { display: none; }
}

/* --------------------------------------------------------------------------
   Top fold — focus the hero + value props + form into one centred column
   so the whole above-the-fold reads like a phone feed on any screen.
   -------------------------------------------------------------------------- */
.zh-top {
    max-width: 600px;
    margin: 0 auto;
    grid-template-columns: 1fr; /* mobile: single-column phone-feed stack */
    gap: 1.5rem;
    padding-top: 1.75rem;
}
/* Desktop: restore the EN/BM two-column layout. The hero and the value-prop
   stickers stack in the left column; the form sits on the right (spanning
   both rows). Placement is by grid-area so the DOM order stays mobile-first
   (hero -> value props -> form). */
@media (min-width: 992px) {
    .zh-top {
        max-width: 1180px;
        grid-template-columns: 5fr 7fr;
        /* hero takes its natural height; the value-props row fills whatever
           vertical space is left in the left column. The form spans both
           rows on the right, so that leftover space equals the gap between
           the hero and the bottom of the form box. */
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "hero form"
            "vp   form";
        column-gap: 2.5rem;
        row-gap: 1.25rem;
        align-items: start;
        padding-top: 2.75rem;
    }
    .zh-top .zh-hero { grid-area: hero; }
    /* Stretch the value-props block over that leftover row and push its
       stickers to the bottom, so the last sticker's box bottom lines up
       with the bottom of the lead-form box. */
    .zh-top .zh-vp { grid-area: vp; align-self: stretch; justify-content: flex-end; }
    .zh-top .landing-form-wrap { grid-area: form; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.zh-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ink); color: #fff;
    font-weight: 800; font-size: .9rem; letter-spacing: .01em;
    padding: .5rem .9rem; border-radius: 999px; margin: 0 0 1.1rem;
}
.zh-badge .hero__dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(234,33,39,.25); }

.zh-headline {
    font-family: var(--font-display);
    margin: 0 0 1rem;
    line-height: .98;
    letter-spacing: -.01em;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.zh-headline__main {
    font-weight: 900;
    font-size: clamp(2.9rem, 13vw, 4.6rem);
    color: var(--ink);
    -webkit-text-stroke: 0; /* keep crisp on CJK */
}
.zh-headline__sub {
    font-weight: 900;
    font-size: clamp(1.5rem, 6.4vw, 2.4rem);
    color: var(--accent);
    line-height: 1.05;
}

.zh-sub {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 40ch;
}

/* Keep the hero image present but understated — the type is the hero. */
.zh-hero__art {
    margin: .25rem 0 0;
    border-radius: 20px;
    overflow: hidden;
}
.zh-hero__art img { width: 100%; height: auto; display: block; }
@media (min-width: 992px) { .zh-hero__art { display: none; } }

/* Smiley-inspect mascot decoration.
   MOBILE: top-right of the hero area (the original, approved placement).
   DESKTOP: peeking out from BEHIND the top-right corner of the first
   value-prop sticker (免费) — the opaque sticker paints over its lower
   half, so only the head pokes out above the corner.
   Two elements with breakpoint-toggled background-images, so only the
   matching image is ever fetched (display:none suppresses the other).
   Cloudflare resizes each to retina size; pointer-events:none. */
.zh-hero { position: relative; }
.zh-deco {
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
}

/* Mobile mascot — pinned to the hero's top-right edge (approved v1). */
.zh-deco--m {
    position: absolute;
    top: 0;
    /* Bleed flush to the screen edge: cancel the column's 1.25rem side
       padding so there's no whitespace between the mascot and the edge.
       It lands exactly at the viewport edge, so no horizontal overflow. */
    right: -1.25rem;
    width: 30%;
    max-width: 150px;
    aspect-ratio: 580 / 507;
    z-index: 3;
    background-image: url("/cdn-img/?url=/sell/assets/img/zh-smiley-cash-mobile.png&w=300&format=auto&q=85");
}
.zh-deco--d { display: none; }

@media (min-width: 768px) {
    .zh-deco--m { display: none; }

    /* The slot wraps the first sticker and forms a stacking context so the
       decoration can sit BEHIND the sticker (z-index below it). */
    .zh-vp__slot { position: relative; z-index: 0; }
    .zh-deco--d {
        display: block;
        position: absolute;
        /* right:0 anchor + right-aligned background means growing the width
           expands the mascot LEFTWARDS, keeping it pinned to the sticker's
           right corner. */
        top: 0;
        right: 0;
        width: 27%;              /* 50% bigger than 15%, then +20% again */
        max-width: 216px;        /* was 180px */
        aspect-ratio: 1749 / 899;
        /* Lift it so the head pokes above the sticker's top edge while the
           lower part stays hidden behind the opaque sticker. */
        transform: translateY(-95%);
        z-index: -1;
        background-image: url("/cdn-img/?url=/sell/assets/img/zh-smiley-cash.png&w=440&format=auto&q=85");
    }
}

/* --------------------------------------------------------------------------
   Value props — three bold "sticker" rows with oversized numbers/words.
   Neo-brutalist offset shadow keeps it punchy but still legible/trustworthy.
   -------------------------------------------------------------------------- */
.zh-vp {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin: 0;
    padding: 0;
}
.zh-vp__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 2.5px solid var(--ink);
    border-radius: 18px;
    padding: .95rem 1.1rem;
    box-shadow: 5px 5px 0 var(--ink);
}
.zh-vp__item:nth-child(2) { box-shadow: 5px 5px 0 var(--accent); }
.zh-vp__big {
    flex: 0 0 auto;
    min-width: 40%;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
}
.zh-vp__big b {
    font-weight: 900;
    color: var(--accent);
    font-size: 1.35em;
}
.zh-vp__label {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Form card — stronger frame so the conversion surface stands out under
   the punchy hero, without losing the clean/legible field styling.
   -------------------------------------------------------------------------- */
.zh-top .form-card {
    border: 2.5px solid var(--ink);
    border-radius: 22px;
    box-shadow: 6px 6px 0 var(--ink);
}
.zh-top .form-card__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    letter-spacing: -.01em;
    color: var(--ink);
}
.zh-top .form-card__subtitle { font-size: .98rem; }

/* Bolder primary button for the CJK label. */
.btn-primary { font-weight: 800; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   Section headings — display weight across the lower content sections.
   -------------------------------------------------------------------------- */
.section-eyebrow {
    font-weight: 800;
    color: var(--accent);
    letter-spacing: .04em;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    letter-spacing: -.01em;
    line-height: 1.12;
    color: var(--ink);
}

/* Steps — make the 01/02/03 huge and branded. */
.step-card__num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 11vw, 4rem);
    line-height: .9;
    color: var(--accent);
    opacity: 1;
}
.step-card h3 { font-weight: 800; }

/* Trust tiles sit on a DARK section (base .section-trust is dark, tiles are
   #161616 with white text). Only firm up the weight — keep the base's white
   heading colour so it stays legible on the dark background. */
.trust-tile h3 { font-weight: 800; }
.trust-tile__accent { background: var(--accent); }

/* FAQ — bolder tabs + summaries. */
.faq-tab { font-weight: 700; }
.faq-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-list summary { font-weight: 700; }

/* Inspection-centre directory — bolder state group headers. */
.centre-group > summary { font-weight: 800; }

/* Mobile sticky CTA — bold pill. */
.mobile-cta { font-weight: 800; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   Motion — one-shot hero intro + one restrained loop accent.

   Keyframes are defined globally, but only APPLIED inside the
   prefers-reduced-motion: no-preference query, so users who ask for reduced
   motion see the final, fully-visible state with no animation (and never a
   stuck opacity:0). Only opacity/transform animate (GPU-friendly, no layout
   shift); the form is deliberately left static so motion never competes with
   conversion. CSS-only, no JS.
   -------------------------------------------------------------------------- */
@keyframes zh-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
/* Subtle "live" pulse — an expanding red ring on the badge dot only. */
@keyframes zh-dot-pulse {
    0%        { box-shadow: 0 0 0 0 rgba(234,33,39,.5); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(234,33,39,0); }
}
/* Desktop mascot intro — pops up from behind the sticker and settles.
   Final state matches the static transform (translateY(-95%)). */
@keyframes zh-mascot-pop {
    0%   { opacity: 0; transform: translateY(-55%); }
    70%  { opacity: 1; transform: translateY(-101%); }
    100% { opacity: 1; transform: translateY(-95%); }
}

@media (prefers-reduced-motion: no-preference) {
    /* Staggered entrance: badge -> headline -> subtext -> value-prop stickers.
       animation-fill-mode: both holds the pre-delay (hidden) state so the
       stagger reads cleanly, and the final state after it completes. */
    .zh-hero .zh-badge,
    .zh-hero .zh-headline,
    .zh-hero .zh-sub,
    .zh-vp__item {
        animation: zh-rise .6s cubic-bezier(.2, .7, .2, 1) both;
    }
    .zh-hero .zh-headline    { animation-delay: .08s; }
    .zh-hero .zh-sub         { animation-delay: .16s; }
    .zh-vp__item:nth-child(1){ animation-delay: .24s; }
    .zh-vp__item:nth-child(2){ animation-delay: .32s; }
    .zh-vp__item:nth-child(3){ animation-delay: .40s; }

    /* The single permanent accent — slow, tiny, far from the form. */
    .zh-badge .hero__dot { animation: zh-dot-pulse 2.6s ease-in-out infinite; }
}

/* Mascot intro — DESKTOP ONLY (the mobile mascot is a separate element and
   stays static) and only when motion is allowed. Delayed so it lands as a
   flourish after the hero/value-props have staggered in. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .zh-deco--d { animation: zh-mascot-pop .6s cubic-bezier(.2, .7, .2, 1) .6s both; }
}

/* --------------------------------------------------------------------------
   Reduced-motion / fallback safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
