/* ============================================================
   Tools文档 (www.tools01.com) · Design System v3
   品牌蓝 #2563EB 为主、辅助紫 #6D5CE7 少量使用
   简洁、专业、可信、办公工具化；动效仅保留 hover/上传/进度/状态
   ============================================================ */

.tool-preview { text-align: center; margin: 16px 0; }
.tool-preview canvas { display: inline-block; width: auto; height: 280px; max-width: 100%; object-fit: contain; background: #fff; }
.options-panel input[type="number"] { max-width: 150px; }
.options-panel input[type="range"] { max-width: 220px; }
.options-panel input[type="text"] { min-width: 0; max-width: 100%; }

:root {
  --primary: #2563EB;
  --primary-2: #6D5CE7;
  --primary-dark: #1D4ED8;
  --primary-soft: #EFF4FE;
  --grad: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --bg: #F6F8FC;
  --card: #ffffff;
  --text: #111827;
  --text-light: #64748B;
  --muted: var(--text-light);
  --border: #E5E7EB;
  --success: #16a34a;
  --danger: #e0342f;
  --warning: #d98c22;
  --warning-soft: #fdf3e5;
  /* 中文字号刻度（新页面请取用，避免各自写死产生随机样式）
     正文 14–16px / 辅助 13–14px / 工具标题 16–18px，行高 1.55–1.75 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-title: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --lh-base: 1.65;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05), 0 1px 3px rgba(17, 24, 39, .04);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, .06), 0 12px 28px rgba(17, 24, 39, .07);
  --shadow-lg: 0 10px 24px rgba(17, 24, 39, .10), 0 24px 56px rgba(17, 24, 39, .12);
  --ring: 0 0 0 3px rgba(37, 99, 235, .16);
}

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

body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", "MiSans", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 可访问性：键盘焦点 ----------------
   全站统一 :focus-visible 轮廓；鼠标点击不显示，键盘 Tab 导航时清晰可见。
   注意：下方个别 input 用了 outline:none + box-shadow 焦点环，那也是可见焦点，保留。 */
:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
/* 深色页脚上的焦点环要看得清 */
.site-footer :where(a, button):focus-visible { outline-color: #93b4ff; }

/* 尊重系统「减少动效」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------- Header ---------------- */
.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 234, 244, .9);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* 锚点跳转：顶部导航吸顶（64px），滚动到目标时留出间距，避免标题被遮住 */
#tools, #plans, #free, .tool-category { scroll-margin-top: 84px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 107, 246, .35);
}
/* 渐变文字只作用于「文档」二字（原写法 .logo span 会误伤 .logo-mark，
   把图标背景裁成 text 导致图标整块不可见） */
.logo .logo-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-light); text-decoration: none;
  padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  transition: color .15s, background .15s;
}
/* 分类下拉 */
.nav-item { position: relative; }
.nav-item > a::after {
  content: ''; display: inline-block; margin-left: 5px;
  border: 4px solid transparent; border-top-color: currentColor;
  vertical-align: middle; transform: translateY(2px);
}
.nav-drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 10px; min-width: 190px;
  display: none; grid-template-columns: 1fr; gap: 2px; z-index: 80;
  max-height: 420px; overflow-y: auto;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: grid; }
