/* 地幔官网 · 无构建静态站点。深色为主、暖橙作为品牌高光，滚动特效全部可降级。 */

:root {
    --bg: #08080a;
    --bg-2: #0c0c10;
    --ink: #f5f5f7;
    --muted: rgba(245, 245, 247, 0.62);
    --dim: rgba(245, 245, 247, 0.4);
    --line: rgba(255, 255, 255, 0.1);
    --panel: rgba(255, 255, 255, 0.045);
    --hot: #ff6b1a;
    --hot-deep: #b8430b;
    --rock: #25282e;
    --wrap: 1160px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

/* 站内锚点的平滑滚动交给脚本处理：带 #hash 直接打开时应当立刻定位，而不是从头滚一遍。 */
html {
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 10px 16px;
    background: var(--ink);
    color: #000;
    border-radius: 0 0 12px 0;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--hot);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- 排版 ---------- */

.eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hot);
}

.h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1.14;
    letter-spacing: -0.028em;
    font-weight: 650;
}

.dim {
    color: var(--dim);
}

.lead {
    margin: 0 0 44px;
    max-width: 44ch;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--muted);
}

.grad {
    background: linear-gradient(96deg, #ffb27a 4%, var(--hot) 42%, var(--hot-deep) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section {
    position: relative;
    padding: clamp(88px, 11vw, 168px) 0;
}

.section--light {
    background: #f4f4f6;
    --ink: #0d0d10;
    --muted: rgba(13, 13, 16, 0.62);
    --dim: rgba(13, 13, 16, 0.38);
    --line: rgba(13, 13, 16, 0.1);
    --panel: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.35s;
}

.btn--primary {
    background: linear-gradient(135deg, var(--hot), var(--hot-deep));
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 107, 26, 0.24);
}

.btn--ghost {
    border-color: var(--line);
    color: var(--ink);
    background: var(--panel);
}

.btn--sm {
    padding: 9px 18px;
    font-size: 14px;
}

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

.btn--primary:hover {
    box-shadow: 0 16px 38px rgba(255, 107, 26, 0.34);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- 顶栏 ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    background: rgba(8, 8, 10, 0);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s;
}

.nav.is-scrolled {
    background: rgba(8, 8, 10, 0.74);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #fff;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-right: auto;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.nav__links a {
    position: relative;
    transition: color 0.25s;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--hot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav__links a:hover {
    color: #fff;
}

.nav__links a:hover::after,
.nav__links a.is-current::after {
    transform: scaleX(1);
}

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav__toggle i {
    width: 16px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] i:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] i:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

.nav__drawer[hidden] {
    display: none;
}

.nav__drawer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav__drawer a {
    padding: 13px 2px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- 首屏 ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    padding: clamp(116px, 17vh, 190px) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* 图形贴底：文字在上三分之一，岩檐像从网格地面升起来 */
.hero__art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: end center;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    bottom: -34%;
    width: min(880px, 118vw);
    aspect-ratio: 1;
    border-radius: 50%;
    /* 渐变本身足够柔和，不用 filter: blur()——移动端那一层模糊每帧都要重新光栅化，滚动会卡 */
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 107, 26, 0.32), rgba(184, 67, 11, 0.12) 46%, transparent 70%);
    animation: breathe 9s ease-in-out infinite;
    will-change: transform, opacity;
}

