:root {
    color-scheme: dark;
    --bg: oklch(0.17 0 0);
    --panel: oklch(10.8% 0.011 35);
    --panel-strong: oklch(13.5% 0.012 35);
    --text: oklch(96% 0.01 92);
    --muted: oklch(0.99 0 0 / 0.5);
    --dim: oklch(54% 0.015 80);
    --orange: oklch(67% 0.205 42);
    --lime: oklch(86% 0.19 128);
    --line: oklch(27% 0.016 45);
    --max: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

main {
    background: var(--bg);
    overflow-x: clip;
}

.section {
    background: var(--bg);
    overflow-x: clip;
}

.section>* {
    max-width: 100%;
}

body,
h1,
h2,
p,
a {
    overflow-wrap: break-word;
}

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

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

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 50%;
    width: min(calc(100% - 40px), var(--max));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img,
.site-footer img {
    border-radius: 12px;
    box-shadow: 0 10px 28px oklch(5.823% 0.01981 142.511 / 0.42);
}

.section {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}


/* app同款气泡样式 */

.chat-bubble {
    position: relative;
    display: inline-block;
    background-color: #CDFA85;
    color: #000;
    font-size: 15px;
    padding: 8px 10px 8px 10px;
    border-radius: 2px 10px 10px 10px;
    line-height: 14px;
    margin: 0px 4px 0px 4px;
    max-width: 340px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.88fr);
    grid-template-rows: auto clamp(56px, 7vh, 92px) auto;
    grid-template-areas: "copy visual" ". visual" "bottom visual";
    gap: 0 clamp(42px, 7vw, 96px);
    align-items: stretch;
    background: var(--bg);
    min-height: 100svh;
    padding: 116px 0 74px;
}

.hero-copy {
    grid-area: copy;
    align-self: end;
    padding-bottom: 0;
}

.hero-stage {
    grid-area: visual;
    position: relative;
    display: grid;
    place-items: center;
    align-self: center;
    background: transparent;
}

.hero-bottom {
    grid-area: bottom;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--lime);
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 900;
    letter-spacing: 0;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.02;
}

h1 {
    max-width: 11em;
    font-size: clamp(54px, 5.8vw, 76px);
    font-weight: 950;
}

h2 {
    max-width: 8.6em;
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 950;
}

.lead,
.section-copy p:not(.eyebrow) {
    color: #9096A3;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.62;
}

.lead {
    max-width: 30em;
    margin: 0;
}

.hero-bottom .lead+.lead {
    margin-top: 8px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20%;
}

.hero .download {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
    min-height: 72px;
    padding: 13px 20px;
    border: 1px solid #9096A3;
    border-radius: 18px;
    background-color: #0F0F11;
    color: var(--text);
    cursor: default;
    transition: transform 260ms var(--ease), background-color 260ms var(--ease), border-color 260ms var(--ease), color 260ms var(--ease);
}

.hero .download:visited {
    color: var(--text);
}

.hero .download:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
    border-color: var(--lime);
}

.hero .download:active {
    transform: translateY(-1px);
}

.download-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: oklch(4% 0.01 35);
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
}

.download-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.download-icon-ios {
    color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
    .hero .download:hover {
        transform: translateY(-3px);
        border-color: var(--lime);
        background-color: var(--lime);
        color: oklch(16% 0.02 128);
    }
}

@media (hover: none) {
    .hero .download:hover {
        transform: none;
        border-color: oklch(58% 0.018 80 / 0.7);
        background-color: oklch(6.8% 0.01 35);
        color: var(--text);
    }
}

.download strong,
.download small {
    display: block;
    min-width: 0;
}

.download strong {
    font-size: 18px;
    line-height: 1.2;
}

.download small {
    margin-top: 4px;
    color: currentColor;
    opacity: 0.62;
    font-size: 14px;
}

.hero-card-stack {
    width: min(88%, 440px);
    margin: 40px 0px 30px 0px;
    background: transparent;
    filter: none;
    animation: cardFloat 6.8s var(--ease) infinite;
}

.hero-card-stack img {
    width: 100%;
    height: auto;
    background: transparent;
}

