/* ============================================================
   爱搜 · IISOU — tool 皮肤（第二站专用）
   主站 index.html 不引用本文件，所有规则都带 data-skin / .iz- 作用域。

   A 段：通用皮肤（iisou.html / detail.html / about.html 共用）
   B 段：iisou.html 独立模板专属结构（.iz-*）
   ============================================================ */

/* ---------- A. 通用皮肤：暖纸底 + 方角 + 细线 ---------- */

body[data-skin="tool"] {
  --bg: #f6f2e9;
  --bg-soft: #efe9da;
  --line: #e8e1cf;
  --line-strong: #d8d0ba;
  --paper: #f7f3ea;
  --paper-line: #e8e1cf;
  --paper-ink: #6a5f4b;
  --radius-s: 4px;
  --radius: 6px;
  --radius-l: 10px;
  --shadow-s: none;
  --shadow: 0 1px 2px rgba(63, 52, 30, .05);
  --shadow-l: none;
}

/* 暗色主题：墨绿/暖橙重新钉死，避免被全局 dark 变量拉回蓝紫 */
html[data-theme="dark"] body[data-skin="tool"] {
  --bg: #101614;
  --bg-soft: #141c1a;
  --line: #243029;
  --line-strong: #31423a;
  --paper: #121816;
  --paper-line: #243029;
  --paper-ink: #93a69d;
  --brand: #2e8b7a;
  --brand-2: #3aa58f;
  --accent: #e0a052;
  --brand-soft: rgba(46, 139, 122, .16);
}

