/* 意玩云数 · 实人认证 — 首页
   一页核验记录：左字右卡、三道请求、留下与不留、冻结与结算、后台片段。
   tokens 来自 auth.css，界面片段来自 ui.css。 */

.home {
    --page: clamp(20px, 4.2vw, 64px);
    --measure: 1240px;
    --section: clamp(84px, 9.4vw, 152px);
    background: var(--paper);
    color: var(--text);
}

.home ::selection {
    background: var(--jade);
    color: #f2f6f1;
}

.home a {
    text-decoration: none;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--on-dark);
    font-size: 15px;
}

.skip:focus {
    left: 12px;
    top: 12px;
}

/* 板心：所有区块共用同一对左右边距 */

.site-head,
.hero,
.keep,
.backstage,
.band-inner {
    width: min(calc(100% - var(--page) * 2), var(--measure));
    margin-inline: auto;
}

/* 满幅色带：底色走到屏幕边缘，内容仍落在板心里 */

.calls,
.money,
.close {
    padding-block: var(--section);
}

/* ---------- 顶栏 ---------- */

.site-head {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand .mark {
    width: 30px;
    height: 30px;
}

.brand .mark svg {
    width: 17px;
    height: 17px;
}

.brand-name {
    font-size: 16px;
    letter-spacing: -0.01em;
}

.brand-name em {
    margin-left: 10px;
    font-style: normal;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    font-size: 15px;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.head-cta {
    flex: none;
    margin-left: 8px;
    font-size: 15px;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(18, 25, 23, 0.32);
    transition: text-decoration-color 0.18s ease;
}

.head-cta:hover {
    text-decoration-color: var(--text);
}

.head-cta:focus-visible,
.btn-ink:focus-visible,
.btn-paper:focus-visible,
.btn-quiet:focus-visible {
    outline: 2px solid var(--jade);
    outline-offset: 3px;
}

/* ---------- 首屏 ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
    padding-block: clamp(40px, 5vw, 76px) clamp(64px, 8vw, 124px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(62px, 8.2vw, 118px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    font-weight: 500;
}

/* 标题从遮罩里升上来：给下伸留出空间，再用负边距收回 */
.hero-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.hero-line {
    display: block;
}

.hero-lede {
    margin: 30px 0 0;
    max-width: 26em;
    font-size: clamp(17px, 1.42vw, 21px);
    line-height: 1.62;
}

.hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 40px;
    margin-top: clamp(36px, 4.4vw, 64px);
}

.hero-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
}

.price-num {
    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.price-unit {
    font-size: 15px;
    color: var(--muted);
}

.price-note {
    flex-basis: 100%;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-ink {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 26px;
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    transition: background 0.18s ease;
}

.btn-ink:hover {
    background: var(--jade-deep);
}

.btn-quiet {
    font-size: 15px;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(18, 25, 23, 0.3);
    transition: text-decoration-color 0.18s ease;
}

.btn-quiet:hover {
    text-decoration-color: var(--text);
}

.btn-quiet.is-on-dark {
    color: var(--on-dark);
    text-decoration-color: rgba(233, 236, 230, 0.4);
}

.btn-quiet.is-on-dark:hover {
    text-decoration-color: var(--on-dark);
}

/* ---------- 核验记录：页面上的那张卡 ---------- */

.record {
    margin: 0;
}

.record-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(20px, 2.6vw, 34px);
    background: var(--ink);
}

.id-card {
    position: relative;
    width: min(100%, 430px);
    padding: 24px 26px 26px;
    background: #fbfbf8;
    color: var(--text);
}

.id-card-kind {
    margin: 0 0 26px;
    padding-right: 78px;
    font-size: 13px;
    color: var(--muted);
}

.id-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin: 0;
}

.id-card-fields .f-id,
.id-card-fields .f-ref {
    grid-column: span 2;
}

.id-card-fields .f-ref {
    color: var(--muted);
}

.id-card-fields dt {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--muted);
}

.id-card-fields dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.id-card-name {
    font-size: 23px;
    letter-spacing: 0.02em;
}

.id-card-no code {
    font-size: clamp(19px, 1.6vw, 23px);
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}

.id-card-ref {
    color: var(--muted);
}

.id-card-ref code {
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* 印章：2×2 的四个字，压在卡片的右下角 */

.seal {
    position: absolute;
    right: 18px;
    top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0;
    background: var(--jade);
    color: #f2f6f1;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
}

.record figcaption {
    margin-top: 18px;
    max-width: none;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---------- 三个请求 ---------- */

.calls {
    background: var(--ink);
    color: var(--on-dark);
}

.calls-head {
    max-width: 680px;
}

.calls h2 {
    margin: 0;
    max-width: 17em;
    text-wrap: balance;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.chain {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 48px);
    margin: clamp(44px, 5vw, 76px) 0 0;
    padding: 0;
    list-style: none;
}

.chain-name {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.chain li.is-human .chain-name {
    color: var(--jade-light);
}

.chain-path {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--jade-light);
    word-break: break-all;
}

.chain-note {
    margin: 14px 0 0;
    max-width: 24em;
    font-size: 15px;
    line-height: 1.62;
    color: var(--on-dark-muted);
}

.chain-return {
    margin: 16px 0 0;
    font-size: 13px;
    color: rgba(233, 236, 230, 0.68);
}

.chain-return code {
    color: var(--on-dark);
}

.calls-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px 48px;
    margin: clamp(44px, 5vw, 76px) 0 0;
}

.calls-note {
    margin: 0;
    max-width: 36em;
    font-size: 15px;
    line-height: 1.68;
    color: var(--on-dark-muted);
}

.result-json {
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--on-dark);
}

