/* 标签页新版式（2026-10-26，.tg 作用域、tg- 前缀；模板 tag-v3.php，数据层 mu-plugins/liezhe-tagpage.php）
   跟支柱页分开：没有大 hero、插画、一分钟结论、彩色图标，主体是文章目录。
   数值走设计库 刻度.md（8 格、圆角 24/18、阴影同 ui2）；降噪规矩照 页面视觉.md 第 11 条：
   三级文字（标题 / 正文 16 / 辅助 14）、字色只用 #0f172a #1e293b #64748b + 链接蓝、图标一种蓝、链接两种样式、不用英文小标签。
   本机正本：E:\站点\www.liezhe.com\补丁\tag-v3.css → wp-content/themes/wpdx-liezhe/assets/css/tag-v3.css */
.tg{--ink:#0f172a;--tx:#1e293b;--mu:#64748b;--bd:#e7ebf3;--bg2:#f6f8fc;--bl:#2f5bea;--ic:#3b6cf6;--bl3:#eef3ff;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;color:var(--tx);font-size:16px;line-height:28px;-webkit-font-smoothing:antialiased}
.tg *,.tg *::before,.tg *::after{box-sizing:border-box}
.tg :is(a,button,b,strong,em,span,summary,p,li,h1,h2,h3,details),.tg i:not(.fa){font-family:inherit}
.tg .fa{font-family:FontAwesome;font-style:normal;line-height:1}
.tg :is(h1,h2,h3,p,ul,ol){margin:0;padding:0}
.tg a{color:inherit;text-decoration:none}
.tg em,.tg i{font-style:normal}
.tg [hidden]{display:none!important}
body.lz-tagv3,body.lz-tagv3 #main-content{background:#f3f5fb}
.tg-wrap{padding-bottom:40px}

/* 面包屑 */
.tg .tg-bc{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;padding:16px 4px 0;font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-bc a{color:var(--mu)}
.tg .tg-bc a:hover{color:var(--bl)}
.tg .tg-bc .fa-home{margin-right:6px}
.tg .tg-bc .fa-angle-right{color:#cbd5e1}
.tg .tg-bc>span{color:var(--ink);font-weight:600}

/* 卡片 */
.tg .tg-card{background:#fff;border-radius:24px;padding:40px 48px;margin-top:24px;box-shadow:0 0 0 1px rgba(15,23,42,.035),0 10px 30px rgba(30,41,90,.05)}
.tg .tg-card>h2{font-size:24px;line-height:32px;font-weight:700;color:var(--ink);margin-bottom:24px}

/* 头部：一个标题 + 一段说明 + 一行信息，左对齐，不做 hero */
.tg .tg-head{margin-top:16px}
.tg .tg-head h1{font-size:32px;line-height:40px;font-weight:700;color:var(--ink);letter-spacing:-.3px}
.tg .tg-about{margin-top:16px;max-width:880px;font-size:16px;line-height:28px;color:var(--tx)}
.tg .tg-about a{color:var(--mu);border-bottom:1px dashed #cbd5e1}
.tg .tg-about a:hover{color:var(--bl);border-color:var(--bl)}
.tg .tg-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:24px;padding-top:24px;border-top:1px solid var(--bd);font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-meta .fa{color:var(--ic);margin-right:8px;font-size:14px}
.tg .tg-meta a{margin-left:auto;color:var(--bl);border-bottom:1px solid rgba(47,91,234,.35)}
.tg .tg-meta a::after{content:" \2192"}

/* ── 方案 a：筛选条 + 目录表 ── */
.tg .tg-list{padding-top:32px}
.tg .tg-bar{display:flex;flex-direction:column;gap:12px;padding-bottom:24px;border-bottom:1px solid var(--bd)}
.tg .tg-f{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tg .tg-fl{width:72px;flex:none;font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-f button{appearance:none;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--bg2);box-shadow:inset 0 0 0 1px var(--bd);font-size:14px;line-height:22px;color:var(--tx);transition:background .15s,color .15s}
.tg .tg-f button em{font-size:14px;color:var(--mu)}
.tg .tg-f button:hover{background:var(--bl3);color:var(--bl)}
.tg .tg-f button.on{background:var(--bl);color:#fff;box-shadow:none}
.tg .tg-f button.on em{color:rgba(255,255,255,.75)}
.tg .tg-cnt{margin-top:16px;font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-cnt b{color:var(--ink);font-weight:600}

.tg .tg-th,.tg .tg-r{display:grid;grid-template-columns:var(--cols);gap:0 16px;align-items:start}
.tg .tg-th{padding:16px 0 12px;font-size:14px;line-height:22px;color:var(--mu);border-bottom:1px solid var(--bd)}
.tg .tg-r{padding:16px 0;border-bottom:1px solid var(--bd)}
.tg .tg-r:last-of-type{border-bottom:0}
.tg .tg-r .c1{min-width:0}
.tg .tg-t{font-size:16px;line-height:26px;font-weight:600;color:var(--ink)}
.tg a.tg-t:hover{color:var(--bl);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.tg .tg-r .c1 p{margin-top:4px;font-size:14px;line-height:22px;color:var(--mu);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.tg .tg-k{font-size:14px;line-height:26px;color:var(--tx)}
.tg .tg-k>i{display:none}
.tg .tg-up{color:var(--mu)}
.tg .tg-na{color:#cbd5e1}
.tg .tg-mt{display:inline-flex;gap:3px;vertical-align:middle}
.tg .tg-mt i{width:10px;height:10px;border-radius:3px;background:#e2e8f0}
.tg .tg-mt i.f{background:var(--ic)}
.tg .tg-mtx{display:block;font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-empty{padding:32px 0;text-align:center;color:var(--mu);font-size:16px}
.tg .tg-note{margin-top:16px;font-size:14px;line-height:22px;color:var(--mu)}

/* ── 方案 b：先读这几篇 + 分组卡片 ── */
.tg .tg-sg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tg .tg-sc{display:flex;flex-direction:column;gap:8px;padding:24px;border-radius:16px;background:var(--bg2);box-shadow:inset 0 0 0 1px var(--bd);transition:box-shadow .15s}
.tg .tg-sc:hover{box-shadow:inset 0 0 0 1px var(--ic)}
.tg .tg-sc:hover .tg-t{color:var(--bl)}
.tg .tg-why{font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-why .fa{color:var(--ic);margin-right:8px}
.tg .tg-sc .tg-t{font-size:18px;line-height:28px;font-weight:700}
.tg .tg-kv{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px;line-height:22px;color:var(--tx)}
.tg .tg-kv>span>i{color:var(--mu);margin-right:6px}
.tg .tg-kv .tg-mtx{display:inline;margin-left:6px}
.tg .tg-sc .tg-kv{margin-top:auto;padding-top:8px}

.tg .tg-jump{position:sticky;top:0;z-index:5;display:flex;gap:8px;overflow-x:auto;margin-top:24px;padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);box-shadow:0 0 0 1px rgba(15,23,42,.035),0 6px 20px rgba(30,41,90,.05);scrollbar-width:none}
.tg .tg-jump::-webkit-scrollbar{display:none}
.tg .tg-jump a{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--bg2);box-shadow:inset 0 0 0 1px var(--bd);font-size:14px;color:var(--tx)}
.tg .tg-jump a em{color:var(--mu)}
.tg .tg-jump a:hover{background:var(--bl3);color:var(--bl)}
.tg .tg-grp{scroll-margin-top:72px}
.tg .tg-gh{margin-bottom:8px}
.tg .tg-gh h2{display:flex;align-items:baseline;gap:12px;font-size:24px;line-height:32px;font-weight:700;color:var(--ink)}
.tg .tg-gh h2 em{font-size:14px;font-weight:400;color:var(--mu)}
.tg .tg-gh p{margin-top:8px;font-size:16px;line-height:28px;color:var(--mu)}
.tg .tg-gg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
.tg .tg-pc{display:flex;gap:16px;padding:24px 0;border-bottom:1px solid var(--bd)}
.tg .tg-ph{flex:none;width:136px;height:102px;border-radius:12px;overflow:hidden;background:var(--bg2)}
.tg .tg-ph img{width:100%;height:100%;object-fit:cover;display:block}
.tg .tg-pb{min-width:0;display:flex;flex-direction:column}
.tg .tg-pc .tg-t{font-size:16px;line-height:26px;font-weight:600}
.tg .tg-pc p{margin-top:4px;font-size:14px;line-height:22px;color:var(--mu);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tg .tg-d{color:var(--mu);margin-right:8px}
.tg .tg-spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:12px 0 0;padding:12px 0 0;border-top:1px dashed var(--bd)}
.tg .tg-spec>div{display:flex;gap:8px;min-width:0}
.tg .tg-spec dt{flex:none;font-size:14px;line-height:22px;color:var(--mu);font-weight:400}
.tg .tg-spec dd{margin:0;font-size:14px;line-height:22px;color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.tg .tg-spec .tg-mtx{display:none}

/* 几种做法对比小表（两套共用）：电脑表格，手机一行一张卡（站主 10-08 口径：手机表格不横滑） */
.tg .tg-cmp-sub{margin:-16px 0 24px;font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-cmp table{width:100%;border-collapse:collapse;font-size:14px;line-height:22px}
.tg .tg-cmp th{padding:0 16px 12px 0;text-align:left;font-weight:400;color:var(--mu);border-bottom:1px solid var(--bd);white-space:nowrap}
.tg .tg-cmp td{padding:16px 16px 16px 0;vertical-align:top;color:var(--tx);border-bottom:1px solid var(--bd)}
.tg .tg-cmp tr:last-child td{border-bottom:0}
.tg .tg-cmp td.c1{font-size:16px;line-height:26px;font-weight:600;color:var(--ink);white-space:nowrap}
.tg .tg-cmp-l a{color:var(--bl);border-bottom:1px solid rgba(47,91,234,.35);white-space:nowrap}
@media (max-width:767px){
  .tg .tg-cmp thead{display:none}
  .tg .tg-cmp table,.tg .tg-cmp tbody,.tg .tg-cmp tr,.tg .tg-cmp td{display:block}
  .tg .tg-cmp tr{padding:16px 0;border-bottom:1px solid var(--bd)}
  .tg .tg-cmp tr:last-child{border-bottom:0}
  .tg .tg-cmp td{padding:2px 0;border:0;font-size:16px;line-height:26px}
  .tg .tg-cmp td:not(.c1):not(.tg-cmp-l)::before{content:attr(data-t);color:var(--mu);margin-right:8px;font-size:14px}
  .tg .tg-cmp td.c1{margin-bottom:4px;white-space:normal}
  .tg .tg-cmp-l{margin-top:4px}
}

/* 常见问题 */
.tg .tg-faq details{border-top:1px solid var(--bd)}
.tg .tg-faq details:last-child{border-bottom:1px solid var(--bd)}
.tg .tg-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;font-size:16px;line-height:26px;font-weight:600;color:var(--ink)}
.tg .tg-faq summary::-webkit-details-marker{display:none}
.tg .tg-faq summary .fa{color:var(--mu);transition:transform .15s}
.tg .tg-faq details[open] summary .fa{transform:rotate(180deg)}
.tg .tg-faq details p{padding:0 0 16px;font-size:16px;line-height:28px;color:var(--tx)}
.tg .tg-faq details p a{color:var(--mu);border-bottom:1px dashed #cbd5e1}
.tg .tg-faq details p a:hover{color:var(--bl);border-color:var(--bl)}
.tg .tg-rel{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:24px;padding:0 4px;font-size:14px;line-height:22px;color:var(--mu)}
.tg .tg-rel a{color:var(--mu);border-bottom:1px dashed #cbd5e1}
.tg .tg-rel a:hover{color:var(--bl);border-color:var(--bl)}

@media (max-width:1180px){
  .tg .tg-gg{gap:0 32px}
}
/* 平板：表格收成两行一条 */
@media (max-width:1023px){
  .tg .tg-card{padding:32px}
  .tg .tg-th{display:none}
  .tg .tg-r{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
  .tg .tg-r .c1{grid-column:1/-1;margin-bottom:4px}
  .tg .tg-k{line-height:22px;min-width:0}
  .tg .tg-k.tg-e{display:none}
  .tg .tg-k>i{display:inline;color:var(--mu);margin-right:8px}
  .tg .tg-mtx{display:inline;margin-left:6px}
  .tg .tg-gg{grid-template-columns:1fr}
  .tg .tg-sg{grid-template-columns:1fr}
}
/* 手机：正文 16（技术SEO标准 A-06），辅助 14 */
@media (max-width:640px){
  .tg .tg-card{padding:24px 18px;border-radius:18px;margin-top:16px}
  .tg .tg-head h1{font-size:24px;line-height:32px}
  .tg .tg-meta{gap:8px 16px}
  .tg .tg-meta a{margin-left:0;flex-basis:100%}
  .tg .tg-card>h2,.tg .tg-gh h2{font-size:20px;line-height:28px}
  .tg .tg-f{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px;padding:0 18px;scrollbar-width:none}
  .tg .tg-f::-webkit-scrollbar{display:none}
  .tg .tg-fl{width:auto;margin-right:4px}
  .tg .tg-f button{flex:none}
  .tg .tg-r .c1 p,.tg .tg-pc p{-webkit-line-clamp:2;font-size:16px;line-height:26px} /* 手机正文 ≥16（技术SEO标准 A-06） */
  /* 手机：缩略图 + 标题一行，摘要和数据格占满整宽 */
  .tg .tg-pc{display:grid;grid-template-columns:96px minmax(0,1fr);gap:0 12px;align-items:start}
  .tg .tg-pb{display:contents}
  .tg .tg-pc p,.tg .tg-spec{grid-column:1/-1}
  .tg .tg-pc p{margin-top:12px}
  .tg .tg-ph{width:96px;height:72px;border-radius:10px}
  .tg .tg-sc{padding:20px}
}
