/* 小通话落地页 · 对齐 design/xiaotonghua-landing.pen */

:root {
    --bg: #fbf6ee;
    --surface-tint: #f4ebdc;
    --card: #ffffff;
    --ink: #413a30;
    --ink-muted: #8c7f6e;
    --accent: #d9713f;
    --accent-deep: #b85a2e;
    --accent-soft: #f7e4d2;
    --sage: #7c9a7e;
    --sage-soft: #e9f0e6;
    --border: #e8dcc7;
    --night: #4a4034;
    --night-line: #6a5f4e;
    --night-muted: #c2b6a2;
    --night-kicker: #c9d6b8;
    --night-icon-bg: #5a5044;
    --night-icon: #e8c9a8;
    --screen: #fffcf6;
    --tablet: #413a30;
    --font-heading: "Noto Serif SC", "Songti SC", serif;
    --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
    --page-pad: clamp(20px, 4.5vw, 64px);
    --wrap: 1312px;
    --radius-card: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 92px;
}

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

html,
body {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    font-size: 14px;
}

.skip:focus {
    top: 12px;
}

.icon {
    display: block;
    flex-shrink: 0;
}

.wrap {
    width: min(var(--wrap), 100%);
    margin-inline: auto;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: background-color 160ms var(--ease), color 160ms var(--ease),
        border-color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 34px;
}

.btn-primary:hover {
    background: var(--accent-deep);
}

.btn-ghost {
    gap: 8px;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    border: 1.5px solid var(--border);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

.btn-nav {
    padding: 11px 24px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 500;
    gap: 0;
}

.btn-nav:hover {
    background: #2f2922;
}

.btn-lg {
    padding: 17px 38px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px var(--page-pad);
    max-width: calc(var(--wrap) + var(--page-pad) * 2);
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.wordmark {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 15px;
    color: var(--ink-muted);
    transition: color 160ms var(--ease);
}

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

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

.nav-cta-desktop {
    flex-shrink: 0;
}

.nav-cta-mobile {
    display: none;
}

/* Hero */

.hero {
    padding: 72px var(--page-pad) 96px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: var(--wrap);
    margin-inline: auto;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 820px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4.6vw, 4rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    color: var(--ink);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink-muted);
    max-width: 42em;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.download-note {
    margin-top: -24px;
    font-size: 13px;
    color: var(--ink-muted);
}

.trust-row,
.step-row {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
}

.trust-item .icon {
    color: var(--sage);
}

.product-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.mascot-slot {
    width: 220px;
    flex-shrink: 0;
}

.mascot-slot img,
.cta-mascot {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.tablet {
    width: min(780px, 100%);
    background: var(--tablet);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 28px 56px #413a3033;
    flex: 1 1 auto;
    max-width: 780px;
}

.tablet-screen {
    background: var(--screen);
    border-radius: 22px;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.chat-name {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.chat-name strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ink-muted);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--sage);
}

.video-off {
    color: var(--ink-muted);
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px 8px;
    flex: 1;
    text-align: left;
}

.msg {
    display: flex;
}

.msg-xiaoan {
    justify-content: flex-start;
}

.msg-kid {
    justify-content: flex-end;
}

.bubble {
    background: var(--surface-tint);
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.55;
    padding: 14px 18px;
    border-radius: 4px 18px 18px 18px;
    max-width: 430px;
}

.bubble-wide {
    max-width: 430px;
}

.voice-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 18px 4px 18px 18px;
}

.voice-bubble .icon {
    color: var(--accent-deep);
}

.wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 22px;
}

.wave i {
    display: block;
    width: 3.5px;
    border-radius: 2px;
    background: var(--accent-deep);
}

.wave-sage {
    gap: 5px;
    height: 72px;
}

.wave-sage i {
    width: 6px;
    border-radius: 3px;
    background: var(--sage);
}

.voice-dur {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-deep);
}

.memory-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 11px;
    background: var(--bg);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-deep);
}

.memory-tag .icon {
    color: var(--accent);
}

.call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 16px 24px 22px;
}

.round-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    color: var(--ink-muted);
    display: grid;
    place-items: center;
    background: transparent;
}

.call-btn {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: var(--sage);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px #7c9a7e55;
    border: 0;
}

/* Memory */

#xiaoan,
#chat,
#privacy,
#start,
#download {
    scroll-margin-top: 80px;
}

.memory {
    padding: 104px var(--page-pad);
}

.memory-inner,
.ways-inner,
.trust-inner,
.steps-inner,
.final-inner {
    max-width: var(--wrap);
    margin-inline: auto;
}

.memory-inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.split-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: end;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sage);
}

.kicker-light {
    color: var(--night-kicker);
}

.title-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.35;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.desc-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 6px;
}

.body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-muted);
}

.link-accent {
    color: var(--accent-deep);
    font-size: 14px;
    font-weight: 500;
}

.link-accent:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.memory-cards {
    display: flex;
    align-items: center;
    gap: 20px;
}

