/* ============================================================
   IFU Design System v2  ·  design/assets/ifu-ui.css
   面向 PbootCMS 模板重设计的公共样式(示例稿)
   色彩:墨绿 Ink + 品牌绿 Brand + 暖纸白 Paper;深浅区块交替节奏
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
/* 色彩体系:以品牌翡翠绿 #10B981(favicon/Fox 图标/旧 CSS 高频色)为锚,
   深色区用同色相深翡翠,中性色用 slate 家族 —— 全部与既有品牌资产同族 */
:root {
  /* 品牌色(emerald 家族) */
  --ink: #0f172a;            /* 中性炭黑 slate-900:深色区块底,绿不再成片 */
  --ink-2: #1e293b;          /* 深色区块内浮层 slate-800 */
  --ink-3: #334155;          /* 深色区块描边 slate-700 */
  --brand: #059669;          /* 品牌绿 emerald-600:主行动 */
  --brand-strong: #047857;   /* 品牌绿 hover emerald-700 */
  --brand-soft: #ecfdf5;     /* 品牌绿浅底 emerald-50 */
  --emerald: #10b981;        /* 高亮绿 emerald-500:深色区块内使用(=favicon 色) */
  --amber: #e2a33c;          /* 强调琥珀:仅点缀 */
  --amber-soft: #fbf1de;

  /* 中性色(slate 家族,与旧 CSS 文本色一致) */
  --paper: #f8fafc;          /* 页面底 slate-50 */
  --surface: #ffffff;        /* 卡片 */
  --line: #e2e8f0;           /* 分隔线 slate-200 */
  --line-strong: #cbd5e1;    /* slate-300 */
  --text: #1e293b;           /* slate-800 */
  --text-2: #475569;         /* slate-600 */
  --text-3: #64748b;         /* slate-500 */

  /* 深色区块内文本(翡翠调) */
  --d-text: #f1f5f9;
  --d-text-2: #94a3b8;
  --d-text-3: #64748b;

  /* 字体 */
  --font: "HarmonyOS Sans SC", "PingFang SC", "MiSans", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 6px rgba(15, 23, 42, .04);
  --sh-md: 0 2px 6px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .14);
  --sh-lg: 0 4px 12px rgba(15, 23, 42, .06), 0 28px 64px -24px rgba(15, 23, 42, .22);
  --sh-brand: 0 10px 30px -10px rgba(5, 150, 105, .45);

  /* 布局 */
  --container: 1200px;
  --header-h: 68px;
  --sec-y: clamp(64px, 9vw, 110px);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus, a:active { text-decoration: none; }
/* 覆盖 bootstrap reboot 的 hover 下划线与蓝色(本文件晚于 bootstrap 加载) */
p a, li a, td a, dd a, dt a { text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(5, 150, 105, .18); }

