/* ================================================================
   美东生活 · 设计系统（苹果 App Store 设计标准改版，v0.7.3）
   定版口径（Frank 2026-11-01 亲定）：排版、颜色、风格、字体、大小、
   位置全部照苹果 App Store，不自己发挥。执行稿：
   files/east-life-apple-style-demo-2026-11-01.html（首页）、
   files/east-life-apple-style-web-pages-demo-2026-11-01.html（内页）。
   类别用饱和色块区分（一类一色，.cg-1…cg-12，v0.7.5 起照抄 App Store
   截图 12 色、按类别顺序循环取色，白字白图标）；色块版式 v0.7.6 起
   按截图量测 1:1 定版：宽高比 1.8:1、圆角≈块宽 5%、图标宽≈块宽
   30% 在右上、类名短名（≤4 字）白粗体左下、字号≈块宽 10.5%；
   商家用 App Store 行式排版（圆角色块图标＋黑粗店名＋灰色副行＋浅灰
   胶囊按钮）；大标题特粗、小节标题配蓝色小标签（.eyebrow）。
   色值只许从 :root 取；v0.7.2 的功能类名与手机适配断言
   （@media (max-width: 768px)）全部保留，只换视觉层。
   ================================================================ */
:root {
  /* —— 苹果设计变量（与批准 Demo 同值） —— */
  --ink: #1d1d1f;            /* 标题与正文 */
  --gray: #6e6e73;           /* 次要文字 */
  --faint: #86868b;          /* 辅助文字、空状态 */
  --accent: #0066cc;         /* 苹果蓝：主按钮、链接、eyebrow */
  --accent-dark: #0050a3;    /* 蓝色文字按下/深态 */
  --accent-tint: #eaf2fb;    /* 蓝色浅底：选中态、己方气泡 */
  --bg: #fbfbfd;             /* 页面底 */
  --section: #f5f5f7;        /* 浅灰分区底 */
  --surface: #ffffff;        /* 卡面 */
  --line: rgba(0, 0, 0, .08);/* 发丝线描边/分隔 */
  --radius: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .05);
  --pill-bg: #f0f0f5;        /* App Store 式浅灰胶囊按钮底 */

  /* —— 旧变量名兼容别名（全站既有组件继续取同一套苹果色值） —— */
  --brand: var(--accent);
  --brand-dark: var(--accent-dark);
  --brand-tint: var(--accent-tint);
  --trust: #248a3d;          /* 苹果系统绿：仅「已认证」徽标 */
  --ink-2: var(--gray);
  --ink-3: var(--faint);
  --ad-bg: var(--section);
  --shadow-card: var(--shadow);
  --shadow-search: var(--shadow);
  --card: var(--surface);
  --r-lg: var(--radius);
  --muted: var(--gray);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 字体按语言分工：中文 PingFang 优先、网络字体 Noto Sans SC 兜底；
   韩文禁假拆字；印地语行高放宽。 */