.hero__grid {
    position: absolute;
    inset: auto -25% -8% -25%;
    height: 46%;
    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: 58px 58px;
    transform: perspective(620px) rotateX(70deg);
    mask-image: radial-gradient(ellipse 58% 78% at 50% 24%, #000 8%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 24%, #000 8%, transparent 74%);
}

.hero__mark {
    position: relative;
    width: min(300px, 40vw);
    margin-bottom: clamp(26px, 6vh, 74px);
    opacity: 0.96;
    filter: drop-shadow(0 24px 60px rgba(255, 107, 26, 0.34));
}

.hero__layer {
    transform-box: fill-box;
    transform-origin: center bottom;
}

.hero__layer[data-depth="2"] {
    animation: float 7s ease-in-out infinite;
}

.hero__layer[data-depth="3"] {
    animation: float 7s ease-in-out infinite 0.6s;
}

.hero__body {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 24px;
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(40px, 7.6vw, 92px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.hero__title span {
    display: block;
}

.hero__lead {
    margin: 0 auto 36px;
    max-width: 34em;
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.5;
    color: rgba(245, 245, 247, 0.7);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.stats-band {
    position: relative;
    z-index: 3;
    padding: 0 0 clamp(56px, 8vw, 104px);
}

.stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    width: min(var(--wrap), 100% - 48px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.stats li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 22px;
    background: rgba(12, 12, 16, 0.72);
    backdrop-filter: blur(10px);
    text-align: left;
}

.stats b {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 660;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(120deg, #fff, #ffb27a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats span {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.45;
}

.hero__hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.32));
    overflow: hidden;
}

.hero__hint span {
    position: absolute;
    inset: 0;
    background: var(--hot);
    animation: drop 2.6s ease-in-out infinite;
}

/* ---------- 滚动进场 ---------- */

.reveal {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- 经营闭环 ---------- */

.flow {
    background: linear-gradient(180deg, var(--bg), var(--bg-2) 40%, var(--bg));
}

.flow__head {
    margin-bottom: clamp(40px, 6vw, 76px);
}

.flow__head .h2 {
    max-width: 22ch;
}

.flow__grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.flow__stage {
    position: sticky;
    top: 14vh;
}

/* 四块画面用 grid 叠在同一格里：高度自动取最高的那块，任何宽度下都不会裁掉底部说明 */
.stage {
    position: relative;
    display: grid;
    border-radius: 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 107, 26, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.panel {
    grid-area: 1 / 1;
    /* 叠放时当前画面必须在最上层：否则 DOM 里靠后的画面会在淡出过程中盖住它 */
    z-index: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    /* 淡出结束后彻底不参与绘制，避免叠了四层半透明画面在移动端留下残影 */
    visibility: hidden;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
    pointer-events: none;
}

.panel.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.panel__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    color: var(--dim);
}

.panel__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.panel__bar b {
    margin-left: 8px;
    font-weight: 500;
}

.panel__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
    padding: clamp(14px, 2vw, 24px);
    min-height: 0;
}

.panel__body--center {
    align-items: center;
}

.panel__foot {
    margin-top: auto;
    padding-top: 14px;
    font-size: 13px;
    color: var(--dim);
    text-align: left;
    width: 100%;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.row--head {
    background: none;
    border: none;
    padding: 0 14px;
    font-size: 12px;
    color: var(--dim);
}

.row--new {
    border-color: rgba(255, 107, 26, 0.4);
    background: rgba(255, 107, 26, 0.09);
}

.panel.is-active .row--new {
    animation: pop 0.7s var(--ease) 0.35s both;
}

.tag {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.tag--trial {
    border-color: rgba(255, 107, 26, 0.45);
    color: #ffb27a;
}

.dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
}

.dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dot--ok {
    color: #5ec98d;
}

.dot--warn {
    color: #e6a44a;
}

.cards2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 107, 26, 0.12), rgba(255, 255, 255, 0.02));
    font-size: 13px;
}

.mini b {
    font-size: 13.5px;
    font-weight: 600;
}

.mini span {
    color: #ffb27a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lane {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--hot);
    font-size: 14px;
}

.lane em {
    font-style: normal;
    font-size: 12.5px;
    color: var(--muted);
}

.lane--wait {
    border-left-color: #e6a44a;
}

.tabs {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 13px;
}

.tabs span {
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--muted);
}

.tabs .on {
    background: linear-gradient(135deg, var(--hot), var(--hot-deep));
    color: #fff;
}

