/* ==========================================================================
   mtcms 开发者开放平台（app/dev，服务端渲染）

   设计语言：极简工具型（Linear 式）
     · 白底为主，不铺灰底；层次靠 1px 细线 + 字重 + 灰度，而不是阴影
     · 圆角克制（6/8/10），阴影只出现在「浮起」的导航项与弹层
     · 品牌绿退到「强调」位置：选中态、关键数据、状态点；主按钮用近墨黑
     · 字号阶梯 10.5 / 11.5 / 12 / 13 / 13.5 / 20 / 24，正文 13.5

   两套骨架，刻意不共享布局：
     · 公开页（门面 / 登录 / 匿名错误页）→ 顶栏 + 1120px 容器（.site-* / .lp-*）
     · 登录后（工作台 14 页）→ 顶栏 52 + 侧栏 248 + 上下文栏 60（.pt-*）
   混用会让「改门户把门面页改歪」变成常态。

   改主色只改 --c-brand（文字/图标）与 --c-brand-fill（填充）。
   ========================================================================== */

:root {
    /* 品牌：v2 原型把品牌绿放回**主色**位置（主按钮、选中态、正向数字）。
       与 market 端（public/store-static/app.css 的墨黑主按钮）已刻意不同，
       对齐计划见 docs/dev-portal-ui.md §9 */
    --c-brand: #07c160;
    --c-brand-fill: #07c160;
    --c-brand-hover: #06ad56;
    --c-brand-active: #059649;
    --c-brand-bg: #e8f8ef;
    --c-brand-border: #b5e8cf;

    /* 墨黑只留给「必须压住绿」的地方：深色代码卡、深色页脚、表格里的空值 */
    --c-ink: #1d2129;
    --c-ink-hover: #2c3138;

    /* 状态 */
    --c-success: #00a870;
    --c-success-bg: #e8f8f2;
    --c-success-border: #b8e7d5;
    --c-warning: #ed7b2f;
    --c-warning-bg: #fff3e8;
    --c-warning-border: #fad4b4;
    --c-error: #d54941;
    --c-error-bg: #ffedec;
    --c-error-border: #f7c5c2;
    /* 价格色与错误色分开：同色会让「卖 ¥99」看起来像报错 */
    --c-price: #e34d59;

    /* 文字（四级灰阶，11.5~14px 都用它，不另起色） */
    --c-text-1: #1d2129;
    --c-text-2: #4e5969;
    --c-text-3: #86909c;
    --c-text-4: #c9cdd4;

    /* 面：页面是灰的，卡片是白的。层次靠这两档 + 1px 线，
       不再靠阴影 —— 灰底白卡本身就已经分开了 */
    --c-bg-page: #f2f3f5;
    --c-bg-card: #ffffff;
    --c-bg-side: #ffffff;
    --c-bg-hover: #f7f8fa;
    --c-bg-soft: #f7f8fa;
    --c-border: #e5e6eb;
    --c-border-strong: #dfe1e7;
    --c-border-weak: #f0f1f4;

    /* 形状 */
    --radius-sm: 2px;
    --radius: 6px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-3: 0 4px 20px rgba(0, 0, 0, .12);
    --shadow-pop: 0 1px 2px rgba(16, 18, 24, .06), 0 0 0 1px var(--c-border);

    /* 字号：原型是 11.5 / 12 / 12.5 / 13 / 13.5 / 14.5 / 17 / 22 / 25 */
    --fs-2xs: 11.5px;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14px;
    --fs-lg: 14.5px;
    --fs-xl: 17px;
    --fs-2xl: 22px;
    --fs-3xl: 36px;

    /* 骨架尺寸：文档页的 sticky 侧栏直接引用 --pt-top + --pt-ctx，改名会静默错位 */
    --pt-top: 44px;
    --pt-ctx: 56px;
    --pt-side: 216px;
    --pt-inner: 1320px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--c-bg-page);
    color: var(--c-text-1);
    font: var(--fs-base)/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.011em; }
input, button, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--c-brand-bg); }

/* 公开页容器 1060：门面是「读」的，一行超过 80 个汉字就开始丢行；
   工作台的 1320 在下面的 .pt-inner */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* ---------- 按钮 ----------
   `.btn` 本身就是主按钮（绿填充）。模板里有 100+ 处这么用，把主按钮
   改成「白底描边」会让所有页面的主操作同时失去强调 —— 所以这里保持
   「绿 = 主、ghost = 次」的映射，与 v2 原型的 .btn.primary 同义 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--c-brand);
    border-radius: var(--radius);
    background: var(--c-brand);
    color: #fff;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
}

.btn:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); color: #fff; }
.btn:active { background: var(--c-brand-active); border-color: var(--c-brand-active); }
.btn.primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.btn.primary:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); }
.btn.sm { height: 28px; padding: 0 11px; font-size: var(--fs-xs); }
.btn.lg { height: 38px; padding: 0 20px; font-size: var(--fs-base); }
/* 次要操作：原型里 .btn 的默认形态。hover 只染边框与字色，
   不换底色 —— 换底色会让一屏里的次要按钮互相抢 */
.btn.ghost { background: #fff; color: var(--c-text-2); border-color: var(--c-border); }
.btn.ghost:hover { background: #fff; border-color: var(--c-brand-border); color: var(--c-brand-active); }
.btn.danger { background: #fff; color: var(--c-error); border-color: var(--c-error-border); }
.btn.danger:hover { background: var(--c-error-bg); border-color: var(--c-error); color: var(--c-error); }
.btn.block { width: 100%; height: 34px; }

/* ---------- 提示条 ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 13px;
    margin-bottom: 14px;
    border-radius: var(--radius-lg);
    font-size: var(--fs-sm);
    line-height: 1.6;
}
.alert svg { flex: 0 0 auto; margin-top: 2px; }
.alert.err { background: var(--c-error-bg); border: 1px solid var(--c-error-border); color: #b83a33; }
.alert.ok { background: var(--c-success-bg); border: 1px solid var(--c-success-border); color: #04855a; }
.alert.warn { background: var(--c-warning-bg); border: 1px solid var(--c-warning-border); color: #a9551a; }
.alert.info { background: var(--c-brand-bg); border: 1px solid var(--c-brand-border); color: var(--c-brand-active); }
.alert b, .alert strong { font-weight: 600; }

/* ---------- 空态 ---------- */
.empty {
    padding: 44px 24px;
    text-align: center;
    color: var(--c-text-3);
    background: #fff;
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--radius-lg);
}
.empty.tall { padding: 96px 24px; }
.empty b { display: block; color: var(--c-text-1); font-size: var(--fs-lg); margin-bottom: 8px; }
.empty p { margin: 6px 0; font-size: var(--fs-sm); }

/* ---------- 表单：公开页（.field） ---------- */
.field { display: block; margin-bottom: 12px; }
.form-actions { margin-top: 14px; }
/* 子选择器（`>`）不是洁癖：开通表单里单选项的说明文字也是 span，
   用 `.field span` 会把它变成「块级 + 下边距 + 次要色」，排版直接散掉 */
.field > span { display: block; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--c-text-2); }

.field > input {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    background: #fff;
    font-size: var(--fs-base);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.field > input:focus { border-color: var(--c-brand-fill); box-shadow: 0 0 0 3px var(--c-brand-bg); }

/* ---------- 表单：门户内（.fld） ---------- */
.fld { display: block; margin-bottom: 15px; }
.fld > label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-2);
}
.fld > label .req { display: inline; margin: 0; color: var(--c-error); }
.fld > input, .fld > textarea, .fld > select {
    display: block;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-base);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.fld > textarea { height: auto; padding: 8px 10px; line-height: 1.65; resize: vertical; }
