/* ============ 1. 变量与基础 ============ */
:root{
  --bg:#F6F2E9;
  --surface:#FFFCF5;
  --text:#1C1B18;
  --muted:#6E6857;
  --primary:#1E4B3F;
  --accent:#B4472B;
  --line:rgb(28 27 24 / .14);
  --line-strong:rgb(28 27 24 / .26);
  --radius:4px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;
  --fs-xs:12px; --fs-sm:14px; --fs-base:17px; --fs-md:20px;
  --fs-lg:26px; --fs-xl:34px; --fs-2xl:46px; --fs-3xl:64px;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--sans);font-size:var(--fs-base);line-height:1.62;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.15;
  letter-spacing:-.015em;text-wrap:balance;margin:0}

text-wrap:pretty;
p{margin:0 0 var(--space-4);max-width:68ch}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
img,svg{max-width:100%}
ul,ol{margin:0 0 var(--space-4);padding-left:1.15em}
li{margin-bottom:var(--space-2)}
strong{font-weight:600}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
::selection{background:rgb(30 75 63 / .16)}
.wrap{max-width:1160px;margin-inline:auto;padding-inline:20px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:99;background:var(--surface);padding:8px 12px}
.num{font-variant-numeric:tabular-nums}

/* ============ 2. 页头 / 按钮 / 首屏 / 搜索 ============ */
.site-head{
  position:sticky;top:0;z-index:20;background:rgb(246 242 233 / .94);
  backdrop-filter:blur(6px);border-bottom:1px solid var(--line);
}
.head-in{display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-5);min-height:64px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);
  font-family:var(--serif);font-size:22px;font-weight:700;letter-spacing:-.02em}
.brand:hover{text-decoration:none}
.brand-mark{position:relative;width:18px;height:20px;border:2px solid var(--primary);
  border-radius:2px;background:var(--surface)}
.brand-mark::before{content:"";position:absolute;left:-2px;top:-7px;width:9px;height:5px;
  background:var(--accent);border-radius:1px 1px 0 0}
.site-nav{display:flex;gap:var(--space-5);font-size:var(--fs-sm)}
.site-nav a{color:var(--muted)}
.site-nav a:hover{color:var(--primary);text-decoration:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:48px;padding:0 22px;border:1px solid transparent;border-radius:var(--radius);
  font-family:var(--sans);font-size:15px;font-weight:600;cursor:pointer;
  background:var(--primary);color:#FBF8F0;
  transition:background 180ms ease,color 180ms ease,border-color 180ms ease}
.btn:hover{background:#17392F;text-decoration:none}
.btn-ghost{background:transparent;color:var(--primary);border-color:var(--line-strong)}
.btn-ghost:hover{background:rgb(30 75 63 / .06);border-color:var(--primary)}
.btn-sm{height:40px;padding:0 16px;font-size:var(--fs-sm)}

.hero{padding:var(--space-8) 0 var(--space-7);border-bottom:1px solid var(--line)}
.eyebrow{font-size:var(--fs-xs);letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent);font-weight:600;margin:0 0 var(--space-4)}
.hero h1{font-size:clamp(38px,5.4vw,64px);letter-spacing:-.028em;max-width:15ch}
.hero .lede{font-size:var(--fs-md);color:var(--muted);max-width:52ch;
  margin:var(--space-5) 0 var(--space-6)}

.searchbar{display:flex;gap:10px;max-width:660px;align-items:stretch}
.searchbar .field{position:relative;flex:1}
.searchbar input{
  width:100%;height:52px;padding:0 16px 0 44px;font:inherit;font-size:16px;
  color:var(--text);background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--radius)}
.searchbar input::placeholder{color:var(--muted)}
.searchbar input:focus{outline:2px solid var(--primary);outline-offset:1px;border-color:transparent}
.field-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);
  width:16px;height:16px;border:2px solid var(--muted);border-radius:50%;pointer-events:none}
.field-icon::after{content:"";position:absolute;right:-5px;bottom:-3px;width:7px;height:2px;
  background:var(--muted);transform:rotate(45deg)}
.searchbar .btn{height:52px}

.hero-foot{display:flex;flex-wrap:wrap;gap:var(--space-5) var(--space-6);
  margin-top:var(--space-6);font-size:var(--fs-sm);color:var(--muted)}