.result-json strong {
    font-weight: 500;
    color: var(--jade-light);
}

/* ---------- 留下与不留 ---------- */

.keep {
    padding-block: var(--section);
}

.keep-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: end;
}

.keep h2 {
    margin: 0;
    text-wrap: balance;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.keep-head p {
    margin: 0;
    max-width: 32em;
    font-size: 16px;
    line-height: 1.68;
    color: var(--muted);
}

.record-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 22px;
    margin: clamp(40px, 4.6vw, 68px) 0 0;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.rec-dot {
    color: #9aa39a;
}

.keep-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 48px);
    margin: clamp(26px, 3vw, 40px) 0 0;
}

.keep-notes dt {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.keep-notes dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.keep-label {
    margin: 0 0 26px;
    font-size: 13px;
    color: var(--muted);
}

.keep-no {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px clamp(28px, 3.4vw, 56px);
    margin-top: clamp(34px, 4vw, 56px);
    padding: clamp(24px, 2.6vw, 34px) clamp(24px, 3vw, 40px);
    background: var(--ink);
    color: var(--on-dark);
}

.keep-no .keep-label {
    margin: 4px 0 0;
    color: var(--on-dark-muted);
}

.keep-no ul {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px clamp(20px, 2.4vw, 44px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.keep-no li {
    padding-bottom: 2px;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 58%;
    background-size: 100% 1px;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(233, 236, 230, 0.74);
}

.keep-no li:nth-child(2) {
    --d: 140ms;
}

.keep-no li:nth-child(3) {
    --d: 280ms;
}

.keep-no li:nth-child(4) {
    --d: 420ms;
}

.keep-no li + li {
    margin-top: 14px;
}

.keep-no-note {
    grid-column: 2;
    margin: 0;
    max-width: 46em;
    font-size: 13px;
    line-height: 1.6;
    color: var(--on-dark-muted);
}

/* ---------- 冻结与结算 ---------- */

.money {
    background: var(--panel);
}

.money-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.money h2 {
    margin: 0;
    text-wrap: balance;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.money .lede {
    margin: 20px 0 0;
    max-width: 34em;
    font-size: 16px;
    line-height: 1.68;
    color: var(--muted);
}

.ledger {
    width: 100%;
    margin-top: clamp(30px, 3.2vw, 44px);
    border-collapse: collapse;
    font-size: 15px;
}

.ledger-cap {
    padding-bottom: 10px;
    font-size: 13px;
    color: var(--muted);
    text-align: left;
}

.ledger th:first-child,
.ledger td:first-child {
    width: 76px;
}

.ledger .num {
    width: 104px;
}

.ledger th {
    padding: 0 0 9px;
    border-bottom: 1px solid rgba(18, 25, 23, 0.18);
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    text-align: left;
}

.ledger td {
    padding: 13px 0;
    border-bottom: 1px solid rgba(18, 25, 23, 0.1);
    font-variant-numeric: tabular-nums;
}

.ledger tr:last-child td {
    border-bottom: 0;
}

.ledger .num {
    text-align: right;
}

.ledger .tnum {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.money-calc {
    align-self: start;
    padding: clamp(26px, 3vw, 40px);
    background: var(--jade);
    color: var(--on-dark);
}

.money-calc h2 {
    font-size: 20px;
    letter-spacing: -0.01em;
}

.calc {
    margin-top: 26px;
}

.calc output {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.calc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.calc label {
    font-size: 15px;
    color: rgba(233, 236, 230, 0.86);
}

.calc input {
    width: 104px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: rgba(233, 236, 230, 0.16);
    color: var(--on-dark);
    font: inherit;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.calc input:focus {
    outline: 2px solid var(--on-dark);
    outline-offset: 2px;
}

.calc-unit {
    font-size: 15px;
    color: rgba(233, 236, 230, 0.86);
}

.calc-note {
    margin: 26px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(233, 236, 230, 0.86);
}

/* ---------- 后台片段 ---------- */

.backstage {
    padding-block: var(--section);
}

.backstage-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: end;
}

.backstage h2 {
    margin: 0;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.backstage-head p {
    margin: 0;
    max-width: 30em;
    font-size: 16px;
    line-height: 1.68;
    color: var(--muted);
}

.backstage-pair {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(36px, 4vw, 56px);
    align-items: stretch;
}

.backstage-pair .ui {
    margin: 0;
    max-width: 100%;
    height: 100%;
    padding: 22px 24px;
    background: var(--panel);
}

.backstage-pair .ui-cap {
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- 结尾 ---------- */

.close {
    padding-block: clamp(56px, 6.4vw, 96px);
    background: var(--ink);
    color: var(--on-dark);
}

.close-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px 56px;
}

.close-copy p {
    margin: 20px 0 0;
    max-width: 34em;
    font-size: 16px;
    line-height: 1.68;
    color: var(--on-dark-muted);
}

.close h2 {
    margin: 0;
    max-width: 16em;
    text-wrap: balance;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.close-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: none;
}

.btn-paper {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 26px;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    transition: background 0.18s ease;
}

.btn-paper:hover {
    background: #ffffff;
}

/* ---------- 页脚 ---------- */

.home-foot {
    width: min(calc(100% - var(--page) * 2), var(--measure));
    margin-inline: auto;
    padding: clamp(40px, 4.4vw, 64px) 0 44px;
}

.foot-brand {
    margin: 0 0 30px;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--text);
}

.foot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 40px;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 15px;
}

.foot-links a {
    color: var(--muted);
    transition: color 0.18s ease;
}

.foot-links a:hover {
    color: var(--text);
}

.foot-note {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
    /* 滚动入场：只做位移，脚本不跑、被快速滚过，内容也还是看得见的 */
    .js [data-reveal] {
        transform: translateY(22px);
        transition: transform 0.66s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: var(--d, 0ms);
    }

    .js [data-reveal].is-in {
        transform: none;
    }

    /* 不保留的东西，一条条划掉 */
    .js .keep-no li {
        background-size: 0 1px;
        transition: background-size 0.42s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: var(--d, 0ms);
    }

    .js .keep-no.is-in li {
        background-size: 100% 1px;
    }

    /* 流水逐行落下 */
    .js .ledger tbody tr {
        transform: translateY(10px);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: var(--d, 0ms);
    }

    .js .ledger.is-in tbody tr {
        transform: none;
    }

    /* 首屏：标题出遮罩 → 说明与价格 → 卡片 → 印章落下 */
    .js .hero-line {
        animation: line-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
    }

    .js .hero-lede {
        animation: hero-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
    }

    .js .hero-foot {
        animation: hero-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
    }

    .js .record-stage {
        animation:
            stage-in 420ms ease-out 200ms both,
            stage-jolt 320ms ease-out 1060ms both;
    }

    .js .id-card {
        animation: card-in 820ms cubic-bezier(0.16, 1, 0.3, 1) 380ms both;
    }

    .js .seal {
        animation: seal-stamp 620ms cubic-bezier(0.22, 1.5, 0.36, 1) 1040ms both;
    }
}

@keyframes line-rise {
    from {
        transform: translateY(112%);
    }

    to {
        transform: none;
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes stage-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes stage-jolt {
    0%,
    100% {
        transform: none;
    }

    40% {
        transform: translateY(2px);
    }
}

@keyframes seal-stamp {
    from {
        opacity: 0;
        transform: scale(1.5) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .record {
        max-width: none;
    }

    .calls-head,
    .keep-head,
    .backstage-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .chain {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .keep-grid,
    .money-grid,
    .backstage-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .money-calc {
        max-width: 520px;
    }
}

@media (max-width: 780px) {
    .site-head {
        height: 72px;
        gap: 16px;
    }

    .site-nav a {
        white-space: nowrap;
    }

    .site-nav {
        gap: 20px;
        font-size: 15px;
    }

    .brand-name em {
        display: none;
    }

    .head-cta {
        font-size: 15px;
    }

    .hero {
        padding-block: 24px 64px;
    }

    .hero h1 {
        font-size: clamp(58px, 15vw, 100px);
    }

    .hero-lede {
        margin-top: 22px;
        font-size: 18px;
    }

    .hero-foot {
        gap: 28px;
    }

    .hero-actions {
        gap: 22px;
    }

    .id-card {
        padding: 20px 20px 20px;
    }

    .id-card-fields {
        gap: 14px 16px;
    }

    .id-card-kind {
        padding-right: 70px;
    }

    .seal {
        width: 62px;
        height: 62px;
        font-size: 16px;
        right: 16px;
        top: 14px;
    }

    .calls-foot {
        justify-content: flex-start;
    }

    .keep-notes {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .record-line {
        gap: 2px 14px;
    }

    .keep-no {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .keep-no ul {
        flex-direction: column;
        gap: 8px;
    }

    .keep-no-note {
        grid-column: 1;
    }

    .close-grid {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .close-actions {
        flex-wrap: wrap;
        gap: 20px;
    }

    .btn-paper {
        flex: 1;
        justify-content: center;
    }

    .foot-brand {
        font-size: 26px;
    }
}

@media (max-width: 620px) {
    .ledger {
        font-size: 13px;
    }

    .ledger th:first-child,
    .ledger td:first-child {
        width: 50px;
    }

    .ledger .num {
        width: 82px;
        white-space: nowrap;
    }

    .site-nav a:nth-child(2),
    .site-nav a:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        width: 100%;
        gap: 20px;
    }

    .btn-ink {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .id-card-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .id-card-fields .f-id,
    .id-card-fields .f-ref {
        grid-column: auto;
    }

    .id-card-name {
        font-size: 20px;
    }

    .calc output {
        font-size: 30px;
    }
}