.fld > input:focus, .fld > textarea:focus, .fld > select:focus {
    border-color: var(--c-brand-fill);
    box-shadow: 0 0 0 3px var(--c-brand-bg);
}
.fld .hint { margin-top: 5px; font-size: var(--fs-2xs); color: var(--c-text-3); line-height: 1.6; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.form-foot .dim { font-size: var(--fs-2xs); color: var(--c-text-3); }

/* 文件选择框：默认控件在各浏览器里长短不一，统一成一行虚线框 */
.fld > input[type="file"] {
    height: auto;
    padding: 8px 10px;
    border-style: dashed;
    background: var(--c-bg-soft);
    font-size: var(--fs-xs);
    color: var(--c-text-2);
}
.fld > input[type="file"]::file-selector-button {
    height: 26px;
    margin-right: 10px;
    padding: 0 10px;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-text-1);
    font-size: var(--fs-xs);
    cursor: pointer;
}

/* ---------- 单选卡片（开发者类型） ---------- */
.choices { display: flex; flex-direction: column; gap: 8px; }

.choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.choice:hover { border-color: var(--c-brand-border); background: var(--c-brand-bg); }
.choice input { width: 15px; height: 15px; margin: 2px 0 0; flex: none; accent-color: var(--c-brand-fill); }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice-body b { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-1); }
.choice-body em { font-style: normal; font-size: var(--fs-xs); color: var(--c-text-3); line-height: 1.5; }

/* ==========================================================================
   公开页骨架（门面 / 登录 / 匿名错误页）
   ========================================================================== */

.site-top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}
.site-top-inner { display: flex; align-items: center; gap: 14px; height: 44px; }

.site-brand { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.2px; }
.site-brand-mark {
    width: 24px; height: 24px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-brand); color: #fff;
    font-size: var(--fs-sm); font-weight: 700;
}
.site-brand em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--c-text-3); margin-left: 7px; }
.site-brand-div { width: 1px; height: 16px; background: var(--c-border); flex: 0 0 auto; }

/* 公开页顶部导航（原型 .tnav）：只在门面出现，登录页不画 ——
   一条「工作台 / 应用管理」出现在登录页上，会让没登录的人以为点进去就能用 */
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.site-nav a {
    height: 28px; padding: 0 10px;
    display: inline-flex; align-items: center; gap: 4px;
    border-radius: var(--radius);
    font-size: var(--fs-sm); color: var(--c-text-2);
}
.site-nav a:hover, .site-nav a.on { background: var(--c-bg-hover); color: var(--c-text-1); }
.site-nav a.on { font-weight: 500; }

.site-top-r { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-sep { width: 1px; height: 16px; background: var(--c-border); margin: 0 5px; flex: 0 0 auto; }
.ghost-link { height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius); font-size: var(--fs-sm); color: var(--c-text-2); }
.ghost-link:hover { background: var(--c-bg-hover); color: var(--c-text-1); }
.inline-form { margin: 0; display: inline-flex; }

.main { padding-bottom: 0; }
/* 匿名错误页没有自己的上边距，直接贴在顶栏下面会像「界面塌了」 */
.main > .empty { margin: 56px 24px; }