.face {
    position: relative;
    width: min(150px, 34%);
    aspect-ratio: 1;
    margin: 6px 0;
    border-radius: 26px;
    border: 1px solid rgba(255, 107, 26, 0.35);
    background: rgba(255, 107, 26, 0.06);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.face svg {
    width: 62%;
    fill: none;
    stroke: #ffb27a;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.face__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 26, 0.5));
    border-bottom: 1px solid var(--hot);
}

.panel.is-active .face__scan {
    animation: scan 2.4s ease-in-out infinite;
}

.toast {
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(94, 201, 141, 0.12);
    border: 1px solid rgba(94, 201, 141, 0.4);
    color: #8ee0b1;
    font-size: 13.5px;
}

.panel.is-active .toast {
    animation: pop 0.6s var(--ease) 0.5s both;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tiles div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.tiles span {
    font-size: 12px;
    color: var(--dim);
}

.tiles b {
    font-size: clamp(19px, 2.3vw, 25px);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: clamp(6px, 1vw, 12px);
    height: clamp(70px, 11vw, 110px);
    margin-top: 6px;
}

.chart i {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(180deg, var(--hot), rgba(184, 67, 11, 0.55));
    transform-origin: bottom;
}

.panel.is-active .chart i {
    animation: grow 0.9s var(--ease) both;
}

.chart i:nth-child(2) { animation-delay: 0.06s; }
.chart i:nth-child(3) { animation-delay: 0.12s; }
.chart i:nth-child(4) { animation-delay: 0.18s; }
.chart i:nth-child(5) { animation-delay: 0.24s; }
.chart i:nth-child(6) { animation-delay: 0.3s; }
.chart i:nth-child(7) { animation-delay: 0.36s; }

.flow__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    padding: 0 0 0 26px;
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--line);
    position: relative;
    opacity: 0.42;
    transition: opacity 0.5s var(--ease);
}

.step::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--hot), var(--hot-deep));
    transform: translateY(-50%);
    transition: height 0.55s var(--ease);
}

.step.is-active {
    opacity: 1;
}

.step.is-active::before {
    height: 76px;
}

.step__no {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--hot);
}

.step h3 {
    margin: 10px 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.025em;
    font-weight: 640;
}

.step p {
    margin: 0;
    max-width: 40ch;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 17px);
}

/* ---------- 功能网格 ---------- */

.console {
    background: var(--bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    position: relative;
    padding: 26px 24px 28px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 107, 26, 0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.card:hover::before {
    opacity: 1;
}

.card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(255, 107, 26, 0.24), rgba(255, 107, 26, 0.06));
    border: 1px solid rgba(255, 107, 26, 0.28);
}

.card__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #ffb27a;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 640;
    letter-spacing: -0.015em;
}

.card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--muted);
}

.card--flat {
    padding: 24px 22px 26px;
    background: rgba(255, 255, 255, 0.03);
}

.marquee {
    margin-top: 26px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: marquee 52s linear infinite;
}

.marquee:hover .marquee__track,
.marquee__track.is-paused {
    animation-play-state: paused;
}

.marquee__track span {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- 小程序 ---------- */

.miniapp__grid {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.ticks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ticks li {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--muted);
}

.ticks b {
    display: block;
    color: var(--ink);
    font-size: 16.5px;
    font-weight: 640;
    margin-bottom: 3px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hot), var(--hot-deep));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.phone {
    justify-self: center;
}

.phone__frame {
    position: relative;
    width: min(300px, 74vw);
    aspect-ratio: 9 / 18.6;
    padding: 11px;
    border-radius: 46px;
    background: linear-gradient(160deg, #2a2c31, #14151a 60%);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone__notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 22px;
    border-radius: 999px;
    background: #0a0a0c;
    z-index: 3;
}

.phone__screens {
    position: relative;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #1c1a1e, #0b0b0e 60%);
}

.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 52px 14px 18px;
    color: #f5f5f7;
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.screen.is-active {
    opacity: 1;
    transform: none;
}

.screen__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.screen__top b {
    font-size: 15px;
    font-weight: 640;
}

.screen__top span {
    color: #ffb27a;
    font-size: 12px;
}

.screen__hero {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(255, 107, 26, 0.32), rgba(184, 67, 11, 0.14));
    border: 1px solid rgba(255, 107, 26, 0.3);
    font-size: 12.5px;
}

