/* ==========================================================================
   好站集工具箱 · 2026 视觉重整
   保留奶油纸、深绿和宋体的识别度，但把标题、卡片、表单与分页统一到一套
   更清爽的现代排版：标题用无衬线重字重，正文放大一档，圆角与阴影收敛。
   本文件最后加载，只覆盖视觉，不动任何页面结构。
   ========================================================================== */

:root {
  --bg: #f5f2ea;
  --bg-2: #eee9de;
  --surface: #fffef9;
  --surface-2: #f8f4ea;
  --surface-3: #eae4d7;
  --ink: #15231e;
  --ink-2: #34453e;
  --muted: #5f6c65;
  --line: #e2ddd0;
  --line-strong: #cfc8b8;
  --accent: #105a49;
  --accent-strong: #0a3e33;
  --accent-soft: #e6f2ed;
  --accent-line: #b7d5c9;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 43, 37, .04), 0 10px 30px rgba(16, 43, 37, .055);
  --shadow-md: 0 16px 46px rgba(16, 43, 37, .10);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background:
    radial-gradient(900px 420px at 8% -4%, rgba(16, 90, 73, .055), transparent 68%),
    var(--bg);
  font-size: 15.5px;
  line-height: 1.7;
}
.container { width: min(1280px, calc(100% - 56px)); }
.main { padding: 30px 0 74px; }

