/* ==========================================================================
   考车派 kaochepai.com — 共享设计系统
   风格：清爽 / 现代 / 科技感   配色：天蓝 + 浅绿 + 浅黄
   ========================================================================== */

:root {
  /* 品牌色 */
  --c-primary: #0EA5E9;          /* 天蓝 */
  --c-primary-dark: #0284C7;
  --c-primary-soft: #E0F2FE;
  --c-green: #86EFAC;            /* 浅绿 */
  --c-green-soft: #DCFCE7;
  --c-yellow: #FEF08A;           /* 浅黄 */
  --c-yellow-soft: #FEF9C3;

  /* 中性 */
  --c-ink: #0F172A;              /* 主文字 */
  --c-ink-2: #334155;            /* 次文字 */
  --c-ink-3: #64748B;            /* 弱文字 */
  --c-line: #E2E8F0;             /* 描边 */
  --c-bg: #F8FAFC;               /* 页面底 */
  --c-surface: #FFFFFF;          /* 卡片 */

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --sh-lg: 0 18px 40px -12px rgba(14, 165, 233, .18), 0 6px 16px rgba(15, 23, 42, .06);
  --sh-glow: 0 0 0 4px rgba(14, 165, 233, .12);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* 字体 */
  --f-display: "Sora", "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;
  --f-body: "Manrope", "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;

  --maxw: 1180px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- 背景氛围层 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 8% -8%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(50rem 36rem at 100% 0%, rgba(134, 239, 172, .14), transparent 55%),
    radial-gradient(46rem 30rem at 50% 120%, rgba(254, 240, 138, .16), transparent 60%),
    linear-gradient(180deg, #F8FBFF 0%, #F6FAFB 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(14, 165, 233, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, .04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--c-ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #38BDF8 55%, var(--c-green) 130%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--sh-md);
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand small { color: var(--c-ink-3); font-weight: 500; font-size: 12px; }

.nav-spacer { flex: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--c-ink-2);
  font-weight: 600;
  font-size: 14px;
  transition: all .18s ease;
}
.nav-link:hover { color: var(--c-primary); background: var(--c-primary-soft); }

/* 语言切换 */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-2);
  transition: all .18s ease;
}
.lang-switch:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: var(--sh-glow); }
.lang-switch svg { width: 15px; height: 15px; }
.lang-current { display: inline-flex; align-items: center; gap: 6px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-2);
}
.lang-menu a:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.lang-menu a.is-active { color: var(--c-primary); background: var(--c-primary-soft); }
.lang-menu a.is-active::after { content: "✓"; color: var(--c-primary); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(14, 165, 233, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(14, 165, 233, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.btn-soft {
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}
.btn-soft:hover { background: #BAE6FD; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: var(--sh-sm); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 86px 0 56px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary-dark);
  box-shadow: var(--sh-sm);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 4px rgba(14,165,233,.18); }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--c-ink);
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--c-primary) 0%, #14B8A6 45%, #65A30D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--c-ink-2);
  max-width: 600px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--c-line);
}
.hero-stat .n { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; color: var(--c-primary-dark); letter-spacing: -.02em; }
.hero-stat .l { font-size: 13px; color: var(--c-ink-3); font-weight: 600; }

/* Hero 浮动装饰 */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .55;
}
.hero-blob.b1 { width: 220px; height: 220px; right: 4%; top: 8%; background: radial-gradient(circle at 30% 30%, var(--c-yellow), transparent 70%); animation: float 9s ease-in-out infinite; }
.hero-blob.b2 { width: 180px; height: 180px; right: 22%; top: 56%; background: radial-gradient(circle at 30% 30%, var(--c-green), transparent 70%); animation: float 11s ease-in-out infinite reverse; }
.hero-blob.b3 { width: 120px; height: 120px; right: -2%; top: 70%; background: radial-gradient(circle at 30% 30%, var(--c-primary), transparent 70%); animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* ---------- 工具目录区 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.025em;
  color: var(--c-ink);
}
.section-title .accent { color: var(--c-primary); }
.section-sub { color: var(--c-ink-3); font-size: 15px; margin-top: 6px; }

/* 搜索 + 筛选 */
.tool-bar { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; align-items: center; }
.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-ink-3); }
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--sh-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all .18s ease;
}
.search-box input:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--sh-glow); }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--sh-sm);
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: 0 8px 18px -8px rgba(14,165,233,.55); }

/* 工具卡片网格 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-green), var(--c-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(14,165,233,.4); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
}
.card-icon.green { color: #15803D; background: var(--c-green-soft); }
.card-icon.yellow { color: #A16207; background: var(--c-yellow-soft); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; margin-bottom: 6px; color: var(--c-ink); }
.card p { color: var(--c-ink-3); font-size: 14px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--c-line); }
.card-tag { font-size: 12px; font-weight: 700; color: var(--c-ink-3); padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-bg); }
.card-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--c-primary); }
.card-go svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card:hover .card-go svg { transform: translateX(4px); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--c-ink-3); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 14px; opacity: .4; }

/* ---------- 工具页布局 ---------- */
.tool-page { padding: 48px 0 72px; }
.tool-head { margin-bottom: 30px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-ink-3); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }
.tool-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tool-title .ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary-soft), var(--c-green-soft)); color: var(--c-primary-dark); }
.tool-title .ic svg { width: 28px; height: 28px; }
.tool-title h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; color: var(--c-ink); }
.tool-title p { color: var(--c-ink-3); font-size: 15px; margin-top: 2px; }