.screen__hero em {
    font-style: normal;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
}

.screen__quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.screen__quick span {
    padding: 12px 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
    font-size: 11.5px;
}

.screen__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.screen__chips span {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
}

.screen__chips .on {
    background: linear-gradient(135deg, var(--hot), var(--hot-deep));
}

.screen__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.screen__list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
}

.screen__list b {
    font-weight: 550;
}

.screen__list em {
    font-style: normal;
    font-size: 11px;
    color: #ffb27a;
}

.screen__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(140deg, #ff6b1a, #8f3308);
    font-size: 12px;
    overflow: hidden;
}

.screen__card b {
    font-size: 16px;
    font-weight: 650;
}

.screen__card i {
    position: absolute;
    right: -30px;
    bottom: -46px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.phone__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.phone__dots button {
    width: 26px;
    height: 4px;
    border: none;
    padding: 0;
    border-radius: 999px;
    background: rgba(13, 13, 16, 0.16);
    cursor: pointer;
    transition: background 0.3s, width 0.3s var(--ease);
}

.phone__dots button.on {
    width: 40px;
    background: linear-gradient(90deg, var(--hot), var(--hot-deep));
}

/* ---------- 平台端 ---------- */

.plans {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.plans button {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    font: inherit;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.plans button:hover {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.28);
}

.plans button.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hot), var(--hot-deep));
    color: #fff;
}

/* 四个版本面板叠在同一格里，切换时高度不跳 */
.plan-panels {
    display: grid;
    margin-bottom: 14px;
}

.plan-panel {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 26px 26px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
    opacity: 0;
    /* 用 visibility 而不是 hidden：辅助技术读不到未选中的面板，但格子高度还在，切换不跳 */
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

.plan-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.plan-panel ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-panel li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    color: var(--ink);
}

.plan-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hot), var(--hot-deep));
}

.plan-panel__meta {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--dim);
}

.plans__note {
    margin: 0 0 40px;
    font-size: 13px;
    color: var(--dim);
}

/* ---------- 安全 ---------- */

.trust {
    background: linear-gradient(180deg, var(--bg), #0b0b0f);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 44px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.tItem {
    padding: 28px 26px 30px;
    background: var(--bg);
}

.tItem h3 {
    margin: 0 0 9px;
    font-size: 17px;
    font-weight: 640;
    letter-spacing: -0.015em;
}

.tItem p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.stack span {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    font-feature-settings: "tnum";
}

/* ---------- CTA ---------- */

.cta {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta__glow {
    position: absolute;
    left: 50%;
    bottom: -46%;
    transform: translateX(-50%);
    width: min(1100px, 130vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 26, 0.28), transparent 64%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 2;
}

.cta .h2 {
    max-width: 20ch;
    margin-inline: auto;
}

.cta .lead {
    margin-inline: auto;
    margin-bottom: 34px;
}

.cta__note {
    margin: 0;
    max-width: 34ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--dim);
}

/* 联系方式只留微信二维码 */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: clamp(30px, 4vw, 48px);
}

.qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.45s var(--ease), border-color 0.45s;
}

.qr:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.24);
}

.qr img {
    width: clamp(176px, 24vw, 228px);
    height: auto;
    border-radius: 14px;
    /* 二维码多为透明底黑色码点，垫一层白底才扫得出来 */
    background: #fff;
    padding: 10px;
}

.qr figcaption {
    font-size: 13.5px;
    color: var(--muted);
}

