/* =====================================================================
   SEJSON - 全站样式
   设计口径：翡翠绿 #10B981 · 卡片圆角 16/12 · 内容宽 1200
   ===================================================================== */

:root {
  --green: #10B981;
  --green-dark: #047857;
  --green-bg: #ECFDF5;
  --green-line: #A7F3D0;
  --green-soft: #F2FDF8;
  --ink: #0A0A0A;
  --text: #3F3F46;
  --muted: #737373;
  --faint: #A3A3A3;
  --line: #EBEBEE;
  --bg: #FFFFFF;
  --bg-soft: #F9F9FB;
  --chip: #F4F4F5;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 10, 10, .04);
  --shadow-hover: 0 10px 30px rgba(10, 10, 10, .08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0ea371; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #d4d4d8; background: var(--bg-soft); }
.btn-gray { background: var(--chip); color: var(--ink); }
.btn-gray:hover { background: #ececf0; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ==================== 顶部导航 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--green);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex: none;
}
.brand-mark .icon { width: 16px; height: 16px; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.nav { display: flex; gap: 28px; margin-left: 12px; flex: 1; }
.nav a { font-size: 14px; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--green-dark); font-weight: 600; }
.header-cta { margin-left: auto; }

/* ==================== Hero ==================== */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px;
  background: var(--green-bg); color: var(--green-dark);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.badge-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none;
}
.hero-title { font-size: 52px; line-height: 1.22; color: var(--ink); font-weight: 800; letter-spacing: 1px; }
.hero-desc { margin: 22px 0 30px; font-size: 16px; color: var(--muted); max-width: 560px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 640px;
  padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.hero-search .search-ico { font-size: 18px; color: var(--faint); flex: none; }
.hero-search input { flex: 1; border: 0; outline: none; font-size: 15px; font-family: inherit; color: var(--ink); background: transparent; min-width: 0; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search .btn { flex: none; border-radius: 11px; }
.hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-label { font-size: 13px; color: var(--faint); }
.tag {
  padding: 6px 16px; border-radius: 100px; border: 0;
  font-size: 13px; color: var(--text); background: var(--chip); transition: all .15s ease;
}
.tag:hover { color: var(--green-dark); background: var(--green-bg); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.hero-trust .icon { color: var(--text); font-size: 14px; }

/* Hero 右侧装饰视觉 */
.hero-visual { position: relative; height: 400px; }
.hv-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-hover); padding: 16px;
}
.hv-code { top: 0; left: 0; width: 236px; padding: 14px 16px; z-index: 3; }
.hv-code-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.hv-code-block {
  background: #F6F6F7; border-radius: 8px; padding: 11px 14px;
  font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--text); white-space: pre;
}
.hv-code-status { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }
.hv-code-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hv-code-status b { color: var(--text); font-weight: 600; }
.hv-code-status i { font-style: normal; color: var(--faint); }
.hv-compress { top: 154px; left: 76px; right: 24px; padding: 18px; z-index: 1; }
.hv-file { display: flex; align-items: center; gap: 12px; }
.hv-thumb {
  width: 44px; height: 44px; border-radius: 10px; background: var(--chip); flex: none;
}
.hv-file-main { flex: 1; min-width: 0; }
.hv-file-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.hv-file-size { font-size: 12px; color: var(--muted); margin-top: 3px; }
.hv-pct { font-size: 13px; color: var(--green-dark); font-weight: 700; }
.hv-bar { height: 8px; border-radius: 100px; background: var(--chip); overflow: hidden; margin-top: 14px; }
.hv-bar span { display: block; height: 100%; border-radius: 100px; background: var(--green); }
.hv-actions { display: flex; gap: 10px; margin-top: 14px; }
.hv-actions .btn { cursor: default; pointer-events: none; }
.hv-palette { bottom: 0; right: 0; width: 200px; z-index: 2; }
.hv-palette-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.hv-swatches { display: flex; gap: 8px; }
.hv-dot2 { width: 24px; height: 24px; border-radius: 8px; display: inline-block; }
.hv-palette-value { margin-top: 10px; font-size: 12px; color: var(--text); font-family: var(--mono); }

/* ==================== 通用 Section ==================== */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; color: var(--ink); font-weight: 700; }
.section-sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.section-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.section-link:hover { color: var(--green-dark); }
.section-link .icon { font-size: 13px; }