html[lang^="zh"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="ko"] body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif; line-height: 1.75; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.muted { color: var(--ink-2); font-size: 14px; }
.error { color: #d70015; }
.hint { color: var(--ink-2); font-size: 13px; }
.hidden { display: none !important; }
.grow { flex: 1; }
/* 小节标题上方的蓝色小标签（Demo 同款） */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- 顶栏 / 容器 / 页脚（毛玻璃粘性顶栏，Demo 同款） ---------- */
.topbar {
  display: flex; align-items: center; gap: 28px;
  min-height: 52px; padding: 0 18px;
  background: rgba(251, 251, 253, .8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-en { display: none; }
.topnav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topnav a, .topnav .link-btn {
  color: var(--ink); text-decoration: none; font-size: 13.5px; opacity: .85;
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 6px;
}
.topnav a:hover, .topnav .link-btn:hover { opacity: 1; color: var(--accent); }
.link-btn { background: none; border: none; cursor: pointer; font: inherit; }
.nav-form { margin: 0; }
.container { max-width: 720px; margin: 0 auto; padding: 18px 16px 40px; }
.container-wide { max-width: 1120px; padding: 20px 20px 44px; }
.footer { max-width: 720px; margin: 40px auto 0; padding: 20px 16px 36px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.footer-wide { max-width: 1120px; padding-left: 20px; padding-right: 20px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-links a { color: var(--gray); }

/* ---------- 字阶工具类 ---------- */
.page-title { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.018em; color: var(--ink); margin: 0 0 12px; }
.section-title { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; color: var(--ink); margin: 28px 0 12px; }
.sec { margin-top: 34px; }
.sec .section-title, section .section-title:first-child { margin-top: 0; }

/* ---------- 按钮（App Store 式：蓝色实心胶囊 / 浅灰胶囊） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 980px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff;
}
.btn:active { opacity: .85; }
.btn.secondary, .btn.ghost {
  background: var(--pill-bg); color: var(--accent);
  border: none; min-height: 44px; font-weight: 600;
}
.btn.secondary:active, .btn.ghost:active { background: #e4e4ec; }
.btn.block { display: flex; width: 100%; }
.btn.disabled, .btn:disabled { background: var(--line); color: var(--ink-3); border-color: transparent; cursor: not-allowed; }
.btn-text {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 4px;
  color: var(--accent); font-weight: 500; font-size: 15px; text-decoration: none;
}
.btn-text::before { content: "‹ "; }
/* 联系动作（v0.7.2 功能不变）：电话＝蓝色实心胶囊、发信息＝浅灰胶囊 */
.btn-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 112px; padding: 10px 20px;
  border-radius: 980px; border: none;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; flex: none;
}
.btn-call:active { opacity: .85; }
.btn-msg {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 112px; padding: 10px 20px;
  border-radius: 980px; border: none;
  background: var(--pill-bg); color: var(--accent);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; flex: none;
}
.btn-msg:active { background: #e4e4ec; }
/* 卡片联系动作列：查看电话在上、发信息在下（主人 2026-11-01 验收定版） */
.cm-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
/* 电话弹窗里直显的号码（v0.7.2）：大号 tel 链接，点即拨 */
.call-result { margin: 10px 0 4px; }
.call-number { display: block; font-size: 24px; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: .5px; }
.call-tap-note { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

/* ---------- 徽标 / 头像 / 片区片 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  min-height: 20px; padding: 2px 9px; border-radius: 980px;
  background: var(--pill-bg); color: var(--gray);
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.badge-verified { background: #e7f6ec; color: var(--trust); }
.badge-protection, .badge-member { background: var(--pill-bg); color: var(--gray); }
.badge-founding { background: var(--accent-tint); color: var(--accent-dark); }
.badge-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2);
  font-size: 11px; line-height: 1; text-decoration: none; flex: none;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 13px; font-weight: 600; flex: none;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border-radius: 980px; background: var(--section); border: none;
  color: var(--ink); font-size: 14px; text-decoration: none;
}
.chip.active { background: var(--ink); color: #fff; font-weight: 600; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin: 12px 0;
}
.entries { display: grid; gap: 12px; margin: 14px 0; }
.entry-card {
  display: block; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  color: var(--ink); text-decoration: none;
}
.entry-card h2 { font-size: 17px; line-height: 23px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.entry-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 22px; }
.entry-card.primary { background: var(--ink); color: #fff; }
.entry-card.primary p { color: rgba(255, 255, 255, .72); }

/* ---------- 表单（整表成白卡，输入框发丝线＋蓝焦点环） ---------- */
form.form {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card form.form, .modal-card form.form, .legal-doc form.form, form.form.plain {
  background: transparent; box-shadow: none; padding: 0; border-radius: 0;
}
.form label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="number"],
.form select, .form textarea, .form input:not([type]),
.modal input[type="tel"], .modal input[type="text"], .modal textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--surface); color: var(--ink);
}
.form textarea { min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus, .modal input:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 102, 204, .18);
}
.form .btn { margin-top: 16px; }
.code-row { display: flex; gap: 8px; }
.code-row input { letter-spacing: 4px; font-size: 18px; }
.form-msg { min-height: 20px; font-size: 14px; }
.form-msg.error { color: #d70015; }
.inline-form { display: inline; }
.geo-locate-btn { margin-top: 6px; }
.geo-locate-status { font-size: 13px; color: var(--ink-2); margin-left: 8px; }

/* ---------- 列表 / 表格 / 杂项 ---------- */
.item { background: var(--section); border-radius: 16px; padding: 12px 14px; margin: 8px 0; }
.item h3 { margin: 0 0 4px; font-size: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.table th { color: var(--ink-2); font-weight: 600; }
.status { font-weight: 600; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; }
.dev-hint { background: var(--accent-tint); color: var(--accent-dark); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }

/* ---------- 语言选择页 ---------- */
.language-page h1 { margin-bottom: 4px; }
.language-list { display: grid; gap: 10px; margin-top: 18px; }
.language-option {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 18px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600;
}
.language-option small { color: var(--ink-2); font-weight: 400; }
.language-option.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- 法务文档 ---------- */
.legal-doc { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 16px 0; }
.legal-doc h1 { margin-top: 0; }
.legal-doc h2 { font-size: 17px; margin: 22px 0 6px; }
.legal-doc p, .legal-doc li { font-size: 14.5px; }

/* ---------- 弹层（手机底部升起 sheet，大圆角） ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .4);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-card {
  background: var(--surface); width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow: auto;
}
.modal-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 560px) {
  .modal { align-items: center; padding: 16px; }
  .modal-card { max-width: 480px; border-radius: 24px; padding: 22px; }
}
.call-phone-label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
.call-phone-label input { margin-top: 6px; }

/* ---------- 价目页 ---------- */
.pricing h1 { margin-bottom: 2px; }
.price-grid { display: grid; gap: 12px; margin: 16px 0; }
.price-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card h2 { margin: 0 0 2px; font-size: 18px; }
.price-amount { font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.price-amount small { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.price-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.price-card .badge { position: absolute; top: 14px; right: 14px; }

/* ================================================================
   首页（Demo 同款：居中大标题首屏＋胶囊搜索＋板块卡＋色块类别）
   ================================================================ */
.hero2 { padding: 64px 0 10px; text-align: center; }
.hero2 h1 { font-size: 52px; line-height: 1.08; font-weight: 700; letter-spacing: -.015em; color: var(--ink); margin: 0 0 6px; }
.hero2-sub { margin: 14px auto 18px; color: var(--gray); font-size: 17px; line-height: 1.55; max-width: 36em; }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
  height: 54px; padding: 0 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 980px; box-shadow: var(--shadow);
  color: var(--faint); font-size: 16px; text-decoration: none; text-align: left;
}
.searchbar svg { color: var(--faint); flex: none; }

/* 站内搜索（v0.7.8）：hero 与搜索页共用真搜索表单，沿用 .searchbar 胶囊外形 */
.searchbar-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.searchbar-input::placeholder { color: var(--faint); }
.searchbar-btn { flex: none; border: 0; border-radius: 980px; background: var(--ink); color: #fff; padding: 9px 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.hero-post { margin: 14px 0 0; text-align: center; }
/* 发布需求按钮与搜索框同高（54px）、同宽（max-width 560）、同圆角（980px），紧随其下 */
.hero-post-btn { height: 54px; width: min(560px, 100%); padding: 0 28px; }
.search-page-form { margin: 0 auto 20px; }
.search-group-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.card-request-link { display: block; text-decoration: none; color: inherit; }
/* 首页广场区标题行：与 .sec .section-title 同节奏（顶距归 .sec、底距 12px） */
.plaza-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plaza-head .section-title { margin-top: 0; }
.community-line { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; line-height: 22px; text-align: center; }

/* 一级目录五板块卡（Demo .board 同款：白卡＋浅灰图标位；v0.7.4 第 5 卡＝商家入驻） */
.boardnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.board-sub { font-size: 12px; line-height: 18px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: -6px; }
.board-link {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  transition: transform .25s ease;
}
.board-link:hover { transform: translateY(-2px); }
.board-link svg {
  background: var(--section); border-radius: 14px; padding: 10px;
  width: 46px; height: 46px; box-sizing: border-box; color: var(--ink);
}

/* 横幅广告位（浅蓝灰渐变槽位；上线态见文件后部 .ad-slot-live） */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; aspect-ratio: 3 / 1; max-height: 320px;
  margin-top: 28px; padding: 16px;
  background: linear-gradient(135deg, #eaf2fb, var(--section)); border: 1px solid var(--line); border-radius: 24px;
  color: var(--ink); text-decoration: none;
}
.ad-slot-title { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ad-slot-body { font-size: 14px; line-height: 22px; color: var(--ink-2); }

/* 类别色块（v0.7.5，Frank 2026-11-02 亲定）：100% 照抄苹果 App Store
   「搜索」页截图 12 色——饱和渐变色块＋白字左下＋白图标右上。
   每块「中位色（上）→底部色（下）」两段竖渐变；色 1、色 2 顶部采样
   受截图半透明搜索栏遮挡偏白，上色按定版表备注的视觉色带加深一档。
   定版表：files/east-life-appstore-tile-palette-2026-11-02.md
   分配：categories.colorClass() 按类别顺序 1→12 循环。 */
.cg-1 { background: linear-gradient(180deg, #F9CF6B, #EAB24F); }  /* 1 琥珀黄（截图「摄影与录像」） */
.cg-2 { background: linear-gradient(180deg, #9D86FC, #8670FC); }  /* 2 紫罗兰（截图「社交」） */
.cg-3 { background: linear-gradient(180deg, #FF97D9, #F683C4); }  /* 3 粉红（截图「步行」） */
.cg-4 { background: linear-gradient(180deg, #66D0ED, #36C2E4); }  /* 4 青蓝（截图「音乐 App」） */
.cg-5 { background: linear-gradient(180deg, #7BD8FC, #67C3E8); }  /* 5 天蓝（截图「白噪音」） */
.cg-6 { background: linear-gradient(180deg, #80B7F1, #62A7EE); }  /* 6 正蓝（截图「商务」） */
.cg-7 { background: linear-gradient(180deg, #FDA65B, #FD9438); }  /* 7 橙（截图「动作游戏」） */
.cg-8 { background: linear-gradient(180deg, #8ABDFF, #74A9EF); }  /* 8 矢车菊蓝（截图「巫师」） */
.cg-9 { background: linear-gradient(180deg, #7EDAFE, #6AC6EB); }  /* 9 湖蓝（截图「锻炼计划」） */
.cg-10 { background: linear-gradient(180deg, #F0BF6D, #EBAD48); } /* 10 金黄（截图「体育 App」） */
.cg-11 { background: linear-gradient(180deg, #8CBFFF, #78ACF3); } /* 11 蔚蓝（截图「设计模板」） */
.cg-12 { background: linear-gradient(180deg, #95BAED, #74A5E8); } /* 12 淡蓝（截图「报刊杂志」） */
/* v0.7.4：类别区改全铺网格（取消横滑、类名不截断） */
.catgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 768px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .catgrid { grid-template-columns: repeat(2, 1fr); gap: 2vw; } }
/* 色块版式 1:1 照抄 App Store 截图量测（v0.7.6，Frank 2026-11-02 亲令）：
   宽高比 1.8:1（aspect-ratio 定高）；圆角半径≈块宽 5%（横 5%／竖 9%，
   按 1.8 宽高比折算为等距圆角）；双列间距≈屏宽 2%（上方 560 断点 gap）。
   container-type 让块内尺寸一律以块宽为基准（cqw），桌面多列与手机
   双列同比例成立——桌面只变列数，色块本体比例不变。 */
.cat-tile {
  position: relative;
  aspect-ratio: 1.8 / 1;
  border-radius: 5% / 9%;
  container-type: inline-size;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
  color: #fff; text-decoration: none; overflow: hidden;
}
/* 默认底色仅作无 cg 类时的兜底：.cg-1…12 在上方先定义，同优先级下
   .cat-tile 的 background 会盖掉一类一色（v0.7.3 既存级联 bug，
   v0.7.4 预览验图时发现并修复）；兜底色与色 4 青蓝同值 */
.cat-tile:not([class*="cg-"]) { background: linear-gradient(180deg, #66D0ED, #36C2E4); }
/* 图标：右上，距右/上边距≈块宽 5%、宽≈块宽 30%（量测 1:1）；
   我方线形图标为正方形画布，等比渲染不拉伸——高随宽同为 30% 块宽
   ≈块高 54%，与量测图形高 55–60% 的差异仅来自苹果原图为非正方形
   App 图标（素材限制，尺寸位置口径不变）。 */
.cat-ico { position: absolute; top: 5cqw; right: 5cqw; width: 30cqw; aspect-ratio: 1 / 1; color: #fff; display: block; }
.cat-ico svg { width: 100%; height: 100%; display: block; }
/* 类别名：白色粗体、左下角；左边距≈块宽 6%、底边距≈块高 7%、
   字号≈块宽 10.5%（量测 10–11%），短名一行、与右上图标不重叠 */
.cat-name {
  position: absolute; left: 6%; bottom: 7%; right: 6%;
  font-size: 15px; font-size: 10.5cqw; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-align: left; color: #fff;
  overflow-wrap: anywhere;
}

/* 怎么用 */
.steps { display: grid; gap: 12px; }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-bottom: 8px;
  background: rgba(0, 102, 204, .12); color: var(--accent); font-size: 13px; font-weight: 700;
}
.step h3 { font-size: 16px; line-height: 22px; font-weight: 600; margin: 0 0 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 22px; }
/* v0.7.4：第 1 步卡可点进发需求；「查看完整流程」小字链接（原服务怎么用卡降级） */
a.step-link { display: block; color: inherit; text-decoration: none; transition: transform .25s ease; }
a.step-link:hover { transform: translateY(-2px); }
.how-more { display: inline-block; margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--accent); text-decoration: none; }
.how-more:hover { text-decoration: underline; }
/* v0.7.4：法务咨询独立卡占整行 */
.entries.entries-legal { grid-template-columns: 1fr; }

/* 商家入口横幅（Demo .join 同款：浅灰大圆角面板） */
.merchant-entry {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--section); border-radius: 28px; box-shadow: none; padding: 34px;
}
.merchant-entry h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; margin: 0 0 4px; }
.merchant-entry p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 23px; }
.merchant-entry .btn { align-self: flex-start; }

.assure { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-top: 24px; }
.assure p { margin: 4px 0; }
.assure strong { color: var(--ink); }
.assure-stats { font-size: 15px; }

/* 「我的」页 v0.7.4：身份小条 / 对话列表（未读置顶＋红徽标）/ 资料入口行 */
.subsection-title { font-size: 15px; line-height: 21px; font-weight: 600; margin: 16px 0 8px; color: var(--ink); }
.idstrip { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.idavatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 19px; font-weight: 700;
}
.idstrip-name { font-size: 17px; line-height: 23px; font-weight: 600; color: var(--ink); }
.idstrip-sub { font-size: 13px; line-height: 19px; color: var(--ink-2); }
.conv-list { display: grid; gap: 10px; }
.conv-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; color: var(--ink); text-decoration: none;
}
.conv-row-main { flex: 1; min-width: 0; }
.conv-row-title { font-size: 15px; line-height: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-row-sub { font-size: 13px; line-height: 19px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-badge {
  flex: none; background: #d70015; color: #fff;
  font-size: 12px; line-height: 18px; font-weight: 700;
  border-radius: 980px; padding: 1px 8px;
}
.profile-entry-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.profile-entry-arrow { color: var(--faint); font-weight: 400; }

/* 底部 Tab 条：悬浮胶囊＋毛玻璃（Demo/App 同款，仅首页、仅手机） */
.cta-spacer { height: 96px; }
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  width: min(560px, calc(100% - 20px));
  display: flex; align-items: flex-end;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, .06); border-radius: 980px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
  padding: 8px 10px;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0 2px; color: var(--ink-2);
  font-size: 12px; line-height: 16px; text-decoration: none;
}
.tab svg { color: var(--ink-2); }
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active svg { color: var(--accent); }
.tab-post-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  margin-top: -24px;
}
.tab-post-btn svg { color: #fff; }

/* ================================================================
   分类商家列表页（App Store 行式：整表一卡、行间发丝线）
   ================================================================ */
.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.page-head .page-title { margin: 0; }
.page-count { color: var(--ink-2); font-size: 15px; }
.mcard-grid { display: grid; gap: 12px; }
/* 行式容器（分类页专用，category.ejs 的 .mrows）：商家一行一条 */
.mrows {
  display: block; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 4px 20px;
}
.mrows .card-merchant {
  background: transparent; box-shadow: none; border-radius: 0;
  padding: 18px 0 16px; margin: 0;
}
.mrows .card-merchant + .card-merchant { border-top: 1px solid var(--line); }
.mrows .cm-top { align-items: center; }
.mrows .cm-media { width: 56px; height: 56px; border-radius: 15px; }
.mrows .cm-media svg { display: none; }
.mrows .cm-initial { font-size: 23px; }
.mrows .cm-contact { margin-top: 12px; padding-left: 71px; }
.card-merchant {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.cm-top { display: flex; gap: 14px; }
.cm-media {
  flex: none; width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(145deg, var(--section), #e8e8ed); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  overflow: hidden;
}
.cm-media.cg-1, .cm-media.cg-2, .cm-media.cg-3, .cm-media.cg-4,
.cm-media.cg-5, .cm-media.cg-6, .cm-media.cg-7, .cm-media.cg-8,
.cm-media.cg-9, .cm-media.cg-10, .cm-media.cg-11, .cm-media.cg-12 { color: #fff; }
.cm-initial { font-size: 26px; line-height: 1; font-weight: 600; }
.cm-main { flex: 1; min-width: 0; }
.cm-name { font-size: 16.5px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 2px; }
.cm-rate { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin: 0 0 4px; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.rate { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; }
.rate svg { color: var(--accent); }
.rate-n { color: var(--ink-2); font-weight: 400; }
.cm-intro {
  margin: 0 0 6px; color: var(--ink-2); font-size: 14px; line-height: 22px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; }
.cm-unclaimed { font-size: 12.5px; color: var(--faint); margin: 2px 0 0; }
.cm-contact { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cm-person { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.cm-person-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-company { color: var(--ink-2); font-weight: 400; }
.protection-note { margin-top: 14px; }
.claim-card h3 { margin-top: 0; }
/* 认领卡：浅灰大圆角面板（Demo .claimcard 同款），覆盖 .card 白卡 */
.card.claim-card, .claim-card {
  background: var(--section); border-radius: 28px; box-shadow: none; padding: 32px;
}
.claim-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.012em; }
.claim-card p { color: var(--ink-2); }

/* 空状态 */
.empty-state { text-align: center; padding: 36px 16px; }
.empty-ico { display: inline-flex; color: var(--ink-3); }
.empty-state h3 { font-size: 15px; line-height: 24px; font-weight: 600; margin: 10px 0 4px; }
.empty-state p { color: var(--ink-2); font-size: 14px; line-height: 22px; max-width: 34em; margin: 0 auto 10px; }

/* 分类卡点入商家公开页（v0.6.3） */
.cm-name-link { color: inherit; text-decoration: none; }
.cm-name-link:hover { text-decoration: underline; }
a.cm-media { text-decoration: none; }

/* ================================================================
   公开需求列表页（P-11，v0.6.3）
   ================================================================ */
.req-filter { margin: 0 0 14px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.req-filter::-webkit-scrollbar { display: none; }
.req-filter .chip { flex: none; }
.card-request {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.rq-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rq-date { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.rq-date svg { color: var(--ink-3); }
.rq-title { font-size: 16px; line-height: 22px; font-weight: 600; margin: 0; }
.rq-desc {
  margin: 0; color: var(--ink-2); font-size: 14px; line-height: 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rq-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; color: var(--ink-2); font-size: 13px; }
.rq-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rq-meta svg { color: var(--ink-3); }
.rq-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.rq-actions .btn { min-height: 44px; }
.rq-unlock-form { display: inline-flex; margin: 0; }
.rq-unlock-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.soon-tag { font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 1px 7px; }
.lock-row {
  display: flex; align-items: flex-start; gap: 7px;
  margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; line-height: 20px;
}
.lock-row svg { color: var(--ink-3); flex: none; margin-top: 2px; }

/* ================================================================
   商家公开页（P-05，v0.6.3）：大色块图位＋特粗店名（Demo 详情页同款）
   ================================================================ */
.mp-media { width: 84px; height: 84px; border-radius: 21px; }
.mp-media svg { display: none; }
.mp-initial { font-size: 36px; }
.mp-name { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin: 0 0 4px; }
.mp-area { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; font-size: 14px; }
.mp-area svg { color: var(--accent); flex: none; }
.mp-intro { margin: 0; font-size: 15px; line-height: 26px; white-space: pre-wrap; }
.mp-review-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.mp-review-body { margin: 0; }
.mp-reply { margin: 8px 0 0; background: var(--section); border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* ================================================================
   板块落地页
   ================================================================ */
.board-note { background: var(--section); color: var(--ink-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }

/* ================================================================
   桌面断点（容器 1120、左右 40；底部胶囊 Tab 桌面隐藏，用顶栏）
   ================================================================ */
@media (min-width: 768px) {
  .topbar { padding: 0 24px; }
  .container-wide { padding: 28px 40px 48px; }
  .footer-wide { padding-left: 40px; padding-right: 40px; }
  .hero2 { padding-top: 72px; }
  .mcard-grid { grid-template-columns: 1fr 1fr; }
  .entries2 { grid-template-columns: repeat(3, 1fr); }
  .entries { grid-template-columns: 1fr 1fr; }
  .entries2.entries { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .merchant-entry { flex-direction: row; align-items: center; justify-content: space-between; }
  .merchant-entry .btn { align-self: center; flex: none; }
  /* 底部 Tab 条是手机形态；桌面已有顶栏导航，隐藏 Tab 条与占位 */
  .tabbar { display: none; }
  .cta-spacer { height: 0; }
}

/* ================================================================
   商家资料自改（P-52，v0.6.6）：真图填充图位、图集、编辑页与后台抽查
   ================================================================ */
.cm-media img.cm-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.mp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }
.mprof-entry { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mprof-entry-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mprof-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; display: block; }
.mprof-thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; display: block; }
.mprof-reg { margin: 0; display: grid; gap: 8px; }
.mprof-reg > div { display: flex; gap: 10px; flex-wrap: wrap; }
.mprof-reg dt { flex: none; width: 7.5em; color: var(--ink-2); font-size: 14px; }
.mprof-reg dd { margin: 0; font-size: 14px; }
.mprof-sub { font-size: 15px; margin: 14px 0 8px; }
.mprof-sub:first-child { margin-top: 0; }
.mprof-photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mprof-upload-btn { display: inline-flex; cursor: pointer; margin: 4px 0 8px; }
.mprof-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.mprof-gitem { margin: 0; }
.mprof-gitem img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
.mprof-gitem .btn-text { margin-top: 4px; }
.mprof-audit-cell { max-width: 420px; overflow-wrap: anywhere; font-size: 12.5px; color: var(--ink-2); }
@media (min-width: 768px) {
  .mp-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* 横页广告位·商家素材上线态（v0.6.8，PRD v2 F14）：图 cover 满槽，
   文案压在底部半透明白条上；右上角「广告」标。无图时回落文字版式。 */
.ad-slot-live { position: relative; padding: 0; overflow: hidden; border-style: solid; align-items: stretch; justify-content: flex-end; }
.ad-slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-slot-main { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; text-align: left; }
.ad-slot-live:has(.ad-slot-img) .ad-slot-main { background: rgba(255, 255, 255, .88); }
.ad-badge { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(29, 29, 31, .62); color: #fff; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 999px; }

/* 商家广告页（P-54）与排期日历（P-73） */
.ads-sources { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ads-source { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.ads-preview { margin-top: 8px; }
.adcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 20px; }
.adcal-day { border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-height: 76px; background: var(--surface); overflow-wrap: anywhere; }
.adcal-day.today { border-color: var(--accent); border-width: 2px; }
.adcal-day.taken { background: var(--accent-tint); }
.adcal-date { font-size: 12px; font-weight: 600; color: var(--ink); }
.adcal-merchant { font-size: 13px; font-weight: 600; margin-top: 4px; }
.adcal-meta { font-size: 11px; line-height: 16px; color: var(--ink-2); }
@media (max-width: 640px) {
  .adcal { grid-template-columns: repeat(4, 1fr); }
}

/* —— 招工/找工作板块（v0.6.9） —— */
.job-list { display: grid; gap: 12px; margin: 16px 0; }
.job-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.job-card.is-urgent { border-color: var(--accent); }
.job-main { flex: 1; min-width: 0; }
.job-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-date { color: var(--ink-2); font-size: 12px; margin-left: auto; }
.job-title { margin: 6px 0 4px; font-size: 17px; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a:hover { color: var(--accent-dark); text-decoration: underline; }
.job-meta { margin: 0; color: var(--ink-2); font-size: 13px; }
.job-merchant { color: var(--ink); font-weight: 600; }
.job-pay { margin: 6px 0 0; color: var(--accent-dark); font-weight: 700; }
.job-pay.big { font-size: 20px; }
.job-side { flex: none; display: flex; align-items: center; }
.badge-urgent { background: var(--accent); color: #fff; border-color: var(--accent); }
.job-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.job-row:last-child { border-bottom: 0; }
.job-row-main { flex: 1; min-width: 0; }
.job-row-title { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job-row-actions { flex: none; display: flex; flex-direction: column; gap: 8px; }
.job-edit { margin-top: 8px; }
.job-edit summary { cursor: pointer; color: var(--accent-dark); font-size: 14px; }
.thread-card { display: grid; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: var(--radius); background: var(--section); border: 1px solid var(--line); }
.msg.mine { margin-left: auto; background: var(--accent-tint); border-color: rgba(0, 102, 204, .35); }
.msg-body { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg-meta { margin: 4px 0 0; color: var(--ink-2); font-size: 12px; }
@media (max-width: 640px) {
  .job-card { flex-direction: column; }
  .job-side { width: 100%; }
  .job-side .btn { flex: 1; }
  .job-row { flex-direction: column; }
  .job-row-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ================================================================
   手机竖屏适配（v0.7.2 保留，v0.7.3 按苹果行式调整）：≤768px 一律
   单列、不横滚、不用捏放。顶栏导航横滑、联系按钮整行大点区、
   表格只在自身内横滑（页面不横滚，含 /admin）。
   ================================================================ */
@media (max-width: 768px) {
  /* 顶栏：品牌一行、导航第二行横滑，不挤压不换行重叠 */
  .topbar { flex-wrap: wrap; gap: 2px 10px; padding: 6px 12px; }
  .topnav {
    order: 3; width: 100%; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a, .topnav .link-btn { white-space: nowrap; min-height: 44px; }

  .container, .container-wide { padding: 14px 12px 32px; }
  h1 { font-size: 28px; line-height: 34px; }
  .page-title { font-size: 30px; }
  .section-title { font-size: 21px; line-height: 28px; }

  /* 首屏与板块/类别：标题收号、板块两列（色块高度由 aspect-ratio
     1.8:1 按宽定高，全断点同比例，不再单独收高） */
  .hero2 { padding: 40px 0 6px; }
  .hero2 h1 { font-size: 36px; }
  .hero2-sub { font-size: 16px; }
  .boardnav { grid-template-columns: repeat(2, 1fr); }
  .boardnav .board-link:last-child { grid-column: span 2; }

  /* 商家行式：图位保持 56px 色块（App Store 行式在手机上同样是行），
     联系区整行堆叠、两个胶囊按钮并排整行、点区 ≥48px */
  .mrows { padding: 2px 16px; }
  .mrows .cm-contact { padding-left: 0; flex-direction: column; align-items: stretch; }
  .cm-contact { flex-direction: column; align-items: stretch; }
  .cm-person { flex: none; }
  .cm-actions { flex-direction: row; width: 100%; }
  .cm-actions .btn-call, .cm-actions .btn-msg { flex: 1; min-height: 48px; }

  /* 详情页图位与店名收号 */
  .mp-media { width: 68px; height: 68px; border-radius: 18px; }
  .mp-initial { font-size: 29px; }
  .mp-name { font-size: 26px; }

  /* 手指点区：chips 补齐 ≥44px（按钮基线已达标） */
  .chip { min-height: 44px; }
  .btn-call, .btn-msg { min-height: 48px; }
  .rq-actions .btn { flex: 1; }

  /* 表格（含运营后台）：表格自身横滑，页面不横滚 */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 图集/商家自改页在窄屏收列 */
  .mprof-gallery { grid-template-columns: repeat(2, 1fr); }
  .mprof-reg > div { flex-direction: column; gap: 2px; }
  .mprof-reg dt { width: auto; }

  /* 底部悬浮胶囊 Tab（仅首页，自带 .cta-spacer 占位）不遮内容 */
  .container { padding-bottom: 40px; }
}

/* ================================================================
   运营后台（v0.7.7 起）：待办计数卡、页内页签、列表横向滚动容器
   与类别列防挤压。（顶部三级目录导航块已于 v0.7.10 按 Frank 令删除，
   各功能页由待办总览卡片直达。）
   只用既有设计变量，不改前台组件样式；.table 表头不换行与类别列
   min-width 为全站表格同步修复（截图中类别被挤成竖排单字的问题）。
   ================================================================ */
.admin-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px; margin: 10px 0 6px;
}
.admin-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
}
a.admin-card:hover { border-color: var(--accent); }
.admin-card-num { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.admin-card-label { font-size: 13.5px; color: var(--gray); }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.admin-tabs a {
  font-size: 13.5px; color: var(--ink); text-decoration: none;
  background: var(--accent-tint); border-radius: 999px; padding: 5px 14px; min-height: 32px;
  display: inline-flex; align-items: center;
}
.admin-tabs a:hover { color: var(--accent); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 680px; }
.table th { white-space: nowrap; }
.table th.col-cat, .table td.col-cat { white-space: nowrap; min-width: 88px; }

.admin-pager { display: flex; align-items: center; gap: 14px; margin: 14px 0; flex-wrap: wrap; }

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