/* ==========================================================================
   FormatBox — 设计系统
   约束：teal 品牌色 + slate 中性；无紫/无渐变/无玻璃拟态；system-ui；响应式
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* 品牌色（teal）*/
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* 中性（slate）*/
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* 语义 */
  --success: #15803d;
  --success-bg: #f0fdf4;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --warn: #b45309;

  /* 表面 / 文本 */
  --bg: #ffffff;
  --bg-alt: var(--slate-50);
  --border: var(--slate-200);
  --border-strong: var(--slate-300);
  --text: var(--slate-900);
  --text-muted: var(--slate-600);
  --text-soft: var(--slate-500);

  /* 品牌主色映射 */
  --primary: var(--teal-600);
  --primary-hover: var(--teal-700);
  --primary-active: var(--teal-800);
  --primary-soft: var(--teal-50);
  --primary-border: var(--teal-200);

  /* 字体 */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* 间距（8px 基准） */
  --space-1: 0.25rem;   /* 4px  */
  --space-2: 0.5rem;    /* 8px  */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3rem;      /* 48px */
  --space-9: 4rem;      /* 64px */

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* 阴影（克制，无霓虹）*/
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);

  /* 布局 */
  --container: 72rem;      /* 1152px */
  --container-narrow: 48rem;
  --header-h: 4rem;

  /* 动效（克制）*/
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 160ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
::selection { background: var(--teal-100); color: var(--teal-900); }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: var(--container-narrow); }