/* ==================== 分类 Bento ==================== */
.cat-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cat-side { display: flex; flex-direction: column; gap: 16px; }
.cat-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow);
  transition: all .18s ease;
}
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #d9d9de; }
.cat-featured { gap: 24px; }
.cat-featured .cat-name { font-size: 26px; letter-spacing: .5px; }
.cat-featured .cat-desc { font-size: 14px; line-height: 1.75; max-width: 36em; }
/* 分类图标：默认浅灰底 + 深色图形；特色分类为翡翠绿底 */
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--chip);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; flex: none;
}
.cat-icon-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; background: var(--green-bg); color: var(--green-dark); }
.cat-icon-sm { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
.cat-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.cat-desc { font-size: 13px; color: var(--muted); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 15px; border: 0; border-radius: 100px;
  font-size: 13px; color: var(--text); background: var(--chip);
}
.cat-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.cat-count { font-size: 12px; color: var(--faint); }
.cat-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); font-weight: 600; }
/* 横排卡片：图标居左，文字居右 */
.cat-card-row { flex-direction: row; align-items: center; gap: 16px; flex: 1; padding: 22px 24px; }
.cat-card-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-card-row .cat-count { margin-top: 2px; }
.cat-bottom .cat-card { flex-direction: row; align-items: center; gap: 14px; padding: 22px; }
.cat-bottom .cat-card-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-bottom .cat-name { font-size: 16px; }
.cat-bottom .cat-desc { font-size: 12.5px; }

/* ==================== 工具卡片 ==================== */
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow);
  transition: all .18s ease;
}
.tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #d9d9de; }
.tool-icon {
  color: var(--ink); display: inline-flex; align-items: center;
  font-size: 20px; margin-bottom: 6px; flex: none;
}
.tool-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.tool-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 39px;
}
.tool-meta { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ==================== 工具行 ==================== */
.tool-list { display: flex; flex-direction: column; gap: 12px; }
.tool-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; box-shadow: var(--shadow); transition: all .18s ease;
}
.tool-row:hover { box-shadow: var(--shadow-hover); border-color: #d9d9de; }
.tool-row .tool-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--chip);
  color: var(--ink); font-size: 19px; margin-bottom: 0; justify-content: center;
}
.tool-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-row-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.tool-row-desc { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-row-meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.tool-row-arrow { color: var(--faint); font-size: 15px; flex: none; }
.tool-row:hover .tool-row-arrow { color: var(--green-dark); }

/* ==================== 内页页头 ==================== */
.page-hero { padding: 48px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--green-dark); }
.crumbs b { color: var(--text); font-weight: 500; }
.page-hero h1 { font-size: 34px; color: var(--ink); font-weight: 800; }
.page-desc { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 760px; }
.page-desc b { color: var(--green-dark); font-weight: 600; }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.count-pill {
  flex: none; padding: 7px 16px; border-radius: 100px; background: var(--green-bg);
  color: var(--green-dark); font-size: 13px; font-weight: 600;
}

/* ==================== 全部工具页 ==================== */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 8px; }
.fchip {
  padding: 7px 16px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 13px; color: var(--text); background: #fff; transition: all .15s ease;
}
.fchip:hover { border-color: var(--green); color: var(--green-dark); }
.fchip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool-section { margin-top: 44px; }
.tool-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tool-section-title { display: flex; align-items: center; gap: 12px; }
.tool-section-title h2 { font-size: 20px; color: var(--ink); font-weight: 700; }
.tool-section-count { font-size: 13px; color: var(--faint); }

/* ==================== 分类列表页 ==================== */
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.list-head h2 { font-size: 18px; color: var(--ink); font-weight: 700; }
.list-side-links { display: flex; gap: 18px; }
.list-side-links a { font-size: 13px; color: var(--muted); }
.list-side-links a:hover { color: var(--green-dark); }

/* ==================== 搜索页 / 空状态 ==================== */
.page-search-box { margin-top: 24px; }
.empty-box {
  text-align: center; padding: 72px 24px; border: 1px dashed var(--line);
  border-radius: var(--r-lg); background: var(--bg-soft);
}
.empty-ico { font-size: 40px; color: var(--faint); }
.empty-box h3 { margin: 16px 0 8px; font-size: 18px; color: var(--ink); }
.empty-box p { color: var(--muted); font-size: 14px; }
.empty-box a { color: var(--green-dark); }

/* ==================== 更新日志 ==================== */
.timeline-month { font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 20px; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-dot {
  position: absolute; left: -24px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--green); border: 3px solid var(--green-bg);
}
.timeline-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.timeline-head { display: flex; align-items: center; gap: 12px; }
.timeline-head h3 { font-size: 16px; color: var(--ink); font-weight: 600; flex: 1; }
.ver-pill {
  padding: 3px 10px; border-radius: 100px; background: var(--green-bg);
  color: var(--green-dark); font-size: 12px; font-weight: 600; font-family: var(--mono);
}
.timeline-date { font-size: 13px; color: var(--faint); font-family: var(--mono); }
.timeline-content { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ==================== 关于页 ==================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
}
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--green-dark); font-family: var(--mono); }
.stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.about-card h3 { font-size: 16px; color: var(--ink); margin: 14px 0 8px; }
.about-card p { font-size: 13px; color: var(--muted); }
.about-cta {
  margin-top: 40px; text-align: center; padding: 48px 24px;
  background: var(--green-soft); border: 1px solid var(--green-line); border-radius: var(--r-lg);
}
.about-cta h3 { font-size: 22px; color: var(--ink); }
.about-cta p { margin: 10px 0 20px; color: var(--muted); font-size: 14px; }

