/* Markless AI 去水印 · 参考 EraseMint 布局 × invdoc 蓝色设计语言 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --primary-soft: rgba(37, 99, 235, 0.08);
  --primary-line: rgba(37, 99, 235, 0.18);
  --ink: #0f172a;
  --ink-80: #414753;
  --ink-48: #64748b;
  --bg: #fcf8fb;
  --canvas: #ffffff;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --hairline: #c1c6d5;
  --success: #22c55e;
  --danger: #dc2626;
  --shadow-card: 0 25px 80px -20px rgba(15, 23, 42, 0.12), 0 12px 40px -12px rgba(15, 23, 42, 0.07);
  --shadow-btn: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* 关键：类选择器的 display 不能盖掉 hidden */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(37, 99, 235, 0.09), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #f8fafc 100%);
  min-height: 100vh;
}
button { font-family: inherit; }
svg { display: block; }

/* ---------- 导航 ---------- */
.nav-frosted {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-btn);
}
.logo-icon svg { width: 19px; height: 19px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--ink-48); padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap; }

/* 主导航：当前页高亮 */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--ink-48);
  text-decoration: none; padding: 7px 13px; border-radius: 9px;
  white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--primary-dark); background: var(--primary-soft); }
.nav-link.active { color: var(--primary-dark); background: var(--primary-soft); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.badge-local {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-local svg { width: 13px; height: 13px; }
.model-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-48);
  background: #fff; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); flex: 0 0 auto; }
.dot.loading { background: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
.dot.ready { background: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.dot.error { background: var(--danger); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }

.proto-warn {
  max-width: 1200px; margin: 16px auto 0; padding: 12px 18px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 12px; font-size: 13px;
}
.proto-warn code { background: rgba(146, 64, 14, .1); padding: 1px 6px; border-radius: 5px; }

/* ---------- 紧凑 Hero：首屏直接给上传入口 ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 0 24px 28px; }
/* 视图切换：hidden 优先级必须高于任何布局规则，避免两个视图同时占位 */
#viewTool[hidden], #viewFaq[hidden] { display: none !important; }
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 16px 2px 14px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(24px, 2.9vw, 32px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.25; margin: 0;
}
.grad { background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 5px 0 0; font-size: 13px; color: var(--ink-48); }
.hero-action { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.hero-cta { padding: 12px 26px; font-size: 14.5px; border-radius: 12px; }
.hero-action-hint { font-size: 11.5px; color: var(--ink-48); }

/* ---------- 工作台卡片（高度绑定视口，首屏完整可见） ---------- */
.card-hairline {
  border: 1px solid var(--line); background: var(--canvas);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.workbench {
  position: relative;
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  height: clamp(420px, calc(100vh - 178px), 760px);
  overflow: hidden;
}
/* 顶部渐变强调线：不占布局高度 */
.workbench::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--primary-grad); z-index: 3; opacity: .9;
}

/* 左侧工具：卡片内自滚动，导入入口永远在最顶部 */
.sidebar {
  border-right: 1px solid var(--line); padding: 16px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  min-height: 0; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 99px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.side-kicker { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: var(--primary); margin-bottom: 1px; }
.side-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.side-tag { font-size: 11px; color: var(--ink-48); background: var(--soft); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.panel { padding: 13px 0; border-bottom: 1px solid var(--line); }
.panel:last-of-type { border-bottom: none; }
.step-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.step-no {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  width: 25px; height: 25px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.step-head h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.hint { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-48); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 15px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn.block { width: 100%; }
.btn.primary { background: var(--primary-grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(37, 99, 235, .65); }
.btn.primary:active:not(:disabled) { transform: scale(.98); }
.btn.ghost { background: #fff; color: var(--ink-80); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--hairline); background: var(--soft); }
.btn.tiny { padding: 5px 12px; font-size: 12px; background: #fff; color: var(--primary-dark); border-color: var(--primary-line); }
.btn.tiny:hover { background: var(--primary-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.tool-row { display: flex; gap: 8px; margin-top: 10px; }
.tool-row .btn { flex: 1; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; }
.seg {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: transparent; color: var(--ink-48); font-size: 12.5px; font-weight: 600;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: all .15s ease;
}
.seg svg { width: 14px; height: 14px; }
.seg.active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 4px rgba(15, 23, 42, .09); }
.slider-row { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.slider-label { font-size: 12px; color: var(--ink-80); font-weight: 600; }
.slider-val { font-size: 12px; color: var(--primary); font-weight: 700; }
input[type="range"] { width: 100%; margin: 8px 0 0; accent-color: var(--primary); cursor: pointer; }
.export-row { margin-top: 10px; }

.progress-wrap { height: 5px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; width: 0; border-radius: 999px; background: var(--primary-grad); transition: width .3s ease; }

/* 右侧画布 */
.stage {
  position: relative; min-height: 0; padding: 18px;
  background:
    linear-gradient(45deg, #f7f8fb 25%, transparent 25%, transparent 75%, #f7f8fb 75%),
    linear-gradient(45deg, #f7f8fb 25%, #fbfcfe 25%, #fbfcfe 75%, #f7f8fb 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
.dropzone, .canvas-wrap { position: absolute; inset: 18px; }
.dropzone {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--hairline); border-radius: 14px;
  background: radial-gradient(620px 280px at 50% 42%, rgba(37, 99, 235, 0.045), transparent 72%), rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--primary); background: rgba(37, 99, 235, 0.045);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}
.dz-inner { text-align: center; padding: 18px; }
.dz-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line);
}
.dz-icon svg { width: 27px; height: 27px; }
.dz-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.dz-sub { margin: 6px 0 16px; font-size: 12.5px; color: var(--ink-48); }
.dz-btn { margin: 0 auto; }
.dz-formats { margin: 12px 0 0; font-size: 11px; color: var(--hairline); letter-spacing: .06em; }

.canvas-wrap { display: flex; flex-direction: column; }
.file-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; margin-bottom: 12px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 11px; font-size: 12px; color: var(--ink-80); font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.file-chip svg { width: 15px; height: 15px; color: var(--primary); flex: 0 0 auto; }
#fileMeta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas-scroll {
  position: relative; margin: auto; flex: 0 0 auto;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 50px -18px rgba(15, 23, 42, .32), 0 0 0 1px var(--line);
}
.canvas-scroll canvas { position: absolute; top: 0; left: 0; display: block; }
#maskCanvas { cursor: crosshair; touch-action: none; }

.drag-overlay {
  position: absolute; inset: 12px; z-index: 20; border-radius: 14px;
  background: rgba(37, 99, 235, .07); border: 2px dashed var(--primary);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.drag-overlay-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--primary-dark); font-size: 16px; font-weight: 700;
  background: #fff; padding: 22px 32px; border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.drag-overlay-inner svg { width: 30px; height: 30px; }

/* ---------- 底部三步说明（卡片化） ---------- */
.how {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 18px 0 0;
}
.how-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.how-card:hover {
  transform: translateY(-1px); border-color: var(--primary-line);
  box-shadow: 0 12px 28px -18px rgba(37, 99, 235, .55);
}
.how-no {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid var(--primary-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: -.02em;
}
.how-body { min-width: 0; }
.how-body h3 { margin: 2px 0 3px; font-size: 13.5px; font-weight: 700; }
.how-body p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-48); }

/* ---------- 赞赏作者（三步说明下方） ---------- */
.reward {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 14px 0 0; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 15px;
  background: linear-gradient(118deg, rgba(37, 99, 235, .05), rgba(255, 255, 255, .88) 58%);
  box-shadow: 0 14px 34px -28px rgba(15, 23, 42, .45);
}
.reward-copy { min-width: 0; }
.reward-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.reward-copy h2 { margin: 5px 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.reward-copy p { margin: 0; max-width: 570px; font-size: 11.5px; line-height: 1.65; color: var(--ink-48); }
.reward-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.reward-btn {
  display: flex; align-items: center; gap: 10px; min-width: 148px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--canvas); cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.reward-btn:hover {
  transform: translateY(-1px); border-color: var(--primary-line);
  box-shadow: 0 12px 26px -18px rgba(37, 99, 235, .7);
}
.reward-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.reward-ico {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.reward-ico svg { width: 18px; height: 18px; }
.reward-ico-wechat { background: rgba(7, 193, 96, .11); color: #06a853; }
.reward-ico-alipay { background: rgba(22, 119, 255, .10); color: #1677ff; }
.reward-btn-text { display: flex; flex-direction: column; line-height: 1.35; }
.reward-btn-text strong { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.reward-btn-text small { font-size: 10.5px; color: var(--ink-48); }

/* 赞赏二维码弹窗：与「联系我们」同一套遮罩语言，二维码走同源本地文件 */
.reward-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.reward-mask[hidden] { display: none !important; }
.reward-card {
  width: min(320px, 100%); padding: 20px 22px 22px;
  background: var(--canvas); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  animation: contactIn .18s ease-out;
}
.reward-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; text-align: left; }
.reward-card h2 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.reward-close {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  border: 1px solid var(--line); background: var(--canvas);
  color: var(--ink-48); font-size: 18px; line-height: 1; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.reward-close:hover { color: var(--ink); background: var(--soft); }
.reward-qr-wrap {
  width: 214px; height: 214px; margin: 16px auto 12px; padding: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.reward-qr { display: block; width: 192px; height: 192px; }
.reward-tip { margin: 0 0 12px; font-size: 11.5px; line-height: 1.65; color: var(--ink-48); }
.reward-open {
  display: inline-block; font-size: 11.5px; color: var(--primary-dark);
  text-decoration: none; border-bottom: 1px solid var(--primary-line);
}
.reward-open:hover { color: var(--primary); }

/* ---------- 网站页脚（三列骨架 + 蓝色文字链接） ---------- */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, .92);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }

/* 品牌列 */
.footer-brand-head { display: flex; align-items: center; gap: 9px; }
.footer-logo {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px;
  background: var(--primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo svg { width: 15px; height: 15px; }
.footer-brand-head strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.footer-brand p { margin: 12px 0 0; max-width: 320px; font-size: 12.5px; line-height: 1.7; color: var(--ink-48); }

/* 各列标题 */
.footer-col-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.footer-col h2 { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.fl-count {
  font-size: 11px; color: var(--ink-48); background: #fff;
  border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px;
}

/* 友情链接：页脚内竖排纯文字，无卡片 / 图标 / 箭头 */
.fl-list { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.fl-item { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; }
.fl-link {
  font-size: 12.5px; font-weight: 600; color: var(--primary-dark);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.fl-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.fl-desc { font-size: 11px; color: var(--ink-48); }
.fl-state { font-size: 12px; color: var(--ink-48); }
.fl-stale { font-size: 11px; color: var(--hairline); margin-top: 2px; }
.fl-retry {
  border: 0; background: none; padding: 0 0 0 8px; cursor: pointer;
  color: var(--primary); font-size: 12px; font-weight: 600; text-decoration: underline;
}
.fl-stale .fl-retry { font-size: 11px; color: var(--ink-48); }

/* 快速导航列 */
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-nav a, .footer-nav .footer-top {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--ink-48);
  text-decoration: none; transition: color .15s ease;
}
.footer-nav a:hover, .footer-nav .footer-top:hover {
  color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
}
.footer-note { margin: 14px 0 0; font-size: 11px; color: var(--hairline); }

/* ---------- 联系我们弹窗（首页与常见问题页共用） ---------- */
.contact-mask {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.contact-mask[hidden] { display: none !important; }
.contact-card {
  width: min(420px, 100%); padding: 22px 24px 24px;
  background: var(--canvas); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  animation: contactIn .18s ease-out;
}
@keyframes contactIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.contact-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.contact-head h2 { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.contact-close {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  border: 1px solid var(--line); background: var(--canvas);
  color: var(--ink-48); font-size: 18px; line-height: 1; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.contact-close:hover { color: var(--ink); background: var(--soft); }
.contact-lead { margin: 12px 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-48); }
.contact-row {
  display: flex; align-items: center; gap: 14px; margin-top: 10px;
  padding: 12px 14px; background: var(--soft);
  border: 1px solid var(--line); border-radius: 12px;
}
.contact-label { flex: 0 0 52px; font-size: 12px; color: var(--ink-48); }
.contact-value {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.contact-mail {
  color: var(--primary-dark); text-decoration: none;
  border-bottom: 1px solid var(--primary-line);
}
.contact-mail:hover { color: var(--primary); }
.contact-copy {
  border: 1px solid var(--primary-line); border-radius: 999px;
  background: var(--canvas); color: var(--primary-dark);
  font-size: 11px; font-weight: 600; padding: 3px 9px; cursor: pointer;
}
.contact-copy:hover { background: var(--primary-soft); }
@media (max-width: 560px) {
  .contact-card { padding: 18px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* 版权行：细线分隔，两端对齐 */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-48);
}

/* ---------- 常见问题页 ---------- */
.faq-hero { max-width: 1200px; margin: 0 auto; padding: 44px 24px 4px; }
.faq-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--primary); }
.faq-hero h1 {
  margin: 8px 0 0; font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700; letter-spacing: -.025em;
}
.faq-hero p { margin: 10px 0 0; max-width: 660px; font-size: 14px; line-height: 1.75; color: var(--ink-48); }

.faq-layout {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px;
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start;
}
.faq-toc {
  position: sticky; top: 88px; padding: 16px 14px;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .8);
}
.faq-toc h2 { margin: 0 0 10px; font-size: 11px; letter-spacing: .1em; color: var(--ink-48); }
.faq-toc a {
  display: block; padding: 6px 8px; border-radius: 7px;
  font-size: 12px; line-height: 1.5; color: var(--ink-80); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.faq-toc a:hover { background: var(--primary-soft); color: var(--primary-dark); }

.faq-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.faq-item {
  display: flex; gap: 14px; padding: 18px 20px; scroll-margin-top: 90px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item:hover { border-color: var(--primary-line); box-shadow: 0 14px 34px -22px rgba(37, 99, 235, .5); }
.faq-no {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid var(--primary-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
}
.faq-q { margin: 3px 0 7px; font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.faq-a { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-80); }

.faq-cta {
  max-width: 1200px; margin: 0 auto 40px; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--primary-line); border-radius: 14px;
  background: linear-gradient(120deg, rgba(37, 99, 235, .07), rgba(37, 99, 235, .02));
}
.faq-cta h2 { margin: 0; font-size: 16px; font-weight: 700; }
.faq-cta p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-48); }
.faq-cta .btn { text-decoration: none; }

/* toast（JS 动态创建） */
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(15, 23, 42, .94); color: #fff; padding: 11px 20px;
  border-radius: 12px; font-size: 13px; font-weight: 500; z-index: 99;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .28);
  transition: opacity .25s ease, transform .25s ease;
}

@media (max-width: 940px) {
  .workbench { grid-template-columns: 1fr; height: auto; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); overflow-y: visible; }
  .stage { min-height: 440px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 2px; }
  .hero-action { align-items: flex-start; }
  .how { grid-template-columns: 1fr; gap: 10px; }
  .reward { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reward-actions { width: 100%; }
  .reward-btn { flex: 1; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner { padding: 32px 16px 20px; }
  .faq-layout { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px 32px; }
  .faq-toc { position: static; }
  .faq-toc a { display: inline-block; }
  .faq-hero { padding: 32px 16px 4px; }
  .faq-cta { margin: 0 16px 32px; }
  .brand-sub, .badge-local { display: none; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .faq-item { padding: 16px 14px; gap: 10px; }
  .reward { padding: 16px; }
  .reward-actions { flex-direction: column; }
  /* 窄屏下状态文案过长会把整行撑出视口，改为可收缩省略 */
  .nav-inner { padding: 0 16px; gap: 10px; }
  .brand-name { font-size: 14px; }
  .nav-right { min-width: 0; gap: 8px; }
  .model-status { min-width: 0; max-width: 138px; padding: 6px 10px; }
  .model-status #modelText { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