.memory-card {
    flex: 1 1 0;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.month {
    display: inline-flex;
    padding: 5px 13px;
    background: var(--sage-soft);
    color: var(--sage);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.card-top .icon {
    color: var(--accent);
}

.quote {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ink);
}

.caption {
    font-size: 13px;
    color: var(--ink-muted);
}

.memory-arrow {
    color: var(--border);
    flex-shrink: 0;
}

/* Ways */

.ways {
    padding: 40px var(--page-pad) 104px;
}

.ways-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
}

.center-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    text-align: center;
}

.center-head .section-title,
.center-head .body {
    max-width: 100%;
}

.ways-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: 100%;
}

.way-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.way-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.icon-sage {
    background: var(--sage-soft);
    color: var(--sage);
}

.icon-accent {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.way-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.way-titles h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}

.way-titles p {
    font-size: 14px;
    color: var(--ink-muted);
}

.way-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-muted);
}

.way-visual {
    height: 120px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-sage {
    background: var(--sage-soft);
}

.visual-chat {
    background: var(--accent-soft);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
}

.mini-bubble {
    font-size: 12.5px;
    padding: 8px 14px;
    max-width: fit-content;
}

.mini-l {
    background: #fff;
    color: var(--ink);
    border-radius: 3px 12px 12px 12px;
}

.mini-row {
    display: flex;
    justify-content: flex-end;
}

.mini-r {
    background: var(--accent);
    color: #fff;
    border-radius: 12px 3px 12px 12px;
}

/* Trust / 安心约定 */

.trust {
    background: var(--night);
    padding: 104px var(--page-pad);
    color: var(--bg);
}

.trust-inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.trust .section-title {
    color: var(--bg);
}

.trust-lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--night-muted);
}

.promise-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--night-line);
}

.promise {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.promise-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--night-icon-bg);
    color: var(--night-icon);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.promise-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.promise-copy h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--bg);
}

.promise-copy p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--night-muted);
}

/* Steps */

.steps {
    background: var(--surface-tint);
    padding: 104px var(--page-pad);
}

.steps-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-top .icon {
    color: var(--accent-deep);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--border);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
}

.step-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* Final CTA */

.final {
    padding: 104px var(--page-pad) 96px;
}

.final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.final h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    font-style: normal;
    color: var(--ink);
}

.final-body {
    max-width: 600px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-muted);
}

.final-caption {
    font-size: 13px;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px var(--page-pad);
}

.footer-inner {
    max-width: var(--wrap);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

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

.logo-mark-sm {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.footer-tag {
    font-size: 13px;
    color: var(--ink-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    color: var(--ink-muted);
}

.footer-right a:hover {
    color: var(--ink);
}

/* Waveform motion — 两种聊法 · 电话卡 */

.wave-live i {
    transform-origin: center bottom;
    animation: wave 1.15s var(--ease) infinite;
}

.wave-live i:nth-child(1) { animation-delay: 0.00s; }
.wave-live i:nth-child(2) { animation-delay: 0.08s; }
.wave-live i:nth-child(3) { animation-delay: 0.16s; }
.wave-live i:nth-child(4) { animation-delay: 0.04s; }
.wave-live i:nth-child(5) { animation-delay: 0.20s; }
.wave-live i:nth-child(6) { animation-delay: 0.12s; }
.wave-live i:nth-child(7) { animation-delay: 0.18s; }
.wave-live i:nth-child(8) { animation-delay: 0.06s; }
.wave-live i:nth-child(9) { animation-delay: 0.14s; }
.wave-live i:nth-child(10) { animation-delay: 0.10s; }
.wave-live i:nth-child(11) { animation-delay: 0.22s; }
.wave-live i:nth-child(12) { animation-delay: 0.02s; }

@keyframes wave {
    0%,
    100% {
        transform: scaleY(0.45);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Responsive */

@media (max-width: 1100px) {
    .mascot-slot {
        display: none;
    }

    .split-head {
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .nav-links,
    .nav-cta-desktop {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .site-nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        position: absolute;
        left: var(--page-pad);
        right: var(--page-pad);
        top: 84px;
        padding: 20px 22px 22px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 16px 40px #413a3014;
    }

    .site-nav.is-open .nav-cta-mobile {
        display: inline-flex;
        margin-top: 4px;
    }

    .hero {
        padding: 48px var(--page-pad) 64px;
    }

    .memory,
    .trust,
    .steps,
    .final {
        padding: 72px var(--page-pad);
    }

    .ways {
        padding: 24px var(--page-pad) 72px;
    }

    .split-head {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .memory-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .memory-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .ways-cards,
    .promise-row,
    .step-row {
        grid-template-columns: 1fr;
    }

    .tablet {
        border-radius: 28px;
        padding: 12px;
    }

    .tablet-screen {
        border-radius: 18px;
        min-height: 0;
    }

    .cta-mascot {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 640px) {
    .site-nav {
        padding: 16px var(--page-pad);
    }

    .hero-inner {
        gap: 28px;
    }

    .hero-copy {
        gap: 16px;
    }

    .cta-row {
        flex-direction: column;
        width: 100%;
    }

    .cta-row .btn {
        width: 100%;
    }

    .download-note {
        margin-top: -12px;
    }

    .chat-header,
    .messages,
    .call-bar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bubble {
        max-width: 100%;
    }

    .way-card,
    .memory-card {
        padding: 22px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-right {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .btn:active {
        transform: none;
    }
}