/* ==================== 反馈表单 ==================== */
.feedback-form { padding: 28px; }
.alert {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px;
}
.alert-success { background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green-line); }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ==================== 表单元素 ==================== */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.field label i { color: #ef4444; font-style: normal; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; color: var(--ink); outline: none; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg);
}
.field textarea { resize: vertical; line-height: 1.7; }
.form-hint { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

/* ==================== 404 ==================== */
.notfound { text-align: center; padding: 80px 24px 40px; }
.notfound-sm { padding: 40px 24px; }
.notfound-code {
  font-size: 110px; font-weight: 800; font-family: var(--mono);
  color: var(--green-bg); -webkit-text-stroke: 2px var(--green);
  line-height: 1; letter-spacing: 8px;
}
.notfound h1 { font-size: 26px; color: var(--ink); margin: 24px 0 10px; }
.notfound p { color: var(--muted); font-size: 15px; }
.notfound .muted { font-size: 13px; margin-top: 6px; }
.notfound .muted a { color: var(--green-dark); }
.notfound-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

/* ==================== 工作台 ==================== */
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.work-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.work-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.panel-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.panel-meta { font-size: 13px; color: var(--faint); font-family: var(--mono); }
.panel-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.code-area {
  width: 100%; min-height: 200px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-soft); color: var(--text);
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  outline: none; resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.code-area:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); background: #fff; }
.code-area.is-ok { background: var(--green-soft); border-color: var(--green-line); color: var(--green-dark); }
.code-area.is-error { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* 分段选择 */
.seg { display: flex; gap: 3px; background: var(--chip); border-radius: 9px; padding: 3px; }
.seg button {
  flex: 1; height: 32px; border: 0; border-radius: 7px; background: transparent;
  font-size: 12px; color: var(--muted); cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: all .15s ease;
}
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 开关 */
.switch-row { display: flex; align-items: center; gap: 10px; }
.switch-row span { font-size: 13px; color: var(--ink); flex: 1; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 100px; background: #D4D4D8; cursor: pointer; transition: background .15s ease; flex: none; border: 0; }
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: left .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.switch.on { background: var(--green); }
.switch.on::after { left: 18px; }

/* 滑条 */
.slider-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.slider-value { font-family: var(--mono); font-size: 13px; color: var(--green-dark); font-weight: 500; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 100px; background: #E5E5E5; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(16,185,129,.5);
}

/* 状态条 */
.status-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--r-sm); background: var(--green-soft);
  font-size: 12px; color: var(--green-dark); font-weight: 500; margin-top: 14px;
}
.status-bar.is-error { background: #FEF2F2; color: #B91C1C; }
.status-bar.is-hidden { visibility: hidden; }
.status-bar .icon { font-size: 14px; flex: none; }

/* 快捷列表 */
.quick-list { display: flex; flex-direction: column; gap: 8px; }
.quick-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-soft);
}
.quick-row:hover { background: var(--green-soft); }
.quick-row .ql { font-size: 13px; color: var(--muted); }
.quick-row .qv { font-size: 13px; color: var(--ink); font-family: var(--mono); font-weight: 500; }
.quick-row .copy-mini {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  font-size: 14px; padding: 2px 4px; border-radius: 6px;
}
.quick-row .copy-mini:hover { color: var(--green-dark); background: var(--green-bg); }

/* 转换行（时间戳页） */
.conv-row { display: flex; align-items: center; gap: 12px; }
.conv-row .conv-label { width: 72px; flex: none; font-size: 13px; color: var(--muted); }
.conv-row .conv-input {
  flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 13px; font-family: var(--mono);
  color: var(--ink); outline: none; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.conv-row .conv-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.conv-row .conv-arrow { color: var(--faint); flex: none; }
.conv-row .conv-result {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: var(--r-sm);
  background: var(--green-bg); color: var(--green-dark);
  font-size: 13px; font-family: var(--mono); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ts-hero {
  padding: 18px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 16px;
}
.ts-hero .ts-label { font-size: 12px; color: var(--muted); }
.ts-hero .ts-value {
  margin-top: 6px; font-size: 32px; font-weight: 600; color: var(--ink);
  font-family: var(--mono); letter-spacing: 1px; word-break: break-all;
}

/* 上传拖拽区 */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 24px; border: 1.5px dashed #d4d4d8; border-radius: var(--r-md);
  background: var(--bg-soft); cursor: pointer; text-align: center;
  transition: all .15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--green); background: var(--green-soft); }