/* 图片没放上去时整块隐藏，页面不出现破图 */
.qr.is-missing {
    display: none;
}

/* ---------- 页脚 ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 56px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 32px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--muted);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-left: auto;
    font-size: 13.5px;
    color: var(--muted);
}

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

.footer__legal {
    width: 100%;
    margin: 0;
    font-size: 12.5px;
    color: var(--dim);
}

/* ---------- 动画 ---------- */

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.07); opacity: 1; }
}

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

@keyframes drop {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
}

@keyframes scan {
    0%, 100% { transform: translateY(-40%); }
    50% { transform: translateY(230%); }
}

@keyframes pop {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes grow {
    from { transform: scaleY(0.05); opacity: 0.2; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1040px) {
    .grid,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__inner {
        gap: 16px;
    }

    .nav__brand {
        margin-right: auto;
    }

    .nav__toggle {
        display: flex;
    }

    .flow__grid {
        grid-template-columns: 1fr;
    }

    /* 窄屏的固定画面必须是实色并顶到屏幕两侧，否则滚动时下面的步骤文字会从半透明背景里透出来 */
    .flow__stage {
        top: 57px;
        z-index: 5;
        margin-inline: -24px;
        padding: 12px 24px 16px;
        background: var(--bg);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5);
    }

    /* 移动端去掉毛玻璃与呼吸光晕：这两样是滚动掉帧的主要来源。
       顶栏必须完全不透明，否则滚过去的文字会从底下透出来，看着像渲染坏了。 */
    .nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .nav.is-scrolled {
        background: var(--bg);
    }

    /* 四块画面叠在一起，切换时给实色底并缩短过渡，避免相邻画面互相透出 */
    .panel {
        background: var(--bg);
        transform: none;
        transition-duration: 0.28s;
    }

    .stats li {
        backdrop-filter: none;
        background: #0c0c10;
    }

    .qr {
        backdrop-filter: none;
    }

    /* 触摸设备的点击区域放大一点 */
    .plans button {
        padding: 12px 20px;
    }

    /* 首屏在窄屏保持完全静止：滚动一开始就不和常驻动画抢帧 */
    .hero__glow {
        animation: none;
        will-change: auto;
    }

    .hero__layer[data-depth="2"],
    .hero__layer[data-depth="3"] {
        animation: none;
    }

    .hero__mark {
        filter: drop-shadow(0 14px 30px rgba(255, 107, 26, 0.3));
    }

    .hero__hint {
        display: none;
    }

    /* 固定元素上的大范围阴影在滚动时很容易触发重绘，窄屏收一收 */
    .stage {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }

    .step {
        min-height: 46vh;
    }

    .miniapp__grid {
        grid-template-columns: 1fr;
    }

    .phone {
        order: -1;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .grid,
    .grid--4,
    .trust__grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 104px;
    }

    .cards2 {
        grid-template-columns: 1fr;
    }

    /* 固定画面在窄屏要更紧凑，给下面的步骤文字留出阅读空间 */
    .panel__bar {
        padding: 10px 13px;
        font-size: 11.5px;
    }

    .row,
    .lane {
        padding: 9px 12px;
        font-size: 13px;
    }

    .mini {
        padding: 10px;
    }

    .tiles div {
        padding: 10px 12px;
    }

    .face {
        width: min(112px, 30%);
        border-radius: 20px;
    }

    .toast {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    /* 窄屏下这句说明和右侧步骤文字重复，收起来给正文让位 */
    .panel__foot {
        display: none;
    }

    .cards2 .mini:last-child {
        display: none;
    }

    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }


    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav .btn--sm {
        width: auto;
    }

    .cta__note {
        max-width: none;
    }
}

/* ---------- 降级：尊重系统的减少动效设置 ---------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    /* 画面切换本身不依赖动效：非当前画面仍是 opacity 0，只是没有过渡 */
    .step {
        opacity: 1;
    }
}