.nav-drop a {
  display: block; padding: 7px 12px; font-size: 13.5px; white-space: nowrap;
  color: var(--text); border-radius: 8px;
}
.nav-drop a:hover { background: var(--primary-soft); color: var(--primary); }
.nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav a.nav-cta {
  background: var(--grad); color: #fff; font-weight: 600;
  margin-left: 8px; padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(79, 107, 246, .3);
}
.nav a.nav-cta:hover { color: #fff; filter: brightness(1.06); background: var(--grad); }

/* ---------------- Hero ---------------- */
.hero { position: relative; text-align: center; padding: 58px 0 22px; }
.hero h1 {
  font-size: 42px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.25; margin-bottom: 12px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .subtitle { font-size: 17px; color: var(--text-light); font-weight: 500; }
.brand-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--primary); background: var(--primary-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* Hero 双栏（首页）：文案 + 产品插画 */
.hero.hero-home {
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: 18px; text-align: left; padding: 34px 0 10px;
}
.hero-home .hero-copy h1 { font-size: 44px; }
.hero-home .hero-copy .subtitle { margin-bottom: 13px; }
.hero-art { position: relative; max-width: 430px; margin-left: auto; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }

/* 动效原则（Tools文档 §2.1）：仅保留上传、进度、hover、成功/失败等有意义动效，
   装饰性漂浮/旋转/流光动画一律移除 */

/* ---------------- Upload zone（品牌色实底大色块） ---------------- */
.upload-zone {
  position: relative;
  background: linear-gradient(135deg, #2f6bf0 0%, #4a8cf7 100%);
  border-radius: 22px;
  padding: 30px 24px;
  text-align: center; cursor: pointer;
  transition: box-shadow .25s, transform .2s, background .2s;
  margin: 14px 0 18px;
  box-shadow: 0 14px 34px rgba(47, 107, 240, .28);
  overflow: hidden;
}
.upload-zone::before {
  content: ''; position: absolute; inset: 10px;
  border: 2px dashed rgba(255, 255, 255, .38);
  border-radius: 14px; pointer-events: none;
}
.upload-zone:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(47, 107, 240, .38);
}
.upload-zone.dragover {
  background: linear-gradient(135deg, #255fe0 0%, #3f82f2 100%);
  transform: scale(1.01);
  box-shadow: 0 22px 50px rgba(47, 107, 240, .45);
}
.upload-zone .icon {
  width: 60px; height: 60px; margin: 0 auto 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.upload-zone:hover .icon { transform: translateY(-4px) scale(1.03); }
.upload-zone .main-text { font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; color: #fff; }
.upload-zone .hint { color: rgba(255, 255, 255, .85); font-size: 14px; }
.upload-zone .btn {
  background: #fff; color: #2f6bf0; box-shadow: 0 8px 20px rgba(15, 40, 100, .22);
}
.upload-zone .btn:hover { background: #fff; color: #255fe0; filter: brightness(.97); transform: translateY(-1px); }

/* ---------------- 规格速览条（上传区下方：格式/大小/计费） ---------------- */
.spec-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  margin: 14px 0 6px; padding: 11px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm); color: var(--text-light);
}
.spec-bar .spec-item { display: inline-flex; align-items: center; gap: 5px; }
.spec-bar .spec-item b { color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.spec-bar .spec-item em { font-style: normal; color: var(--primary); font-weight: 600; }
@media (max-width: 430px) {
  .spec-bar { gap: 6px 14px; padding: 10px 13px; font-size: 12.5px; }
}

.format-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 13px; }
.format-tags span {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  padding: 4px 13px; font-size: 12px; color: #fff; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.upload-zone:hover .format-tags span { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .2); }

/* ---------------- Trust bar ---------------- */
.trust-bar {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px; margin: 26px 0 10px;
  box-shadow: var(--shadow-sm);
}
.trust-bar .t-item {
  text-align: center; flex: 1; min-width: 130px;
  border-left: 1px solid var(--border);
}
.trust-bar .t-item:first-child { border-left: none; }
.trust-bar .t-item b {
  display: block; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust-bar .t-item span { color: var(--text-light); font-size: 13px; font-weight: 500; }

.features {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  color: var(--text-light); font-size: 14px; margin: 18px 0 34px; font-weight: 500;
}
.features span::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 7px;
  vertical-align: -3px; border-radius: 50%;
  background: var(--grad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------------- 转换方向大图标（工具页） ---------------- */
.convert-flow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 6px 0 20px; flex-wrap: wrap;
}
.cf-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cf-ico {
  width: 84px; height: 84px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 10px 24px rgba(24, 39, 75, .16);
  position: relative; overflow: hidden;
}
.cf-ico::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.28) 0%, transparent 45%);
}
.cf-src .cf-ico { background: linear-gradient(135deg, #8b96ac, #64748b); }
.cf-tgt .cf-ico { background: var(--grad); box-shadow: 0 12px 28px rgba(79, 107, 246, .38); }
.cf-label { font-size: 13px; color: var(--text-light); font-weight: 600; }
.cf-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); color: var(--primary);
}
.cf-arrow-ico { display: flex; align-items: center; justify-content: center; }

/* ---------------- 移动端底部操作栏 ---------------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(24, 39, 75, .08);
}
.mobile-bar .mb-inner { display: flex; gap: 10px; align-items: center; }
.mobile-bar .btn { flex: 1; text-align: center; padding: 12px 10px; font-size: 15px; }
.mobile-bar .mb-home {
  flex: 0 0 auto; width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; background: var(--grad); color: #fff; border: none;
  padding: 13px 30px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(79, 107, 246, .32);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 8px 22px rgba(79, 107, 246, .42); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: #a8b3cc; box-shadow: none; cursor: not-allowed; filter: none; transform: none; }
.btn-outline {
  background: #fff; color: var(--primary);
  border: 1.5px solid #c9d3f7; box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary); box-shadow: var(--shadow-sm); filter: none; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; flex: 0 0 auto; }

/* ---------------- Options panel ---------------- */
.options-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin: 16px 0; box-shadow: var(--shadow-sm);
}
.options-panel .opt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.options-panel label { font-size: 14px; color: var(--text-light); min-width: 80px; font-weight: 500; }
.options-panel select, .options-panel input[type="number"], .options-panel input[type="text"] {
  padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px;
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.options-panel select:focus, .options-panel input:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.options-panel input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---------------- File list ---------------- */
.file-list { margin: 16px 0; }
.file-list:empty { display: none; }
.file-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.file-item:hover { box-shadow: var(--shadow-md); border-color: #d8def0; }
.file-item .thumb {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(135deg, #eef1fe, #e8f2fd); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.file-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-item .thumb-icon { font-size: 25px; }
.file-item .f-info { flex: 1; min-width: 0; }
.file-item .name { font-size: 14px; font-weight: 600; word-break: break-all; }
.file-item .meta { color: var(--text-light); font-size: 13px; }
.file-item .status-ok { color: var(--success); font-weight: 600; }
.file-item .status-fail { color: var(--danger); font-weight: 600; }

/* ---------------- Progress ---------------- */
.progress-wrap { margin: 20px 0; display: none; }
.progress-bar {
  height: 10px; background: #e8ebf5; border-radius: 999px; overflow: hidden;
}
.progress-bar .fill {
  height: 100%; border-radius: 999px; width: 0;
  background: var(--grad); transition: width .4s;
  box-shadow: 0 2px 8px rgba(79, 107, 246, .4);
}
.progress-text { text-align: center; margin-top: 9px; color: var(--text-light); font-size: 14px; font-weight: 500; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 38px; }
.step-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card .s-num {
  width: 46px; height: 46px; line-height: 46px; margin: 0 auto 14px;
  background: var(--grad); color: #fff; border-radius: 50%;
  font-size: 19px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(79, 107, 246, .35), 0 0 0 6px rgba(79, 107, 246, .10);
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.step-card p { color: var(--text-light); font-size: 14px; }

/* ---------------- Tool cards ---------------- */
.section-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  margin: 46px 0 20px;
}
.tool-category { margin-bottom: 34px; }
.tool-category h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 19px; font-weight: 700; margin-bottom: 16px; color: var(--text);
}
.cat-icon {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 10px rgba(24, 39, 75, .16);
}
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 15px; }
.tool-card {
  position: relative;
  display: flex; flex-direction: column;   /* 纵向排列，配合下方 t-badge 沉底，保证整行卡片标签齐平 */
  background: var(--card); border: 1px solid var(--border); border-radius: 15px;
  padding: 20px 18px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .22s, border-color .18s;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cfd8f2;
}
.tool-card .t-badge {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 9px; border-radius: 7px; margin-top: auto;  /* 沉底：说明行数不齐也不影响标签对齐 */
  background: var(--primary-soft); color: var(--primary);
}
.tool-card .t-name { font-weight: 700; font-size: var(--fs-title); margin-bottom: 6px; letter-spacing: -.01em; line-height: 1.4; }
.tool-card .t-desc {
  color: var(--text-light); font-size: var(--fs-sm); line-height: 1.6;
  margin-bottom: 12px;                                  /* 与下方标签的固定间距 */
}
.tool-card .t-desc:last-child { margin-bottom: 0; }      /* 无标签的卡片（如"即将上线"/相关工具）不留尾距 */

/* 分类配色 */
.cat-img .cat-icon { background: linear-gradient(135deg, #7c6cf5, #5b8df8); }
.cat-img .t-badge { background: #eef0fe; color: #5b6cf0; }
.cat-edit .cat-icon { background: linear-gradient(135deg, #14b8c4, #2dd4a7); }
.cat-edit .t-badge { background: #e6faf8; color: #0e9e8f; }
.cat-pdf .cat-icon { background: linear-gradient(135deg, #f4657c, #f2885d); }
.cat-pdf .t-badge { background: #fdeef1; color: #e2546c; }
.cat-doc .cat-icon { background: linear-gradient(135deg, #f2a93b, #ee7d43); }
.cat-doc .t-badge { background: var(--warning-soft); color: var(--warning); }

/* ---------------- Content sections ---------------- */
.content-section {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin: 26px 0; box-shadow: var(--shadow-sm);
}
.content-section h2 {
  font-size: 21px; font-weight: 700; margin-bottom: 15px; letter-spacing: -.01em;
}
.content-section p { margin-bottom: 12px; color: var(--text); }
.content-section ol, .content-section ul { padding-left: 22px; margin-bottom: 12px; }
.content-section li { margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 15px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-weight: 700; margin-bottom: 6px; }
.faq-item .a { color: var(--text-light); font-size: 15px; }

/* ---------------- 联系我们页面 ---------------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 22px 0 2px;
}
.contact-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 15px 17px;
}
.contact-item .ci-label { font-size: 12.5px; color: var(--text-light); margin-bottom: 7px; }
.contact-item .ci-value { font-size: 15.5px; font-weight: 600; color: var(--text); word-break: break-all; }
.contact-item .ci-value a { color: var(--primary); text-decoration: none; }
.contact-item .ci-value a:hover { text-decoration: underline; }
.contact-item .ci-copy { cursor: pointer; }
.contact-note {
  margin-top: 18px; padding: 15px 18px; white-space: pre-line;
  background: var(--primary-soft); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14.5px; line-height: 1.85;
}

/* ---------------- Result area ---------------- */
.result-area { display: none; margin: 20px 0; }
.result-summary { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.result-summary .stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 13px;
  padding: 13px 20px; box-shadow: var(--shadow-sm);
}
.result-summary .stat b {
  display: block; font-size: 19px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: linear-gradient(180deg, #1a2338 0%, #121a2c 100%);
  margin-top: 64px; padding: 40px 0 34px;
  color: #97a3bd;
}
.privacy-note {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px; padding: 15px 19px;
  font-size: 14px; color: #b3bed8; margin-bottom: 20px;
}
.footer-links { margin-bottom: 12px; }
.footer-links a {
  color: #b3bed8; text-decoration: none; margin-right: 20px; font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.copyright { color: #6d7a99; font-size: 13px; }

/* ---------------- Misc ---------------- */
.badge-recommend {
  background: #dcfce7; color: var(--success);
  font-size: 12px; font-weight: 600; padding: 2px 9px;
  border-radius: 999px; margin-left: 6px;
}

/* 通用输入（登录/注册/账户页） */
.opt-row input[type="text"], .opt-row input[type="password"],
.opt-row input[type="tel"], .opt-row input[type="email"] {
  padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.opt-row input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

/* ---------------- 工具卡文件叠层图标 ---------------- */
.t-icon { line-height: 0; margin-bottom: 12px; }
.t-icon .fstack { filter: drop-shadow(0 6px 14px rgba(30, 41, 80, .16)); transition: transform .25s; }
.tool-card:hover .t-icon .fstack { transform: translateY(-3px) scale(1.06); }

/* ---------------- 三栏叙事（怎么转/免费/安全） ---------------- */
.feature-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 30px 0;
}
.f3-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transition: transform .22s, box-shadow .22s;
}
.f3-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.f3-card .f3-ico {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.f3-card h3 { font-size: 16.5px; margin: 14px 0 8px; letter-spacing: -.01em; }
.f3-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.85; margin: 0; }

/* ---------------- 页脚备案行 ---------------- */
.footer-icp {
  margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255, 255, 255, .55); flex-wrap: wrap;
}
.footer-icp a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.footer-icp a:hover { color: #fff; }

/* ---------------- 权益徽章（Tools文档 §5） ---------------- */
.t-badge.b-free {
  background: #e7f8ef; color: #17965f;
}
.t-badge.b-basic {
  background: var(--primary-soft); color: var(--primary);
}
.t-badge.b-pro {
  background: #eeeafd; color: var(--primary-2);
}

/* 即将上线占位卡 */
.tool-card.card-soon {
  cursor: default; opacity: .62;
  background: #fafbfe; border-style: dashed;
}
.tool-card.card-soon:hover {
  transform: none; box-shadow: var(--shadow-sm); border-color: var(--border);
}

/* ---------------- 永久免费专区（Tools文档 §4） ---------------- */
.free-zone {
  background: linear-gradient(180deg, #f2fbf6 0%, #f7fdf9 100%);
  border: 1px solid #d7efe2;
  border-radius: 22px;
  padding: 30px 26px 24px;
  margin: 30px 0;
}
.free-head { text-align: center; margin-bottom: 22px; }
.free-head h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: #12704a; margin-bottom: 7px;
}
.free-head p { color: #4b7c67; font-size: 14.5px; margin: 0; }
.free-zone .tool-card { border-color: #dcefe5; }
.free-zone .tool-card:hover { border-color: #b9e2cd; }

/* ---------------- 智能匹配条 ---------------- */
.smart-match {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--primary-soft); border: 1px solid #d9e2fd;
  border-radius: 14px; padding: 13px 18px; margin-bottom: 16px;
}
.smart-match .sm-text { font-size: 14px; color: var(--text); }
.smart-match .sm-text b { color: var(--primary); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }

/* ---------------- 权益说明卡（Tools文档 §5） ---------------- */
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 8px 0 10px;
}
.plan-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .22s;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-card .p-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
  background: #e7f8ef; color: #17965f;
}
.plan-card .p-tag.p-pro {
  background: linear-gradient(135deg, var(--primary-2) 0%, #8b7cf6 100%); color: #fff;
}
.plan-card:nth-child(2) .p-tag { background: var(--primary-soft); color: var(--primary); }
.plan-card h3 { font-size: 17px; margin: 0 0 9px; letter-spacing: -.01em; }
.plan-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.85; margin: 0; }
.plan-featured {
  border-color: #bcd0fb;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .14);
}

/* ---------------- 页脚多列（Tools文档 §2.2） ---------------- */
.footer-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 26px; margin-bottom: 26px;
}
.f-col h4 {
  color: #e8edf8; font-size: 14.5px; font-weight: 700;
  letter-spacing: .02em; margin: 0 0 12px;
}
.f-col p { font-size: 13.5px; line-height: 1.85; color: #97a3bd; margin: 0 0 10px; }
.f-col .f-domain {
  font-weight: 700; color: #7fb0ff; letter-spacing: .03em; margin: 0;
}
.f-col a {
  display: block; color: #b3bed8; text-decoration: none;
  font-size: 13.5px; margin-bottom: 9px; transition: color .15s;
}
.f-col a:hover { color: #fff; }

/* ---------------- 导航补充（即将上线/移动菜单） ---------------- */
.nav-soon {
  color: var(--text-light); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; opacity: .65; cursor: default;
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center;  /* ≥44px 触控面积 */
  color: var(--text); cursor: pointer;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 8px 20px 14px;
  box-shadow: var(--shadow-md);
}
.nav-mobile a {
  padding: 11px 4px; color: var(--text); text-decoration: none;
  font-size: 15px; border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .hero { padding: 36px 0 16px; }
  .hero h1 { font-size: 28px; }
  .hero .subtitle { font-size: 15px; }
  .hero.hero-home { grid-template-columns: 1fr; text-align: center; padding: 30px 0 10px; }
  .hero-home .hero-copy h1 { font-size: 27px; }
  .hero-art { max-width: 340px; margin: 6px auto 0; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-3 { grid-template-columns: 1fr; }
  .upload-zone { padding: 26px 16px; }
  .upload-zone .icon { width: 54px; height: 54px; border-radius: 16px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .content-section { padding: 22px 18px; }
  .steps { grid-template-columns: 1fr; }
  .trust-bar .t-item { min-width: 45%; border-left: none; }
  .trust-bar .t-item b { font-size: 22px; }
  .section-title { font-size: 22px; }
  .convert-flow { gap: 10px; }
  .cf-ico { width: 66px; height: 66px; border-radius: 18px; font-size: 15px; }
  .cf-arrow { width: 46px; height: 46px; }
  /* 底部操作栏：仅移动端 + 有上传区的页面 */
  body.has-mobile-bar .mobile-bar { display: block; }
  body.has-mobile-bar { padding-bottom: 84px; }
  /* 触控设备上的小按钮补足 44px 高，避免难点 */
  .btn-sm { min-height: 44px; }
  .plan-grid { grid-template-columns: 1fr; }
  .smart-match { flex-direction: column; align-items: stretch; text-align: center; }
  .free-zone { padding: 22px 14px 16px; border-radius: 18px; }
  .free-head h2 { font-size: 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 430px) {
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { padding: 15px 13px; }
  .btn { width: 100%; text-align: center; }
  .logo { font-size: 16px; }
  /* 触控面积：宽度自适应但不得小于 44px（mb-home 图标按钮也要够大） */
  .mobile-bar .btn { width: auto; min-width: 44px; min-height: 44px; }
  .mobile-bar .mb-home { width: 46px; height: 46px; }
}

/* ---------------- 2026-10 UI refinement ---------------- */
[hidden] { display: none !important; }
.container { max-width: 1200px; }
button, input, select, textarea { font: inherit; }
input, select, textarea { min-width: 0; }
main.container { min-height: 55vh; }
.logo { flex-shrink: 0; }
.nav a { padding-inline: 10px; font-size: 14px; }
.nav-drop { transform: translateX(-50%); }
.nav-drop a { min-height: 38px; }
.hero.hero-home { gap: 48px; padding: 48px 0 24px; }
.hero-home .hero-copy h1 { font-size: clamp(32px, 4vw, 48px); }
.hero-home .subtitle { max-width: 480px; line-height: 1.8; }
.hero-home .features { justify-content: flex-start; margin: 18px 0 0; gap: 8px 18px; }
.hero-home .hero-actions { gap: 24px; margin-top: 22px; }
.hero-actions a { color: var(--primary); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.home-upload {
  padding: 30px 28px 22px; text-align: center; border: 1px solid #cfddf5;
  border-radius: 24px; background: linear-gradient(145deg, #fff, #f3f7ff);
  box-shadow: 0 12px 36px rgba(37, 99, 235, .08); min-width: 0;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.home-upload.dragover { border-color: var(--primary); background: #eaf1ff; box-shadow: var(--ring); }
.home-upload-mark { display: block; margin: 0 auto 14px; border-radius: 14px; }
.home-upload h2 { font-size: 22px; letter-spacing: -.02em; }
.home-upload-caption { font-size: 14px; color: var(--muted); margin: 6px 0 22px; }
.home-upload .btn { min-height: 48px; min-width: 180px; }
.home-upload-hint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.home-upload-status { border-top: 1px solid #e2e9f6; margin-top: 20px; padding-top: 14px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.home-upload-status.is-error { color: #b42318; }
.home-upload-status.is-success { color: #12704a; }
.home-recommendations { scroll-margin-top: 84px; margin-top: 18px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { font-size: 20px; }
.section-heading span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.recommend-action { margin-top: auto; padding-top: 10px; color: var(--primary); font-size: 13px; font-weight: 600; }
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool-card { border-radius: 16px; padding: 22px 20px; }
.tool-card .t-desc { line-height: 1.75; }
.tool-card:focus-visible { border-color: var(--primary); }
.free-head { text-align: left; }
.free-zone { padding: 28px; }
.content-section { line-height: 1.8; }
.opt-row textarea { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.options-panel:has(> .opt-row:only-child) { text-align: center; }
.options-panel:has(> .opt-row:only-child) .opt-row { justify-content: center; }
.progress-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; scroll-margin-top: 84px; }
.progress-wrap.is-error { border-color: #f3c8c6; background: #fff8f7; }
.progress-wrap.is-error .progress-text { color: #b42318; }
.progress-wrap.is-success { border-color: #b9e4ce; background: #f4fbf7; }
.progress-wrap.is-success .progress-text { color: #12704a; }
.result-area { scroll-margin-top: 84px; }
.result-heading { font-size: 20px; margin-bottom: 14px; }
.result-summary .stat { flex: 1; min-width: 130px; }
.file-item .btn-sm { min-height: 40px; white-space: nowrap; }
.file-item .thumb { flex-shrink: 0; }
.btn { line-height: 1.5; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.auth-card { max-width: 460px; margin: 0 auto; padding: 30px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.auth-card.auth-register { margin-top: 40px; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-caption { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.auth-tabs .btn { flex: 1; padding: 11px 8px; font-size: 14px; }
.auth-card .opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-card .opt-row > label { min-width: 64px; font-size: 14px; }
.auth-card .opt-row > input { flex: 1; width: 0; padding: 11px 12px; }
.auth-card .opt-row > div { min-width: 0; }
.auth-card #sendEmailBtn { min-height: 44px; flex-shrink: 0; }
.auth-agreement { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 18px; font-size: 13px; color: var(--muted); line-height: 1.8; cursor: pointer; }
.auth-agreement input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.auth-card a { text-underline-offset: 3px; }
.auth-card #loginMsg, .auth-card #regMsg { overflow-wrap: anywhere; }
.pay-close { background: transparent; border: 0; width: 44px; height: 44px; border-radius: 10px; }
.pay-close:hover { background: #fff1f0; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
  .hero.hero-home { gap: 24px; padding: 28px 0 12px; text-align: left; }
  .hero-home .hero-copy h1 { font-size: 32px; }
  .hero-home .hero-actions { margin-top: 14px; }
  .home-upload { padding: 24px 22px 18px; border-radius: 20px; }
  .home-upload h2 { font-size: 20px; }
  .home-upload-caption { margin-bottom: 18px; }
  .home-upload-status { margin-top: 16px; padding-top: 12px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tool-card { padding: 18px 16px; }
  .free-zone { padding: 22px 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .spec-bar { align-items: flex-start; }
  .spec-bar .spec-item { flex-wrap: wrap; }
  .file-item { gap: 10px; padding: 12px; }
  .file-item .btn { width: auto; padding: 9px 12px; }
  body.has-mobile-bar { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar .mb-home { flex: 0 0 44px; }
  .mobile-bar .btn { min-width: 0; }
  body.has-mobile-bar:has(input:not([type="checkbox"]):focus, textarea:focus) .mobile-bar { display: none; }
  .options-panel .opt-row > input, .options-panel .opt-row > select { max-width: 100%; }
  .site-footer { margin-top: 44px; }
}
@media (max-width: 430px) {
  .container { padding-inline: 16px; }
  .hero-home .subtitle { font-size: 14px; }
  .hero-home .features { gap: 6px 12px; font-size: 12px; }
  .home-upload .btn { width: 100%; }
  .home-upload-mark { width: 40px; height: 40px; margin-bottom: 10px; }
  .tool-category .tool-grid, .home-recommendations .tool-grid { grid-template-columns: 1fr; }
  .tool-category .tool-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .tool-category .t-icon { grid-column: 1; grid-row: 1 / 4; margin: 2px 0 0; }
  .tool-category .t-name, .tool-category .t-desc, .tool-category .t-badge { grid-column: 2; }
  .tool-category .t-badge { justify-self: start; }
  .tool-card .t-name { font-size: 15px; }
  .tool-card .t-desc { font-size: 12px; }
  .tool-card .t-badge { font-size: 10px; letter-spacing: 0; padding: 3px 7px; }
  .auth-card { padding: 24px 20px; }
  .auth-card .opt-row { flex-wrap: wrap; gap: 8px; }
  .auth-card .opt-row > label { flex-basis: 100%; }
  .auth-card .opt-row > div { width: 100%; }
  .auth-card #captchaStatus { margin-left: 0 !important; }
  .auth-card #sendEmailBtn { width: auto; padding-inline: 12px; }
  .result-summary { gap: 8px; }
  .result-summary .stat { min-width: 100px; padding: 12px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .footer-links a { margin: 0; }
}

.file-handoff-note { padding: 14px 18px; margin: 16px 0 12px; border: 1px solid #d8e5f5; background: #f0f6ff; border-radius: 10px; color: #315686; font-size: 14px; line-height: 1.7; }
.file-handoff-note.is-success { color: #176b49; border-color: #cce7d8; background: #eef9f2; }
.file-handoff-note.is-error { color: #a53c2a; border-color: #f1d5cd; background: #fff5f1; }
.upload-zone.has-selected-file { padding-block: 22px; }
.upload-zone.has-selected-file > .icon { display: none; }

/* ---------------- Account center ---------------- */
.account-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; padding-bottom:28px; }
.account-hero h1 { margin-bottom:6px; }
.account-hero .subtitle { margin-bottom:0; }
.eyebrow, .panel-kicker { color:var(--primary); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.account-intro { color:var(--muted); font-size:14px; margin:10px 0 0; }
.account-actions { display:flex; gap:10px; flex-wrap:wrap; }
.account-actions .btn { width:auto; min-width:138px; }
.account-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.account-stat { min-width:0; padding:20px; border:1px solid var(--border); border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(19,48,94,.04); }
.stat-label { color:var(--muted); font-size:13px; }
.stat-value { margin:8px 0 5px; color:var(--primary); font-size:29px; font-weight:750; line-height:1.25; }
.stat-value small { color:var(--muted); font-size:13px; font-weight:400; }
.stat-credit .stat-value { color:#6d5ce7; }
.stat-member .stat-value { color:var(--success); font-size:22px; }
.stat-note { color:var(--muted); font-size:12.5px; line-height:1.6; overflow-wrap:anywhere; }
.account-benefit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.account-info-panel { min-width:0; padding:22px 24px; border:1px solid #dbe5f4; border-radius:14px; background:linear-gradient(135deg,#f8fbff,#fff); }
.account-info-panel h2 { margin:5px 0 14px; font-size:20px; }
.benefit-list { display:grid; gap:9px; }
.benefit-list > div { display:flex; justify-content:space-between; gap:16px; color:var(--muted); font-size:13px; border-bottom:1px solid #e8eef8; padding-bottom:8px; }
.benefit-list > div:last-child { border-bottom:0; padding-bottom:0; }
.benefit-list b { color:var(--text); font-weight:600; text-align:right; }
.retention-panel p { max-width:540px; margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.8; }
.text-link { color:var(--primary); font-size:13px; font-weight:600; text-underline-offset:3px; }
.section-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:14px; }
.section-heading-row h2 { margin-bottom:2px; }
.section-caption { margin:0; color:var(--muted); font-size:12.5px; }
.empty-panel { padding:22px; border:1px dashed #cbd8ea; border-radius:10px; color:var(--muted); font-size:13.5px; text-align:center; background:#fbfcfe; }
.payment-list { overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#fff; }
.payment-row { display:grid; grid-template-columns:minmax(220px,2fr) 1fr .75fr 1.25fr auto; align-items:center; gap:16px; padding:14px 16px; border-bottom:1px solid var(--border); font-size:13px; }
.payment-row:last-child { border-bottom:0; }
.payment-title { color:var(--text); font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.payment-type { display:inline-block; margin-left:6px; padding:2px 7px; border-radius:999px; color:#315c9d; background:#edf4ff; font-size:11px; font-weight:500; }
.payment-meta, .payment-channel, .payment-channel small { color:var(--muted); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.payment-benefit { color:var(--muted); }
.payment-amount { color:var(--text); font-weight:700; white-space:nowrap; }
.status-pill { display:inline-block; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.status-pill.success { color:#087443; background:#e6f7ed; }
.status-pill.warning { color:#9a5a00; background:#fff4d9; }
.status-pill.muted { color:#667085; background:#eef1f5; }
@media (max-width:768px) {
  .account-hero { align-items:flex-start; flex-direction:column; gap:16px; }
  .account-actions { width:100%; }
  .account-actions .btn { flex:1; min-width:0; }
  .account-stat-grid, .account-benefit-grid { grid-template-columns:1fr; }
  .account-info-panel { padding:20px; }
  .section-heading-row { flex-direction:column; gap:8px; }
  .payment-row { grid-template-columns:1fr auto; gap:8px 14px; }
  .payment-main { grid-column:1 / -1; }
  .payment-benefit { grid-column:1; }
  .payment-amount { grid-column:2; grid-row:2; }
  .payment-channel { grid-column:1; }
  .payment-row > div:last-child { grid-column:2; grid-row:3; }
}