.tool-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 28px;
}
.panel h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.panel h2 svg { width: 18px; height: 18px; color: var(--c-primary); }

/* 上传区 */
.upload-area {
  position: relative;
  border: 2px dashed #BAE6FD;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--c-primary-soft) 0%, #fff 70%);
  padding: 46px 24px;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}
.upload-area:hover, .upload-area.is-drag { border-color: var(--c-primary); background: linear-gradient(180deg, #BAE6FD 0%, #fff 75%); transform: scale(1.005); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-primary); box-shadow: var(--sh-md); }
.upload-ic svg { width: 30px; height: 30px; }
.upload-area h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.upload-area p { color: var(--c-ink-3); font-size: 14px; }
.upload-area .types { display: inline-flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.upload-area .types span { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); color: var(--c-ink-2); border: 1px solid var(--c-line); }

/* 预览 */
.preview-wrap { margin-top: 22px; }
.file-info { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-md); margin-bottom: 16px; }
.file-thumb { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: #fff; border: 1px solid var(--c-line); flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-meta .name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-ink); }
.file-meta .sub { font-size: 12px; color: var(--c-ink-3); }
.file-remove { padding: 8px; border-radius: var(--r-sm); color: var(--c-ink-3); transition: all .15s ease; }
.file-remove:hover { background: #FEE2E2; color: #DC2626; }
.file-remove svg { width: 18px; height: 18px; }

.preview-canvas-wrap { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px; text-align: center; min-height: 120px; display: grid; place-items: center; }
.preview-canvas-wrap img { max-height: 320px; width: auto; border-radius: var(--r-sm); }

/* 控件 */
.controls { display: flex; flex-direction: column; gap: 18px; }
.control { display: flex; flex-direction: column; gap: 8px; }
.control label { font-size: 13px; font-weight: 700; color: var(--c-ink-2); display: flex; justify-content: space-between; align-items: center; }
.control label .val { color: var(--c-primary-dark); font-family: var(--f-display); }
.control input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--c-line); }
.control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); border: 3px solid #fff; box-shadow: var(--sh-md); cursor: pointer; transition: transform .15s; }
.control input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.control input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); border: 3px solid #fff; box-shadow: var(--sh-md); cursor: pointer; }
.control input[type="number"], .control select { width: 100%; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--c-line); background: var(--c-surface); font-size: 14px; font-weight: 600; }
.control input[type="number"]:focus, .control select:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--sh-glow); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-ink-2); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--c-primary); }

/* 结果区 */
.result-box { margin-top: 20px; padding: 20px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--c-green-soft), #fff); border: 1px solid var(--c-green); display: none; }
.result-box.show { display: block; animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.result-stat { padding: 14px; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-line); text-align: center; }
.result-stat .lbl { font-size: 12px; color: var(--c-ink-3); font-weight: 600; margin-bottom: 4px; }
.result-stat .vv { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: var(--c-ink); }
.result-stat.good .vv { color: #15803D; }
.result-stat .saving { font-size: 11px; font-weight: 700; color: #15803D; margin-top: 2px; }

/* 提示条 */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; }
.notice.info { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.notice.warn { background: var(--c-yellow-soft); color: #A16207; }
.notice svg { width: 18px; height: 18px; flex: none; }

/* 工具说明 / FAQ */
.info-section { margin-top: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.info-block h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 14px; }
.info-block p, .info-block li { color: var(--c-ink-2); font-size: 15px; margin-bottom: 10px; }
.info-block ul { padding-left: 18px; list-style: disc; }
.faq { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--sh-sm); }
.faq details { padding: 14px 18px; border-radius: var(--r-md); }
.faq details + details { border-top: 1px solid var(--c-line); }
.faq summary { font-weight: 700; color: var(--c-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--c-primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--c-ink-2); font-size: 14px; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--c-line);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.footer-inner { padding: 44px 0 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--c-ink-3); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer h4 { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--c-ink); margin-bottom: 14px; letter-spacing: -.01em; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--c-ink-3); font-size: 14px; transition: color .15s; }
.footer ul a:hover { color: var(--c-primary); }
.footer-bottom { border-top: 1px solid var(--c-line); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--c-ink-3); }
.footer-bottom .pills { display: flex; gap: 8px; }
.footer-bottom .pills span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-bg); border: 1px solid var(--c-line); font-weight: 600; }

/* ---------- 杂项 ---------- */
.hidden { display: none !important; }
.tag-inline { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); background: var(--c-primary-soft); color: var(--c-primary-dark); font-size: 12px; font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .info-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-link { display: none; }
  .hero { padding: 56px 0 36px; }
  .section { padding: 40px 0; }
  .panel { padding: 22px; }
  .hero-stats { gap: 22px; }
  .hero-stat .n { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .tool-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .result-compare { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .upload-area { padding: 34px 16px; }
  .brand small { display: none; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero-blob { animation: none; }
}
