/* ==========================================================================
   零一宇宙 · 方案 A 仪表盘变体（vercel-a1 / a2 / a3）
   --------------------------------------------------------------------------
   依赖 css/vercel-live.css 的令牌与通用组件（.tabs/.tab/.panels/.panel/.spec/.points…）
   1. 共用：顶栏底部信息条、复制按钮、提示
   2. A1：极窄侧边栏 + 右侧内容区（数据移到右侧）
   3. A2：垂直数据流 + 极客装饰（刻度尺 / 二进制 / 代码残影）
   4. A3：左侧只留品牌，右侧文档式列表
   ========================================================================== */

/* ================== 共用 ================== */
.page-a1,
.page-a2,
.page-a3 {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.dash-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 32px;
    padding: 0 var(--pad);
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: var(--faint);
    background: var(--paper);
}

.dash-foot a:hover {
    color: var(--ink);
}

/* 侧栏 / 面板里的复制按钮 */
.cbtn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cbtn:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--panel);
}

.cbtn .cbtn-hint {
    color: var(--faint);
    font-size: 9px;
    letter-spacing: 0.1em;
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 46px;
    /* 高于联系/微信弹窗与遮罩，复制反馈才不会被盖住 */
    z-index: 95;
    padding: 7px 12px;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translate(-50%, 6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ================== A1：极窄侧边栏 ================== */
.page-a1 .dash1 {
    flex: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 0;
}

.a1-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 26px 22px 22px;
    border-right: 1px solid var(--line);
}

.a1-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.a1-name {
    margin-top: 26px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.a1-slogan {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--muted);
}

.a1-label {
    margin-top: 30px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--faint);
}

.a1-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.a1-side-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.a1-clock {
    font-family: var(--mono);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.a1-date {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    color: var(--faint);
}

.a1-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
}

.a1-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 24px clamp(22px, 3.4vw, 48px) 16px;
}

.a1-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.a1-head .eyebrow {
    font-family: var(--mono);
}

.a1-head .a1-section {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: var(--faint);
}

.a1-main .metrics {
    margin: 18px 0 20px;
}

.a1-main .panels {
    margin-top: 0;
}

/* ================== A2：垂直数据流 ================== */
.page-a2 .split2 {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    min-height: 0;
}

.a2-left {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(26px, 4vw, 52px) var(--pad) 22px 62px;
    overflow: hidden;
}

.a2-left .headline {
    margin-top: 14px;
    font-size: clamp(50px, 6.6vw, 98px);
}

.a2-left .lede {
    margin-top: 18px;
    max-width: 32ch;
    font-size: 13.5px;
}

/* 极客观测层：刻度尺 + 二进制列 + 代码残影，全部低透明度 */
.a2-geek {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.a2-ruler {
    position: absolute;
    left: 16px;
    top: 7%;
    bottom: 7%;
    width: 30px;
    border-right: 1px solid var(--line-hard);
    background-image: repeating-linear-gradient(
        180deg,
        var(--line-hard) 0 1px,
        transparent 1px 20px
    );
    background-size: 8px 100%;
    background-repeat: no-repeat;
    background-position: right top;
}

.a2-ruler::after {
    content: "Y / 01";
    position: absolute;
    top: 0;
    left: -2px;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: var(--faint);
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
}

.a2-binary {
    position: absolute;
    left: 44px;
    top: 10%;
    width: 1em;
    max-height: 76%;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 9.5px;
    line-height: 1.55;
    letter-spacing: 0.12em;
    word-break: break-all;
    color: rgba(10, 10, 10, 0.11);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.a2-code {
    position: absolute;
    right: 20px;
    top: 12%;
    max-width: 260px;
    font-family: var(--mono);
    font-size: 9.5px;
    line-height: 1.9;
    color: rgba(10, 10, 10, 0.1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
    mask-image: linear-gradient(90deg, transparent, #000 35%);
}

/* 垂直数据列表 */
.a2-stats {
    width: min(380px, 100%);
    margin-top: clamp(22px, 3vw, 34px);
    border-top: 1px solid var(--line);
}

.a2-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.a2-stat span {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: var(--faint);
}

.a2-stat b {
    font-family: var(--mono);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.a2-stat b em {
    font-style: normal;
    font-size: 0.5em;
    color: var(--faint);
    margin-left: 2px;
}

/* 放大时钟 */
.a2-clock-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.a2-clock {
    font-family: var(--mono);
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.a2-clock-meta {
    text-align: right;
    font-family: var(--mono);
    font-size: 9.5px;
    line-height: 1.8;
    color: var(--faint);
}

/* 复用 A 的右侧面板，但给更紧凑的内边距 */
.page-a2 .split2 .split-right {
    min-height: 0;
}

/* ================== A3：品牌左 / 文档右 ================== */
.page-a3 .dash3 {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.26fr);
    min-height: 0;
}

/* 贯穿左右底部的横线 */
.page-a3 .dash3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--line);
}

.a3-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(28px, 4vw, 52px) clamp(22px, 3vw, 38px) 26px;
    border-right: 1px solid var(--line);
}

.a3-left .headline {
    margin-top: 14px;
    font-size: clamp(52px, 6.2vw, 100px);
}

.a3-left .lede {
    margin-top: 20px;
    max-width: 26ch;
    font-size: 13.5px;
}

.a3-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.a3-clock {
    font-family: var(--mono);
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.a3-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.a3-contact-row .cbtn {
    width: auto;
    padding: 6px 9px;
}

.a3-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
}

.a3-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 46px) 18px;
}