/* ---------- 通用工具 ---------- */
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 顶部导航（全局统一） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-5);
}
.brand {
  display: flex; align-items: center; gap: var(--space-2);
  font-weight: 800; font-size: 1.15rem; color: var(--text);
  letter-spacing: -0.02em; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.brand__name { color: var(--text); }
.brand__name span { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.site-nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); background: var(--slate-100); text-decoration: none; }
.site-nav a.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: var(--space-2); }
.lang-switch a {
  padding: 4px 8px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-soft); border-radius: var(--radius-sm);
}
.lang-switch a:hover { background: var(--slate-100); color: var(--text); text-decoration: none; }
.lang-switch a.is-active { color: var(--primary); background: var(--primary-soft); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none; margin-left: auto;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; color: var(--text);
}
.nav-toggle:hover { background: var(--slate-100); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

/* ---------- 页脚（全局统一） ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-300); margin-top: var(--space-9); }
.site-footer__inner {
  padding: var(--space-8) 0 var(--space-6);
  display: grid; gap: var(--space-6);
}
.site-footer__brand { max-width: 22rem; }
.site-footer__brand .brand { color: #fff; margin-bottom: var(--space-3); }
.site-footer__brand .brand__logo { color: var(--teal-400); }
.site-footer__tagline { font-size: 0.95rem; color: var(--slate-400); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.site-footer ul a { color: var(--slate-400); font-size: 0.9rem; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.site-footer__legal {
  border-top: 1px solid var(--slate-700);
  padding-top: var(--space-5);
  font-size: 0.8rem; color: var(--slate-500);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  align-items: center; justify-content: space-between;
}
.site-footer__legal p { margin: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 0.85rem; padding: var(--space-4) 0; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb__sep { color: var(--slate-400); }
.breadcrumb__current { color: var(--text-muted); font-weight: 500; }

/* ---------- Hero / 页面头 ---------- */
.page-hero { padding: var(--space-8) 0 var(--space-6); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero--home { background: linear-gradient(180deg, var(--teal-50) 0%, #ffffff 100%); }
/* 工具页紧凑 hero：让转换器在首屏可见，用户无需滚动即可操作 */
.page-hero--compact { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-hero--compact h1 { margin-bottom: var(--space-2); font-size: 1.6rem; }
.page-hero--compact .page-hero__sub { font-size: 0.95rem; max-width: 40rem; }
/* 工具页：紧凑 hero 与转换器卡片之间留白（避免紧贴）*/
.converter-container { margin-top: var(--space-5); }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal-700); background: var(--teal-100);
  padding: 4px 10px; border-radius: 999px; margin-bottom: var(--space-4);
}
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero__sub { font-size: 1.1rem; color: var(--text-muted); max-width: 42rem; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__sub { margin-inline: auto; }
.page-hero__eyebrow .eyebrow-icon { width: 0.9rem; height: 0.9rem; }

/* ---------- 信任徽章条 ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-5) 0; }
.trust-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--bg); border: 1px solid var(--border);
  padding: var(--space-2) var(--space-3); border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
}
.trust-chip svg { width: 1.1rem; height: 1.1rem; color: var(--success); flex-shrink: 0; }

/* 页脚信任条（深色适配）：统一移入 footer 顶部，作为全局信任背书 */
.site-footer__trust { border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer__trust .trust-bar { justify-content: center; padding: var(--space-5) 0; }
.site-footer__trust .trust-chip {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14);
  color: var(--slate-300);
}
.site-footer__trust .trust-chip svg { color: var(--teal-400); }

/* ---------- 转换器卡片 ---------- */
.converter-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.converter-card__head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.converter-card__head .format-pair { margin-left: auto; }
.converter-card__body { padding: var(--space-4); }
.converter-card__foot {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border); background: var(--bg-alt);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}

/* 格式徽章对（src → dst）*/
.format-pair { display: inline-flex; align-items: center; gap: var(--space-2); }
.format-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.format-badge--src { background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--border); }
.format-badge--dst { background: var(--teal-600); color: #fff; }
.format-pair__arrow { color: var(--text-soft); display: inline-flex; }
.format-pair__arrow svg { width: 1.1rem; height: 1.1rem; }

/* 拖放区 */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: var(--space-5) var(--space-5); text-align: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer; background: var(--bg-alt);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--teal-500); background: var(--teal-50); }
.dropzone__icon {
  width: 2.6rem; height: 2.6rem; margin: 0 auto var(--space-2);
  color: var(--teal-600); background: var(--teal-100);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.dropzone__icon svg { width: 1.6rem; height: 1.6rem; }
.dropzone__title { font-weight: 600; font-size: 1rem; }
.dropzone__hint { font-size: 0.85rem; color: var(--text-soft); margin-top: var(--space-1); }
.dropzone__browse { color: var(--primary); font-weight: 600; }
.dropzone__formats { font-size: 0.78rem; color: var(--text-soft); margin-top: var(--space-3); font-family: var(--font-mono); }

/* 文件列表 */
.file-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.file-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.file-item__thumb {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  background: var(--slate-100); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--slate-400);
}
.file-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item__info { min-width: 0; flex: 1; }
.file-item__name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item__meta { font-size: 0.78rem; color: var(--text-soft); }
.file-item__status { font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.file-item__status.is-ok { color: var(--success); }
.file-item__status.is-err { color: var(--danger); }
.file-item__status.is-working { color: var(--text-muted); }
.file-item__remove { color: var(--text-soft); padding: 6px; border-radius: var(--radius-sm); }
.file-item__remove:hover { color: var(--danger); background: var(--danger-bg); }
.file-item__remove svg { width: 1.1rem; height: 1.1rem; }
.file-item__download { display: none; }
.file-item.is-done .file-item__download { display: inline-flex; }
.file-item__download a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
  padding: 6px 10px; border-radius: var(--radius-sm); background: var(--primary-soft);
}
.file-item__download a:hover { text-decoration: none; background: var(--teal-100); }
.file-item__download svg { width: 0.95rem; height: 0.95rem; }

/* 进度条 */
.progress { height: 4px; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--teal-500); border-radius: 999px; transition: width 200ms var(--ease); }

/* 质量滑块 */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-4); }
.control__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-2); }
.control__value { font-family: var(--font-mono); color: var(--primary); font-weight: 700; }
.control__hint { font-size: 0.78rem; color: var(--text-soft); margin-top: var(--space-2); }
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 6px;
  border-radius: 999px; background: var(--slate-200); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--teal-600); border: 3px solid #fff;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--teal-600);
  border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}