/* 顶条：墨绿实色 + 暖橙细线（主站是白色毛玻璃） */
body[data-skin="tool"] .site-header {
  background: var(--brand);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-skin="tool"] .site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
}
body[data-skin="tool"] .brand-mark {
  background: #fff;
  color: var(--brand);
  border-radius: 3px;
  box-shadow: none;
}
body[data-skin="tool"] .brand-name { color: #fff; }
body[data-skin="tool"] .brand-en { color: rgba(255, 255, 255, .55); }
body[data-skin="tool"] .main-nav a { color: rgba(255, 255, 255, .86); }
body[data-skin="tool"] .main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .15); }
body[data-skin="tool"] .main-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .2); }
body[data-skin="tool"] .header-search {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  box-shadow: none;
}
body[data-skin="tool"] .header-search input { color: #fff; }
body[data-skin="tool"] .header-search input::placeholder { color: rgba(255, 255, 255, .55); }
body[data-skin="tool"] .header-search .ic { color: rgba(255, 255, 255, .75); }
body[data-skin="tool"] .icon-btn { color: #fff; border-color: transparent; background: transparent; }
body[data-skin="tool"] .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
body[data-skin="tool"] .mobile-nav { border-top: 1px solid var(--line); }

/* Hero：纸面（iisou.html 用 B 段结构，这里只是详情页等页面没有 hero 时的兜底） */
body[data-skin="tool"] .hero {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 46px 0 32px;
}
body[data-skin="tool"] .hero-main { max-width: 780px; text-align: center; }
body[data-skin="tool"] .hero-eyebrow {
  height: auto; padding: 0; border-radius: 0; background: none; border: 0;
  color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  margin-bottom: 14px;
}
body[data-skin="tool"] .hero-eyebrow .dot { display: none; }
body[data-skin="tool"] .hero h1 { letter-spacing: .02em; }
body[data-skin="tool"] .hero h1 em {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
body[data-skin="tool"] .hero p.lead { color: var(--paper-ink); }
body[data-skin="tool"] .hero-search {
  height: 58px; border-radius: 6px; border-color: var(--line-strong);
  background: var(--surface); box-shadow: none;
}
body[data-skin="tool"] .hero-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
body[data-skin="tool"] .hero-search button { background: var(--brand); border-radius: 4px; box-shadow: none; }
body[data-skin="tool"] .hero-search button:hover {
  transform: none; box-shadow: none;
  background: color-mix(in srgb, var(--brand) 84%, #000);
}
body[data-skin="tool"] .hero-meta { justify-content: center; margin-top: 16px; }
body[data-skin="tool"] .hero-tags { display: flex; justify-content: center; }
body[data-skin="tool"] .hero-tags a { border-radius: 3px; background: transparent; border-color: var(--line); }
body[data-skin="tool"] .hero-tags a:hover {
  transform: none; background: var(--surface); border-color: var(--brand); color: var(--brand);
}
body[data-skin="tool"] .hero-trust { display: inline-flex; justify-content: center; color: var(--paper-ink); }

/* 标题与筛选：菱形标 + 下划线 tab */
body[data-skin="tool"] .section-head h2 { font-size: 19px; letter-spacing: .06em; }
body[data-skin="tool"] .section-head h2 .bar {
  width: 8px; height: 8px; border-radius: 1px; background: var(--accent);
  transform: rotate(45deg);
}
body[data-skin="tool"] .cat-chip { border-radius: 3px; background: transparent; }
body[data-skin="tool"] .cat-chip.is-active { background: var(--brand); border-color: var(--brand); }
html[data-theme="dark"] body[data-skin="tool"] .cat-chip.is-active { color: #fff; }
body[data-skin="tool"] .sorts button {
  border-radius: 0; background: none; box-shadow: none;
  padding: 4px 2px 8px; border-bottom: 2px solid transparent;
}
body[data-skin="tool"] .sorts button:hover { background: none; }
body[data-skin="tool"] .sorts button.is-active {
  background: none; box-shadow: none; color: var(--brand);
  border-bottom-color: var(--accent);
}

/* 列表：索引行式（封面内联渐变需 !important 压制） */
body[data-skin="tool"] .card {
  border-radius: 0; box-shadow: none; background: transparent;
  border-color: transparent; border-bottom: 1px solid var(--line);
}
body[data-skin="tool"] .card:hover {
  transform: none; box-shadow: none; border-radius: 6px; border-color: transparent;
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}
body[data-skin="tool"] .card-cover .cover {
  background: color-mix(in srgb, var(--brand) 9%, var(--paper)) !important;
}
body[data-skin="tool"] .card-cover .cover::after { display: none; }
body[data-skin="tool"] .cover-glyph { color: color-mix(in srgb, var(--brand) 72%, #fff); text-shadow: none; }
body[data-skin="tool"] .card-title { letter-spacing: .01em; }
body[data-skin="tool"] .card-title a:hover { color: var(--brand); }
body[data-skin="tool"] .side-cover,
body[data-skin="tool"] .mini-cover {
  background: color-mix(in srgb, var(--brand) 9%, var(--paper)) !important;
  border-radius: 3px;
}

/* 面板与组件 */
body[data-skin="tool"] .panel {
  background: var(--surface); border-color: var(--line);
  border-top: 2px solid var(--brand); border-radius: 0; box-shadow: none;
}
body[data-skin="tool"] .notice-panel { background: var(--surface); border-color: var(--line); }
body[data-skin="tool"] .pagination button { border-radius: 3px; }
body[data-skin="tool"] .to-top { border-radius: 4px; }

/* 详情页与按钮 */
body[data-skin="tool"] .btn { border-radius: 4px; }
body[data-skin="tool"] .btn-primary { background: var(--brand); box-shadow: none; }
body[data-skin="tool"] .btn-primary:hover {
  transform: none; box-shadow: none;
  background: color-mix(in srgb, var(--brand) 84%, #000);
}
body[data-skin="tool"] .lead-quote {
  border-left-color: var(--accent); background: var(--paper); border-radius: 0;
}
body[data-skin="tool"] .article-head h1 { letter-spacing: .01em; }
body[data-skin="tool"] .article-body h2 .idx { border-radius: 2px; }
body[data-skin="tool"] .site-footer { background: var(--paper); border-top: 3px solid var(--brand); }
body[data-skin="tool"] .footer-col h4 { color: var(--brand); }
body[data-skin="tool"] .footer-bottom { border-top-color: var(--line); }

/* 详情页：单栏 + 顶部横排信息条（主站是正文/侧卡左右分栏） */
body[data-skin="tool"] .detail-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
body[data-skin="tool"] .detail-side { order: -1; display: block; }
body[data-skin="tool"] .detail-side .side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0;
  padding: 16px 20px;
}
body[data-skin="tool"] .detail-side .side-card:first-child {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
}
body[data-skin="tool"] .detail-side .side-cover {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 3px;
}
body[data-skin="tool"] .detail-side .side-cover .cover-glyph { font-size: 32px; }
body[data-skin="tool"] .detail-side .side-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  font-size: 12.5px;
}
body[data-skin="tool"] .detail-side .side-list li {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
body[data-skin="tool"] .detail-side .side-actions {
  margin: 0;
  flex-direction: column;
  gap: 8px;
}
/* 同类热门收进正文底部「相关推荐」，顶部只留信息条 */
body[data-skin="tool"] .detail-side .side-card + .side-card { display: none; }
body[data-skin="tool"] .article-head h1 { margin-bottom: 10px; }
body[data-skin="tool"] .article-meta { padding-bottom: 16px; }
/* 分类徽章内联的是分类固定色（紫蓝），皮肤下统一回墨绿 */
body[data-skin="tool"] .article-cat {
  border-radius: 2px;
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
body[data-skin="tool"] .highlight-list li { border-radius: 4px; }
body[data-skin="tool"] .download-card { border-radius: 0; }
body[data-skin="tool"] .download-card .disk-logo { border-radius: 4px; }
body[data-skin="tool"] .tag-row .tag { border-radius: 2px; }

/* ---------- B. iisou.html 独立模板 ---------- */

/* 头部：搜索框居中拉宽、导航靠右（主站是 logo → 导航 → 窄搜索） */
.iz-header { gap: 20px; }
.iz-header .header-search {
  flex: 1 1 auto;
  width: auto;
  max-width: 430px;
  height: 40px;
}
.iz-header .main-nav { margin-left: auto; }

/* Hero：紧凑横排 —— 左文案右搜索，不是主站的「大标题 + 右侧速览卡」 */
.iz-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 36px 0 30px;
}
.iz-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 40px;
  align-items: center;
}
.iz-hero-copy h1 {
  font-size: clamp(23px, 2.6vw, 33px);
  line-height: 1.26;
  letter-spacing: .01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.iz-hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
}
.iz-hero-copy p {
  margin: 0;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--paper-ink);
}
.iz-search {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 56px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 120px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color .18s, box-shadow .18s;
}
/* 视口兜底：任何情况下搜索框都不越过屏幕右边界 */
.iz-hero-search .iz-search { max-width: calc(100vw - 40px); }
.iz-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.iz-search .ic { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.iz-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 15.5px;
  color: var(--ink);
}
.iz-search input::placeholder { color: var(--ink-3); }
.iz-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background .16s;
}
.iz-search button:hover { background: color-mix(in srgb, var(--brand) 84%, #000); }
.iz-hero-search { min-width: 0; }
/* 提高特异性压过 A 段 body[data-skin="tool"] .hero-tags 的居中 */
body[data-skin="tool"] .iz-hero-search .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  justify-content: flex-start;
}
.iz-hero-search .hero-tags .label { color: var(--ink-3); }
.iz-hero-search .hero-tags a {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-2);
  background: transparent;
  transition: color .15s, border-color .15s;
}
.iz-hero-search .hero-tags a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--surface);
  transform: none;
}

/* 数据带：横向四个指标，虚线分隔（主站是右侧竖排速览卡） */
.iz-stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.iz-stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iz-stat {
  padding: 18px 0 17px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px dashed var(--line);
  padding-left: 26px;
}
.iz-stat:first-child { padding-left: 0; }
.iz-stat:last-child { border-right: 0; }
.iz-stat b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
}
.iz-stat span { font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); }