.hero-foot b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}

/* ============ 3. 分类抽屉 / 工具卡 / 筛子 ============ */
.drawers{display:grid;grid-template-columns:repeat(5,1fr);gap:26px 18px}
.drawer{position:relative;display:flex;flex-direction:column;gap:6px;
  margin-top:11px;padding:20px 16px 18px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);color:var(--text);
  transition:border-color 180ms ease,transform 180ms ease}
.drawer::before{content:"";position:absolute;left:12px;top:-9px;width:58px;height:9px;
  background:var(--accent);border-radius:2px 2px 0 0}
.drawer:hover{text-decoration:none;border-color:var(--line-strong);transform:translateY(-2px)}
.drawer-label{font-size:15px;font-weight:600;line-height:1.3}
.drawer-note{font-size:var(--fs-xs);color:var(--muted);line-height:1.45}
.drawer-count{margin-top:auto;padding-top:10px;font-size:var(--fs-xs);
  letter-spacing:.06em;text-transform:uppercase;color:var(--primary);
  font-variant-numeric:tabular-nums}

.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.tool{display:flex;flex-direction:column;gap:10px;padding:22px 20px 18px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  transition:border-color 180ms ease,transform 180ms ease}
.tool:hover{border-color:var(--line-strong);transform:translateY(-1px)}
.tool-cat{display:flex;align-items:center;gap:8px;font-size:12px;
  letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.tool-cat::before{content:"";width:16px;height:3px;background:var(--accent);border-radius:1px}
.tool-name{font-size:var(--fs-md);font-weight:600;letter-spacing:-.01em}
.tool-name a{color:var(--text)}
.tool-name a:hover{color:var(--primary);text-decoration:none}
.tool-desc{font-size:var(--fs-sm);line-height:1.55;color:var(--muted);margin:0}
.tool-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:auto 0 0;
  padding-top:8px;border-top:1px solid var(--line)}
.tool-tags{font-size:var(--fs-xs);color:var(--muted)}
.price{font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  padding:2px 7px;border:1px solid var(--line-strong);border-radius:2px;color:var(--muted)}
.price-Freemium{color:var(--primary);border-color:rgb(30 75 63/.38);background:rgb(30 75 63/.07)}
.price-Paid{color:var(--accent);border-color:rgb(180 71 43/.38);background:rgb(180 71 43/.07)}
.price-Free{color:#3A6B2F;border-color:rgb(58 107 47/.38);background:rgb(58 107 47/.08)}

.sec{padding:var(--space-8) 0;border-bottom:1px solid var(--line)}
.sec:last-of-type{border-bottom:0}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;
  gap:var(--space-5);margin-bottom:var(--space-6)}
.sec h2{font-size:clamp(26px,3vw,34px)}
.sec-sub{margin:10px 0 0;color:var(--muted);font-size:var(--fs-sm);max-width:56ch}
.see-all{font-size:var(--fs-sm);white-space:nowrap}

.filters{position:sticky;top:64px;z-index:10;display:flex;flex-wrap:wrap;
  gap:10px;align-items:center;padding:14px 0;margin-bottom:var(--space-5);
  background:var(--bg);border-bottom:1px solid var(--line)}
.filters .field{position:relative;flex:1 1 240px;min-width:200px}
.filters input{width:100%;height:42px;padding:0 12px 0 38px;font:inherit;
  font-size:var(--fs-sm);background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--radius);color:var(--text)}