/* 深色页脚：与白底内容区一刀切开，页面到底了没有一眼可辨的终点 */
.footer { background: #1f2429; color: #9aa3ab; font-size: var(--fs-sm); padding: 30px 0 22px; }
.foot-top { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-brand .fl { display: flex; align-items: center; gap: 8px; color: #fff; font-size: var(--fs-lg); font-weight: 600; margin-bottom: 8px; }
.foot-brand .fl .site-brand-mark { background: var(--c-brand); }
.foot-brand p { font-size: 12.5px; color: #8a939c; }
.foot-links { display: flex; gap: 48px; margin-left: auto; }
.foot-links .col { display: flex; flex-direction: column; gap: 8px; }
.foot-links h4 { font-size: 12.5px; color: #fff; font-weight: 600; margin: 0 0 2px; }
.foot-links a { font-size: 12.5px; color: #9aa3ab; }
.foot-links a:hover { color: var(--c-brand); }
.foot-bot { margin-top: 24px; padding-top: 14px; border-top: 1px solid #2c3238; text-align: center; font-size: var(--fs-xs); color: #6f787f; }

/* ---------- 门面页（落地页）：对应 docs/design/dev-portal-v2.html 屏① ----------
   公开页与工作台共用令牌，但**不共用骨架**：门面是「读」的（一行别超过
   80 个汉字），工作台是「扫」的（表格要宽）。所以这里用 1060 容器 + 白/灰
   交替的区块，而不是 1320 的三层骨架 */

.hero {
    background: radial-gradient(820px 380px at 88% -22%, rgba(7, 193, 96, .1) 0%, rgba(7, 193, 96, 0) 62%),
                linear-gradient(180deg, #fbfcfd 0%, var(--c-bg-page) 100%);
    padding: 52px 0 46px;
    border-bottom: 1px solid var(--c-border);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 14px;
    padding: 3px 11px;
    border: 1px solid var(--c-brand-border);
    border-radius: 999px;
    background: var(--c-brand-bg);
    font-size: var(--fs-xs); color: var(--c-brand-active);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: var(--fs-3xl);
    line-height: 1.28;
    letter-spacing: -1.2px;
}
.hero .lead {
    max-width: 500px;
    margin: 0 0 22px;
    font-size: 15px; line-height: 1.8;
    color: var(--c-text-2);
}
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12.5px; color: var(--c-text-3); }
.hero-note svg { color: var(--c-success); flex: 0 0 auto; }

/* 代码卡：门面右侧唯一一块深色。开发者看到 manifest.json 就知道
   「这东西我认得」，比任何一句「简单易用」都有效 */
.code-card { background: #20242b; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.code-head {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cdot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.code-name { margin-left: 8px; font-size: var(--fs-2xs); color: rgba(255, 255, 255, .45); font-family: ui-monospace, Menlo, monospace; }
.code {
    margin: 0; padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; line-height: 1.75;
    color: rgba(255, 255, 255, .82);
    overflow-x: auto;
}
.c-cmt { color: rgba(255, 255, 255, .32); }
.c-key { color: #79c0ff; }
.c-str { color: #a5d6a7; }
.c-num { color: #ffab70; }
.code-foot {
    display: flex; gap: 14px;
    padding: 9px 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: var(--fs-2xs); color: rgba(255, 255, 255, .45);
}
.code-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* 规模带：数字必须来自服务端口径（DevPortalService::stats），
   页面自己数一遍 = 造第二套口径 */
.stats-band { background: #fff; border-bottom: 1px solid var(--c-border); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats .sb-item { padding: 20px 16px; text-align: center; border-right: 1px solid var(--c-border-weak); }
.stats .sb-item:last-child { border-right: none; }
.stats b { display: block; font-size: 26px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 1px; font-size: var(--fs-sm); color: var(--c-text-2); }
.stats i { display: block; margin-top: 3px; font-style: normal; font-size: var(--fs-2xs); color: var(--c-text-3); }

.block { padding: 44px 0; }
.block.alt { background: #fff; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.block-hd { margin-bottom: 20px; }
.block-hd.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.block-hd h2 { font-size: var(--fs-2xl); letter-spacing: -.4px; }
.block-hd p { margin-top: 5px; font-size: var(--fs-sm); color: var(--c-text-3); }
.more-link { font-size: var(--fs-sm); color: var(--c-brand-active); white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* 上架四步：开发者第一屏真正想确认的是「要走几步、卡在哪」 */
.steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}
.step { padding: 18px 18px 20px; border-right: 1px solid var(--c-border-weak); }
.step:last-child { border-right: none; }
.step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-bottom: 9px;
    border-radius: 50%;
    background: var(--c-brand-bg); color: var(--c-brand-active);
    font-size: var(--fs-2xs); font-weight: 600;
}
.step h3 { margin: 0 0 4px; font-size: var(--fs-base); }
.step p { font-size: 12.5px; line-height: 1.65; color: var(--c-text-3); min-height: 40px; }
.step .eta {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    font-size: var(--fs-2xs); color: var(--c-text-2);
}

/* 分成计算器：把「能不能赚钱」从承诺变成算式。比例由服务端下发（rules.dev_ratio），
   页面里的 70% 只是首帧文案，JS 一进来就用真实值覆盖 */
.calc {
    display: grid; grid-template-columns: minmax(0, 1fr) 260px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}
.calc-l { padding: 20px 22px; }
.calc-r {
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px 22px;
    background: linear-gradient(160deg, var(--c-brand-bg), #f7fdfa);
    border-left: 1px solid var(--c-border);
}
.calc-row { margin-bottom: 16px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-lbl { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--c-text-2); }
.calc-lbl b { font-size: var(--fs-base); color: var(--c-text-1); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--c-border); outline: none; }
.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--c-brand);
    box-shadow: var(--shadow-2); cursor: pointer;
}
.range::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--c-brand);
    box-shadow: var(--shadow-2); cursor: pointer;
}
.calc-note { margin-top: 12px; font-size: var(--fs-2xs); color: var(--c-text-3); line-height: 1.6; }
.calc-out-k { font-size: 12.5px; color: var(--c-text-2); }
.calc-out-v { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--c-brand-active); font-variant-numeric: tabular-nums; line-height: 1.2; }
.calc-out-s { margin-top: 6px; font-size: var(--fs-2xs); color: var(--c-text-3); line-height: 1.6; }

/* 文档卡 */
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide {
    display: block; padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.guide:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.guide .no { float: right; font-size: 20px; font-weight: 600; color: var(--c-text-4); letter-spacing: -1px; }
.guide h3 { margin: 0 0 5px; font-size: var(--fs-lg); }
.guide p { font-size: 12.5px; line-height: 1.65; color: var(--c-text-3); min-height: 40px; }
.guide .more { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 12.5px; color: var(--c-brand-active); }

/* 最新上架 */
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pkg {
    display: flex; flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: border-color .18s, box-shadow .18s;
}
.pkg:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-2); }
.pkg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.pkg h3 { margin: 0 0 4px; font-size: var(--fs-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg .desc {
    font-size: var(--fs-xs); line-height: 1.6; color: var(--c-text-3);
    height: 38px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pkg-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 10px; padding-top: 9px;
    border-top: 1px solid var(--c-border-weak);
    font-size: var(--fs-2xs);
}
.pkg-foot .author { color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-foot .dl { display: inline-flex; align-items: center; gap: 3px; color: var(--c-text-3); flex: 0 0 auto; }
.price { font-size: 12.5px; font-weight: 500; color: var(--c-price); white-space: nowrap; }
.price.free { color: var(--c-success); }

/* ---------- 登录 / 开通 ---------- */
.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 页脚改成深色带（padding 30+22 + 三行内容）后高度变了，
       这里按顶栏 44 + 页脚约 160 留白，别再用旧的 64+72 */
    min-height: calc(100vh - var(--pt-top) - 160px);
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 412px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}
.auth-card h1 { font-size: 19px; letter-spacing: -.018em; }
.auth-card .muted { margin: 8px 0 22px; font-size: var(--fs-sm); color: var(--c-text-3); line-height: 1.65; }
.auth-card .muted.sm { margin: 18px 0 0; font-size: var(--fs-xs); line-height: 1.7; }
.auth-card .btn.block { height: 36px; font-size: var(--fs-sm); }

/* ==========================================================================
   门户骨架（登录后 14 页）
   ========================================================================== */

.pt-body { background: var(--c-bg-page); }

/* ---------- ① 顶栏 ----------
   44px 纯白（不再做半透明模糊：毛玻璃在灰底上会显得「脏」，而顶栏下面是
   白卡，透出的颜色本来就没变化） */
.pt-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--pt-top);
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.pt-logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pt-logo-mark {
    width: 24px; height: 24px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-brand); color: #fff;
    font-size: var(--fs-sm); font-weight: 700;
    letter-spacing: -.02em;
}
.pt-logo-text { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }
.pt-logo-text em { margin-left: 7px; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--c-text-3); }
.pt-logo-div { width: 1px; height: 16px; background: var(--c-border); flex: 0 0 auto; }

.pt-search { position: relative; flex: 1 1 auto; max-width: 320px; }
.pt-search-ico {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    display: inline-flex; color: var(--c-text-3); line-height: 0; pointer-events: none;
}
.pt-search input {
    width: 100%;
    height: 30px;
    padding: 0 10px 0 30px;
    background: var(--c-bg-soft);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    outline: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.pt-search input::placeholder { color: var(--c-text-4); }
.pt-search input:focus {
    background: #fff;
    border-color: var(--c-brand-border);
    box-shadow: 0 0 0 3px var(--c-brand-bg);
}
.pt-search input::-webkit-search-cancel-button { cursor: pointer; }

.pt-top-r { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pt-link {
    display: inline-flex; align-items: center; gap: 4px;
    height: 28px; padding: 0 9px;
    border-radius: var(--radius);
    font-size: var(--fs-sm); color: var(--c-text-2);
    white-space: nowrap;
    transition: background .14s, color .14s;
}
.pt-link:hover { background: var(--c-bg-hover); color: var(--c-text-1); }
.pt-link .oi { font-size: var(--fs-xs); color: var(--c-text-4); }

.pt-bell {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: var(--radius);
    color: var(--c-text-2);
    transition: background .14s, color .14s;
}
.pt-bell:hover { background: var(--c-bg-hover); color: var(--c-text-1); }
.pt-bell-cnt {
    position: absolute; top: 1px; right: 0;
    min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 8px;
    background: var(--c-error); color: #fff;
    border: 1.5px solid #fff;
    font-size: 10px; font-weight: 600; line-height: 12px; text-align: center;
    font-variant-numeric: tabular-nums;
}

.pt-user {
    display: flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 8px 0 3px;
    margin-left: 2px;
    border-radius: 16px;
    transition: background .14s;
}
.pt-user:hover { background: var(--c-bg-hover); }
.pt-user-name {
    font-size: var(--fs-sm); font-weight: 500;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pt-ava {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: hsl(var(--h, 200), 62%, 93%);
    color: hsl(var(--h, 200), 45%, 34%);
    font-size: var(--fs-2xs); font-weight: 700;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(16, 18, 24, .05);
}
.pt-ava.lg { width: 32px; height: 32px; font-size: var(--fs-sm); }

.pt-inline { margin: 0; display: inline-flex; }

/* ---------- ② 侧栏 ---------- */
.pt-shell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--pt-top)); }

.pt-side {
    position: sticky;
    top: var(--pt-top);
    flex: 0 0 var(--pt-side);
    width: var(--pt-side);
    height: calc(100vh - var(--pt-top));
    display: flex;
    flex-direction: column;
    background: var(--c-bg-side);
    border-right: 1px solid var(--c-border);
    overflow-y: auto;
}

/* 身份卡：认证状态决定能不能收钱，不该藏在二级页 */
.pt-id { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--c-border-weak); }
.pt-id-main { min-width: 0; }
.pt-id-name { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.005em; }
.pt-id-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-vf {
    display: inline-flex; align-items: center; justify-content: center;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--c-brand-fill); color: #fff;
    font-size: 8px; line-height: 1; font-weight: 700;
    flex: 0 0 auto;
}
.pt-id-sub {
    margin-top: 1px;
    font-size: var(--fs-2xs); color: var(--c-text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pt-nav { flex: 1 1 auto; padding: 4px 10px 8px; }
.pt-nav-g {
    padding: 14px 8px 5px;
    font-size: 10.5px; font-weight: 600;
    color: var(--c-text-4);
    letter-spacing: .07em;
    text-transform: uppercase;
}
.pt-nav-i {
    display: flex; align-items: center; gap: 9px;
    height: 33px; padding: 0 9px;
    margin-bottom: 1px;
    border-radius: var(--radius);
    font-size: var(--fs-base); color: var(--c-text-2);
    transition: background .12s, color .12s, box-shadow .12s;
}
.pt-nav-i svg { flex: 0 0 auto; color: var(--c-text-3); transition: color .12s; }
.pt-nav-i:hover { background: var(--c-bg-hover); color: var(--c-text-1); }
.pt-nav-i:hover svg { color: var(--c-text-2); }
/* 选中态用极淡绿底 + 深绿字：白卡页面上，绿底比「白底 + 描边」更容易
   一眼定位「我在哪」。描边方案在灰底时代是对的，现在页面已经是灰的 */
.pt-nav-i.on {
    background: var(--c-brand-bg);
    color: var(--c-brand-active);
    font-weight: 500;
}
.pt-nav-i.on svg { color: var(--c-brand); }
.pt-nav-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-cnt {
    flex: 0 0 auto;
    min-width: 17px; height: 17px; padding: 0 5px;
    border-radius: 9px;
    background: var(--c-error); color: #fff;
    font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
    font-variant-numeric: tabular-nums;
}
.pt-nav-i.on .pt-cnt { background: var(--c-brand); }

/* 底部只剩一行状态文案（「已上架 N 个应用」）。这里曾经有一个常驻的
   「上传新版本」绿填充按钮，已移除 —— 侧栏是全局导航，一个每页都一样的
   主行动按钮会被当成「当前页的操作」，而真正的上传入口在应用列表与详情页 */
.pt-cta { padding: 10px 12px 12px; border-top: 1px solid var(--c-border-weak); }
.pt-cta-tip { font-size: var(--fs-2xs); color: var(--c-text-3); text-align: center; line-height: 1.5; }

/* ---------- ③ 上下文栏 + ④ 内容容器 ---------- */
/* min-height 与 `.pt-shell` 同源：`.pt-shell` 是 align-items:flex-start（为了让侧栏
   的 sticky 生效），子项高度由内容决定 —— 内容短的一页，页脚会浮在中间、
   下面留一段灰。给它一个「至少一屏」的高度，配合 `.pt-content{flex:1}` 把页脚压到底 */
.pt-work {
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(100vh - var(--pt-top));
    display: flex;
    flex-direction: column;
}

.pt-ctx {
    position: sticky;
    top: var(--pt-top);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--pt-ctx);
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}
.pt-ctx-l { min-width: 0; }
.pt-crumbs {
    display: flex; align-items: center; gap: 5px;
    font-size: var(--fs-2xs); color: var(--c-text-3); line-height: 1.3;
}
.pt-crumbs i { font-style: normal; color: var(--c-text-4); }
.pt-crumbs b { font-weight: 400; color: var(--c-text-2); }
.pt-h1 {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pt-ctx-r { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }

/* ④ 内容容器：1320 居中。下面这层是灰的（body 底色），卡片才是白的 */
.pt-content { flex: 1 1 auto; padding: 18px 24px 36px; }
.pt-inner { max-width: var(--pt-inner); margin: 0 auto; }

/* ⑤ 页脚：只放版权一行。`.pt-content` 是 flex:1 1 auto，所以内容短时页脚
   也会贴在工作区底部，而不是浮在半空。文案来自 Setting::copyright()。 */
.pt-foot {
    padding: 14px 24px 18px;
    border-top: 1px solid var(--c-border-weak);
    background: #fff;
    text-align: center;
    font-size: var(--fs-2xs);
    color: var(--c-text-3);
}
/* 纯信息行（标签在左、值在右）在 1240px 里会拉成两公里长，
   值全挤到最右，读起来要横跨整屏。设置 / 认证这类页面套这一层 */
.narrow { max-width: 820px; }

/* ==========================================================================
   门户内容组件
   ========================================================================== */

/* ---------- 面板 ---------- */
.panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.panel + .panel { margin-top: 12px; }
.panel-h {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-border-weak);
}
.panel-h h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.008em; }
.panel-h .sub { font-size: var(--fs-xs); color: var(--c-text-3); }
.panel-h .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 面板右上角的行内操作（修改资料 / 全部 →）：灰字会被读成「禁用」，
   所以统一走品牌色。真正不可用的操作应该根本不渲染，而不是变灰 */
.panel-h .right a { color: var(--c-brand-active); font-size: var(--fs-xs); font-weight: 500; }
.panel-h .right a:hover { color: var(--c-brand-hover); }
.panel-b { padding: 16px 18px; }
.panel-b.flush { padding: 0; }

/* ---------- 表格 ----------
   不再给首列写死 42%：应用列表的首列是「图标 + 名称」，42% 会把
   「类型 / 状态 / 版本」挤成窄条；而长文本首列本来就该自动换行。
   靠 td:not(:first-child) 的 nowrap 防止两字列被压成上下两行 */
.tbl { width: 100%; border-collapse: collapse; }
.tbl td:not(:first-child) { white-space: nowrap; }
.tbl th {
    padding: 0 12px;
    height: 36px;
    text-align: left;
    white-space: nowrap;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-text-3);
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-border);
}
.tbl td {
    padding: 0 12px;
    /* 56 而不是 44：应用列表的首列是「标题 + 应用标识」两行，44 会把两行
       压成 15px 行距，中文字重一叠就糊成一块；56 才容得下 2×18 的行高 */
    height: 56px;
    vertical-align: middle;
    border-bottom: 1px solid var(--c-border-weak);
    font-size: var(--fs-sm);
}
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th.num, .tbl th:last-child { text-align: right; padding-right: 18px; }
.tbl td.num { padding-right: 12px; }
.tbl td:last-child { padding-right: 18px; text-align: right; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs); }
.tbl .dim { color: var(--c-text-3); font-size: var(--fs-2xs); }
.tbl .strong { font-weight: 600; }
.tbl .cell-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
/* 入账金额：绿色 + 加号由模板写。只染颜色不加粗 —— 一列加粗数字会压过应用名 */
.income { color: var(--c-success); font-weight: 500; }