/* 区块标题：菱形标 + 右侧说明 */
.iz-block { padding-top: 36px; }
.iz-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.iz-block-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
}
.iz-block-head h2::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}
.iz-block-head h2 .ic { width: 18px; height: 18px; color: var(--brand); }
.iz-block-head .sub,
.iz-block-head #listSub { font-size: 12.5px; color: var(--ink-3); }

/* 标签墙：按热度排字号的大字云（主站是侧栏小标签云） */
.iz-tagwall {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
}
.iz-tagwall a {
  font-size: calc(var(--s, 20) * 1px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink);
  transition: color .15s;
}
.iz-tagwall a:nth-child(3n) { color: var(--brand); }
.iz-tagwall a:hover { color: var(--accent); }
.iz-tagwall a i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 4px;
  vertical-align: super;
}
/* 标签少时右侧留白用「全部收录」出口收口 */
.iz-tagwall .iz-tag-all {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 3px;
  white-space: nowrap;
  align-self: center;
}
.iz-tagwall .iz-tag-all .ic { width: 15px; height: 15px; }
.iz-tagwall .iz-tag-all:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* 列表工具条：chips + 排序一行排开，下面接全宽行式列表 */
.iz-filterbar {
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.iz-filterbar #catRow { flex: 1 1 auto; padding: 0; margin: 0; }
.iz-filterbar .cat-chip { height: 31px; }
.iz-filterbar .sorts {
  flex: none;
  gap: 18px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.iz-count { padding: 11px 0 13px; font-size: 12.5px; color: var(--ink-3); }
.iz-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.iz-block .card-grid { gap: 0; }
.iz-block .card { padding: 4px 0; }
.iz-block .card-cover { min-height: 128px; }

/* ---------- C. 程序化书封（3:4 竖版，替代渐变块 + 首字） ---------- */

.bk {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, .28);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .16)),
    var(--bg);
  color: var(--ink);
  isolation: isolate;
  /* 右侧两道：书页白边 + 内凹阴影 */
  box-shadow:
    inset -2px 0 0 rgba(255, 255, 255, .11),
    inset -4px 0 0 rgba(0, 0, 0, .13);
  transition: transform .22s ease, box-shadow .22s ease;
}
/* 布纹 + 纸面噪点：交叉细线 + SVG 噪点，soft-light 叠在底色上 */
.bk::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px);
  background-size: 140px 140px, auto, auto;
  opacity: .5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* 烫金内框 + 四角角花 */