.filters input:focus{outline:2px solid var(--primary);outline-offset:1px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{height:34px;padding:0 12px;display:inline-flex;align-items:center;
  font-size:13px;color:var(--muted);background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;
  transition:color 160ms ease,background 160ms ease,border-color 160ms ease}
.chip:hover{color:var(--text);border-color:var(--line-strong)}
.chip.is-on{background:var(--primary);border-color:var(--primary);color:#FBF8F0}
.filters select{height:34px;padding:0 10px;font:inherit;font-size:13px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  color:var(--text);cursor:pointer}
.count{font-size:var(--fs-xs);letter-spacing:.05em;text-transform:uppercase;
  color:var(--muted);margin-left:auto;font-variant-numeric:tabular-nums}
.empty{padding:var(--space-7) 0;color:var(--muted);text-align:left}

/* ============ 4. 行列表 / 步骤 / FAQ / 页脚 / 内页 ============ */
.rows{border-top:1px solid var(--line-strong)}
.row{display:grid;grid-template-columns:190px 1fr auto;gap:var(--space-5);
  align-items:baseline;padding:20px 0;border-bottom:1px solid var(--line)}
.row-name{font-family:var(--serif);font-size:var(--fs-md);font-weight:600}
.row-name a{color:var(--text)}
.row-name a:hover{color:var(--primary)}
.row-name small{display:block;font-family:var(--sans);font-size:var(--fs-xs);
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:500}
.row-desc{font-size:var(--fs-sm);color:var(--muted);margin:0}
.row-why{font-size:var(--fs-xs);color:var(--primary);margin:6px 0 0}
.row-meta{display:flex;align-items:center;gap:8px;justify-self:end}

.steps{list-style:none;padding:0;margin:0;display:grid;gap:var(--space-6)}
.step{display:grid;grid-template-columns:64px 1fr;gap:var(--space-5);align-items:start}
.step-n{font-family:var(--serif);font-size:34px;line-height:1;color:rgb(28 27 24 / .22);
  font-variant-numeric:tabular-nums}
.step h3{font-size:var(--fs-md);margin-bottom:6px}
.step p{margin:0;font-size:var(--fs-sm);color:var(--muted);max-width:60ch}

.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line);padding:16px 0}
.faq summary{cursor:pointer;font-weight:600;list-style:none;display:flex;
  justify-content:space-between;gap:var(--space-4);align-items:baseline}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-size:20px;line-height:1;flex:none}