/* 顶栏：留白更紧，导航更像一组按钮 */
.header-inner { height: 72px; gap: 16px; }
.brand-mark { width: 40px; height: 40px; }
.brand-text strong { font-size: 16px; font-weight: 760; }
.nav { gap: 2px; }
.nav-link { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.nav-tools-link { padding-left: 14px; padding-right: 9px; }
.nav-count, .nav-tools-count { font-size: 9px; }

/* 标题系统：统一无衬线，字重和字距先立起来 */
.page-title,
.home-hero h1,
.tools-title,
.section-heading h2,
.home-workflow h2,
.home-closing h2,
.notes-hero h1,
.note-article-head h1,
.cert-hero-copy h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.page-title { font-size: clamp(34px, 4vw, 48px); }
.home-hero h1 {
  max-width: 880px;
  font-size: clamp(48px, 5vw, 66px);
  line-height: 1.06;
}
.home-hero h1 em {
  color: transparent;
  background: linear-gradient(100deg, #105a49 0%, #2c806a 52%, #b26f3b 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tool-ink 10s ease-in-out infinite;
}
@keyframes tool-ink { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.section-heading h2,
.home-workflow h2,
.home-closing h2 { font-size: clamp(30px, 3.5vw, 44px); }
.tools-title { font-size: clamp(36px, 4.1vw, 50px); }
.notes-hero h1 { font-size: clamp(40px, 5vw, 62px); }
.note-article-head h1 { font-size: clamp(32px, 4.2vw, 48px); }
.page-sub,
.home-lead,
.tools-lead,
.notes-lede {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* 首页区块与卡片 */
.home-hero { padding: clamp(24px, 3vw, 36px) 0 clamp(26px, 3vw, 38px); }
.hero-main { gap: clamp(30px, 4vw, 56px); padding-top: clamp(24px, 3vw, 38px); }
.hero-intro { padding-left: 22px; }
.home-section { padding: clamp(42px, 5vw, 64px) 0; }
.section-heading { gap: 30px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > p { max-width: 430px; font-size: 13.5px; }
.category-grid { gap: 12px; }
.category-card {
  min-height: 238px;
  padding: 20px;
  border-color: #e4dfd3;
  border-radius: 16px;
  background: var(--surface);
}
.category-card h3 { margin: 26px 0 8px; font-family: var(--sans); font-size: 23px; font-weight: 750; letter-spacing: -.04em; }
.category-card p { font-size: 12.5px; line-height: 1.7; }
.category-list { padding-top: 18px; font-size: 10.5px; }
.category-count, .category-no { font-size: 10px; }
/* 分类卡片的色块不能被上面的 .category-card 基础背景盖掉 */
.category-card--green { background: var(--accent-strong); border-color: var(--accent-strong); }
.category-card--gold { background: var(--accent-2-soft); }
.category-card--teal { background: var(--accent-soft); }
.category-card--clay { background: #f0e8da; }
.category-card--ink { background: var(--surface-2); }
.category-card--green h3 { color: #fffdf7; }
.category-card--green p { color: #c3dbd0; }
.category-card--green .category-no,
.category-card--green .category-count { color: #a9c9bd; }
.category-card--green .category-list { color: #d6e9e0; }
.category-card--green .category-arrow { color: #f0c884; }
.feature-grid { gap: 12px; }
.feature-card {
  min-height: 216px;
  padding: 19px;
  border-color: #e4dfd3;
  border-radius: 15px;
  background: var(--surface);
}
.feature-card h3 { margin: 22px 0 7px; font-family: var(--sans); font-size: 20px; font-weight: 720; }
.feature-card p { font-size: 12.5px; line-height: 1.7; }
.feature-foot { margin-top: 18px; padding-top: 10px; font-size: 9px; }
.home-workflow { padding: clamp(32px, 4.6vw, 54px); border-radius: 20px; gap: clamp(28px, 5vw, 64px); }
.workflow-copy h2 { margin: 12px 0 16px; }
.workflow-copy > p:not(.eyebrow) { font-size: 13px; }
.workflow-steps li { padding: 13px 0; }
.note-grid { gap: 12px; }
.note-card { min-height: 188px; padding: 19px; border-color: #e4dfd3; border-radius: 15px; }
.note-card h3 { margin: 22px 0 7px; font-family: var(--sans); font-size: 19px; font-weight: 700; }
.note-card p { font-size: 12.5px; }
.home-closing { padding: clamp(52px, 6vw, 78px) 0 12px; }
.home-closing h2 { margin: 14px auto 24px; }

/* 全部工具页 */
.tools-hero { padding: 26px 0 24px; }
.tools-title { margin-bottom: 10px; }
.tools-hero-side { padding: 20px; border-radius: 16px; }
.tools-count strong { font-family: var(--sans); font-size: 38px; font-weight: 800; letter-spacing: -.06em; }
.tools-filter-bar {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tools-search input { min-height: 34px; font-size: 12.5px; }
.tool-groups { margin-top: 14px; }
.tool-group { padding: 26px 0 4px; }
.tool-group-head { margin-bottom: 14px; }
.tool-group-head h2 { font-family: var(--sans); font-size: clamp(22px, 2.2vw, 28px); font-weight: 760; }
.tool-grid { gap: 12px; }
.tool-card {
  min-height: 220px;
  padding: 19px;
  border-color: #e4dfd3;
  border-radius: 15px;
  background: var(--surface);
}
.tool-card-title { margin: 16px 0 6px; font-family: var(--sans); font-size: 18px; font-weight: 720; }
.tool-card-summary { font-size: 12.5px; line-height: 1.7; }
.tool-card-foot { margin-top: 16px; padding-top: 10px; }

/* 单个工具页：表单与说明并排，说明收成一张卡 */
.tool-page-head { margin: 2px 0 18px; padding-bottom: 14px; }
.tool-page-head .page-title { font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 7px; }
.tool-page-head .page-sub { font-size: 13px; line-height: 1.75; }
.tool-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 18px; }
.tool-panel {
  padding: 24px;
  border-color: #e4dfd3;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.tool-aside {
  padding: 18px;
  border: 1px solid #e4dfd3;
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tool-aside .side-label:first-child { margin-top: 0; }
.tool-aside p, .side-list, .side-copy { font-size: 12px; line-height: 1.8; }
.side-label { font-size: 9.5px; letter-spacing: .1em; }
.field-row { gap: 16px; }
.tool-form .field { margin-bottom: 17px; }
.tool-form .field > label,
.tool-form legend {
  margin-bottom: 7px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .01em;
}
.tool-form input[type="text"], .tool-form input[type="number"], .tool-form input[type="date"],
.tool-form input[type="search"], .tool-form input[type="email"], .tool-form input[type="url"],
.tool-form input[type="tel"], .tool-form select, .tool-form textarea {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #dcd5c6;
  border-radius: 10px;
  background: #fffefb;
  font-size: 13.5px;
}
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 90, 73, .11);
}
.tool-form input[type="color"] { height: 44px; padding: 3px; border-radius: 10px; }
.tool-form fieldset { margin-bottom: 20px; }
.field-hint { margin-top: 6px; font-size: 10.5px; line-height: 1.65; }
.inline-note { margin: -2px 0 18px; padding: 10px 12px; border-left: 3px solid var(--accent-line); border-radius: 8px; font-size: 11px; }
.form-actions { gap: 14px; margin-top: 8px; }
.btn { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.btn-small { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; }
.form-actions .btn { min-height: 44px; }
.inline-note code { font-size: 10.5px; }

/* 其它工具页的通用卡片、结果区和表格 */
.card { border-color: #e4dfd3; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { padding: 14px 18px; }
.card-body { padding: 20px; }
.table-wrap { border-color: #e4dfd3; border-radius: 12px; }
.table th { background: #f8f4ea; font-family: var(--sans); font-size: 11px; letter-spacing: .02em; }
.table th, .table td { padding: 11px 12px; }
.qr-preview { border-color: #e4dfd3; border-radius: 14px; background: #fff; }
.qr-result-body { gap: 24px; }
.preset-option, .port-option { border-color: #e4dfd3; border-radius: 8px; background: #fbf8f0; }
.preset-option:has(input:checked), .port-option:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.preset-option strong { font-size: 12px; }
.preset-option small { font-size: 10px; }
.preset-panel, .percent-panel { border-left: 3px solid var(--accent-line); border-radius: 8px; background: #fbf8f0; }
.random-row, .db-status-list > div { border-color: #e4dfd3; border-radius: 8px; background: #fbf8f0; }
.cert-hero { border-color: #e4dfd3; border-radius: 16px; }
.cert-grade { border-radius: 12px; }
.panel-head h2 { font-family: var(--sans); font-weight: 720; }
.panel-head p { font-size: 11px; }

/* 手记：列表与阅读页 */
.notes-hero { padding: clamp(34px, 5vw, 58px) 0 clamp(26px, 4vw, 42px); gap: clamp(24px, 4vw, 56px); }
.notes-kicker { margin-bottom: 14px; font-size: 10px; }
.notes-hero h1 em { display: inline; }
.notes-lede { max-width: 700px; }
.notes-grid { gap: 14px; }
.note-card { border-color: #e4dfd3; border-radius: 15px; background: var(--surface); }
.note-card-body h2 { font-family: var(--sans); font-weight: 720; }
.note-lead-body h2 { font-family: var(--sans); font-weight: 760; }
.note-article-head { padding-bottom: 22px; }
.note-article-summary { font-size: 15px; }
.note-content { max-width: 760px; font-size: 15px; line-height: 1.95; }
.note-content h2 { font-family: var(--sans); font-size: 25px; font-weight: 750; }
.note-content h3 { font-family: var(--sans); font-size: 19px; }
.note-content blockquote { border-left: 3px solid var(--accent-line); border-radius: 0 8px 8px 0; background: #faf7ef; }
.note-content pre { border-radius: 12px; }
.notes-pager a, .notes-pager .is-disabled, .notes-pager-pages a, .notes-pager-pages .is-current {
  border-radius: 8px;
}
.notes-pager-pages .is-current { background: var(--accent); border-color: var(--accent); }

/* 页脚：压低体量，保留品牌收尾 */
.site-footer { margin-top: 12px; }
.footer-lead { padding-top: clamp(34px, 5vw, 54px); padding-bottom: clamp(28px, 4vw, 44px); }
.footer-lead-copy h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -.05em; }
.footer-main { padding-top: 26px; padding-bottom: 26px; }
.footer-brand-block strong { font-family: var(--sans); font-weight: 780; }

/* 响应式：卡片密度的三档 */
@media (min-width: 1320px) {
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .container { width: min(100% - 40px, 1000px); }
  .home-hero h1 { font-size: clamp(44px, 5.6vw, 60px); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-card { min-height: 220px; }
  .tool-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tool-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tool-aside .side-label { margin-top: 0; }
  .tool-aside .side-label:nth-of-type(3) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .main { padding-top: 20px; }
  .home-hero h1 { font-size: clamp(30px, 8.4vw, 36px); line-height: 1.1; }
  .tool-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tool-page-actions { align-self: stretch; }
  .tool-panel { padding: 18px; }
  .tool-form input[type="text"], .tool-form input[type="number"], .tool-form input[type="date"],
  .tool-form input[type="search"], .tool-form input[type="email"], .tool-form input[type="url"],
  .tool-form input[type="tel"], .tool-form select, .tool-form textarea { font-size: 16px; }
  .field-row, .field-row--3, .field-row--4 { grid-template-columns: 1fr; }
  .tool-aside { grid-template-columns: 1fr; }
  .tool-aside .side-label:nth-of-type(3) { grid-column: auto; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; }
  .category-card h3 { margin-top: 18px; }
  .category-list { padding-top: 14px; }
  .tool-grid, .feature-grid, .note-grid, .notes-grid { grid-template-columns: 1fr; }
  .home-workflow { padding: 24px 20px; }
  .qr-result-body { grid-template-columns: 1fr; }
  .note-content { font-size: 15px; }
}
@media (max-width: 520px) {
  .home-hero h1 { font-size: clamp(28px, 7.9vw, 33px); overflow-wrap: anywhere; }
  .section-heading h2,
  .home-workflow h2,
  .home-closing h2 { font-size: clamp(25px, 6.8vw, 30px); overflow-wrap: anywhere; }
  .hero-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-index-item:nth-child(3n) { border-right: 0; }
  .hero-index-item:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .notes-hero h1 { font-size: clamp(30px, 7.8vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero h1 em { animation: none !important; }
}

/* 手记空态：编号与文案各占一列，文案必须整块排，避免 grid 自动放行 */
.notes-empty { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: center; }
.notes-empty-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.notes-empty h2 { margin-bottom: 10px; }
.notes-empty p { margin-bottom: 18px; }
@media (max-width: 760px) {
  .notes-empty { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* 后缀库筛选：把原生 search 输入并进统一高度的白底控件 */
.table-tools { align-items: center; gap: 12px; }
.table-filter {
  display: inline-flex; align-items: center; gap: 10px; height: 38px;
  padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.table-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 92, 73, .1); }
.table-filter-label { padding-right: 9px; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.table-filter input { width: min(320px, 56vw); height: 34px; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.table-filter input::placeholder { color: var(--muted); }
@media (max-width: 760px) {
  .table-filter { width: 100%; }
  .table-filter input { width: 100%; }
}