/* 状态：色点 + 中性底标签。满色彩块会让真正的异常不显眼 */
.st {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--fs-2xs); color: var(--c-text-2); white-space: nowrap;
}
.st::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-text-4);
    flex: 0 0 auto;
}
.st-ok::before { background: var(--c-success); }
.st-wait::before { background: var(--c-warning); }
.st-bad::before { background: var(--c-error); }
.st-off::before { background: var(--c-text-4); }
.st-ok { color: var(--c-success); }
.st-bad { color: var(--c-error); }
/* 两个状态上下排（表格里「上架状态 + 审核状态」是两件事，挤一行会读成一条）。
   `.st` 本身是 inline-flex，父级不做 column 就会并排 —— 这里必须显式指定方向 */
.st-block { display: flex; }
.streak { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
    color: var(--c-text-2);
    font-size: var(--fs-2xs);
    white-space: nowrap;
}
.tag.brand { background: var(--c-brand-bg); color: var(--c-brand); }
.tag.warn { background: var(--c-warning-bg); color: var(--c-warning); }
.tag.err { background: var(--c-error-bg); color: var(--c-error); }

/* ---------- 数字卡 ----------
   数字 25px（原来的 26px 与卡片高不成比），右下角一条 84×34 的 spark
   做趋势暗示 —— 它只是装饰，真实数值在「近 12 天趋势」里 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi {
    position: relative;
    overflow: hidden;
    padding: 14px 16px 12px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: border-color .15s;
}
.kpi:hover { border-color: var(--c-border-strong); }
.kpi-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-text-3); }
.kpi-k svg { color: var(--c-text-4); flex: 0 0 auto; }
.kpi-v {
    margin: 3px 0 1px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.7px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.kpi-v small { margin-right: 1px; font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-3); letter-spacing: 0; }
.kpi-v.money { color: var(--c-success); }
.kpi-s { display: flex; align-items: center; gap: 4px; font-size: var(--fs-2xs); color: var(--c-text-3); }
.kpi-s b { font-weight: 600; color: var(--c-text-2); }
.kpi-s a { color: var(--c-brand-active); font-weight: 500; }
.spark { position: absolute; right: 0; bottom: 0; width: 84px; height: 34px; opacity: .5; pointer-events: none; }
.trend-up { color: var(--c-success); font-weight: 500; }
.trend-down { color: var(--c-error); font-weight: 500; }

/* ---------- 待办清单 ----------
   比五宫格省一半高度，且每条能写清「做什么」。图标块 + 右侧数字/金额 */