/* ---------- 3. 布局原语 ---------- */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(16, 185, 129, .18), transparent 62%),
    radial-gradient(900px 380px at 6% 112%, rgba(16, 185, 129, .10), transparent 60%),
    linear-gradient(180deg, #131f33, var(--ink));
  color: var(--d-text);
  border-block: 1px solid var(--ink-3);
}
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 4. 通用文字组件 ---------- */
.eyebrow {
  display: inline-flex; justify-self: start; align-self: start; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--ink .eyebrow { color: var(--emerald); }
.section--ink .eyebrow::before { background: var(--emerald); }

.h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
.h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; }
.h3 { font-size: clamp(19px, 2vw, 23px); }
.lead { font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-3); font-size: 14px; }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head p { color: var(--text-2); }
.section--ink .sec-head p { color: var(--d-text-2); }

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  font-size: 15px; font-weight: 600; line-height: 1.4;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn--brand { background: linear-gradient(135deg, #10b981, #047857); box-shadow: var(--sh-brand); }
.btn--brand:hover { background: linear-gradient(135deg, #0ea371, #036147); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-line: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { box-shadow: var(--sh-md); }
.btn--outline-light { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-line: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--outline-light:hover { border-color: rgba(255,255,255,.7); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- 6. 徽章 / 芯片 / 标签 ---------- */
.badge {
  display: inline-flex; justify-self: start; align-self: start; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.6;
  background: var(--brand-soft); color: var(--brand-strong);
}
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--amber { background: var(--amber-soft); color: #9a6b14; }
.badge--gray { background: #f1f5f9; color: var(--text-2); }
.badge--ink { background: var(--ink-3); color: var(--d-text); }
.badge--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.section--ink .badge { background: rgba(16,185,129,.12); color: var(--emerald); }
.section--ink .badge--gray { background: rgba(255,255,255,.08); color: var(--d-text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55; }
.chip--plain::before { display: none; }
.section--ink .chip { background: rgba(255,255,255,.05); border-color: var(--ink-3); color: var(--d-text-2); }
.section--ink .chip::before { background: var(--emerald); }

/* ---------- 7. 站点外壳:页头 / 页脚(JS 注入) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,23,42,.35); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.site-header__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: .02em; color: var(--ink); }
.site-header__logo img { width: 34px; height: 34px; }
.site-header__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-header__nav a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
}
.site-header__nav a:hover { color: var(--ink); background: #f1f5f9; }
.site-header__nav a.is-active { color: var(--brand-strong); font-weight: 600; }
.site-header__nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--brand);
}
.site-header__acts { display: flex; align-items: center; gap: 12px; }
.site-header__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.site-header__burger span, .site-header__burger span::before, .site-header__burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
}
.site-header__burger span::before { position: absolute; top: -6px; }
.site-header__burger span::after { position: absolute; top: 6px; }

/* 深色页头变体(登录/专题等页面用 body.shell--dark) */
body.shell--dark .site-header { background: rgba(15, 23, 42, .9); }
body.shell--dark .site-header__logo { color: #fff; }
body.shell--dark .site-header__nav a { color: var(--d-text-2); }
body.shell--dark .site-header__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
body.shell--dark .site-header__nav a.is-active { color: var(--emerald); }
body.shell--dark .site-header__burger { background: transparent; border-color: var(--ink-3); }
body.shell--dark .site-header__burger span, body.shell--dark .site-header__burger span::before, body.shell--dark .site-header__burger span::after { background: var(--d-text); }

/* 移动端抽屉 */
.m-nav { display: none; }
@media (max-width: 1023px) {
  .site-header__nav, .site-header__acts .btn { display: none; }
  .site-header__burger { display: inline-flex; margin-left: auto; }
  .site-header__acts { margin-left: 0; }
  .m-nav {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 89;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; box-shadow: var(--sh-lg);
    transform: translateY(-110%); transition: transform .28s ease;
  }
  .m-nav.is-open { transform: translateY(0); }
  .m-nav a { display: block; padding: 13px 6px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--text); }
  .m-nav a.is-active { color: var(--brand); }
  .m-nav .btn { margin-top: 16px; }
}

/* 页脚 */
.site-footer { background: radial-gradient(760px 220px at 50% -8%, rgba(16, 185, 129, .14), transparent 70%), var(--ink); color: var(--d-text-2); }
.site-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { width: 36px; height: 36px; }
.site-footer__brand .logo-line { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 21px; margin-bottom: 16px; }
.site-footer__brand p { font-size: 14px; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { color: var(--d-text-2); font-size: 14px; }
.site-footer li a:hover { color: var(--emerald); }
.site-footer__contact li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.site-footer__contact svg { width: 16px; height: 16px; color: var(--emerald); flex: none; }
.site-footer__bar {
  border-top: 1px solid var(--ink-3);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between; font-size: 13px; color: var(--d-text-3);
}
.site-footer__bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__bar a { color: var(--d-text-3); }
.site-footer__bar a:hover { color: var(--d-text); }

/* ---------- 8. 页头横幅(栏目页/详情页通用) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--d-text);
  background:
    radial-gradient(760px 360px at 14% -24%, rgba(16, 185, 129, .26), transparent 58%),
    radial-gradient(620px 320px at 96% 128%, rgba(5, 150, 105, .34), transparent 62%),
    linear-gradient(165deg, #16233a, var(--ink) 64%);
  padding: clamp(44px, 6vw, 72px) 0 clamp(40px, 5vw, 62px);
}
/* 底部翡翠渐变细线:与下一区块的交界处收出一条品牌光边 */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent 4%, rgba(16, 185, 129, .6) 32%, rgba(16, 185, 129, .18) 72%, transparent 96%);
  pointer-events: none;
}
.page-hero::before {  /* 极细网格,替代旧版杂乱装饰 */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 420px at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.page-hero__in { position: relative; display: grid; gap: 18px; max-width: 860px; }
/* 带右侧行动区的英雄区(软件详情):窄屏收回单列,行动区移到文字下方 */
.page-hero--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px); }
@media (max-width: 760px) { .page-hero--split { grid-template-columns: minmax(0, 1fr); } }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); }
.page-hero .lead { color: var(--d-text-2); }
.crumb {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--d-text-3); flex-wrap: wrap;
  width: fit-content;
}
.crumb a, .crumb .cur {
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.crumb .cur { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .22); color: var(--emerald); }
.crumb .sep { opacity: .4; }
.crumb a { color: var(--d-text-2); }
.crumb a:hover { color: var(--emerald); }
.crumb .sep { opacity: .5; }
.crumb .cur { color: var(--d-text); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero--center .page-hero__in { justify-items: center; text-align: center; margin-inline: auto; }
.page-hero--center .crumb { justify-content: center; }
.page-hero--center .page-hero__meta { justify-content: center; }

/* 子栏目切换条(父栏目下的 tab 导航) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(246,247,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav__in a {
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  border: 1px solid transparent;
}
.subnav__in a:hover { color: var(--brand); background: #fff; }
.subnav__in a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 9. 卡片家族 ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, #f1f5f9, #e2e8f0); }
.card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media > img { transform: scale(1.04); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 18.5px; font-weight: 700; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__desc { color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-3); }
.card__foot .more { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* 场景卡:深色反白 + 插画 */
.scene-card { background: linear-gradient(180deg, rgba(16,185,129,.10), transparent 46%), var(--ink); border-color: var(--ink-3); color: var(--d-text); }
.scene-card:hover { border-color: rgba(16,185,129,.4); }
.scene-card .card__media { aspect-ratio: 16/10; background: none; }
.scene-card .card__title { color: #fff; }
.scene-card .card__desc { color: var(--d-text-2); }
.scene-card .card__foot { border-top-color: var(--ink-3); color: var(--d-text-3); }
.scene-card .card__foot .more { color: var(--emerald); }

/* 软件卡:图标置顶 + 状态徽章 */
.soft-card { padding: 26px 26px 24px; }
.soft-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.soft-card__ico {
  width: 62px; height: 62px; flex: none; border-radius: 16px;
  background: var(--brand-soft); display: grid; place-items: center; padding: 11px;
  transition: transform .25s ease;
}
.soft-card:hover .soft-card__ico { transform: scale(1.06) rotate(-2deg); }
.soft-card__ico img { width: 100%; height: 100%; object-fit: contain; }
.soft-card h3 { font-size: 19px; }
.soft-card .ver { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.soft-card__role { color: var(--brand-strong); font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.soft-card__desc { color: var(--text-2); font-size: 14.5px; min-height: 66px; }

/* 服务卡 */
.svc-card { padding: 28px; }
.svc-card__num { font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.svc-card__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc-card h3 { font-size: 20px; margin-bottom: 10px; }
.svc-card .price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.svc-card .price b { font-size: 15px; color: var(--brand-strong); }
.svc-card .price span { font-size: 12.5px; color: var(--text-3); }

/* 博客卡(横向) */
.post-card--h { display: grid; grid-template-columns: 220px 1fr; }
.post-card--h .card__media { aspect-ratio: auto; height: 100%; }
.post-card--h .card__body { padding: 20px 24px; }
@media (max-width: 640px) { .post-card--h { grid-template-columns: 1fr; } .post-card--h .card__media { aspect-ratio: 16/9; } }

/* 统计块 */
.stat { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 28px 12px; }
.stat b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--text-3); }
.section--ink .stat span { color: var(--d-text-2); }
.section--ink .stat b { color: #fff; }
.section--ink .stat b em { font-style: normal; color: var(--emerald); }

/* ---------- 10. 规格表(自定义字段展示核心组件) ---------- */
.spec {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.spec__item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.spec__item:nth-last-child(-n+2) { border-bottom: 0; }
.spec__item dt { font-size: 13.5px; font-weight: 600; color: var(--text-3); padding-top: 3px; }
.spec__item dd { font-size: 14.5px; color: var(--text); min-height: 24px; }
.spec__item dd .chips { gap: 6px; }
.spec__item dd .chip { padding: 3px 10px; font-size: 12.5px; }
.spec--wide { grid-template-columns: 1fr; }
.spec--wide .spec__item { grid-template-columns: 160px minmax(0, 1fr); }
@media (max-width: 720px) {
  .spec { grid-template-columns: 1fr; }
  .spec__item { grid-template-columns: 112px minmax(0, 1fr); }
  .spec__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spec__item:last-child { border-bottom: 0; }
}

/* 详情页整体布局 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 1023px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } .detail-aside { position: static; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 12px; }
.aside-card h3 { font-size: 15.5px; }
.aside-card .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-block: 4px; }
.aside-card .kv dt { color: var(--text-3); }
.aside-card .kv dd { font-weight: 600; text-align: right; }

/* 详情正文富文本 */
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; font-size: 16px; color: var(--text); }
.prose h2 { font-size: 24px; padding-top: 10px; }
.prose h3 { font-size: 19px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.9; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); opacity: .7;
}
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.prose pre {
  background: var(--ink); color: #a7f3d0; border-radius: var(--r-md);
  padding: 18px 22px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.8;
}
.prose table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.prose th { background: #f1f5f9; text-align: left; font-size: 13.5px; padding: 10px 16px; }
.prose td { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }

/* 上/下篇导航:窄屏换行,长标题按钮允许折行 */
.post-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.post-nav .btn { white-space: normal; max-width: 100%; text-align: left; }

/* ---------- 11. 标签页 Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  appearance: none; background: none; border: 0; padding: 12px 20px;
  font-size: 15px; font-weight: 600; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
  transition: color .2s ease;
}
.tabs__item:hover { color: var(--text); }
.tabs__item.is-active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.tab-pane { display: none; padding-top: 26px; }
.tab-pane.is-active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 胶囊型 tabs(软件详情顶部三问) */
.tabs--pill { border: 0; gap: 10px; }
.tabs--pill .tabs__item {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; margin: 0;
  background: var(--surface); font-weight: 600;
}
.tabs--pill .tabs__item.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 12. 手风琴(FAQ) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 20px 24px; background: none; border: 0;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.acc__q:hover { color: var(--brand); }
.acc__q .no { font-family: var(--mono); font-size: 13px; color: var(--brand); flex: none; }
.acc__q .ico {
  position: relative; margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.acc__q .ico::before, .acc__q .ico::after { content: ""; position: absolute; width: 10px; height: 1.6px; background: currentColor; }
.acc__q .ico::after { transform: rotate(90deg); transition: transform .25s ease; }
.acc__item.is-open .acc__q .ico { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc__item.is-open .acc__q .ico::after { transform: rotate(0); }
.acc__a { display: none; padding: 0 24px 22px 62px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.acc__item.is-open .acc__a { display: block; animation: fadeUp .3s ease; }

/* ---------- 13. 时间线(案例/实施步骤) ---------- */
.tl { position: relative; display: grid; gap: 0; padding-left: 34px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand) 60%, var(--line) 0); border-radius: 2px; }
.tl__item { position: relative; padding-block: 14px; }
.tl__item::before {
  content: ""; position: absolute; left: -31px; top: 22px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--brand);
}
.tl__item h4 { font-size: 16.5px; margin-bottom: 6px; }
.tl__item p { color: var(--text-2); font-size: 14.5px; }
.tl__tag { display: inline-block; font-size: 12px; font-family: var(--mono); color: var(--brand); margin-bottom: 4px; letter-spacing: .08em; }
.tl--dark::before { background: linear-gradient(var(--emerald) 60%, var(--ink-3) 0); }
.tl--dark .tl__item::before { background: var(--ink); border-color: var(--emerald); }
.tl--dark h4 { color: #fff; }
.tl--dark p { color: var(--d-text-2); }
.tl--dark .tl__tag { color: var(--emerald); }

/* 横向圆点流程(提交想法:问题→验证→产品化) */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: flow; }
.flow__item { position: relative; padding-top: 58px; text-align: left; }
.flow__item .d {
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; color: var(--brand);
}
.flow__item::before {
  content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.flow__item:last-child::before { display: none; }
.flow__item b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.flow__item span { font-size: 13.5px; color: var(--text-3); }
.flow--dark .flow__item .d { background: var(--ink-2); border-color: var(--emerald); color: var(--emerald); }
.flow--dark .flow__item::before { background: repeating-linear-gradient(90deg, var(--ink-3) 0 8px, transparent 8px 16px); }
.flow--dark .flow__item b { color: #fff; }
.flow--dark .flow__item span { color: var(--d-text-3); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow__item { display: flex; gap: 16px; padding-top: 0; align-items: flex-start; padding-block: 10px; }
  .flow__item .d { position: static; flex: none; }
  .flow__item::before { display: none; }
}

/* 编号步骤卡(怎么开始四步) */
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; position: relative; transition: transform .22s ease, box-shadow .25s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step-card .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-family: var(--mono); font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.step-card h4 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-2); }
.step-card::after {
  content: "→"; position: absolute; right: 20px; top: 24px;
  color: var(--line-strong); font-size: 18px; font-weight: 700; transition: color .2s ease, transform .2s ease;
}
.step-card:hover::after { color: var(--brand); transform: translateX(3px); }
.step-card:last-child::after { content: "✓"; color: var(--brand); }

/* ---------- 14. 列表工具区(筛选/排序/分页) ---------- */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.list-tools .count { font-size: 14px; color: var(--text-3); margin-right: auto; }
.list-tools select {
  appearance: none; border: 1px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234d5a52' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-radius: 999px; padding: 8px 36px 8px 18px; font-size: 13.5px; font-weight: 500; color: var(--text-2); font-family: inherit;
}

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: clamp(36px, 5vw, 56px); }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding-inline: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }

/* ---------- 15. CTA 区 ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 88% -20%, rgba(16, 185, 129, .30), transparent 62%),
    linear-gradient(135deg, #047857, var(--ink) 62%);
  color: var(--d-text); padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(560px 300px at 78% 30%, #000, transparent);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 10px; }
.cta-band p { color: var(--d-text-2); }
.cta-band__acts { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- 16. 表单(登录 / 联系 / 提交想法) ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field .control { position: relative; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 13px 16px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder, .textarea::placeholder { color: #a7b1a8; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); }
.input--ico { padding-left: 44px; }
.input--ico ~ .f-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234d5a52' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: span 1; } }

/* ---------- 17. 登录页专用 ---------- */
.auth-wrap {
  min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  background: var(--ink);
}
.auth-side {
  position: relative; overflow: hidden; color: var(--d-text);
  background:
    radial-gradient(800px 480px at 80% 10%, rgba(16,185,129,.18), transparent 60%),
    linear-gradient(160deg, #17233b, var(--ink) 70%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(700px 480px at 70% 40%, #000, transparent 78%);
}
.auth-side > * { position: relative; }
.auth-panel { background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-card { width: min(380px, 100%); display: grid; gap: 26px; }
.auth-card h1 { font-size: 26px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-3); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- 18. 后台(admin) ---------- */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; background: var(--paper); }
.admin__side {
  background: var(--ink); color: var(--d-text-2);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.admin__side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; padding: 6px 10px 18px; }
.admin__side .brand img { width: 30px; height: 30px; }
.admin__side .group { font-size: 11.5px; letter-spacing: .12em; color: var(--d-text-3); padding: 18px 12px 8px; text-transform: uppercase; }
.admin__side a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; color: var(--d-text-2);
}
.admin__side a svg { width: 17px; height: 17px; opacity: .8; }
.admin__side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin__side a.is-active { background: rgba(16,185,129,.14); color: var(--emerald); font-weight: 600; }
.admin__side a .cnt { margin-left: auto; font-size: 11px; font-family: var(--mono); background: rgba(255,255,255,.08); border-radius: 999px; padding: 1px 8px; }
.admin__main { padding: 26px 32px 48px; display: grid; gap: 22px; align-content: start; }
.admin__topbar { display: flex; align-items: center; gap: 16px; }
.admin__topbar h1 { font-size: 20px; margin-right: auto; }
.admin__search { position: relative; }
.admin__search .input { padding: 9px 14px 9px 38px; width: 260px; border-radius: 999px; font-size: 13.5px; }
.admin__search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #047857); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: grid; gap: 8px; }
.stat-card .k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.stat-card .k svg { width: 15px; height: 15px; }
.stat-card b { font-size: 26px; letter-spacing: -.02em; }
.stat-card .trend { font-size: 12px; }
.stat-card .trend.up { color: var(--brand); }
.stat-card .trend.down { color: #c2410c; }

.admin-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.admin-table table { font-size: 14px; }
.admin-table th {
  text-align: left; font-size: 12.5px; letter-spacing: .04em; color: var(--text-3);
  background: #f1f5f9; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-table .t-title { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; }
.admin-table .t-title .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.admin-table .acts { display: flex; gap: 6px; }
.admin-table .acts a {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-3); font-size: 12px;
}
.admin-table .acts a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 980px) { .admin { grid-template-columns: 1fr; } .admin__side { display: none; } .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 19. 专题页(topic) ---------- */
.topic-hero { position: relative; overflow: hidden; min-height: 480px; display: grid; align-items: center; color: var(--d-text); background: var(--ink); }
.topic-hero__bg { position: absolute; inset: 0; }
.topic-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.topic-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.94) 22%, rgba(15,23,42,.55) 60%, rgba(15,23,42,.25)); }
.topic-hero__in { position: relative; padding: clamp(64px, 9vw, 120px) 0; max-width: 720px; display: grid; gap: 20px; justify-items: start; align-items: start; }
.topic-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); }
.topic-hero .lead { color: var(--d-text-2); }
.topic-meta { display: flex; flex-wrap: wrap; gap: 10px; }

/* 专题卡片(专题列表页用大图卡) */
.topic-card { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; display: grid; align-items: end; color: #fff; isolation: isolate; }
.topic-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.topic-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,23,42,.05) 30%, rgba(15,23,42,.85) 88%); }
.topic-card:hover img { transform: scale(1.05); }
.topic-card__body { padding: 28px; display: grid; gap: 10px; }
.topic-card h3 { font-size: 22px; color: #fff; }
.topic-card p { color: rgba(255,255,255,.75); font-size: 14px; }

/* ---------- 20. 滚动显现 & 杂项 ---------- */
/* 仅在 JS 就绪(html.js)时才隐藏待显现元素,保证无 JS 环境内容可见 */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.totop, .fab-idea {
  position: fixed; right: 26px; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--line-strong);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .25s ease, color .25s ease, border-color .25s ease;
  transform: translateY(8px);
  box-shadow: var(--sh-md);
}
.totop { bottom: 26px; font-size: 19px; font-weight: 700; }
.fab-idea { bottom: 82px; }
.totop.is-show, .fab-idea.is-show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover, .fab-idea:hover {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff; border-color: transparent;
  box-shadow: var(--sh-brand);
}
/* 深色区块(页脚)上浮层加一圈浅描边,避免白底钮融入暗底 */
.site-footer ~ .totop, .site-footer ~ .fab-idea { border-color: rgba(255, 255, 255, .16); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.notice {
  display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--brand-soft); border: 1px solid rgba(5,150,105,.18);
  font-size: 14px; color: var(--brand-strong);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--rev { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .list-tools { gap: 8px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   22. 桥接层:站内扩展标签(ExtLabelController)固定输出的映射
   {pboot:ifu_val/ifu_tags/ifu_ports/ifu_steps/ifu_items/ifu_creds/
    ifu_lines/ifu_mod/ifu_rel} 输出的类名在这里映射到新设计语言。
   本文件必须晚于 ifu-brand.css 加载(见 head.html)。
   ============================================================ */

/* 全局兜底:旧样式表对元素级选择器的干扰(标题字体回到系统栈) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); margin: 0; }
p { margin: 0; }

/* 22.1 规格表行(ifu_val / ifu_tags)——放在 .spec 容器内即为规格卡 */
.spec .ifu-spec-row,
.ifu-spec-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: start; background: var(--surface); }
.spec > .ifu-spec-row:last-child, .ifu-spec-row:last-child { border-bottom: 0; }
@media (max-width: 720px) { .spec .ifu-spec-row, .ifu-spec-row { grid-template-columns: 112px minmax(0, 1fr); } }
.ifu-spec-key { font-size: 13.5px; font-weight: 600; color: var(--text-3); padding-top: 3px; }
.ifu-spec-val { font-size: 14.5px; color: var(--text); }
.ifu-spec-val a { color: var(--brand); font-weight: 600; }

/* 22.2 多选标签组(ifu_tags 内的 ifu-tag) */
.ifu-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ifu-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--paper); border: 1px solid var(--line); color: var(--text-2); }
.ifu-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55; }