.dropzone .icon { font-size: 26px; color: var(--green-dark); }
.dropzone .dz-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.dropzone .dz-hint { font-size: 12px; color: var(--muted); }

/* 文件列表 */
.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.file-row .f-type {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  background: var(--green-bg); color: var(--green-dark);
}
.file-row .f-info { flex: 1; min-width: 0; }
.file-row .f-name { font-size: 13px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .f-meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.file-row .f-save {
  border: 0; background: var(--green-bg); color: var(--green-dark);
  font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 8px; cursor: pointer; flex: none;
}
.file-row .f-save:hover { background: #d9f7ea; }
.file-row .f-save[disabled] { background: var(--chip); color: var(--faint); cursor: not-allowed; }

/* 二维码预览 */
.qr-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--chip); border-radius: var(--r-md);
  min-height: 240px;
}
.qr-preview canvas { border-radius: 8px; background: #fff; box-shadow: var(--shadow); }

/* 相关工具（工作台底部） */
.related-grid { grid-template-columns: repeat(3, 1fr); }

/* ==================== 页脚 ==================== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 48px; overflow: hidden; }
.footer-watermark {
  font-size: 140px; font-weight: 800; color: #EFEFF1; line-height: .95;
  letter-spacing: 24px; user-select: none; pointer-events: none;
  margin-bottom: -34px; white-space: nowrap;
}
.footer-grid {
  position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-blurb { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 2; }
.footer-col h4 { font-size: 14px; color: var(--ink); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); padding: 5px 0; }
.footer-col a:hover { color: var(--green-dark); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--green-dark); }

/* ==================== 工具页通用补充组件 ==================== */
/* 按位查看（进制转换） */
.bit-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft);
}
.bit-cell {
  text-align: center; padding: 7px 0; border-radius: 7px; background: #fff;
  font-family: var(--mono); font-size: 13px; color: var(--faint);
  border: 1px solid var(--line);
}
.bit-cell.on { background: var(--green-bg); border-color: var(--green-line); color: var(--green-dark); font-weight: 700; }

/* 数据表格（还款计划、密钥信息等） */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 500;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--mono); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.table-scroll { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table-scroll .data-table th { position: sticky; top: 0; background: #fff; z-index: 1; }

/* 结果块（大写金额等大字号输出） */
.result-box {
  padding: 18px 20px; border-radius: var(--r-md); background: var(--green-soft);
  border: 1px solid var(--green-line);
  font-size: 20px; font-weight: 700; color: var(--green-dark);
  line-height: 1.6; word-break: break-all;
}
.result-box.is-plain { background: var(--bg-soft); border-color: var(--line); color: var(--ink); font-weight: 600; font-size: 15px; font-family: var(--mono); }

/* 状态标签 */
.state-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; background: var(--chip); color: var(--muted);
}
.state-pill.ok { background: var(--green-bg); color: var(--green-dark); }
.state-pill.bad { background: #FEF2F2; color: #B91C1C; }

/* 键值网格（请求头、响应头等） */
.kv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 16px; font-size: 13px; }
.kv-grid .k { color: var(--muted); }
.kv-grid .v { color: var(--text); font-family: var(--mono); word-break: break-all; }

/* 请求行（方法 + 地址 + 发送） */
.req-bar { display: flex; gap: 10px; align-items: stretch; }
.req-bar select, .req-bar input[type="text"] {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink); background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.req-bar select { width: 122px; flex: none; font-family: var(--mono); font-weight: 600; font-size: 13px; }
.req-bar input[type="text"] { flex: 1; min-width: 0; font-family: var(--mono); }
.req-bar select:focus, .req-bar input[type="text"]:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.req-bar .btn { flex: none; }

/* 响应状态行 */
.resp-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.resp-line b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

/* 提示条（CORS 等使用说明） */
.note-card {
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--bg-soft); font-size: 13px; line-height: 1.8; color: var(--muted);
}
.note-card b { color: var(--ink); }
.note-card code {
  font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 4px;
  background: #fff; border: 1px solid var(--line); color: var(--text);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1080px) {
  .hot-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-bottom { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-side { position: static; }
  .footer-watermark { font-size: 80px; letter-spacing: 10px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 38px; }
  .cat-top { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .page-hero-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hot-grid { grid-template-columns: 1fr; }
  .cat-bottom { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 44px 0; }
  .hero-search .btn { padding: 0 14px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-watermark { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