.todo-list { display: flex; flex-direction: column; }
.todo-i {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--c-border-weak);
    transition: background .12s;
}
.todo-i:last-child { border-bottom: none; }
.todo-i:hover { background: #fafbfc; }
.todo-ico {
    width: 28px; height: 28px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: var(--c-bg-soft); color: var(--c-text-3);
}
.todo-ico.warn { background: var(--c-warning-bg); color: var(--c-warning); }
.todo-ico.err { background: var(--c-error-bg); color: var(--c-error); }
.todo-ico.ok { background: var(--c-success-bg); color: var(--c-success); }
.todo-main { flex: 1 1 auto; min-width: 0; }
.todo-t { font-size: var(--fs-sm); color: var(--c-text-1); }
.todo-s { font-size: var(--fs-2xs); color: var(--c-text-3); }
.todo-n { flex: 0 0 auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.todo-n.warn { color: var(--c-warning); }
.todo-n.err { color: var(--c-error); }
.todo-n.ok { color: var(--c-success); font-size: var(--fs-xs); font-weight: 500; }

/* ---------- 两栏 ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols + .cols, .cols + .panel, .panel + .cols { margin-top: 12px; }
/* 页面级两栏（工作台首屏）：间距比 .cols 更紧，和卡片自身的 12px 对齐 */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* 左主右辅的详情布局（应用详情 / 认证）：右栏 320，窄屏折成一列 */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.cert-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }

/* ---------- 纯 CSS 柱状图 ----------
   不引图表库：这里只需要「12 根柱子 + 一条基线」，
   一个 30KB 的运行时换 12 个 div 不划算 */
.chart { display: flex; align-items: stretch; gap: 6px; height: 132px; padding: 6px 2px 0; }
.chart .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.chart .bar {
    width: 100%; max-width: 22px; min-height: 4px;
    border: 1px solid var(--c-brand-border);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    background: var(--c-brand-bg);
    transition: background .15s, border-color .15s;
}
.chart .col:hover .bar { background: var(--c-brand); border-color: var(--c-brand); }
.chart .bar.hi { background: var(--c-brand); border-color: var(--c-brand); }
.chart-x { display: flex; gap: 6px; padding: 6px 2px 0; border-top: 1px solid var(--c-border-weak); }
.chart-x span { flex: 1 1 0; text-align: center; font-size: 10.5px; color: var(--c-text-4); white-space: nowrap; overflow: hidden; }

/* ---------- 分段控件 ---------- */
/* ---------- 分段切换 ----------
   灰底胶囊 + 选中白块。**不加外边框**：白卡里再套一圈 1px 线，
   外框与内块之间那 2px 缝会显成一道脏边，整组看着像坏了。
   选中态用「白底 + 一点投影」而不是染色：一屏里可能有多组分段，
   都给主色就成了第二个主按钮 */
.segmented {
    display: inline-flex; gap: 2px; padding: 3px;
    background: var(--c-bg-soft);
    border: 0;
    border-radius: 9px;
}
.segmented button, .segmented a {
    height: 25px; padding: 0 12px;
    display: inline-flex; align-items: center; gap: 4px;
    border-radius: 7px;
    font-size: var(--fs-sm); color: var(--c-text-3); white-space: nowrap;
    transition: background .12s, color .12s;
}
.segmented button:hover, .segmented a:hover { color: var(--c-text-1); }
.segmented .on {
    background: #fff; color: var(--c-text-1); font-weight: 600;
    box-shadow: 0 1px 2px rgba(29, 33, 41, .08);
}

/* ---------- 工具条 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .grow { flex: 1 1 auto; }
.mini-srch {
    display: flex; align-items: center; gap: 6px;
    width: 200px; height: 30px; padding: 0 9px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.mini-srch input { width: 100%; border: none; outline: none; background: none; font-size: var(--fs-sm); }
.mini-srch svg { flex: 0 0 auto; color: var(--c-text-3); }

/* ---------- 余额条（收益页） ---------- */
.balance { display: flex; align-items: center; gap: 28px; padding: 18px 18px 16px; flex-wrap: wrap; }
.bal-main { min-width: 150px; }
.bal-k { font-size: 12.5px; color: var(--c-text-3); }
.bal-v { font-size: 32px; font-weight: 700; letter-spacing: -1.2px; color: var(--c-success); font-variant-numeric: tabular-nums; line-height: 1.25; }
.bal-v small { margin-right: 1px; font-size: var(--fs-lg); font-weight: 600; }
.bal-s { font-size: var(--fs-2xs); color: var(--c-text-3); }
.bal-mid { display: flex; gap: 28px; flex-wrap: wrap; }
.bal-item .k { font-size: var(--fs-xs); color: var(--c-text-3); }
.bal-item .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bal-act { margin-left: auto; text-align: right; }

/* ---------- 上传区（应用详情） ---------- */
.upload {
    display: block;
    padding: 24px;
    text-align: center;
    border: 1px dashed #d5d8dd;
    border-radius: var(--radius-lg);
    background: #fbfcfd;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.upload:hover { border-color: var(--c-brand); background: var(--c-brand-bg); }
.upload-ico { color: var(--c-text-3); margin-bottom: 6px; }
.upload-t { font-size: var(--fs-sm); color: var(--c-text-1); }
.upload-d { margin-top: 3px; font-size: var(--fs-2xs); color: var(--c-text-3); }

/* ---------- 密钥框 / 危险区 ---------- */
.secret-box {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 9px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-family: ui-monospace, Menlo, monospace;
    font-size: var(--fs-xs); color: var(--c-text-2);
}
.secret-box .eye { margin-left: auto; color: var(--c-text-3); font-size: var(--fs-2xs); }
.danger-zone { border: 1px solid var(--c-error-border); background: #fffafa; border-radius: var(--radius-lg); }
.danger-zone .panel-h { border-bottom-color: var(--c-error-border); }
.danger-zone .panel-h h2 { color: var(--c-error); }

/* ---------- 应用行（列表 / 仪表盘共用） ---------- */
.app-cell { display: flex; align-items: center; gap: 11px; min-width: 186px; }
.app-n { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.app-s { font-size: var(--fs-2xs); color: var(--c-text-3); font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }

/* ---------- 认证页 ---------- */
.cert-hero {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 18px;
    border-bottom: 1px solid var(--c-border-weak);
}
.cert-badge {
    width: 42px; height: 42px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: var(--c-success-bg); color: var(--c-success);
}
.cert-badge svg { width: 22px; height: 22px; }
.cert-t { font-size: var(--fs-lg); font-weight: 600; }
.cert-s { font-size: 12.5px; color: var(--c-text-3); }
.help-list { display: flex; flex-direction: column; gap: 12px; }
.help-i { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.65; color: var(--c-text-2); }
.help-i .n {
    width: 18px; height: 18px; flex: 0 0 auto;
    margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--c-bg-soft); color: var(--c-text-3);
    font-size: 11px;
}

/* ---------- 空态（门户） ---------- */
.blank { padding: 52px 24px; text-align: center; }
.blank b { display: block; font-size: var(--fs-base); font-weight: 600; margin-bottom: 6px; }
.blank p { margin: 0 0 16px; font-size: var(--fs-sm); color: var(--c-text-3); line-height: 1.65; }

/* ---------- 应用图标 / 头部 ---------- */
.app-ico {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: hsl(var(--h, 200), 62%, 95%);
    color: hsl(var(--h, 200), 45%, 36%);
    font-size: var(--fs-sm); font-weight: 700;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(16, 18, 24, .045);
}
.app-ico.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 17px; }

.app-head { display: flex; align-items: center; gap: 12px; }
.app-head-main { min-width: 0; }
.app-head-t { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.014em; }
.app-head-s { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3px; font-size: var(--fs-2xs); color: var(--c-text-3); }

/* ---------- 复制框（凭证 / 推广链接） ---------- */
.copy-box { display: flex; gap: 6px; }
.copy-box input {
    flex: 1 1 auto; min-width: 0;
    height: 32px; padding: 0 10px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--fs-xs);
    color: var(--c-text-2);
}
.copy-box .btn { flex: 0 0 auto; }

/* ---------- 键值行（账号速览 / 详情摘要） ---------- */
.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--c-border-weak);
    font-size: var(--fs-sm);
}
.kv:last-child { border-bottom: none; padding-bottom: 0; }
.kv > span { color: var(--c-text-3); font-size: var(--fs-xs); }
.kv > b { font-weight: 500; text-align: right; }
.kv > b a { color: var(--c-brand); }