.a3-main .metrics {
    margin: 16px 0 18px;
}

.a3-main .panels {
    margin-top: 0;
}

/* 文档式列表：行距更宽、分割线更明确 */
.a3-main .points li {
    padding: 14px 0;
}

.a3-main .spec-row {
    padding: 12px 0;
}

.a3-main .work-row {
    padding: 20px 0;
}

.a3-main .panel-note {
    margin-top: 18px;
}

/* ================== 响应式 ================== */
@media (max-width: 1100px) {
    .page-a1 .dash1 {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .a1-side {
        padding: 22px 18px 18px;
    }

    .a1-clock {
        font-size: 26px;
    }
}

@media (max-width: 960px) {
    .page-a1,
    .page-a2,
    .page-a3 {
        height: auto;
        overflow: visible;
    }

    .page-a1 .dash1,
    .page-a2 .split2,
    .page-a3 .dash3 {
        grid-template-columns: 1fr;
    }

    .a1-side {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 22px;
    }

    .a1-side-foot {
        margin-top: 22px;
    }

    .a1-contact {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .a1-contact .cbtn {
        flex: 1 1 140px;
    }

    .a1-main {
        min-height: 520px;
    }

    .a2-left {
        padding-left: 62px;
        padding-bottom: 26px;
    }

    .a2-geek {
        opacity: 0.7;
    }

    .a2-clock-wrap {
        margin-top: 26px;
    }

    .a2-left + .split-right,
    .a3-main {
        border-left: none;
        border-top: 1px solid var(--line);
        min-height: 480px;
    }

    .a3-left {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 24px;
    }

    .a3-left .headline {
        font-size: clamp(48px, 13vw, 84px);
    }

    .a3-foot {
        margin-top: 24px;
    }

    .a3-contact-row {
        margin-top: 2px;
    }

    .a1-main .panels,
    .a2 .panels,
    .a3-main .panels {
        min-height: 340px;
    }

    .page-a2 .panel,
    .page-a3 .panel {
        position: relative;
        inset: auto;
        display: none;
    }

    .page-a2 .panel.is-active,
    .page-a3 .panel.is-active {
        display: block;
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .a2-left {
        padding-left: 46px;
    }

    .a2-ruler {
        left: 10px;
    }

    .a2-binary {
        left: 34px;
    }

    .a2-code {
        display: none;
    }

    .a1-head {
        flex-direction: column;
        gap: 4px;
    }
}

/* 矮屏：压缩字号与留白，保证一屏内不裁切 */
@media (max-height: 720px) and (min-width: 961px) {
    .a1-side {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .a1-name {
        margin-top: 18px;
        font-size: 26px;
    }

    .a1-label {
        margin-top: 18px;
    }

    .a1-clock {
        font-size: 25px;
    }

    .a2-left .headline {
        font-size: clamp(38px, 4.8vw, 70px);
    }

    .a2-left .lede {
        margin-top: 12px;
    }

    .a2-stats {
        margin-top: 16px;
    }

    .a2-stat {
        padding: 8px 0;
    }

    .a2-clock {
        font-size: 34px;
    }

    .a3-left .headline {
        font-size: clamp(42px, 4.8vw, 74px);
    }

    .a3-left .lede {
        margin-top: 12px;
    }

    .a3-clock {
        font-size: 18px;
    }
}

/* ================== A4：融合终极版 ================== */
.page-a4 {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.page-a4 .split4 {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.25fr);
    min-height: 0;
}

.a4-left {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(24px, 3.4vw, 42px) clamp(22px, 3vw, 38px) 22px 46px;
    overflow: hidden;
}

/* 分割线：顶端渐隐，向下变实，像系统界面的分区线 */
.a4-left::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--line) 20%, var(--line) 100%);
    pointer-events: none;
}

/* 极客层：刻度尺 + 星环 + 呼吸光晕 + 代码残影 */
.a4-geek {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.a4-ruler {
    position: absolute;
    left: 22px;
    top: 8%;
    bottom: 8%;
    width: 24px;
    border-left: 1px solid var(--line);
    background-image: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 18px);
    background-size: 7px 100%;
    background-repeat: no-repeat;
    background-position: left top;
    opacity: 0.75;
}

.a4-ruler::after {
    content: "Y / 01";
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: var(--faint);
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
}

.a4-orbit {
    position: absolute;
    top: 44%;
    left: 50%;
    width: min(420px, 78%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(10, 10, 10, 0.045);
    border-radius: 50%;
    opacity: 0.65;
    animation: a4spin 72s linear infinite;
}

.a4-orbit::before {
    content: "";
    position: absolute;
    inset: 15%;
    border: 1px dashed rgba(10, 10, 10, 0.03);
    border-radius: 50%;
}

.a4-orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.35;
}

@keyframes a4spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 雷达扫描：沿环缓慢扫过的一小段冷光 */
.a4-radar {
    position: absolute;
    top: 44%;
    left: 50%;
    width: min(420px, 78%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 316deg,
        rgba(0, 47, 167, 0.04) 338deg,
        rgba(0, 47, 167, 0.09) 357deg,
        transparent 360deg
    );
    -webkit-mask-image: radial-gradient(closest-side, transparent 91%, #000 92%, #000 100%);
    mask-image: radial-gradient(closest-side, transparent 91%, #000 92%, #000 100%);
    opacity: 0.7;
    animation: a4radar 26s linear infinite;
}

@keyframes a4radar {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.a4-glow {
    position: absolute;
    top: 46%;
    left: 46%;
    width: min(460px, 86%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(0, 47, 167, 0.04), transparent 72%);
    animation: a4breathe 9s ease-in-out infinite alternate;
}

@keyframes a4breathe {
    from { opacity: 0.45; transform: translate(-50%, -50%) scale(0.94); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.a4-code {
    position: absolute;
    right: 14px;
    top: 36%;
    max-width: 210px;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.9;
    text-align: right;
    color: rgba(10, 10, 10, 0.08);
    -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent 85%);
    mask-image: linear-gradient(270deg, #000 20%, transparent 85%);
}

.a4-left > :not(.a4-geek) {
    position: relative;
    z-index: 1;
}

.a4-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.a4-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.a4-index {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: var(--faint);
}

.a4-left .eyebrow {
    margin-top: clamp(20px, 3vw, 30px);
}

.a4-left .headline {
    margin-top: 12px;
    font-size: clamp(50px, 5.8vw, 94px);
}

.a4-lede {
    margin-top: 14px;
    max-width: 30ch;
    font-size: 13px;
    line-height: 1.75;
    color: var(--muted);
}

.a4-stats {
    margin-top: clamp(18px, 2.6vw, 28px);
    border-top: 1px solid var(--line);
}

.a4-stat {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

/* 每个数据行一个主刻度，精确对齐左侧尺子的竖线 */
.a4-stat::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--line-hard);
}

.a4-stat::after {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 3px;
    height: 3px;
    background: var(--accent);
    opacity: 0.4;
    transform: translateY(-50%);
}

.a4-stat span {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: var(--faint);
}

.a4-stat b {
    font-family: var(--mono);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.a4-stat b em {
    font-style: normal;
    font-size: 0.4em;
    color: var(--muted);
    opacity: 0.65;
    margin-left: 2px;
}

.a4-foot {
    margin-top: auto;
    padding-top: 16px;
}

.a4-clock-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.a4-clock {
    font-family: var(--mono);
    font-size: clamp(38px, 4.8vw, 64px);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.055em;
    font-variant-numeric: tabular-nums;
}

.a4-clock-meta {
    text-align: right;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.8;
    color: var(--faint);
}

.a4-contact-row {
    display: flex;
    margin-top: 14px;
}

/* 联系方式入口：只留一行文字，具体信息全部在弹窗里 */
.a4-contact-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 2px;
    border: none;
    border-bottom: 1px solid var(--line-hard);
    background: none;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.a4-contact-trigger:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 关于面板里的联系入口 */
.a4-contact-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.a4-contact-cta p {
    max-width: 48ch;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.a4-contact-cta .a4-cta-link {
    font-size: 11.5px;
}

/* ================== A4 联系弹窗 ================== */
.a4-veil {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(10, 10, 10, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.a4-veil.is-open {
    opacity: 1;
    pointer-events: auto;
}

.a4-sheet {
    position: fixed;
    z-index: 80;
    top: 50%;
    left: 50%;
    width: min(460px, calc(100% - 32px));
    max-height: 88vh;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: auto;
    transform: translate(-50%, calc(-50% + 10px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.a4-sheet.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.a4-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.a4-sheet-eyebrow {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--faint);
}

.a4-sheet-close {
    padding: 4px 0;
    border: none;
    background: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted);
    cursor: pointer;
}

.a4-sheet-close:hover {
    color: var(--ink);
}

.a4-sheet h2 {
    margin-top: 20px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.a4-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.a4-qr img {
    width: 120px;
    height: 120px;
    border: 1px solid var(--line);
    object-fit: cover;
}

.a4-qr-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--faint);
}

.a4-qr-hint {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

/* 弹窗里的操作全部是按钮，号码与链接不以明文出现 */
.a4-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: none;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.a4-action:hover {
    border-color: var(--ink);
    background: var(--panel);
    color: var(--ink);
}

.a4-qr .a4-action {
    margin-top: 10px;
}

/* 分组小标题 + 右侧分界线 */
.a4-group {
    margin-top: 20px;
}

.a4-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.a4-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* 按钮网格：一行两个，新增一个 .a4-btn 会自动换行 */
.a4-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.a4-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.a4-btn:hover {
    border-color: var(--ink);
    background: var(--panel);
    color: var(--ink);
}

.a4-btn-hint {
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--faint);
}

/* 单列占满型按钮：加 is-wide 即可 */
.a4-btn.is-wide {
    grid-column: 1 / -1;
}

.a4-sheet-note {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--faint);
}

/* 微信二级弹窗：压在联系弹窗之上 */
#a4-wechat-veil {
    z-index: 85;
    background: rgba(10, 10, 10, 0.24);
}

#a4-wechat {
    z-index: 90;
}

.a4-back {
    margin-top: 18px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--muted);
    cursor: pointer;
}

.a4-back:hover {
    color: var(--ink);
}

.a4-main {
    --a4-pad-x: clamp(22px, 4vw, 54px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(20px, 2.8vw, 34px) var(--a4-pad-x) 16px;
}

.a4-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.a4-head .a4-section {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--faint);
}

.a4-main .tabs {
    position: relative;
    gap: clamp(16px, 2.4vw, 30px);
    /* 横线铺满右侧整列，与左侧竖线在拐角处交叉成坐标轴 */
    margin-left: calc(var(--a4-pad-x) * -1);
    margin-right: calc(var(--a4-pad-x) * -1);
    padding-left: var(--a4-pad-x);
    padding-right: var(--a4-pad-x);
}

/* A4 的单条滑动指示线：跟随 hover / 焦点，离开时回到当前 Tab */
.a4-main .tab::after {
    display: none;
}

.a4-main .tab-ink {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--ink);
    pointer-events: none;
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1), width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.a4-main .tab {
    font-size: 13.5px;
}

.a4-main .panels {
    margin-top: clamp(20px, 2.6vw, 28px);
}

/* 右侧留白：内容不铺满整列；切换时 0.2s 淡入 + 下移回弹 */
.a4-main .panel {
    padding-right: clamp(0px, 5vw, 76px);
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.a4-main .points li {
    padding: 15px 0;
}

.a4-main .spec-row {
    padding: 13px 0;
}

.a4-main .work-row {
    padding: 20px 0;
}

.a4-main .panel-note {
    margin-top: 20px;
}

/* ================== A4 字号放大 ================== */
.page-a4 .brand-name {
    font-size: 12px;
}

.page-a4 .top-status {
    font-size: 11px;
}

.page-a4 .eyebrow {
    font-size: 11px;
}

.page-a4 .a4-index {
    font-size: 9.5px;
}

.page-a4 .a4-lede {
    font-size: 14px;
}

.page-a4 .a4-stat span {
    font-size: 10.5px;
}

.page-a4 .a4-clock-meta {
    font-size: 10px;
}

.page-a4 .a4-contact-trigger {
    font-size: 11.5px;
}

.page-a4 .a4-contact-cta p {
    font-size: 13px;
}

.page-a4 .a4-contact-cta .a4-cta-link {
    font-size: 12px;
}

.page-a4 .a4-section {
    font-size: 10px;
}

.page-a4 .tab {
    font-size: 14.5px;
}

.page-a4 .panel .lede {
    font-size: 16px;
}

.page-a4 .points h3 {
    font-size: 14.5px;
}

.page-a4 .points p {
    font-size: 13px;
}

.page-a4 .point-idx {
    font-size: 10.5px;
}

.page-a4 .spec-key {
    font-size: 11.5px;
}

.page-a4 .spec-val span {
    padding: 2px 8px;
    font-size: 12px;
}

.page-a4 .work-idx {
    font-size: 10.5px;
}

.page-a4 .work-title h3 {
    font-size: 17px;
}

.page-a4 .work-desc {
    font-size: 13.5px;
}

.page-a4 .work-state {
    font-size: 10px;
}

.page-a4 .work-arrow {
    font-size: 18px;
}

.page-a4 .panel-note {
    font-size: 11px;
}

.page-a4 .dash-foot {
    font-size: 10.5px;
}

.page-a4 .a4-sheet-eyebrow {
    font-size: 10px;
}

.page-a4 .a4-sheet h2 {
    font-size: 32px;
}

.page-a4 .a4-sheet-close {
    font-size: 11px;
}

.page-a4 .a4-group-title {
    font-size: 11px;
}

.page-a4 .a4-btn {
    font-size: 14px;
}

.page-a4 .a4-btn-hint {
    font-size: 9.5px;
}

.page-a4 .a4-sheet-note {
    font-size: 10.5px;
}

.page-a4 .a4-qr-label {
    font-size: 10px;
}

.page-a4 .a4-qr-hint {
    font-size: 12.5px;
}

.page-a4 .a4-action {
    font-size: 11.5px;
}

.page-a4 .a4-back {
    font-size: 11px;
}

@media (max-width: 960px) {
    .page-a4 {
        height: auto;
        overflow: visible;
    }

    .page-a4 .split4 {
        grid-template-columns: 1fr;
    }

    .a4-left {
        padding-left: 46px;
        padding-bottom: 24px;
    }

    .a4-left::after {
        display: none;
    }

    .a4-left {
        border-bottom: 1px solid var(--line);
    }

    .a4-orbit,
    .a4-radar,
    .a4-glow,
    .a4-code {
        display: none;
    }

    .a4-left .headline {
        font-size: clamp(46px, 12vw, 84px);
    }

    .a4-foot {
        margin-top: 24px;
    }

    .a4-main {
        min-height: 520px;
    }

    .a4-main .panel {
        position: relative;
        inset: auto;
        display: none;
        padding-right: 0;
    }

    .a4-main .panel.is-active {
        display: block;
        min-height: 320px;
    }
}

@media (max-height: 720px) and (min-width: 961px) {
    .a4-left .headline {
        font-size: clamp(38px, 4.4vw, 68px);
    }

    .a4-lede {
        display: none;
    }

    .a4-stat {
        padding: 8px 0;
    }

    .a4-stat b {
        font-size: 30px;
    }

    .a4-clock {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ================== 首页顶栏主题切换 ================== */
.a4-theme {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.a4-theme:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.a4-theme svg {
    width: 14px;
    height: 14px;
}

.a4-theme .icon-sun {
    display: none;
}

html[data-theme="dark"] .a4-theme .icon-sun {
    display: block;
}

html[data-theme="dark"] .a4-theme .icon-moon {
    display: none;
}

/* ================== 首页深色主题 ================== */
html[data-theme="dark"] {
    --paper: #0b0b0c;
    --panel: #141416;
    --ink: #f4f4f5;
    --ink-soft: #d6d6d9;
    --muted: #9a9a9f;
    --faint: #64646c;
    --line: #232327;
    --line-hard: #34343a;
    --accent: #6b8cff;
}

html[data-theme="dark"] .a4-orbit {
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .a4-orbit::before {
    border-color: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .a4-glow {
    background: radial-gradient(closest-side, rgba(107, 140, 255, 0.08), transparent 72%);
}

html[data-theme="dark"] .a4-radar {
    background: conic-gradient(
        from 0deg,
        transparent 0deg 316deg,
        rgba(107, 140, 255, 0.05) 338deg,
        rgba(107, 140, 255, 0.12) 357deg,
        transparent 360deg
    );
}

html[data-theme="dark"] .a4-code {
    color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .a4-veil {
    background: rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] #a4-wechat-veil {
    background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .copy-toast {
    background: #f4f4f5;
    color: #0a0a0a;
}

@media (max-width: 480px) {
    .dash-foot {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }
}