.cards-section,
.reply-section,
.about-section {
    background: var(--bg);
    padding: clamp(86px, 10vw, 144px) 0;
}

.section-copy {
    max-width: 620px;
}

.section-copy p:not(.eyebrow) {
    margin: 24px 0 0;
}

.cards-layout,
.reply-section,
.about-section {
    display: grid;
    grid-template-columns: minmax(300px, 0.84fr) minmax(320px, 1fr);
    gap: clamp(42px, 8vw, 108px);
    align-items: center;
}

.cards-section {
    display: block;
}

.cards-layout {
    grid-template-areas: "phone copy";
}

.cards-copy {
    grid-area: copy;
    align-self: center;
    justify-self: start;
    max-width: 720px;
    margin-left: 0;
}

.cards-copy p:not(.eyebrow) {
    max-width: 34em;
    line-height: 1.62;
}

.cards-phone {
    grid-area: phone;
    width: min(42vw, 360px);
    aspect-ratio: 418 / 868;
    justify-self: start;
}

.phone {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid oklch(34% 0.014 35 / 0.82);
    border-radius: clamp(30px, 4vw, 48px);
    background: var(--panel);
    box-shadow: 0 28px 62px oklch(3% 0.01 35 / 0.5);
}

.phone::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 50%;
    width: 30%;
    height: 22px;
    transform: translateX(-50%);
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reply-copy {
    justify-self: end;
}

.reply-board {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 660px;
    overflow: hidden;
    border-radius: 38px;
}

.phone-dialog {
    width: min(74%, 350px);
    aspect-ratio: 418 / 868;
}

.reply-input {
    position: absolute;
    bottom: 34px;
    left: 8%;
    right: 8%;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.reply-input span {
    width: 22px;
    height: 32px;
    border-radius: 999px;
    background: var(--text);
}

.reply-input p {
    min-width: 0;
    margin: 0;
    color: var(--dim);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-input strong {
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--lime);
    color: oklch(18% 0.02 128);
}

.about-section {
    grid-template-columns: minmax(320px, 0.82fr) minmax(280px, 0.76fr);
}

.about-copy {
    max-width: 720px;
}

.about-phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    opacity: 0.62;
}

.phone-prototype {
    aspect-ratio: 1200 / 2532;
}

.phone-prototype:first-child {
    transform: translateY(24px) rotate(-2deg);
}

.phone-prototype:last-child {
    transform: rotate(2deg);
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    padding: 32px 0 42px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--dim);
    font-size: 14px;
}

.footer-brand {
    display: grid;
    gap: 9px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.footer-meta {
    display: grid;
    gap: 9px;
    justify-items: end;
    min-width: 0;
    text-align: right;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--muted);
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    max-width: 100%;
    white-space: nowrap;
}

.footer-beian a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
}

.footer-beian img {
    width: 14px;
    height: 14px;
    border-radius: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cardFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-0.4deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.7deg);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "copy" "visual" "bottom";
        gap: 28px;
        min-height: auto;
        padding-top: 104px;
        padding-bottom: 72px;
    }
    .hero-copy,
    .hero-bottom {
        justify-self: center;
        text-align: center;
    }
    .hero-copy,
    .hero-bottom {
        align-self: auto;
        padding-bottom: 0;
    }
    .hero-bottom {
        display: block;
    }
    h1 {
        max-width: 10em;
    }
    .lead {
        max-width: 28em;
    }
    .hero-card-stack {
        width: min(64vw, 460px);
    }
    .hero-actions {
        justify-content: center;
        margin-top: 38px;
    }
    .cards-layout,
    .reply-section,
    .about-section {
        grid-template-columns: 1fr;
    }
    .cards-layout {
        grid-template-areas: "copy" "phone";
    }
    .cards-copy,
    .reply-copy {
        justify-self: start;
        margin-left: 0;
    }
    .cards-phone {
        justify-self: center;
    }
    .reply-board {
        min-height: 620px;
    }
    .about-phones {
        max-width: 440px;
    }
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .footer-meta {
        justify-items: center;
        text-align: center;
    }
    .footer-beian {
        justify-content: center;
    }
    /* app同款气泡样式 */
    .chat-bubble {
        position: relative;
        display: inline-block;
        background-color: #CDFA85;
        color: #000;
        font-size: 12px;
        padding: 6px 8px 6px 8px;
        border-radius: 2px 8px 8px 8px;
        line-height: 12px;
        margin: 0 4px;
        max-width: 340px;
    }
}