.faq details[open] summary::after{content:\"\u2013\"}
.faq p{margin:12px 0 0;font-size:var(--fs-sm);color:var(--muted);max-width:70ch}

.band{background:var(--primary);color:#EFEADD;border-radius:var(--radius);
  padding:var(--space-7) var(--space-6);margin:var(--space-8) 0}
.band h2{color:#FBF8F0;font-size:clamp(24px,3vw,32px);max-width:22ch}
.band p{color:rgb(239 234 221 / .78);font-size:var(--fs-sm);max-width:52ch}
.band .btn{background:#F6F2E9;color:var(--primary);margin-top:var(--space-3)}
.band .btn:hover{background:#fff}

.site-foot{border-top:1px solid var(--line-strong);padding:var(--space-7) 0 var(--space-6);
  margin-top:var(--space-8);font-size:var(--fs-sm);color:var(--muted)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:var(--space-6)}
.foot-brand{font-family:var(--serif);font-size:19px;color:var(--text);margin:0 0 8px}
.foot-grid p{font-size:var(--fs-xs);line-height:1.55;max-width:34ch}
.foot-col h4{font-family:var(--sans);font-size:12px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);margin:0 0 10px;font-weight:600}
.foot-col ul{list-style:none;padding:0;margin:0}
.foot-col li{margin-bottom:6px}
.foot-col a{color:var(--text);font-size:var(--fs-xs)}
.foot-base{border-top:1px solid var(--line);margin-top:var(--space-6);
  padding-top:var(--space-4);font-size:var(--fs-xs);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

.crumbs{display:flex;gap:8px;font-size:var(--fs-xs);color:var(--muted);
  padding:var(--space-4) 0 0}
.crumbs a{color:var(--muted)}
.page-head{padding:var(--space-5) 0 var(--space-7);border-bottom:1px solid var(--line)}
.page-head h1{font-size:clamp(32px,4.4vw,52px);letter-spacing:-.025em;max-width:20ch}
.page-head .lede{font-size:var(--fs-md);color:var(--muted);margin:var(--space-4) 0 0;max-width:62ch}
.takeaways{list-style:none;padding:0;margin:var(--space-5) 0 0;
  display:grid;gap:8px;max-width:64ch;font-size:var(--fs-sm)}
.takeaways li{position:relative;padding-left:20px;color:var(--text)}
.takeaways li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:2px;background:var(--accent)}
.related{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;list-style:none;padding:0}
.related li{margin:0}
.related a{display:block;padding:14px 16px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);color:var(--text);font-size:var(--fs-sm)}
.related a:hover{border-color:var(--primary);text-decoration:none}

.prose{max-width:70ch;padding:var(--space-6) 0 var(--space-8)}
.prose h2{font-size:26px;margin:var(--space-6) 0 var(--space-3)}
.prose h3{font-size:19px;margin:var(--space-5) 0 var(--space-2)}
.prose p,.prose li{font-size:var(--fs-sm);color:var(--text)}
.prose ul{padding-left:1.2em}
.prose .updated{font-size:var(--fs-xs);color:var(--muted)}

/* ============ 5. 手机与降级 ============ */
@media (max-width:1000px){
  .drawers{grid-template-columns:repeat(3,1fr)}
  .tool-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .row{grid-template-columns:1fr;gap:6px}
  .row-meta{justify-self:start}
}
@media (max-width:720px){
  :root{--space-8:48px;--space-7:32px}
  .head-in{min-height:56px;gap:12px}
  .site-nav{display:none}
  .hero{padding:var(--space-7) 0 var(--space-6)}
  .hero h1{font-size:clamp(32px,9vw,42px);max-width:100%}
  .hero .lede{font-size:var(--fs-base)}
  .searchbar{flex-direction:column}
  .searchbar .btn{width:100%}
  .drawers{grid-template-columns:repeat(2,1fr);gap:22px 12px}
  .tool-grid{grid-template-columns:1fr}
  .filters{position:static;padding:12px 0}
  .filters .field{flex:1 1 100%}
  .count{margin-left:0}
  .sec-head{flex-direction:column;align-items:flex-start;gap:8px}
  .step{grid-template-columns:40px 1fr;gap:12px}
  .step-n{font-size:26px}
  .related{grid-template-columns:1fr}
  .band{padding:var(--space-6) var(--space-5)}
  .foot-grid{grid-template-columns:1fr;gap:var(--space-5)}
  .prose{padding-bottom:var(--space-6)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important;animation:none !important;scroll-behavior:auto !important}
}

/* ============ 6. 修补 ============ */
p{margin:0 0 var(--space-4);max-width:68ch}
.faq details[open] summary::after{content:"\2013 "}

/* ============ 7. 字号与页脚标题修正（覆盖前面） ============ */
.tool-cat{font-size:12px}
.price{font-size:12px}
.foot-h{font-family:var(--sans);font-size:12px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--muted);margin:0 0 10px;font-weight:600}
.foot-col h4{display:none}

/* ============ 8. 审稿修正：搜索提权 + 侧边筛选栏 + 卡片降噪 ============ */
.hero h1{max-width:18ch}
.hero .lede{font-size:18px;max-width:54ch;margin:var(--space-4) 0 var(--space-5)}
.hero-foot{margin-top:var(--space-4);gap:6px 22px;font-size:12px}
.searchbar{max-width:none}
.hero .searchbar{margin-top:var(--space-5)}
.catalog-body{display:grid;grid-template-columns:212px 1fr;gap:44px;align-items:start}
.filter-panel{position:sticky;top:88px;display:flex;flex-direction:column;gap:14px}
.filter-panel .field{flex:none;min-width:0}
.panel-label{font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted);margin:0 0 4px;font-weight:600}
.filter-panel .chips{flex-direction:column;gap:2px;align-items:stretch}
.filter-panel .chip{width:100%;justify-content:flex-start;height:36px;
  padding:0 10px;border:0;border-radius:2px;background:transparent;font-size:14px}