/* ---------- 筛选 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    height: 27px; padding: 0 11px;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: 14px;
    font-size: var(--fs-xs); color: var(--c-text-2);
    transition: border-color .14s, color .14s, background .14s;
}
.chip:hover { border-color: var(--c-brand-border); color: var(--c-brand); }
.chip.on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 500; }
.chip .n { color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.chip.on .n { color: rgba(255, 255, 255, .72); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 4px; padding: 12px 18px; border-top: 1px solid var(--c-border-weak); }
.pager .sp { flex: 1 1 auto; }
.pager .pg {
    min-width: 28px; height: 28px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--fs-xs); color: var(--c-text-2);
    font-variant-numeric: tabular-nums;
    transition: background .14s, border-color .14s, color .14s;
}
.pager .pg:hover { background: var(--c-bg-hover); color: var(--c-text-1); }
.pager .pg.on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 600; }
.pager .pg.gap { border: none; color: var(--c-text-4); }
.pager .total { font-size: var(--fs-2xs); color: var(--c-text-3); }

/* ---------- 上下文栏里的小控件 ---------- */
.mini-select {
    height: 28px; padding: 0 8px;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-sm); color: var(--c-text-2);
    outline: none; cursor: pointer;
}
.mini-select:focus { border-color: var(--c-brand-border); }

.mini-input {
    width: 150px; height: 28px; padding: 0 9px;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    outline: none;
}
.mini-input:focus { border-color: var(--c-brand-border); box-shadow: 0 0 0 3px var(--c-brand-bg); }

/* 提现表单里的默认账户提示 */
.payee-note {
    margin: 0 0 15px;
    padding: 9px 12px;
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    font-size: var(--fs-xs);
    color: var(--c-text-2);
    line-height: 1.65;
}
.payee-note b { font-weight: 600; color: var(--c-text-1); }
.payee-note .dim { color: var(--c-text-3); }