/* 背景色选择（转 JPG 时） */
.control__swatches { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.swatch {
  width: 2rem; height: 2rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; padding: 0; position: relative;
}
.swatch.is-active { border-color: var(--teal-600); box-shadow: 0 0 0 2px var(--teal-100); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:active { background: var(--primary-active); }
.btn--primary:disabled { background: var(--slate-300); color: var(--slate-500); cursor: not-allowed; }
.btn--outline { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--slate-50); border-color: var(--slate-400); }
.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { background: var(--slate-100); color: var(--text); }
.btn--sm { padding: var(--space-2) var(--space-3); font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }

/* 批量操作 */
.batch-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.batch-count { font-size: 0.85rem; color: var(--text-soft); }
.batch-count strong { color: var(--text); }

/* 提示条 */
.alert { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-size: 0.9rem; align-items: flex-start; }
.alert svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.alert--info { background: var(--teal-50); color: var(--teal-900); border: 1px solid var(--teal-200); }
.alert--info svg { color: var(--teal-600); }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert--error svg { color: var(--danger); }
.alert--success { background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; }

/* ---------- 内容区（说明/FAQ/步骤） ---------- */
.section { padding: var(--space-8) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { margin-bottom: var(--space-5); max-width: 44rem; }
.section__head h2 { margin-bottom: var(--space-2); }
.section__head p { color: var(--text-muted); }

.prose { max-width: 46rem; }
.prose p { margin-bottom: var(--space-4); color: var(--text-muted); }
.prose h3 { margin: var(--space-5) 0 var(--space-2); color: var(--text); }
.prose ul, .prose ol { margin-bottom: var(--space-4); color: var(--text-muted); }
.prose li { margin-bottom: var(--space-2); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--slate-100); padding: 2px 6px; border-radius: 4px; color: var(--slate-800); }
.prose strong { color: var(--text); }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; }
.step { position: relative; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--teal-600); color: #fff; font-weight: 700; font-size: 0.9rem;
  margin-bottom: var(--space-3);
}
.step__title { font-weight: 700; margin-bottom: var(--space-2); }
.step__desc { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ */
.faq { display: grid; gap: var(--space-2); }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--space-4) var(--space-5);
  font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; width: 0.7rem; height: 0.7rem; flex-shrink: 0;
  border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item[open] summary { color: var(--primary); }
.faq__body { padding: 0 var(--space-5) var(--space-4); color: var(--text-muted); font-size: 0.95rem; }

/* ---------- 首页 hub 卡片 ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.hub-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); background: var(--bg); transition: box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hub-card:hover { text-decoration: none; border-color: var(--teal-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hub-card__pair { margin-bottom: var(--space-4); }
.hub-card__title { font-weight: 700; color: var(--text); margin-bottom: var(--space-1); font-size: 1rem; }
.hub-card__desc { font-size: 0.85rem; color: var(--text-soft); }

/* 首页特性卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.feature { padding: var(--space-5); border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.feature__icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  background: var(--teal-50); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.feature__icon svg { width: 1.4rem; height: 1.4rem; }
.feature__title { font-weight: 700; margin-bottom: var(--space-2); }
.feature__desc { font-size: 0.9rem; color: var(--text-muted); }

/* 格式矩阵（首页全部格式）*/
.format-matrix { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.format-matrix .format-badge--src { background: var(--bg); }

/* ---------- About 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
table.data th { background: var(--bg-alt); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
table.data tr:last-child td { border-bottom: none; }
table.data td { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hub-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: var(--space-3);
    gap: 2px; box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--space-3); }
  .lang-switch { margin-left: 0; padding: var(--space-2) var(--space-3); }
  .controls { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hub-grid, .feature-grid { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .page-hero { padding: var(--space-6) 0; }
  .page-hero--compact { padding: var(--space-4) 0; }
  .converter-card__foot { flex-direction: column; align-items: stretch; }
  .batch-actions { justify-content: space-between; }
}

/* ---------- 打印/可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* ---------- noscript 兜底 ---------- */
/* 仅在禁用 JS 时对真实用户显示；AI 爬虫读取的是 HTML 源码，与样式无关。
   作用：工具区靠 JS 渲染，爬虫眼中是空白，此处用静态文本声明页面核心事实。 */
.noscript-note {
  max-width: 720px;
  margin: var(--space-5) auto;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.noscript-note__title { font-size: 1.05rem; margin: 0 0 0.5rem; }
.noscript-note__body { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ---------- 格式技术参数对比表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs-table th, .specs-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.specs-table thead th { font-weight: 600; border-bottom-width: 2px; }
.specs-table tbody th { font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .specs-table { font-size: 0.9rem; }
  .specs-table th, .specs-table td { padding: 0.55rem 0.6rem; }
}