/* 22.3 模块容器(ifu_mod / wrap) */
.ifu-mod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ifu-mod-title { font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.015em; color: var(--text); }

/* 22.4 编辑器富文本(ifu_mod 的 .ifu-rich)——对齐 .prose */
.ifu-rich { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font-size: 15.5px; color: var(--text-2); line-height: 1.9; }
.ifu-rich h2 { font-size: 22px; color: var(--text); padding-top: 6px; }
.ifu-rich h3 { font-size: 18px; color: var(--text); }
.ifu-rich p { color: var(--text-2); }
.ifu-rich ul { list-style: none; display: grid; gap: 9px; }
.ifu-rich ul li { padding-left: 24px; position: relative; color: var(--text-2); }
.ifu-rich ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); opacity: .7; }
.ifu-rich img { max-width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.ifu-rich a { color: var(--brand); font-weight: 600; }
.ifu-rich code { font-family: var(--mono); font-size: 13px; background: #f1f5f9; padding: 1px 7px; border-radius: 6px; overflow-wrap: anywhere; }

/* 22.5 网络端口表(ifu_ports) */
.ifu-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.ifu-table { font-size: 13.5px; }
.ifu-table th { background: #f1f5f9; text-align: left; font-size: 12.5px; letter-spacing: .04em; color: var(--text-3); padding: 10px 14px; white-space: nowrap; }
.ifu-table td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text-2); font-family: var(--mono); font-size: 12.5px; }
.ifu-nowrap { white-space: nowrap; }
.ifu-flag { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: var(--font); }
.ifu-flag.is-on { background: var(--brand-soft); color: var(--brand-strong); }
.ifu-flag.is-off { background: #f1f5f9; color: var(--text-3); }

/* 22.6 实施步骤时间线(ifu_steps)——映射到 .tl 视觉 */
.ifu-steps { position: relative; display: grid; padding-left: 34px; }
.ifu-steps::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand) 60%, var(--line) 0); border-radius: 2px; }
.ifu-steps li { position: relative; padding-block: 13px; list-style: none; }
.ifu-steps li::before { content: ""; position: absolute; left: -31px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.ifu-steps .num { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: .08em; margin-bottom: 4px; }
.ifu-steps h4 { font-size: 16.5px; color: var(--text); margin-bottom: 5px; }
.ifu-steps p { color: var(--text-2); font-size: 14.5px; }
.section--ink .ifu-steps::before { background: linear-gradient(var(--emerald) 60%, var(--ink-3) 0); }
.section--ink .ifu-steps li::before { background: var(--ink); border-color: var(--emerald); }
.section--ink .ifu-steps .num { color: var(--emerald); }
.section--ink .ifu-steps h4 { color: #fff; }
.section--ink .ifu-steps p { color: var(--d-text-2); }

/* 22.7 条目清单(ifu_items) */
.ifu-check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .ifu-check-list { grid-template-columns: 1fr; } }
.ifu-check-list li { list-style: none; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px 16px 46px; position: relative; }
.ifu-check-list li::before { content: "✓"; position: absolute; left: 18px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ifu-check-list b { font-size: 15px; color: var(--text); }
.ifu-check-list span { font-size: 13.5px; color: var(--text-2); }

/* 22.8 默认凭据卡(ifu_creds) */
.ifu-cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.ifu-cred-card { background: var(--amber-soft); border: 1px solid rgba(226, 163, 60, .3); border-radius: var(--r-md); padding: 18px 20px; }
.ifu-cred-card h5 { font-size: 15px; color: #8a6110; margin-bottom: 10px; }
.ifu-cred-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13.5px; }
.ifu-cred-card dt { color: var(--text-3); }
.ifu-cred-card dd { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ifu-cred-card dd a { color: var(--brand); }
.ifu-secret { padding: 1px 9px; border-radius: 999px; background: #fff; border: 1px solid rgba(226, 163, 60, .4); font-weight: 600; font-size: 12.5px; color: #8a6110; }

/* 22.9 逐行列表(ifu_lines) */
.ifu-lines { display: grid; gap: 10px; }
.ifu-lines li { list-style: none; position: relative; padding-left: 22px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.ifu-lines li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); opacity: .7; }

/* 22.10 关联内容卡(ifu_rel)——输出为 bootstrap 栅格,卡片本身桥接 */
.ifu-rel-card { display: flex; gap: 14px; align-items: center; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease; }
.ifu-rel-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.ifu-rel-media { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); padding: 8px; flex: none; display: grid; place-items: center; }
.ifu-rel-media img { width: 100%; height: 100%; object-fit: contain; }
.ifu-rel-body { display: grid; gap: 3px; min-width: 0; }
.ifu-rel-body b { font-size: 15px; color: var(--text); }
.ifu-rel-body > span { font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 22.11 区块与标题组(band="1" 的输出) */
.ifu-band { padding-block: clamp(56px, 8vw, 96px); }
.ifu-band.gray-bg { background: var(--surface); border-block: 1px solid var(--line); }
.ifu-head { display: grid; gap: 13px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.ifu-head--compact { margin-bottom: 28px; padding-left: 16px; border-left: 3px solid var(--brand); }
.ifu-kicker { display: inline-flex; justify-self: start; align-self: start; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; }
.ifu-kicker::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.ifu-head h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; color: var(--text); }
.ifu-head p { color: var(--text-2); font-size: 15.5px; }

/* 22.12 旧组件兜底:跳转链接/成员表单消息 */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* 22.13 分页({page:bar} 输出,旧模板包在 .ifu-pager 里) —— 无框极简风
   结构:.page-status(统计文字) / .page-index / .page-pre / .page-numbar > a.page-num /
   .page-next / .page-last;仅当前页有底色,其余是纯文字热区 */
.ifu-pager {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px;
  margin-top: clamp(40px, 5vw, 60px);
}
.ifu-pager .page-status {
  flex-basis: 100%; text-align: center;
  font-size: 13px; color: var(--text-3); font-weight: 400; letter-spacing: .02em;
  margin-bottom: 6px;
}
.ifu-pager .page-numbar { display: flex; gap: 4px; align-items: center; margin-inline: 8px; }
.ifu-pager a, .ifu-pager span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  background: none; border: 0; color: var(--text-2);
  transition: color .2s ease, background .2s ease;
}
.ifu-pager .page-num { font-variant-numeric: tabular-nums; }
.ifu-pager a:hover { color: var(--brand-strong); background: var(--brand-soft); }
.ifu-pager a.page-num-current, .ifu-pager a.page-num-current:hover {
  background: var(--ink); color: #fff;
}
/* 失效项(javascript:;)再降一档:更浅,不可点 */
.ifu-pager a[href='javascript:;'], .ifu-pager a[href='javascript:;']:hover {
  color: var(--line-strong); background: none; cursor: default;
}
@media (max-width: 560px) {
  .ifu-pager a, .ifu-pager span { min-width: 36px; height: 36px; padding: 0 8px; font-size: 13.5px; }
}

/* 22.14 文章列表(博客栏目):列表式条目,分隔线代替卡片 */
.post-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.post-item {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 22px 26px; border-bottom: 1px solid var(--line); position: relative;
  transition: background .2s ease;
}
.post-item:last-child { border-bottom: 0; }
.post-item:hover { background: #fafcfa; }
.post-item__media { width: 168px; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: #f1f5f9; flex: none; }
.post-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-item:hover .post-item__media img { transform: scale(1.04); }
.post-item__body { display: grid; gap: 7px; min-width: 0; }
.post-item__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.post-item__title { font-size: 18.5px; font-weight: 700; color: var(--text); line-height: 1.5; transition: color .2s ease; }
.post-item:hover .post-item__title { color: var(--brand-strong); }
.post-item__desc { font-size: 14px; color: var(--text-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item__date { font-family: var(--mono); font-size: 13px; color: var(--text-3); white-space: nowrap; align-self: start; padding-top: 4px; }
.post-item--feat { grid-template-columns: 280px minmax(0, 1fr) auto; padding-block: 26px; background: linear-gradient(90deg, var(--brand-soft), transparent 55%); }
.post-item--feat .post-item__media { width: 280px; }
.post-item--feat .post-item__title { font-size: 22px; }
.post-item--feat .post-item__desc { -webkit-line-clamp: 2; }
@media (max-width: 760px) {
  .post-item, .post-item--feat { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 16px 18px; }
  .post-item__media, .post-item--feat .post-item__media { width: 104px; }
  .post-item__date { display: none; }
  .post-item__title { font-size: 16px; }
  .post-item--feat .post-item__title { font-size: 17px; }
  .post-item__desc { -webkit-line-clamp: 1; }
}


/* ---------- 23. 站内搜索面板(页头) ---------- */
.site-header__searchbtn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); display: grid; place-items: center;
  transition: color .2s ease, border-color .2s ease;
}
.site-header__searchbtn:hover { color: var(--brand); border-color: var(--brand); }
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .25);
  padding: 18px 0;
}
.search-panel__form { display: flex; align-items: center; gap: 12px; }
.search-panel__form svg { color: var(--text-3); flex: none; }
.search-panel__form input {
  flex: 1; font-family: inherit; font-size: 16px; color: var(--text);
  border: 0; outline: none; background: none; padding: 10px 2px;
}
.site-header { position: sticky; }
.site-header .search-panel { position: absolute; }

/* ---------- 24. 搜索页:hero 内再次搜索框 ---------- */
.search-again {
  position: relative; display: flex; align-items: center;
  max-width: 560px; margin-top: 6px;
}
.search-again svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--d-text-3); pointer-events: none;
}
.search-again input {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--d-text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-3);
  border-radius: 12px; padding: 13px 96px 13px 44px; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.search-again input::placeholder { color: var(--d-text-3); }