/* ---------- 评价 ---------- */
.cmt { padding: 16px 18px; border-bottom: 1px solid var(--c-border-weak); }
.cmt:last-child { border-bottom: none; }
.cmt-head { display: flex; align-items: flex-start; gap: 10px; }
.cmt-meta { min-width: 0; }
.cmt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.cmt-sub { display: flex; gap: 12px; margin-top: 1px; font-size: var(--fs-2xs); color: var(--c-text-3); }
.cmt-sub a { color: var(--c-brand); }
.stars { color: #e8a33d; font-size: var(--fs-xs); letter-spacing: 1px; font-weight: 400; }
.cmt-body {
    margin: 9px 0 0;
    padding-left: 42px;
    font-size: var(--fs-sm);
    color: var(--c-text-1);
    line-height: 1.75;
    white-space: pre-line;
    word-break: break-word;
}
.cmt-reply {
    margin: 10px 0 0 42px;
    padding: 9px 12px;
    background: var(--c-bg-soft);
    border-left: 2px solid var(--c-brand);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.cmt-reply-h { display: flex; gap: 8px; font-size: var(--fs-2xs); color: var(--c-text-3); margin-bottom: 3px; }
.cmt-reply-b { font-size: var(--fs-sm); color: var(--c-text-2); white-space: pre-line; word-break: break-word; }
.cmt-edit { margin: 8px 0 0 42px; }
.cmt-edit summary {
    font-size: var(--fs-2xs); color: var(--c-text-3); cursor: pointer; list-style: none;
    display: inline-block; padding: 2px 0;
}
.cmt-edit summary:hover { color: var(--c-brand); }
.cmt-edit summary::-webkit-details-marker { display: none; }
.cmt-edit summary::before { content: '✎ '; }
.cmt-edit[open] summary { margin-bottom: 6px; }
.cmt-edit textarea, .cmt-form textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    line-height: 1.65;
    resize: vertical;
    outline: none;
}
.cmt-edit textarea:focus, .cmt-form textarea:focus {
    border-color: var(--c-brand-fill);
    box-shadow: 0 0 0 3px var(--c-brand-bg);
}
.cmt-form { margin: 10px 0 0 42px; }

/* ---------- 推广大厅 ---------- */
.hall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.hall-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: border-color .15s;
}
.hall-card:hover { border-color: var(--c-border-strong); }
.hall-head { display: flex; align-items: center; gap: 9px; }
.hall-head > div { min-width: 0; }
.hall-mid {
    font-size: var(--fs-xs);
    color: var(--c-text-3);
    line-height: 1.65;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hall-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 2px; }
.hall-money { font-size: var(--fs-2xs); color: var(--c-text-3); }
.hall-est { font-size: var(--fs-xs); color: var(--c-text-2); margin-top: 1px; }
.hall-est b { color: var(--c-success); font-weight: 600; }

/* ---------- 需求：详情与应征 ---------- */
.search-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }

.demand-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demand-budget { font-size: 21px; font-weight: 600; letter-spacing: -.022em; font-variant-numeric: tabular-nums; }
.demand-desc {
    margin: 12px 0 0;
    font-size: var(--fs-sm);
    line-height: 1.85;
    color: var(--c-text-1);
    white-space: pre-line;
    word-break: break-word;
}
.demand-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: var(--fs-2xs); color: var(--c-text-3); }
.demand-contact {
    margin-top: 12px;
    padding: 9px 12px;
    background: var(--c-brand-bg);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    color: var(--c-text-1);
}
.demand-contact .dim { color: var(--c-text-3); font-size: var(--fs-2xs); }

.apply-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-border-weak);
}
.apply-row:last-child { border-bottom: none; }
.apply-main { flex: 1 1 auto; min-width: 0; }
.apply-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: var(--fs-sm); }
.apply-quote { color: var(--c-success); font-weight: 600; font-variant-numeric: tabular-nums; }
.apply-msg { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-text-2); line-height: 1.7; white-space: pre-line; }

/* ---------- 文档：概览 ---------- */
.doc-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
}
.doc-hero b { display: block; font-size: var(--fs-base); font-weight: 600; }
.doc-hero p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--c-text-3); line-height: 1.65; }
.doc-hero a { color: var(--c-brand); }
.doc-hero-tip { font-size: var(--fs-xs); color: var(--c-text-3); }

/* 图标位：后台填的是最多 4 个字符的字符串（可能是符号也可能是 emoji），
   所以这里给它一个固定的方块容器 —— 裸符号在细字重的标题行里像乱码 */
.doc-sec-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 5px;
    background: var(--c-bg-soft);
    color: var(--c-text-3);
    font-size: 11px; line-height: 1;
}
.doc-list { padding: 3px 0; }
.doc-item { display: block; padding: 10px 18px; border-bottom: 1px solid var(--c-border-weak); }
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: #fafbfc; }
.doc-item-t { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-1); }
.doc-item:hover .doc-item-t { color: var(--c-brand); }
.doc-item-s {
    /* 摘要最多两行：三层目录铺下来，长摘要会把一屏塞满 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    font-size: var(--fs-2xs);
    color: var(--c-text-3);
    line-height: 1.65;
}
.doc-empty-sub { padding: 14px 18px; font-size: var(--fs-xs); color: var(--c-text-3); }

/* ---------- 文档：阅读 ---------- */
.doc-article-h { padding: 18px 22px 14px; border-bottom: 1px solid var(--c-border-weak); }
.doc-article-s { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--c-text-3); line-height: 1.7; }
.doc-article-m { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-2xs); color: var(--c-text-3); }
.doc-article .md-body { padding: 20px 22px; }

.doc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 22px 20px; }
.doc-pn .pn {
    display: block;
    padding: 10px 13px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: border-color .14s;
}
.doc-pn .pn:hover { border-color: var(--c-border-strong); }
.doc-pn .pn.next { text-align: right; }
.doc-pn .k { display: block; font-size: var(--fs-2xs); color: var(--c-text-3); }
.doc-pn .t { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--c-text-1); }
.doc-pn .pn:hover .t { color: var(--c-brand); }
/* 占位用 visibility 而不是 display:none：首篇/末篇时另一侧仍占着格子，
   上下篇的位置不会一篇文章一变 */
.doc-pn .placeholder { border: 1px dashed var(--c-border-weak); visibility: hidden; }