.filter-panel .chip:hover{background:rgb(30 75 63 / .07);color:var(--text)}
.filter-panel .chip.is-on{background:var(--primary);color:#FBF8F0}
.filter-panel .count{margin:0;padding-top:12px;border-top:1px solid var(--line);text-align:left}
.filter-panel select{height:38px;width:100%;font-size:14px}
.tool-grid{grid-template-columns:repeat(3,1fr);gap:16px}
.tool{padding:18px;gap:8px}
.tool-name{font-size:18px}
.tool-desc{font-size:14px;line-height:1.5}
.tool-meta{border-top:0;padding-top:4px;margin-top:auto;gap:8px}
.tagline{font-size:12px;color:var(--muted);line-height:1.4}
.price{font-weight:600;letter-spacing:.04em}
.filters input::placeholder{color:#5C5648}
@media (max-width:900px){
  .catalog-body{grid-template-columns:1fr;gap:var(--space-5)}
  .filter-panel{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
  .filter-panel .chips{flex-direction:row;flex-wrap:wrap;gap:6px}
  .filter-panel .chip{width:auto;border:1px solid var(--line);background:var(--surface);height:32px;font-size:13px;padding:0 10px}
  .filter-panel .count{border:0;padding:0;margin-left:auto}
  .filter-panel select{width:auto;height:32px;font-size:13px}
  .filter-panel .field{flex:1 1 100%}
  .tool-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .hero h1{font-size:clamp(28px,8.4vw,34px);letter-spacing:-.02em}
  .hero .lede{font-size:16px}
  .hero-foot{font-size:12px;gap:4px 16px}
  .head-in .btn{height:36px;padding:0 12px;font-size:13px}
  .brand{font-size:19px}
  .tool-grid{grid-template-columns:1fr}
}

/* ============ 9. 二轮审稿修正 ============ */
.catalog-body{column-gap:52px}
.tool-desc{flex-grow:1}
.price-Freemium{background:rgb(30 75 63 / .12);color:#17392F;border-color:rgb(30 75 63 / .45)}
.price-Paid{background:rgb(180 71 43 / .12);color:#8E3418;border-color:rgb(180 71 43 / .45)}
.price-Free{background:rgb(58 107 47 / .14);color:#2C5224;border-color:rgb(58 107 47 / .45)}
@media (max-width:900px){
  .filter-panel{gap:10px}
  .filter-panel .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .filter-panel .chips::-webkit-scrollbar{display:none}
  .filter-panel .chip{flex:0 0 auto}
}
@media (max-width:720px){
  .hero{padding:30px 0 26px}
  .hero .lede{line-height:1.62;margin:14px 0 0}
  .hero .searchbar{margin-top:20px}
  .filter-panel{padding:0}
  .filters input::placeholder,.searchbar input::placeholder{text-overflow:ellipsis}
}


/* ===== 中文版 /zh/ 排版 ===== */
:lang(zh-Hans) body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3,
:lang(zh-Hans) .foot-brand,
:lang(zh-Hans) .btn,
:lang(zh-Hans) .site-nav,
:lang(zh-Hans) .foot-h {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
:lang(zh-Hans) h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.28; font-weight: 700; }
:lang(zh-Hans) h2 { font-size: 23px; line-height: 1.45; margin: 2.2em 0 0.7em; font-weight: 700; }
:lang(zh-Hans) h3 { font-size: 18px; line-height: 1.5; margin: 1.6em 0 0.5em; font-weight: 600; }
:lang(zh-Hans) .lede { font-size: 18px; line-height: 1.85; }
:lang(zh-Hans) .prose p { margin-bottom: 1.05em; }
:lang(zh-Hans) .prose ul,
:lang(zh-Hans) .prose ol { padding-left: 1.4em; margin-bottom: 1.1em; }
:lang(zh-Hans) .prose li { margin-bottom: 0.45em; }
:lang(zh-Hans) .prose strong { font-weight: 700; }
:lang(zh-Hans) .crumbs { font-size: 13px; }

/* 中文工具表 */
:lang(zh-Hans) .zh-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 2em;
  font-size: 15px;
  line-height: 1.6;
}
:lang(zh-Hans) .zh-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}
:lang(zh-Hans) .zh-table th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
:lang(zh-Hans) .zh-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
:lang(zh-Hans) .zh-table td:last-child,
:lang(zh-Hans) .zh-table th:last-child { padding-right: 0; }
:lang(zh-Hans) .zh-table a { color: var(--primary); text-decoration: none; font-weight: 600; }
:lang(zh-Hans) .zh-table a:hover { text-decoration: underline; }
:lang(zh-Hans) .zh-tier {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
:lang(zh-Hans) .zh-tier.free { color: #1E4B3F; border-color: rgba(30, 75, 63, 0.35); }
:lang(zh-Hans) .zh-tier.paid { color: #B4472B; border-color: rgba(180, 71, 43, 0.35); }

/* 分类导航块 */
:lang(zh-Hans) .zh-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1.6em 0 2.2em;
  padding: 0;
  list-style: none;
}
:lang(zh-Hans) .zh-cats li {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
:lang(zh-Hans) .zh-cats a { font-weight: 600; color: var(--text); text-decoration: none; }
:lang(zh-Hans) .zh-cats a:hover { color: var(--primary); }
:lang(zh-Hans) .zh-cats span { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 4px; }

/* FAQ 折叠 */
.zh-faq {
  max-width: 780px;
  margin: 56px 0 0;
  padding-top: 8px;
}
:lang(zh-Hans) .zh-faq h2 { margin-top: 0; }
.zh-faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.zh-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.zh-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.zh-faq summary::-webkit-details-marker { display: none; }
.zh-faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; }
.zh-faq details[open] summary::after { content: "–"; }
.zh-faq details > div { margin-top: 10px; color: var(--muted); line-height: 1.9; }

/* 语言切换链接 */
.site-head .btn[lang="zh-Hans"],
.site-head .btn[lang="en"] { white-space: nowrap; }

@media (max-width: 640px) {
  :lang(zh-Hans) body { font-size: 16px; line-height: 1.8; }
  :lang(zh-Hans) .zh-cats { grid-template-columns: 1fr; }
  :lang(zh-Hans) .zh-table { font-size: 14px; }
  :lang(zh-Hans) .zh-table td { padding: 10px 8px 10px 0; }
  :lang(zh-Hans) .zh-table th:nth-child(3),
  :lang(zh-Hans) .zh-table td:nth-child(3) { display: none; }
}


/* 中文版 Markdown 表格（无 class 时的兼底） */
:lang(zh-Hans) .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 2em;
  font-size: 15px;
  line-height: 1.65;
}
:lang(zh-Hans) .prose thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
:lang(zh-Hans) .prose tbody td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
:lang(zh-Hans) .prose tbody td:first-child { white-space: nowrap; font-weight: 600; }
:lang(zh-Hans) .prose tbody td:first-child a { color: var(--primary); text-decoration: none; }
:lang(zh-Hans) .prose tbody td:first-child a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  :lang(zh-Hans) .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
  }
  :lang(zh-Hans) .prose tbody td { padding: 10px 12px 10px 0; }
}


/* —— 设计审稿第一轮修改 —— */
:lang(zh-Hans) body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3,
:lang(zh-Hans) h4 { font-weight: 700; }

/* 语言切换按钮：线框，不抢首屏 */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

/* 十个分类：卡片网格，首屏视觉锚点 */
.zh-drawers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 1.5em 0 2.4em;
}
.zh-drawers li { margin: 0; padding: 0; }
.zh-drawers a {
  display: block;
  height: 100%;
  padding: 16px 18px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.zh-drawers a:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgb(30 75 63 / 0.06);
}
.zh-drawers strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.zh-drawers span {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 4px;
}
.zh-drawers em {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 600;
}

/* 推荐表的价签列 */
:lang(zh-Hans) .prose tbody td:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* FAQ 区块跟正文分开 */
.zh-faq {
  background: #F9F6EF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 10px;
  margin-top: 56px;
}
.zh-faq details:last-of-type { border-bottom: 0; }

@media (max-width: 640px) {
  :lang(zh-Hans) h2,
  :lang(zh-Hans) .prose h2 { font-size: 21px; line-height: 1.45; }
  .zh-drawers { grid-template-columns: 1fr; gap: 10px; }
  .zh-drawers a { padding: 14px 16px; }
  .zh-faq { padding: 22px 18px 6px; }
}


/* —— 设计审稿第二轮微调 —— */
.btn-ghost {
  border-color: rgb(30 75 63 / 0.16);
  color: var(--muted);
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* 款数做成小标签，别和描述文字一个分量 */
.zh-drawers em {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgb(30 75 63 / 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  margin-top: 9px;
  line-height: 1.6;
}

/* 表格表头有底色，长文里的表格才看得出来是表格 */
:lang(zh-Hans) .prose thead th {
  background: #F3EDE1;
  color: var(--text);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
:lang(zh-Hans) .prose thead th:first-child { border-radius: var(--radius) 0 0 0; }
:lang(zh-Hans) .prose thead th:last-child { border-radius: 0 var(--radius) 0 0; }

/* 正文呼吸 */
:lang(zh-Hans) .prose p { margin-bottom: 1.15em; }
:lang(zh-Hans) .prose li { margin-bottom: 0.6em; }
:lang(zh-Hans) .prose h2 + p { margin-top: 0.2em; }


/* —— 设计审稿第三轮微调 —— */
.zh-drawers a {
  position: relative;
  padding: 16px 18px 42px;
}
.zh-drawers em {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin-top: 0;
}

/* 表头再深一点，和正文分开 */
:lang(zh-Hans) .prose thead th {
  background: #EFE7D6;
}

/* 导航：Logo 加重，语言按钮边框加清晰 */
.site-head .brand { font-weight: 700; letter-spacing: -0.01em; }
.site-head .btn-ghost {
  border-color: rgb(30 75 63 / 0.28);
  color: var(--text);
  font-weight: 600;
}
.site-head .btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgb(30 75 63 / 0.05);
}

@media (max-width: 640px) {
  :lang(zh-Hans) .lede { font-size: 16px; line-height: 1.75; }
  .zh-drawers a { padding: 14px 16px 40px; }
  .zh-drawers em { right: 16px; bottom: 12px; }
}


/* ---- polish pass: alignment, card rhythm, mobile search ---- */
.brand{display:inline-flex;align-items:center;gap:10px}
.brand-mark{display:inline-block;flex:0 0 auto;vertical-align:middle}
.eyebrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.4}
.field{position:relative}
.field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none}
.field input{width:100%;padding-left:42px}
.filter-panel{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.filter-panel > *{width:100%}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.tool-grid{gap:16px;align-items:stretch}
.tool{display:flex;flex-direction:column;min-height:100%;transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease}
.tool:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgb(43 33 24 / .10)}
.tool-desc{margin-top:8px}
.tool-meta{margin-top:auto;padding-top:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.price{letter-spacing:.02em;font-weight:600}
.tool-meta .tagline{color:var(--muted)}
@media (max-width:640px){
  .tool-grid{grid-template-columns:1fr}
  .hero .lede{font-family:'Inter',system-ui,sans-serif;line-height:1.65;font-size:16px}
  .filter-panel{gap:14px}
  .chips{gap:6px}
}


/* ---- polish pass 2: display serif fallback, search group, mobile chips ---- */
h1, h2, .hero h1, .sec-head h2{
  font-family:'Fraunces','Iowan Old Style','Palatino Linotype','Book Antiqua',Georgia,serif;
  font-synthesis:none;
}
.searchbar{display:flex;align-items:stretch;gap:8px}
.searchbar .field{flex:1 1 auto;min-width:0}
.searchbar .field input,
.searchbar .btn{height:48px;box-sizing:border-box}
.searchbar .field input{padding-left:46px}
.searchbar .field-icon{left:16px}
.hero .searchbar{margin-top:20px}
.tool .price{
  display:inline-flex;align-items:center;
  background:rgb(30 75 63 / .07);
  border-radius:999px;padding:3px 9px;
  font-size:12px;font-weight:600;letter-spacing:.02em;
}
@media (max-width:640px){
  .searchbar{flex-direction:column;gap:10px}
  .searchbar .btn{width:100%}
  .searchbar .field input{padding-left:46px}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:4px}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:0 0 auto}
  .hero .lede{max-width:100%}
}


/* ---- polish pass 3: mobile width containment, filter grouping ---- */
.hero .searchbar,
.hero .searchbar .field,
.hero .searchbar .field input{width:100%;max-width:100%;box-sizing:border-box}
.filter-panel{
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  background:var(--surface);
}
.tool-meta{gap:6px}
.tool-meta > *{border-radius:999px}
@media (max-width:640px){
  .hero .searchbar{gap:8px}
  .hero .lede{font-size:15px;line-height:1.7}
  .filter-panel{padding:14px}
  .tool-meta{gap:6px}
}


/* ---------- 中文页面（html lang="zh-Hans"）专项覆盖 ---------- */
html[lang="zh-Hans"] body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] .brand span {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: 0;
}
html[lang="zh-Hans"] h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.25; }
html[lang="zh-Hans"] h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; }
html[lang="zh-Hans"] .lede { font-size: 16px; line-height: 1.8; }
html[lang="zh-Hans"] .sec-sub { font-size: 14.5px; line-height: 1.75; }
html[lang="zh-Hans"] .eyebrow { letter-spacing: 0.04em; }
html[lang="zh-Hans"] .hero-foot { gap: 10px 22px; }
html[lang="zh-Hans"] .takeaways li { font-size: 15px; line-height: 1.75; }
html[lang="zh-Hans"] .faq summary { font-weight: 600; }