.bk::after {
  content: "";
  position: absolute;
  inset: 6px 6px 6px 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--gold) 90%, transparent) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 90%, transparent) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--gold) 90%, transparent) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--gold) 90%, transparent) 0 .8px, transparent 1.5px);
  background-repeat: no-repeat;
}
/* 书脊 */
.bk-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  z-index: 2;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--spine) 94%, #000),
    var(--spine) 58%,
    color-mix(in srgb, var(--spine) 76%, #fff));
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .45), 1px 0 0 rgba(0, 0, 0, .22);
}
/* 书脊上的两道烫金压条 */
.bk-spine::before,
.bk-spine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 58%, transparent);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.bk-spine::before { top: 17%; }
.bk-spine::after { bottom: 17%; }

/* 竖排书名：烫金渐变裁到字形 + 凹版压印（下沿受光、上沿落影） */
.bk-title {
  position: relative;
  z-index: 1;
  margin-left: 17px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.12;
  max-height: calc(100% - 26px);
  max-width: calc(100% - 32px);
  overflow: hidden;
  background-image: linear-gradient(174deg,
    color-mix(in srgb, var(--gold) 60%, #fff) 0%,
    var(--gold) 22%,
    color-mix(in srgb, var(--gold) 58%, #fff) 38%,
    color-mix(in srgb, var(--gold-d) 72%, var(--gold)) 55%,
    var(--gold) 76%,
    color-mix(in srgb, var(--gold-d) 82%, var(--gold)) 100%);
  background-size: 100% 34px;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .12),
    0 -1px 1px rgba(0, 0, 0, .38),
    0 0 5px rgba(0, 0, 0, .1);
}

/* 右下角朱红印章 */
.bk-seal {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  padding: 2px 1.5px;
  writing-mode: vertical-rl;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  color: #fbeee0;
  background: color-mix(in srgb, #a8342a 88%, transparent);
  border: 1px solid color-mix(in srgb, #a8342a 52%, transparent);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .22);
}

/* 尺寸档位：字号按「一列 8 字」反推，保证书名不换列 */
.bk--sm .bk-title { font-size: 14px; }
.bk--sm .bk-title--xl { font-size: 21px; letter-spacing: .22em; }
.bk--sm .bk-title--tight { font-size: 12px; letter-spacing: .06em; }
.bk--lg .bk-title { font-size: 14px; letter-spacing: .14em; }
.bk--lg .bk-title--xl { font-size: 26px; letter-spacing: .2em; }
.bk--lg .bk-title--tight { font-size: 12.5px; letter-spacing: .08em; }
.bk--lg .bk-seal { font-size: 8px; padding: 2.5px 2px; }
.bk--lg::after { inset: 9px 9px 9px 20px; }
.bk--lg .bk-spine { width: 13px; }
.bk--xs .bk-title { font-size: 9px; letter-spacing: .1em; margin-left: 13px; max-height: calc(100% - 14px); }
.bk--xs .bk-title--xl { font-size: 12px; }
.bk--xs .bk-title--tight { font-size: 8px; }
.bk--xs .bk-seal { display: none; }
.bk--xs::after { inset: 3px 3px 3px 10px; border-width: 1px; }
.bk--xs .bk-spine { width: 7px; }
.bk--xs .bk-spine::before,
.bk--xs .bk-spine::after { display: none; }

/* 列表卡片：封面改 3:4 书封（原 list 布局是 190px 横向色块）。
   align-self 必须 flex-start：卡片是 stretch 的，不给就用文字区高度把书封拉长。 */
body[data-skin="tool"] .card-cover {
  width: 116px;
  min-height: 0;
  aspect-ratio: 3 / 4;
  flex: none;
  align-self: flex-start;
  overflow: visible;
}
/* 书封自带信息，分类/热门角标不再压在上面 */
body[data-skin="tool"] .cover-badge,
body[data-skin="tool"] .cover-hot { display: none; }
/* 一点投影，让书在纸面上「立」起来 */
body[data-skin="tool"] .card-cover .bk {
  box-shadow:
    inset -2px 0 0 rgba(255, 255, 255, .11),
    inset -4px 0 0 rgba(0, 0, 0, .13),
    0 4px 10px -4px rgba(31, 42, 32, .45),
    0 1px 2px rgba(31, 42, 32, .18);
}
body[data-skin="tool"] .card:hover .card-cover .bk {
  transform: translateY(-2px) rotate(-.4deg);
  box-shadow:
    inset -2px 0 0 rgba(255, 255, 255, .11),
    inset -4px 0 0 rgba(0, 0, 0, .13),
    0 10px 20px -8px rgba(31, 42, 32, .55),
    0 2px 4px rgba(31, 42, 32, .22);
}

/* 详情侧栏封面：必须给足宽度，否则会被信息条的 align-items:center 压成内容高度 */
body[data-skin="tool"] .detail-side .side-cover--bk {
  width: 116px;
  aspect-ratio: 3 / 4;
  align-self: center;
  background: none;
  border-radius: 0;
  margin-bottom: 0;
}

/* 相关推荐小封面 */
body[data-skin="tool"] .mini-cover--bk {
  aspect-ratio: 3 / 4;
  background: none;
}
body[data-skin="tool"] .mini-cover--bk .bk-title { font-size: 10px; }

/* 页脚：前段变量覆盖 */
.iz-footer {
  margin-top: 60px;
  background: #0d2f28;
  color: rgba(255, 255, 255, .72);
  border-top: 3px solid var(--accent);
}
html[data-theme="dark"] .iz-footer { background: #0a211c; }
.iz-foot-top {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr;
  gap: 48px;
  padding: 46px 0 34px;
}
.iz-foot-brand .brand-mark {
  background: #fff;
  color: #0d2f28;
  border-radius: 3px;
}
.iz-foot-brand .brand-name { color: #fff; }
.iz-foot-brand .brand-en { color: rgba(255, 255, 255, .48); }
.iz-foot-brand p {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .6);
}
.iz-foot-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .45); }
.iz-foot-meta b { color: #e9c89b; font-variant-numeric: tabular-nums; }
.iz-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.iz-foot-cols h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .42);
}
.iz-foot-cols a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  transition: color .15s;
}
.iz-foot-cols a:hover { color: #fff; }
.iz-footer .footer-recent {
  padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.iz-footer .footer-recent-head h4 { color: rgba(255, 255, 255, .55); }
.iz-footer .footer-recent-all { color: rgba(255, 255, 255, .42); }
.iz-footer .footer-recent-all:hover { color: #fff; }
.iz-footer .footer-recent-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
}
.iz-footer .footer-recent-list a { color: rgba(255, 255, 255, .58); font-size: 12px; line-height: 2.05; }
.iz-footer .footer-recent-list a:hover { color: #fff; }
.iz-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
}
.iz-foot-bottom .links { display: flex; gap: 16px; }
.iz-foot-bottom a { color: rgba(255, 255, 255, .55); }
.iz-foot-bottom a:hover { color: #fff; }

/* 响应式：窄屏 Hero 堆叠、数据带两列、页脚单列 */
@media (max-width: 980px) {
  .iz-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .iz-hero { padding: 28px 0 24px; }
  .iz-header .header-search { display: none; }
  .iz-foot-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .iz-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iz-stat { padding: 15px 0; }
  .iz-stat:nth-child(2) { border-right: 0; }
  .iz-stat:nth-child(3) { padding-left: 0; border-top: 1px dashed var(--line); }
  .iz-stat:nth-child(4) { border-top: 1px dashed var(--line); }
  body[data-skin="tool"] .detail-side .side-card:first-child {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }
  /* 平板宽度下书封跟着收窄，字号同步降一档，保证书名仍是一列 */
  body[data-skin="tool"] .detail-side .side-cover--bk { width: 96px; }
  body[data-skin="tool"] .detail-side .side-cover--bk .bk-title { font-size: 12px; letter-spacing: .1em; }
  body[data-skin="tool"] .detail-side .side-cover--bk .bk-title--tight { font-size: 10.5px; }
  body[data-skin="tool"] .detail-side .side-cover--bk .bk-title--xl { font-size: 20px; }
  body[data-skin="tool"] .detail-side .side-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  body[data-skin="tool"] .detail-side .side-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}
@media (max-width: 640px) {
  .iz-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .iz-footer .footer-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iz-hero-copy h1 { font-size: 24px; }
  .iz-tagwall { gap: 4px 18px; }
  .iz-tagwall a { font-size: calc(var(--s, 18) * .78px); }
  .iz-tagwall .iz-tag-all { margin-left: 0; }
  .iz-block { padding-top: 28px; }
  .iz-search { height: 50px; padding-left: 14px; padding-right: 100px; }
  .iz-search button { padding: 0 14px; font-size: 13px; }
  .iz-block-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .iz-count { padding: 9px 0 12px; }
  /* list 布局的 190px 封面在窄屏会把整页撑宽，这里强制收缩 */
  body[data-skin="tool"] .card-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body[data-skin="tool"] .card { flex-direction: row; }
  body[data-skin="tool"] .card-cover {
    width: 92px;
    min-height: 104px;
    aspect-ratio: auto;
    flex: none;
  }
  body[data-skin="tool"] .card-cover .cover-glyph { font-size: 26px; }
  body[data-skin="tool"] .card-body { padding: 12px 0 10px 14px; gap: 5px; }
  body[data-skin="tool"] .card-title { font-size: 14.5px; line-height: 1.45; }
  body[data-skin="tool"] .card-excerpt { display: none; }
  body[data-skin="tool"] .iz-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-skin="tool"] .iz-hero-inner { gap: 18px; }
}