.doc-nav { position: sticky; top: calc(var(--pt-top) + var(--pt-ctx) + 16px); }
.doc-nav-b { padding: 6px 0 10px; max-height: calc(100vh - 220px); overflow-y: auto; }
.doc-navg {
    padding: 9px 16px 4px;
    padding-left: calc(16px + var(--d, 0) * 12px);
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--c-text-3);
}
.doc-navd {
    display: block;
    padding: 6px 16px;
    padding-left: calc(16px + var(--d, 0) * 12px);
    font-size: var(--fs-sm);
    color: var(--c-text-2);
    border-left: 2px solid transparent;
}
.doc-navd:hover { color: var(--c-text-1); background: #fafbfc; }
.doc-navd.on { color: var(--c-brand); background: var(--c-brand-bg); border-left-color: var(--c-brand); font-weight: 600; }

/* ---------- 消息通知 ---------- */
.nt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-border-weak);
}
.nt:last-child { border-bottom: none; }
/* 未读只给极淡的底色 + 一个圆点：整行加粗会让列表看起来像全部未读 */
.nt.unread { background: #fbfefc; }
.nt-dot { width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: transparent; flex: 0 0 auto; }
.nt.unread .nt-dot { background: var(--c-brand-fill); }
.nt-b { flex: 1 1 auto; min-width: 0; }
.nt-t { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: var(--fs-sm); }
.nt.unread .nt-t { font-weight: 600; }
.nt-c { margin-top: 3px; font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.7; }
.nt-m { margin-top: 4px; font-size: var(--fs-2xs); color: var(--c-text-3); }
.nt-a { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* ---------- Markdown 正文（门户内） ----------
   与 public/doc-static/markdown.css 是同一套排版规则的副本 —— 门户有自己的
   静态目录，跨应用引 `/doc-static/` 会让部署多一条依赖。改这里时那边也要改。 */
.md-body {
    --md-link: var(--c-brand);
    --md-soft: var(--c-bg-soft);
    --md-inline-bg: #f1f3f7;
    --md-inline-text: #b4490b;
    --md-code-bg: #16181d;
    --md-code-text: #d8dee9;

    font-size: 14px;
    line-height: 1.9;
    color: var(--c-text-1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.md-body > *:first-child { margin-top: 0; }
.md-body > *:last-child { margin-bottom: 0; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
    margin: 26px 0 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.014em;
    scroll-margin-top: 110px;
}
.md-body h1 { font-size: 21px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
.md-body h2 { font-size: 17px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border-weak); }
.md-body h3 { font-size: 15px; padding-left: 10px; border-left: 3px solid var(--c-brand-fill); }
.md-body h4 { font-size: 14px; color: var(--c-text-3); }
.md-body p { margin: 0 0 13px; }
.md-body strong { font-weight: 600; color: var(--c-text-1); }
.md-body em { font-style: normal; color: var(--c-text-2); }
.md-body ul, .md-body ol { margin: 0 0 13px; padding-left: 22px; }
.md-body li { margin-bottom: 6px; }
.md-body li > ul, .md-body li > ol { margin: 6px 0 0; }
.md-body li table { margin: 8px 0; }
.md-body blockquote {
    margin: 0 0 14px;
    padding: 10px 16px;
    background: var(--md-soft);
    border-left: 3px solid var(--c-border-strong);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--c-text-2);
}
.md-body blockquote p { margin: 0 0 8px; }
.md-body blockquote p:last-child { margin-bottom: 0; }
.md-body a { color: var(--md-link); border-bottom: 1px solid rgba(10, 139, 74, .3); }
.md-body a:hover { border-bottom-color: var(--md-link); }
.md-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-size: .9em;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--md-inline-bg);
    color: var(--md-inline-text);
}
.md-body pre {
    margin: 0 0 16px;
    padding: 15px 17px;
    background: var(--md-code-bg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    line-height: 1.7;
}
.md-body pre code { padding: 0; background: none; color: var(--md-code-text); font-size: 12.8px; white-space: pre; }
.md-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}
.md-body table th, .md-body table td {
    padding: 9px 13px;
    border: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}
.md-body table th { background: var(--md-soft); font-weight: 600; white-space: nowrap; }
.md-body table tr:nth-child(even) td { background: #fcfcfd; }
.md-body hr { border: none; border-top: 1px solid var(--c-border); margin: 24px 0; }
.md-body img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.md-body ul.contains-task-list { list-style: none; padding-left: 4px; }
.md-body .task-list-item { display: flex; gap: 8px; align-items: flex-start; }
.md-body .task-list-item input { margin-top: 6px; }

/* ==========================================================================
   响应式
   ========================================================================== */

/* 窄屏：侧栏折成横向条（不隐藏 —— 隐藏了就没有导航） */
@media (max-width: 1080px) {
    .pt-side {
        position: static;
        width: 100%;
        /* flex:0 0 auto 不能少：父级折成 column 后，`1 1 auto` 会让这条
           横导航把剩余高度全吃掉，页面上方顶出一大片空白 */
        flex: 0 0 auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }
    /* align-items 必须一起改：父级是 flex-start，折成 column 后子元素会
       按内容宽度收缩，内容区只占半屏、右边留一大片白 */
    .pt-shell { flex-direction: column; align-items: stretch; }
    .pt-id, .pt-cta { display: none; }
    .pt-nav { display: flex; align-items: center; gap: 4px; padding: 6px 10px; }
    .pt-nav-g { display: none; }
    .pt-nav-i { margin: 0; white-space: nowrap; }
    .pt-nav-i svg { display: none; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols, .cols.even, .grid-2, .grid-2.even { grid-template-columns: minmax(0, 1fr); }
    .detail, .cert-grid { grid-template-columns: minmax(0, 1fr); }
    .pt-content { padding: 16px 16px 44px; }
    .pt-ctx { padding: 0 16px; }
    /* 门面：文案在上、代码卡在下；四步改两列，避免一行四个 60px 的窄格 */
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats .sb-item:nth-child(2n) { border-right: none; }
    .steps, .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step { border-bottom: 1px solid var(--c-border-weak); }
    .guide-grid { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: 32px; }
    .hall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .pt-search { display: none; }
    .pt-user-name { display: none; }
    /* 顶栏在 390px 下塞不下「应用市场 / 开发文档 + 铃铛 + 身份 + 退出」，
       这两个入口在窄屏折进侧栏横条（那里已经有同名导航项） */
    .pt-top .pt-link { display: none; }
    .pt-top { gap: 10px; padding: 0 12px; }
    .fld-row { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .hall { grid-template-columns: minmax(0, 1fr); }
    /* 表格窄屏横向滚动：不加的话「状态 / 下载 / 操作」会被裁掉 */
    .panel { overflow-x: auto; }
    .tbl { min-width: 600px; }
    .pt-h1 { font-size: 16px; }
    /* 门面：四步 / 上架卡 / 规模带一律单列；计算器的输出块折到下面 */
    .hero h1 { font-size: 27px; }
    .hero { padding: 40px 0 32px; }
    .steps, .pkg-grid, .stats { grid-template-columns: minmax(0, 1fr); }
    .stats .sb-item { border-right: none; border-bottom: 1px solid var(--c-border-weak); }
    .stats .sb-item:last-child { border-bottom: none; }
    .calc { grid-template-columns: minmax(0, 1fr); }
    .calc-r { border-left: none; border-top: 1px solid var(--c-border); }
    .chart { height: 108px; }
    .chart-x span:nth-child(even) { visibility: hidden; }
    .foot-links { margin-left: 0; gap: 28px; }
    .site-top-r { gap: 8px; }
    .site-nav { display: none; }
    .balance { gap: 16px; }
    .bal-act { margin-left: 0; text-align: left; width: 100%; }
}