/* 工具卡片：中文一句更长，给足行高和内边距，标题与描述拉开 */
html[lang="zh-Hans"] .tool { padding: 18px 18px 16px; }
html[lang="zh-Hans"] .tool-name { margin: 0 0 8px; font-size: 17px; }
html[lang="zh-Hans"] .tool-desc { font-size: 14px; line-height: 1.7; }
html[lang="zh-Hans"] .tool-meta { margin-top: 10px; }

/* 筛选条：手机上横向滑动，不挤成好几行 */
html[lang="zh-Hans"] .chips { flex-wrap: wrap; gap: 8px; }

@media (max-width: 720px) {
  html[lang="zh-Hans"] .hero { padding-block: 34px 26px; }
  html[lang="zh-Hans"] .searchbar { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  html[lang="zh-Hans"] .searchbar .field { width: 100%; }
  html[lang="zh-Hans"] .searchbar .btn { width: 100%; height: 44px; min-height: 44px; font-size: 15px; }
  html[lang="zh-Hans"] .hero-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; margin-top: 18px; }
  html[lang="zh-Hans"] .sec { padding-block: 34px; }
  html[lang="zh-Hans"] .sec-head { margin-bottom: 18px; }
  html[lang="zh-Hans"] .catalog-body { gap: 16px; }
  html[lang="zh-Hans"] .filter-panel { padding: 14px; }
  html[lang="zh-Hans"] .chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -14px;
    padding-inline: 14px;
    padding-bottom: 4px;
  }
  html[lang="zh-Hans"] .chips::-webkit-scrollbar { display: none; }
  html[lang="zh-Hans"] .chip { flex: 0 0 auto; white-space: nowrap; }
  html[lang="zh-Hans"] .tool-grid { gap: 12px; grid-template-columns: 1fr; }
  html[lang="zh-Hans"] .tool { padding: 16px; }
}