@media (max-width: 820px) {
    .site-header,
    .section {
        width: min(calc(100% - 28px), var(--max));
    }
    .site-header {
        position: absolute;
        padding-top: 8px;
    }
    .brand {
        font-size: 25px;
    }
    .hero {
        padding-top: 104px;
        padding-bottom: 48px;
        gap: 20px;
    }
    .hero-copy {
        display: grid;
        justify-items: center;
        gap: 0;
    }
    .eyebrow {
        display: none;
    }
    h1 {
        max-width: calc(100vw - 32px);
        font-size: clamp(28px, 7vw, 31px);
        line-height: 1.08;
        white-space: nowrap;
    }
    h2 {
        max-width: 100%;
        font-size: clamp(28px, 7.6vw, 34px);
        white-space: normal;
    }
    .hero-card-stack {
        width: min(70vw, 300px);
        max-width: 100%;
    }
    .lead,
    .section-copy p:not(.eyebrow) {
        font-size: 18px;
        line-height: 1.54;
    }
    .hero-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-bottom .lead {
        align-self: center;
        max-width: 24em;
        text-align: left;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .hero .download {
        display: flex;
        justify-items: center;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
        width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 9px 8px;
        overflow: hidden;
        max-width: 100%;
    }
    .download>span:last-child {
        min-width: 0;
    }
    .download strong {
        font-size: 14px;
        white-space: normal;
    }
    .download small {
        font-size: 11px;
    }
    .cards-section,
    .reply-section,
    .about-section {
        padding: 56px 0;
    }
    .cards-phone {
        width: min(70vw, 300px);
        max-width: 100%;
    }
    .reply-board {
        min-height: 500px;
        border-radius: 28px;
    }
    .phone-dialog {
        width: min(66vw, 270px);
    }
    .reply-input {
        left: 5%;
        right: 5%;
        bottom: 22px;
        grid-template-columns: 28px 1fr auto;
        padding: 12px;
    }
    .reply-input strong {
        padding: 10px 16px;
    }
    .about-phones {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    .phone-prototype:first-child,
    .phone-prototype:last-child {
        transform: none;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 14px;
    }
    .brand img {
        width: 30px;
        height: 30px;
    }
    .hero {
        padding-top: 96px;
        padding-bottom: 42px;
        gap: 18px;
    }
    h1 {
        font-size: clamp(27px, 7.2vw, 29px);
    }
    .hero-card-stack {
        width: min(66vw, 252px);
    }
    .cards-layout,
    .reply-board,
    .about-phones {
        max-width: 100%;
        overflow-x: clip;
    }
    .lead,
    .section-copy p:not(.eyebrow) {
        font-size: 14px;
    }
    .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 80px;
        max-width: 100%;
        min-width: 0;
    }
    .hero .download {
        gap: 7px;
        min-height: 58px;
        padding: 8px 6px;
        border-radius: 14px;
    }
    .download-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .download-icon svg {
        width: 17px;
        height: 17px;
    }
    .download strong {
        font-size: 12px;
        line-height: 1.15;
        white-space: normal;
    }
    .download small {
        margin-top: 2px;
        font-size: 10px;
    }
    .cards-section,
    .reply-section,
    .about-section {
        padding: 48px 0;
    }
    .cards-phone {
        width: min(64vw, 248px);
    }
    .reply-board {
        min-height: 430px;
    }
    .phone-dialog {
        width: min(60vw, 232px);
    }
    .site-footer {
        width: min(calc(100% - 28px), var(--max));
        font-size: 12px;
    }
    .footer-meta {
        max-width: 100%;
        overflow-x: clip;
    }
    .footer-contact {
        white-space: nowrap;
    }
    .footer-beian {
        gap: 5px;
        font-size: clamp(8px, 2.05vw, 11px);
    }
    .footer-beian img {
        width: 10px;
        height: 10px;
    }
}

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