.search-again input:focus { border-color: rgba(16, 185, 129, .5); background: rgba(255, 255, 255, .09); }
.search-again .btn { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }

/* 22.15 要点清单(场景列表「对照」区)——映射到新设计语言 */
.ifu-points { display: grid; gap: 0; }
.ifu-points > li { padding: 14px 0 14px 30px; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.85; color: var(--text-2); }
.ifu-points > li:last-child { border-bottom: 0; }
.ifu-points > li:before {
  content: "✓"; position: absolute; left: 2px; top: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.ifu-points strong { color: var(--text); font-weight: 600; }

/* ---------- 25. 文档详情:首尾翻页卡 ---------- */
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.doc-pager > a, .doc-pager > span {
  display: grid; gap: 5px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
/* 卡片内部的 dir/t 文本不是独立卡片 */
.doc-pager .dir, .doc-pager .t { border: 0; background: none; padding: 0; }
.doc-pager a { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.doc-pager a:hover { border-color: var(--brand); box-shadow: var(--sh-sm); transform: translateY(-2px); text-decoration: none; }
.doc-pager .dir { font-size: 12px; color: var(--text-3); letter-spacing: .06em; }
.doc-pager .t { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; }
.doc-pager a:hover .t { color: var(--brand-strong); }
.doc-pager .next { text-align: right; justify-items: end; }
.doc-pager span.is-off { opacity: .45; }
.doc-pager span.is-off .t { color: var(--text-3); font-weight: 400; }
@media (max-width: 640px) { .doc-pager { grid-template-columns: 1fr; } .doc-pager .next { text-align: left; justify-items: start; } }