/* 中文页面：第二轮细节覆盖 */
html[lang="zh-Hans"] .btn { white-space: nowrap; padding-inline: 22px; min-width: 96px; }
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .tool-meta,
html[lang="zh-Hans"] .price,
html[lang="zh-Hans"] .tagline,
html[lang="zh-Hans"] .hero-foot {
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
html[lang="zh-Hans"] .eyebrow { color: var(--primary); }
html[lang="zh-Hans"] .tool-meta { color: rgb(43 33 24 / .72); }
html[lang="zh-Hans"] .tagline { color: rgb(43 33 24 / .62); }

@media (max-width: 720px) {
  html[lang="zh-Hans"] .chips { padding-right: 26px; }
  html[lang="zh-Hans"] .chips::after { content: ""; flex: 0 0 12px; }
  html[lang="zh-Hans"] .eyebrow { font-size: 13px; }
  html[lang="zh-Hans"] .tool-desc { font-size: 14.5px; }
  html[lang="zh-Hans"] .tool-meta { font-size: 13px; }
}


/* 中文页面：索引区栅格与筛选条 */
html[lang="zh-Hans"] .catalog-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
html[lang="zh-Hans"] .catalog-body > .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  min-width: 0;
}
html[lang="zh-Hans"] .filter-panel .field input {
  font-size: 15px;
  padding-block: 10px;
}
html[lang="zh-Hans"] .panel-label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  html[lang="zh-Hans"] .catalog-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  html[lang="zh-Hans"] .catalog-body > .tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  html[lang="zh-Hans"] .chips {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  html[lang="zh-Hans"] .chips::-webkit-scrollbar { display: none; }
}
