/* ==========================================================================
   起弧论文工坊 · 站点样式
   基调：炭黑 #141310 + 米金 #C1974D + 弧光橙 #DE6A3C
   ========================================================================== */

:root {
  --ink: #141310;
  --ink-2: #1B1914;
  --ink-3: #26231B;
  --text: #1B1913;
  --text-2: #4A463C;
  --muted: #7B7466;
  --muted-2: #9C9484;
  --paper: #F7F4EC;
  --paper-2: #FBF8F1;
  --card: #FFFFFF;
  --line: #E7E0CF;
  --line-2: #D6CDB8;
  --gold: #C1974D;
  --gold-2: #A07A33;
  --gold-soft: #F0E3C6;
  --arc: #DE6A3C;
  --red: #BE4430;
  --amber: #C0821F;
  --blue: #4C7C93;
  --green: #3F7A5C;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 19, 16, .05), 0 10px 28px -14px rgba(20, 19, 16, .22);
  --shadow-lg: 0 30px 70px -24px rgba(20, 19, 16, .42);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -.02em; }
p { margin: 0; }
button { font-family: inherit; }
code { font-family: var(--mono); }

.svg-defs { position: absolute; width: 0; height: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.view[hidden] { display: none; }
[hidden] { display: none !important; }

/* ---------------- 导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 19, 16, .92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(240, 227, 198, .1);
}

.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(240, 227, 198, .06);
  border: 1px solid rgba(240, 227, 198, .16);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark.sm { width: 32px; height: 32px; border-radius: 9px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { color: #F3EAD8; font-size: 15px; letter-spacing: .01em; }
.brand-text i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .22em;
  color: rgba(240, 227, 198, .38);
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a {
  position: relative;
  font-size: 13.5px;
  color: rgba(240, 227, 198, .62);
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: #F3EAD8; }
.nav-links a.active { color: #F3EAD8; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #D9AE63, #DE6A3C);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(240, 227, 198, .5);
}
.nav-badge i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #6FAE8A;
  box-shadow: 0 0 0 3px rgba(111, 174, 138, .16);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(180deg, #DBB16A, #C1974D);
  color: #191510;
  box-shadow: 0 8px 20px -10px rgba(193, 151, 77, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover { box-shadow: 0 12px 26px -10px rgba(193, 151, 77, .9); }

.btn-primary { background: var(--ink); color: #F3E9D6; }
.btn-primary:hover { background: #24211A; }

.btn-line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); background: rgba(20, 19, 16, .03); }

.hero .btn-line, .promo-hero .btn-line {
  color: #F3E9D6;
  border-color: rgba(240, 227, 198, .26);
}
.hero .btn-line:hover, .promo-hero .btn-line:hover {
  border-color: rgba(240, 227, 198, .6);
  background: rgba(240, 227, 198, .07);
}

.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #EFE7D6;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 227, 198, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 227, 198, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 82%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 780px;
  height: 620px;
  background:
    radial-gradient(closest-side, rgba(222, 106, 60, .3), transparent 72%),
    radial-gradient(closest-side at 30% 80%, rgba(193, 151, 77, .22), transparent 70%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(240, 227, 198, .55);
  margin-bottom: 20px;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--arc);
  box-shadow: 0 0 0 4px rgba(222, 106, 60, .18);
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 800;
  color: #F6EFE0;
}
.hero h1 em, .promo-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #F6E3BE 0%, #D9AE63 46%, #DE6A3C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(240, 227, 198, .68);
  max-width: 520px;
  margin-top: 22px;
}

.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 12px;
  color: rgba(240, 227, 198, .4);
}
.hero-note span + span::before {
  content: "·";
  margin-right: 16px;
  color: rgba(240, 227, 198, .25);
}

/* 报告预览卡 */

.hero-visual { position: relative; }

.preview {
  background: #FCF9F2;
  color: var(--text);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .75);
  transform: rotate(-1.3deg);
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line);
}
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.preview-time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted-2); }

.preview-main { display: flex; align-items: center; gap: 22px; padding: 18px 0 4px; }

.ring {
  width: 104px; height: 104px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(from -90deg, #C1974D calc(var(--val) * 1%), #E9E1CF 0);
}
.ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #FCF9F2;
}
.ring-in { position: relative; z-index: 1; text-align: center; line-height: 1; }
.ring-in b { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-in span { display: block; font-size: 10px; color: var(--muted-2); margin-top: 4px; }

.preview-tally { display: flex; gap: 18px; }
.preview-tally b { display: block; font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.preview-tally span { font-size: 11px; color: var(--muted); }
.c-red { color: var(--red); }
.c-amber { color: var(--amber); }
.c-blue { color: var(--blue); }

.preview-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
}
.preview-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 7px 0;
}
.preview-list li span { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.preview-list i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--blue); }

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
}
.preview-foot > span:first-child {
  background: var(--ink);
  color: #F3E9D6;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11.5px;
}
.preview-chip { color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }

.float-tag {
  position: absolute;
  right: -10px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #E0B974, #BC9046);
  color: #191510;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65);
  transform: rotate(2.2deg);
}
.float-tag b { font-size: 27px; line-height: 1; letter-spacing: -.02em; }
.float-tag span { font-size: 11px; line-height: 1.35; font-weight: 600; }

/* 数据条 */

.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-strip > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b {
  display: block;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat-strip b span { font-size: 15px; color: var(--gold-2); margin-left: 2px; font-weight: 600; }
.stat-strip i { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------------- 通用区块 ---------------- */

.block { padding: 82px 0; }
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.block-head.center { justify-content: center; text-align: center; }

.kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.block h2 { font-size: clamp(25px, 2.8vw, 34px); line-height: 1.22; }
.block-lede { font-size: 13.5px; color: var(--muted); max-width: 340px; line-height: 1.75; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.grid-4 .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 16px; margin: 16px 0 8px; }
.card p { font-size: 13.4px; line-height: 1.8; color: var(--text-2); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #FCF4E3, #F2E6CB);
  border: 1px solid #EDE2C7;
}
.card-icon svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: #8B6C2E;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-idx {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card-note { background: #FAF6EA; border-style: dashed; }
.card-note .card-icon { background: #F4EFE1; border-color: #E6DDC7; }

/* 图文分栏 */

.split { display: grid; grid-template-columns: 1fr .82fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split p { font-size: 14.2px; line-height: 1.85; color: var(--text-2); margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 13.6px;
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 7px;
  border-left: 1.8px solid var(--gold);
  border-bottom: 1.8px solid var(--gold);
  transform: rotate(-45deg);
}

.quote-card {
  position: relative;
  margin: 0;
  padding: 34px 32px 30px;
  border-radius: 18px;
  background: linear-gradient(165deg, #1E1C16, #141310);
  color: #F3E9D6;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(193, 151, 77, .28), transparent);
}
.quote-mark {
  font-size: 52px;
  line-height: .8;
  color: rgba(193, 151, 77, .55);
  font-family: Georgia, serif;
}
.quote-card blockquote {
  margin: 8px 0 18px;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -.01em;
  color: #F6EFE0;
}
.quote-card figcaption { font-size: 12px; color: rgba(240, 227, 198, .45); }

/* 步骤 */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.steps li { padding: 26px 30px 26px 0; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; padding-right: 0; }
.step-no {
  display: block;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gold-2);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 13.4px; color: var(--text-2); }

.center-cta { text-align: center; margin-top: 44px; }

/* CTA 横条 */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 38px 44px;
  border-radius: 20px;
  background:
    radial-gradient(600px 240px at 88% 20%, rgba(222, 106, 60, .22), transparent 70%),
    linear-gradient(120deg, #1D1B15, #141310);
  color: #F3E9D6;
  margin-bottom: 84px;
}
.cta-band h3 { font-size: 23px; color: #F6EFE0; }
.cta-band p { font-size: 13.5px; color: rgba(240, 227, 198, .55); margin-top: 6px; }

/* ---------------- 工作台 ---------------- */

.studio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 54px;
  padding-bottom: 28px;
}
.studio-head h1 { font-size: clamp(28px, 3.2vw, 38px); margin: 8px 0 10px; }
.lede-sm { font-size: 13.8px; color: var(--muted); line-height: 1.8; max-width: 560px; }
.studio-actions { display: flex; gap: 8px; flex: none; }

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 80px;
}
.studio > * { min-width: 0; }

.panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-report { min-height: 560px; }

.field { margin-bottom: 16px; }
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.hint { font-weight: 400; font-size: 11.5px; color: var(--muted-2); }

textarea {
  width: 100%;
  min-height: 216px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FCFAF4;
  color: var(--text);
  font-family: inherit;
  font-size: 13.2px;
  line-height: 1.85;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea::placeholder { color: #B4AC9A; }
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 151, 77, .13);
}
.ta-sm { min-height: 128px; }

fieldset.opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 18px 0 20px;
}
.opts legend {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 0;
  margin-bottom: 10px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12.8px;
  color: var(--text-2);
  cursor: pointer;
  transition: .18s;
}
.opt:hover { border-color: var(--line-2); background: #FCFAF4; }
.opt input { accent-color: #C1974D; margin: 0; }
.opt:has(input:checked) { border-color: #DCC79A; background: #FDF8EC; color: var(--text); }

.studio-submit { display: flex; align-items: center; gap: 14px; }
.studio-tip { font-size: 12px; color: var(--muted-2); }

.report-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 500px;
  text-align: center;
}
.empty-mark { color: #D8CEB6; }
.empty-mark svg { width: 56px; height: 56px; }
.report-empty p { font-size: 14px; color: var(--text-2); }
.empty-sub { font-size: 12.5px !important; color: var(--muted-2) !important; max-width: 240px; }

/* 报告（引擎渲染） */

.rep-score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.rep-score > b { font-size: 50px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rep-score > b.good { color: var(--green); }
.rep-score > b.warn { color: var(--amber); }
.rep-score > b.bad { color: var(--red); }
.rep-score > span { font-size: 12px; color: var(--muted); line-height: 1.65; }
.rep-tally { display: flex; gap: 16px; margin-left: auto; }
.rep-tally div { text-align: center; font-size: 11px; color: var(--muted); }
.rep-tally i { display: block; font-style: normal; font-size: 17px; font-weight: 700; color: var(--text); }
.rep-tally .t-red i { color: var(--red); }
.rep-tally .t-amber i { color: var(--amber); }
.rep-tally .t-blue i { color: var(--blue); }

.rep-group { margin-top: 22px; }
.rep-group-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.rep-group-h span { font-weight: 400; font-size: 11.5px; color: var(--muted); }

.issue {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #FDFBF6;
}
.issue.lv-red { border-left-color: var(--red); background: #FDF7F5; }
.issue.lv-amber { border-left-color: var(--amber); background: #FDFAF3; }
.issue.lv-blue { border-left-color: var(--blue); background: #F7FAFB; }
.issue-top { display: flex; align-items: center; gap: 10px; }
.issue-title { font-size: 13.2px; font-weight: 600; }
.issue-loc { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.issue-detail { font-size: 12.8px; color: var(--text-2); line-height: 1.72; margin-top: 4px; }
.issue-snip {
  font-family: var(--mono);
  font-size: 11.8px;
  line-height: 1.75;
  background: #F4F0E4;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  color: #4A463C;
  overflow-x: auto;
  white-space: pre-wrap;
}
.issue-fix { font-size: 11.8px; color: var(--gold-2); margin-top: 7px; }

.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------------- 推广中心 ---------------- */

.promo-hero {
  position: relative;
  background: var(--ink);
  color: #EFE7D6;
  padding: 56px 0 0;
  overflow: hidden;
}
.promo-hero::after {
  content: "";
  position: absolute;
  right: -8%; top: -40%;
  width: 700px; height: 560px;
  background: radial-gradient(closest-side, rgba(193, 151, 77, .26), transparent 70%);
  pointer-events: none;
}
.promo-hero .wrap { position: relative; z-index: 1; }

.promo-head {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 48px;
  align-items: start;
  padding-bottom: 34px;
}
.promo-head h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; margin: 12px 0 14px; color: #F6EFE0; }
.promo-head .lede-sm { color: rgba(240, 227, 198, .62); max-width: 560px; }

.earn-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  border: 1px solid rgba(240, 227, 198, .16);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.earn-label { font-size: 11.5px; color: rgba(240, 227, 198, .5); letter-spacing: .04em; }
.earn-num {
  display: block;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: #F6E3BE;
  margin: 4px 0 16px;
  font-variant-numeric: tabular-nums;
}
.earn-actions { display: flex; gap: 8px; }
.earn-note { font-size: 11px; color: rgba(240, 227, 198, .42); margin-top: 12px; line-height: 1.6; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(240, 227, 198, .13);
}
.tile { padding: 20px 24px 24px 0; }
.tile span { display: block; font-size: 11.5px; color: rgba(240, 227, 198, .48); }
.tile b {
  font-size: 25px;
  letter-spacing: -.02em;
  color: #F3E9D6;
  font-variant-numeric: tabular-nums;
}
.tile i { font-style: normal; font-size: 10.5px; color: rgba(240, 227, 198, .35); margin-left: 6px; }

.promo-grid {
  display: grid;
  grid-template-columns: 374px 1fr;
  gap: 18px;
  align-items: start;
  padding: 30px 0 80px;
}
.promo-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.promo-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-h { font-size: 15px; }
.card-sub { font-size: 11.8px; color: var(--muted-2); }

/* 深色邀请卡 */

.card-invite {
  background: #1B1914;
  border-color: #2B2720;
  color: #EFE7D6;
  box-shadow: var(--shadow);
}
.card-invite .card-h { color: #F6EFE0; }
.live-dot {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: rgba(240, 227, 198, .5);
}
.live-dot i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #6FAE8A;
  box-shadow: 0 0 0 3px rgba(111, 174, 138, .15);
}
.mini-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.card-invite .mini-label { color: rgba(240, 227, 198, .4); }

.copy-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.copy-row code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #F6F2E7;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-big code {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
  padding: 12px;
}
.card-invite .copy-row code {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(240, 227, 198, .14);
  color: #F6EFE0;
}
/* 深色卡里的次要按钮需要反色，否则字和底同色看不见 */
.card-invite .btn-line {
  color: #F3E9D6;
  border-color: rgba(240, 227, 198, .24);
  background: rgba(255, 255, 255, .05);
}
.card-invite .btn-line:hover {
  border-color: rgba(240, 227, 198, .55);
  background: rgba(255, 255, 255, .09);
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed rgba(240, 227, 198, .18);
  border-radius: 12px;
  margin: 2px 0 16px;
}
.qr {
  width: 96px; height: 96px;
  flex: none;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr canvas, .qr img, .qr table { width: 96px !important; height: 96px !important; }
.qr span { font-size: 10px; color: #8B8477; text-align: center; padding: 8px; line-height: 1.5; }
.qr-tip { font-size: 11px; color: rgba(240, 227, 198, .45); line-height: 1.7; }

.promo-text {
  max-height: 148px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(240, 227, 198, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  font-size: 11.8px;
  line-height: 1.85;
  color: rgba(240, 227, 198, .68);
  white-space: pre-wrap;
  margin-bottom: 12px;
}

/* 费率与进度 */

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.rate { font-size: 21px; color: var(--gold-2); letter-spacing: -.02em; }
.rate.up { color: var(--arc); }
.rate-note { font-size: 11.6px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }

.progress-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.progress-top b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: #EFE9D9; overflow: hidden; margin-bottom: 13px; }
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #DDB571, #B98C41);
  transition: width .6s cubic-bezier(.2, .7, .3, 1);
}
.progress-hint { font-size: 11.4px; color: var(--gold-2); line-height: 1.6; }
.rate-warn {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.2px;
  color: var(--muted-2);
  line-height: 1.75;
}

/* 表格 */

.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: .04em;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px;
  border-bottom: 1px dashed rgba(231, 224, 207, .85);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFAF4; }
.row-empty td { text-align: center; color: var(--muted-2); padding: 32px 12px; white-space: normal; }

.table td .sub {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted-2);
  margin-top: 2px;
}
.table .cell-fee { font-weight: 600; color: var(--text); }
.table .cell-fee .sub { color: var(--gold-2); font-weight: 500; }

.tag { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid; }
.tag.paid { color: var(--green); border-color: #C6DCCF; background: #F1F7F3; }
.tag.free { color: var(--muted); border-color: var(--line); background: #FAF7F0; }
.tag.pending { color: var(--amber); border-color: #E7D6B2; background: #FDF8EC; }
.tag.partial { color: var(--gold-2); border-color: #E2D2AE; background: #FDF9EF; }
.tag.void { color: var(--muted-2); border-color: var(--line); background: #F6F3EB; text-decoration: line-through; }

.promo-loading { text-align: center; padding: 26px 0 10px; }
.promo-loading p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* 流水 */

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(231, 224, 207, .85);
  font-size: 12.8px;
}
.ledger li:last-child { border-bottom: 0; }
.l-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.l-dot.minus { background: var(--muted-2); }
.l-note { flex: 1; color: var(--text-2); line-height: 1.5; }
.l-note em { font-style: normal; display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.l-amt { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.l-amt.minus { color: var(--muted-2); }
.l-state { font-size: 10.5px; color: var(--muted-2); flex: none; }
.ledger-empty { padding: 28px 0; text-align: center; color: var(--muted-2); font-size: 12.8px; }

/* 创作有奖 */

.chan-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chan {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: .18s;
}
.chan:hover { border-color: var(--line-2); }
.chan.is-on { background: var(--ink); border-color: var(--ink); color: #F3E9D6; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.tier { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FCFAF4; }
.tier-top b { display: block; font-size: 16.5px; letter-spacing: -.02em; }
.tier-top span { font-size: 10.5px; color: var(--muted-2); }
.tier p { font-size: 12.2px; color: var(--text-2); margin-top: 8px; }
.tier-sub { font-size: 10.8px !important; color: var(--muted-2) !important; line-height: 1.6; }
.tier-money {
  background: linear-gradient(160deg, #201D17, #141310);
  border-color: #201D17;
  color: #F3E9D6;
}
.tier-money .tier-top span { color: rgba(243, 233, 214, .55); }
.tier-money p { color: rgba(243, 233, 214, .72); }
.tier-money .tier-sub { color: rgba(243, 233, 214, .42) !important; }

.bonus-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.bonus-list li { display: flex; gap: 10px; font-size: 12.4px; color: var(--text-2); }
.bonus-list b { margin-left: auto; color: var(--gold-2); font-weight: 600; }

.card-dev { background: #FBF7EC; border-style: dashed; }
.card-dev .btn-row { flex-wrap: wrap; }

/* ---------------- 价格 ---------------- */

.price-head { padding: 60px 0 0; text-align: center; }
.price-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 12px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 0; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .22s, box-shadow .22s;
}
.price-card .btn { margin-top: auto; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 15px; }
.price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 12px 0 8px;
  line-height: 1;
}
.price span { font-size: 19px; vertical-align: top; color: var(--muted); margin-right: 2px; }
.price-sub { font-size: 12.6px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; min-height: 43px; }

/* 购买按钮下的次要入口：不抢主按钮视线，但保留试用通道 */
.price-alt {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, .18);
}
.price-alt:hover { color: var(--ink); }
.price-hot .price-alt { color: rgba(240, 227, 198, .6); }
.price-hot .price-alt:hover { color: #F3E9D6; }

/* 按钮被点击后的等待态：避免用户以为没反应重复点 */
.price-card .btn[disabled] { opacity: .72; cursor: default; }

.price-hot {
  background: linear-gradient(165deg, #23201A, #141310);
  border-color: #23201A;
  color: #F3E9D6;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.price-hot:hover { transform: translateY(-11px); }
.price-hot h3 { color: #F6EFE0; }
.price-hot .price { color: #F6E3BE; }
.price-hot .price span { color: rgba(240, 227, 198, .5); }
.price-hot .price-sub { color: rgba(240, 227, 198, .55); }
.hot-tag {
  position: absolute;
  top: -11px; left: 28px;
  padding: 4px 11px;
  border-radius: 99px;
  background: linear-gradient(120deg, #DDB571, #B98C41);
  color: #191510;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.price-foot { text-align: center; font-size: 12.4px; color: var(--muted); margin: 30px 0 84px; }

/* ---------------- 页脚 ---------------- */

.foot { background: var(--ink); color: rgba(240, 227, 198, .6); padding: 44px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.foot-brand { display: flex; gap: 14px; max-width: 660px; }
.foot-brand b { color: #F3EAD8; font-size: 13.5px; }
.foot-brand p { font-size: 11.5px; color: rgba(240, 227, 198, .38); line-height: 1.8; margin-top: 6px; }
.foot-links { display: flex; gap: 20px; font-size: 12.2px; flex-wrap: wrap; }
.foot-links a { color: rgba(240, 227, 198, .5); transition: color .2s; }
.foot-links a:hover { color: #F3EAD8; }

/* ---------------- 弹层与提示 ---------------- */

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(18, 17, 14, .55); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: pop .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 16px; }
.modal-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-desc { font-size: 12.4px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FCFAF4;
}
.amount-input:focus-within { border-color: var(--gold); background: #fff; }
.amount-input span { font-size: 16px; color: var(--muted); }
.amount-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.amount-all { border: 0; background: none; font-size: 12px; color: var(--gold-2); cursor: pointer; }
.modal-hint { min-height: 18px; font-size: 11.8px; color: var(--red); margin-top: 8px; }
.modal-foot { display: flex; gap: 10px; margin-top: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  z-index: 100;
  padding: 11px 20px;
  border-radius: 10px;
  background: rgba(20, 19, 16, .94);
  color: #F3E9D6;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; padding-bottom: 84px; }
  .hero-visual { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .promo-head { grid-template-columns: 1fr; gap: 26px; }
  .earn-card { max-width: 380px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { border-bottom: 1px solid rgba(240, 227, 198, .1); }
  .studio { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-badge { display: none; }
  .nav-in { height: 62px; }
  .hero { padding-top: 44px; }
  .hero-in { padding-bottom: 40px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 14.6px; }
  .hero-cta .btn { flex: 1; min-width: 140px; }
  .float-tag {
    position: static;
    display: inline-flex;
    transform: none;
    margin-top: 14px;
  }
  .float-tag b { font-size: 22px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .stat-strip > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .stat-strip > div:nth-child(2n) { border-right: 0; }
  .stat-strip > div:nth-child(n+3) { border-bottom: 0; }
  .block { padding: 54px 0; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .block-lede { max-width: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px; }
  .promo-head h1 { font-size: 30px; }
  .promo-side { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile b { font-size: 21px; }
  .promo-grid { padding-top: 22px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-hot { transform: none; }
  .price-hot:hover { transform: translateY(-3px); }
  .studio-head { flex-direction: column; align-items: flex-start; padding-top: 38px; }
  fieldset.opts { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .foot-in { flex-direction: column; gap: 24px; }
  .table { font-size: 12px; }
  .table th, .table td { padding-left: 8px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   2026-11 改版：论文生成 / AI 降重 两个主力工作台 + 双端版面
   ========================================================================== */

/* ---------------- 导航右侧：模型状态 ---------------- */

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(240, 227, 198, .18);
  background: rgba(240, 227, 198, .05);
  color: rgba(240, 227, 198, .55);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  max-width: 180px;
}
.model-chip:hover { border-color: rgba(240, 227, 198, .34); color: #F3EAD8; }
.model-chip #modelChipText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8A8272;
  flex: none;
}
.model-chip.is-on { color: #EBD9B4; border-color: rgba(193, 151, 77, .45); }
.model-chip.is-on .mc-dot {
  background: #7FBF8E;
  box-shadow: 0 0 0 3px rgba(127, 191, 142, .16);
}

/* ---------------- 移动端底部标签栏 ---------------- */

.tabbar { display: none; }

/* ---------------- 首页：两张主力功能卡 ---------------- */

.core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.core-card {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .24s, box-shadow .24s, border-color .24s;
}
.core-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #D9AE63, #DE6A3C);
  opacity: .85;
}
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.core-write { background: linear-gradient(180deg, #FFFDF8, #fff 42%); }
.core-rw { background: linear-gradient(180deg, #FFF9F5, #fff 42%); }
.core-rw::before { background: linear-gradient(90deg, #DE6A3C, #C1974D); }

.core-idx {
  position: absolute;
  right: 26px; top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: #C8BD9F;
}

.core-card h3 { font-size: 24px; color: var(--ink); }
.core-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.core-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.core-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.6px;
  line-height: 1.65;
  color: var(--text-2);
}
.core-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}
.core-rw .core-list li::before { background: var(--arc); }

/* ---------------- 首页首屏：双卡预览 ---------------- */

.pv-stack { display: grid; gap: 14px; }

.pv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px -22px rgba(20, 19, 16, .4);
  overflow: hidden;
}
.pv-card.pv-rw { margin-left: 34px; }

.pv-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
  background: #FCFAF4;
}
.pv-head span {
  margin-left: auto;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted-2);
}
.pv-dot { width: 7px; height: 7px; border-radius: 50%; }
.pv-dot.gold { background: var(--gold); }
.pv-dot.rust { background: var(--arc); }

.pv-body { padding: 14px 15px 16px; }
.pv-q {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-2);
}
.pv-out { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.pv-out li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.pv-out li b {
  font-size: 10.5px;
  color: var(--gold-2);
  background: var(--gold-soft);
  border-radius: 4px;
  padding: 2px 6px;
  flex: none;
}
.pv-out li em { margin-left: auto; font-style: normal; color: var(--muted-2); font-size: 11px; }
.pv-out li.more { color: var(--muted-2); font-size: 11px; padding-left: 2px; }

.pv-label {
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.pv-label + .pv-label { margin-top: 10px; }
.pv-before {
  font-size: 12.2px;
  line-height: 1.7;
  color: #8D8676;
  text-decoration: line-through;
  text-decoration-color: rgba(190, 68, 48, .35);
}
.pv-after {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text);
  background: #FBF7EC;
  border-left: 2px solid var(--gold);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}
.pv-after sup { color: var(--arc); font-size: 10px; }

/* ---------------- 工作台通用骨架 ---------------- */

.wb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 22px;
}
.wb-head h1 { font-size: 30px; color: var(--ink); margin-top: 6px; }
.wb-head .lede-sm { margin-top: 10px; max-width: 640px; }
.wb-actions { display: flex; gap: 8px; flex: none; }

.wb > * { min-width: 0; }

.wb {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 60px;
}

.wb-side {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.wb-side::-webkit-scrollbar { width: 6px; }
.wb-side::-webkit-scrollbar-thumb { background: #DDD3BD; border-radius: 3px; }

.wb-main {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  height: calc(100vh - 262px);
  padding: 0;
  overflow: hidden;
}

.wb-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #FCFAF4;
  flex: none;
  min-height: 50px;
}
.wb-title { font-size: 12.5px; font-weight: 650; color: var(--text); }
.wb-status {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wb-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: #FCFAF4;
  flex: none;
}
.wb-note { font-size: 11.5px; color: var(--muted-2); }
.side-note { margin-top: 10px; line-height: 1.6; }

/* 输入控件 */

.input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
select.input { appearance: none; background-image: none; cursor: pointer; }
.input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 151, 77, .14);
}
.field-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2.gap-sm { gap: 10px; }

.ta-lg { min-height: 240px; }
.ta-outline { min-height: 260px; font-size: 12.6px; line-height: 1.85; }

.outline-box { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.outline-box .btn + .btn { margin-top: 8px; }

.adv {
  margin: 2px 0 16px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  background: #FCFAF4;
}
.adv summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-2);
  list-style: none;
}
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: "＋ "; color: var(--gold-2); }
.adv[open] summary::before { content: "－ "; }
.adv[open] summary { margin-bottom: 12px; }
.adv .field:last-child { margin-bottom: 0; }

/* 分段按钮 */

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #F1ECE0;
}
.seg button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 7px 4px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 1px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.seg button span { font-size: 10px; color: var(--muted-2); }
.seg button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(20, 19, 16, .1);
}
.seg button.on span { color: var(--gold-2); }
.seg-3 button { padding: 9px 4px; }

/* 正文纸面 */

.paper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 30px 32px;
  background: #FFFDF9;
  scrollbar-width: thin;
}
.paper::-webkit-scrollbar { width: 8px; }
.paper::-webkit-scrollbar-thumb { background: #E2D8C0; border-radius: 4px; }

.paper-empty {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
}
.paper-empty p { font-size: 13.5px; }
.paper-empty .empty-sub { font-size: 12px; color: var(--muted-2); max-width: 320px; }

.pp-ch { margin-bottom: 34px; }
.pp-ch:last-child { margin-bottom: 0; }
.pp-ch h3 {
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pp-body p {
  overflow-wrap: anywhere;
  font-size: 14.2px;
  line-height: 2;
  color: #232019;
  margin-bottom: 14px;
  text-indent: 2em;
  text-align: justify;
}
.pp-wait { font-size: 12.5px; color: var(--muted-2); }

/* 章节 chips */

.chips { display: flex; flex-wrap: wrap; gap: 6px; overflow: hidden; max-height: 52px; }
.chips-empty { font-size: 11.5px; color: var(--muted-2); }
.chip {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chip.done {
  background: #F3EEE0;
  border-color: rgba(193, 151, 77, .45);
  color: var(--gold-2);
}

/* 降重对照 */

.diff { padding: 22px 24px 28px; }

.df-pair {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.df-pair:last-of-type { border-bottom: 0; }

.df-src, .df-out { position: relative; }
.df-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted-2);
  background: #F1ECE0;
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 5px;
}
.df-tag.out { color: #8A6A22; background: #F6EBD2; }

.df-src p {
  font-size: 12.8px;
  line-height: 1.8;
  color: #948C7A;
}
.df-out p {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.95;
  color: #232019;
  background: #FFFCF3;
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

.df-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #F6F2E6;
  border: 1px solid var(--line);
}
.df-note b { font-size: 11.5px; color: var(--gold-2); letter-spacing: .05em; }
.df-note p { margin-top: 6px; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }

/* 模型设置弹层 */

.modal-wide { max-width: 520px; }

/* 付款二维码弹层 */
.modal-narrow { max-width: 360px; }
.qr-body { text-align: center; padding: 6px 0 4px; }
.qr-img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.qr-tip { font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }
.model-row { display: flex; gap: 8px; }
.model-row .input { flex: 1; min-width: 0; }

/* ==========================================================================
   双端版面：PC 用顶部横向导航 + 双栏工作区；移动端换底部标签栏 + 单栏
   ========================================================================== */

@media (min-width: 1440px) {
  .wrap { max-width: 1240px; }
  .wb { grid-template-columns: 400px minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .wb { grid-template-columns: 340px minmax(0, 1fr); }
  .wb-main { height: calc(100vh - 252px); }
  .core-card { padding: 26px 24px 24px; }
  .core-card h3 { font-size: 21px; }
  .pv-card.pv-rw { margin-left: 16px; }
}

/* —— 移动版：768 以下 —— */
@media (max-width: 820px) {
  body { padding-bottom: 66px; }

  .nav-in { height: 58px; gap: 12px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .nav-cta { display: none; }
  .model-chip { max-width: 132px; font-size: 11px; height: 28px; }

  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: rgba(20, 19, 16, .96);
    backdrop-filter: saturate(150%) blur(16px);
    border-top: 1px solid rgba(240, 227, 198, .12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 9px 0 8px;
    color: rgba(240, 227, 198, .5);
    transition: color .18s;
  }
  .tabbar a.on { color: #F0D9A9; }
  .tabbar .tb-i { font-size: 15px; line-height: 1; font-style: normal; }
  .tabbar a span { font-size: 10px; letter-spacing: .02em; }

  .core-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .core-card { padding: 24px 20px 22px; border-radius: 16px; }
  .core-card:hover { transform: none; }
  .core-card h3 { font-size: 21px; }
  .core-list { margin: 16px 0 20px; gap: 9px; }
  .core-list li { font-size: 13px; }

  .pv-card.pv-rw { margin-left: 0; }
  .pv-stack { gap: 10px; }

  .wb-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; padding-bottom: 16px; }
  .wb-head h1 { font-size: 24px; }
  .wb-head .lede-sm { margin-top: 8px; font-size: 13.5px; }

  .wb { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 28px; }
  .wb-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .wb-main {
    height: auto;
    min-height: 0;
  }
  .paper {
    max-height: 62vh;
    min-height: 300px;
    padding: 20px 18px 24px;
  }
  .pp-body p { font-size: 14px; line-height: 1.95; }
  .df-out p { font-size: 13.6px; }

  .ta-lg { min-height: 190px; }
  .ta-outline { min-height: 200px; }

  .wb-bar { flex-wrap: wrap; gap: 8px; }
  .wb-status { margin-left: 0; }
  .chips { max-height: none; }

  .modal-wide { max-width: none; }
  .model-row { flex-direction: column; }
}

@media (max-width: 420px) {
  .seg button { font-size: 11.5px; }
  .seg button span { display: none; }
  .core-list li { font-size: 12.6px; }
}

/* ==========================================================================
   任务书排版（#/format）
   ========================================================================== */

.wb-fmt { grid-template-columns: 396px minmax(0, 1fr); }

/* —— 首页入口条 —— */
.fmt-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #FFFDF7 0%, #F7F0DE 100%);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fmt-strip:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 30px -18px rgba(20, 19, 16, .4);
  transform: translateY(-1px);
}
.fmt-strip-tag {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  color: #fff;
  background: var(--arc);
  border-radius: 5px;
  padding: 3px 8px;
  align-self: flex-start;
  margin-top: 2px;
}
.fmt-strip b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.fmt-strip p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.fmt-strip-go { margin-left: auto; flex: none; font-size: 13px; font-weight: 650; color: var(--gold-2); white-space: nowrap; }

/* —— 折叠区 —— */
.fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #FCFAF4;
}
.fold summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.8px;
  font-weight: 650;
  color: var(--text);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary b { color: var(--gold-2); font-size: 11.5px; font-weight: 700; }
.fold summary .hint { font-weight: 400; font-size: 11px; color: var(--muted-2); margin-left: auto; text-align: right; }
.fold summary::after { content: "▾"; font-size: 9px; color: var(--muted-2); transition: transform .2s; }
.fold[open] summary::after { transform: rotate(180deg); }
.fold[open] summary { margin-bottom: 9px; }

.ta-fmt {
  min-height: 104px;
  padding: 10px 11px;
  font-size: 12.4px;
  line-height: 1.7;
  border-radius: 9px;
  background: #fff;
}
.ta-fmt.tall { min-height: 168px; }

/* —— 快捷句式 —— */
.fmt-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.fmt-quick button {
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.fmt-quick button:hover { border-color: var(--gold); color: var(--gold-2); background: #FFFCF3; }

/* —— 解析结果 —— */
.fmt-read { margin: 14px 0 12px; }
.fr-block { margin-bottom: 10px; }
.fr-block summary { cursor: pointer; list-style: none; }
.fr-block summary::-webkit-details-marker { display: none; }
.fr-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-2);
  letter-spacing: .02em;
  margin-bottom: 7px;
}
.fr-h span { font-weight: 400; color: var(--muted-2); }
.fr-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fr-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-chip i { font-style: normal; font-size: 10px; color: var(--muted-2); flex: none; }
.fr-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.fr-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}
.fr-rule b { font-weight: 600; color: var(--text-2); flex: none; }
.fr-rule em { font-style: normal; margin-left: auto; color: var(--gold-2); font-weight: 650; text-align: right; }
.fr-from {
  flex: none;
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: .02em;
}
.fr-from.task { background: #EFE6D2; color: #8A6A2A; }
.fr-from.nl { background: #E7EEF2; color: #3F6B80; }
.fr-warn {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #FDF6E8;
  border-left: 2px solid var(--amber);
}
.fr-warn p { font-size: 11.5px; color: #7A5E1E; line-height: 1.65; }
.fr-empty { font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* —— 规格编辑器 —— */
.fmt-spec { display: grid; gap: 10px; }
.sp-group { border-top: 1px dashed var(--line-2); padding-top: 7px; }
.sp-group:first-child { border-top: 0; padding-top: 0; }
.sp-group > summary { cursor: pointer; list-style: none; }
.sp-group > summary::-webkit-details-marker { display: none; }
.sp-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--gold-2);
  font-weight: 700;
  text-transform: uppercase;
}
.sp-h::after { content: "▾"; margin-left: auto; font-size: 9px; color: var(--muted-2); font-weight: 400; }
.sp-group[open] > summary { margin-bottom: 6px; }
.sp-group[open] > summary::after { transform: rotate(180deg); }
.sp-body { padding-left: 1px; }
.sp-sub {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 650;
  margin: 7px 0 5px;
  padding-left: 7px;
  border-left: 2px solid var(--gold-soft);
}
.sp-sub:first-child { margin-top: 0; }
.sp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  min-width: 0;
}
.sp-label { font-size: 11.5px; color: var(--muted); flex: none; width: 52px; }
.sp-sel {
  flex: 1;
  min-width: 0;
  height: 27px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--text);
  cursor: pointer;
}
.sp-sel:focus, .sp-in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(193, 151, 77, .16); }
.sp-num { display: inline-flex; align-items: center; gap: 3px; flex: 1; min-width: 0; }
.sp-in {
  width: 100%;
  min-width: 0;
  height: 27px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--text);
}
.sp-in.wide { flex: 1; }
.sp-num i { font-style: normal; font-size: 10px; color: var(--muted-2); flex: none; }
.sp-tilde { color: var(--muted-2); font-size: 10px; flex: none; }
.sp-check { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text); cursor: pointer; }
.sp-check input { accent-color: var(--gold-2); width: 13px; height: 13px; }

/* —— 预览舞台 —— */
.wb-sub { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.fmt-scale {
  font-size: 10.5px;
  color: var(--gold-2);
  background: #F3EBD8;
  border-radius: 4px;
  padding: 2px 6px;
  font-variant-numeric: tabular-nums;
}
.fmt-stage {
  padding: 20px 16px 28px;
  background: #E9E4D8;
  background-image: radial-gradient(rgba(20, 19, 16, .055) 1px, transparent 1px);
  background-size: 10px 10px;
}

.sheet {
  margin: 0 auto;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 34px -14px rgba(20, 19, 16, .45), 0 1px 3px rgba(20, 19, 16, .1);
  box-sizing: border-box;
  font-family: "Songti SC", "SimSun", "宋体", serif;
}
.sheet p { margin: 0; }

.sh-header { color: #333; font-family: "Songti SC", "SimSun", serif; margin-bottom: 8px; }
.sh-cover { text-align: center; padding-top: 6%; }
.sh-pagebreak {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 9px;
  color: #C9BFA8;
  letter-spacing: .1em;
}
.sh-pagebreak::before, .sh-pagebreak::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, #E2DAC8 0 4px, transparent 4px 8px);
}
.sh-toc { margin-bottom: 4px; }
.sh-toc-line { display: flex; align-items: baseline; gap: 3px; margin: 2px 0; }
.sh-toc-line span { max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-toc-line i { flex: 1; border-bottom: 1px dotted #C9BFA8; transform: translateY(-3px); font-style: normal; overflow: hidden; }
.sh-toc-line b { font-weight: 400; color: #666; font-variant-numeric: tabular-nums; font-size: .86em; }
.sh-footer { margin-top: 12px; color: #444; }

/* —— 移动端 —— */
@media (max-width: 1080px) {
  .wb-fmt { grid-template-columns: 348px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .wb-fmt { grid-template-columns: minmax(0, 1fr); }
  .fmt-strip { flex-wrap: wrap; gap: 10px; padding: 15px 16px; }
  .fmt-strip b { font-size: 13.6px; }
  .fmt-strip p { font-size: 12px; }
  .fmt-strip-go { margin-left: 0; width: 100%; }
  .fmt-stage { max-height: 68vh; padding: 14px 10px 20px; }
  .tabbar a span { font-size: 9px; }
  .tabbar .tb-i { font-size: 14px; }
}

.wb-fmt .wb-main { height: calc(100vh - 300px); min-height: 480px; }
.sh-toc-tip { color: #A9A296; text-align: center; margin-top: 10px; letter-spacing: .02em; }

@media (max-width: 820px) {
  .wb-fmt .wb-main { height: auto; min-height: 0; }
}
.fmt-stage { overflow-x: hidden; }
.fmt-stage { scrollbar-gutter: stable; }

@media (max-width: 820px) {
  .wb-foot { flex-wrap: wrap; row-gap: 8px; }
  .wb-foot .wb-note { width: 100%; order: 9; }
  .wb-foot .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   模型选择器（三个工作台共用）
   ========================================================================== */

.model-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FCFAF4;
}
.ml-label {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--gold-2);
  font-weight: 700;
  text-transform: uppercase;
}
.model-pick { flex: 1; min-width: 0; }
.mp-sel {
  width: 100%;
  height: 27px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--text);
  cursor: pointer;
  text-overflow: ellipsis;
}
.mp-sel:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(193, 151, 77, .16);
}
.mp-empty { font-size: 11.5px; color: var(--muted-2); }

/* —— 排版页的模型开关 —— */
.fmt-ai {
  margin: 12px 0 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFAF4;
  transition: border-color .18s, background .18s;
}
.fmt-ai.on {
  border-color: var(--gold);
  background: #FFFCF3;
}
.fmt-ai .model-pick { margin: 8px 0 0; }
.fmt-ai .field-hint {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted-2);
}
.fmt-ai.on .field-hint { color: #6E5A2A; }

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-track {
  position: relative;
  flex: none;
  width: 30px;
  height: 17px;
  border-radius: 9px;
  background: #D8D2C4;
  transition: background .18s;
}
.sw-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 19, 16, .25);
  transition: transform .18s;
}
.switch input:checked + .sw-track { background: var(--gold); }
.switch input:checked + .sw-track .sw-dot { transform: translateX(13px); }
.switch input:focus-visible + .sw-track { box-shadow: 0 0 0 2px rgba(193, 151, 77, .3); }
.sw-label { font-size: 12.4px; font-weight: 600; color: var(--text); }
.sw-label em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted-2);
  margin-left: 3px;
}

/* —— 解析结果里的模型区块 —— */
.ai-block { border-top: 1px dashed var(--line-2); padding-top: 9px; }
.ai-notes {
  margin: 0;
  padding-left: 15px;
  display: grid;
  gap: 3px;
}
.ai-notes li { font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.ai-conflict { margin-top: 6px; }
.ai-conflict summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--gold-2);
  list-style: none;
}
.ai-conflict summary::-webkit-details-marker { display: none; }
.ai-conflict summary::before { content: "▸ "; }
.ai-conflict[open] summary::before { content: "▾ "; }
.ai-conflict ul { margin: 5px 0 0; padding-left: 15px; display: grid; gap: 3px; }
.ai-conflict li { font-size: 11px; color: var(--muted); line-height: 1.6; }
.ai-conflict b { color: var(--text-2); font-weight: 600; }
.ai-warn { border-left-color: var(--arc); }

.fr-from.model { background: #EAF2EA; color: #3F6E4A; }

@media (max-width: 820px) {
  .model-line { margin-bottom: 10px; }
}
.ai-sum { font-size: 11.5px; color: var(--muted); line-height: 1.65; margin: 2px 0 6px; }

/* ==========================================================================
   免费模型（免密钥）
   ========================================================================== */

/* —— 顶栏胶囊的免费态 —— */
.model-chip.is-free { border-color: rgba(64, 128, 96, .38); }
.model-chip.is-free .mc-dot { background: #3F8B62; box-shadow: 0 0 0 3px rgba(63, 139, 98, .16); }
.model-chip.is-free #modelChipText { color: #2E6B4A; }

/* —— 设置弹窗里的免费区 —— */
.free-box {
  margin-bottom: 14px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(193, 151, 77, .34);
  border-radius: 11px;
  background: linear-gradient(104deg, #FFFCF3 0%, #F8F2E2 100%);
}
.fb-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.fb-head b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.fb-head span { font-size: 11px; color: var(--muted-2); }

.fb-list { display: grid; gap: 6px; }
.fb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .16s, background .16s, transform .12s;
}
.fb-item:hover { border-color: var(--gold); background: #FFFDF6; transform: translateY(-1px); }
.fb-item.on { border-color: #3F8B62; background: #F5FAF6; cursor: default; }
.fb-item.on:hover { transform: none; }
.fb-name { font-size: 12.2px; font-weight: 650; color: var(--text); }
.fb-item.on .fb-name { color: #2E6B4A; }
.fb-sub { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; }

.fb-note {
  margin: 9px 0 0;
  font-size: 10.8px;
  line-height: 1.6;
  color: var(--muted);
}

/* 下拉里的分组标题 */
.mp-sel optgroup { font-size: 11px; color: var(--muted-2); background: #FAF8F3; }
.mp-sel option { font-size: 11.5px; color: var(--text); background: #fff; }

@media (max-width: 820px) {
  .fb-head { gap: 4px; }
  .fb-head span { width: 100%; }
}

/* 首页卖点行：加一项「内置免费模型」 */
.hero-note { flex-wrap: wrap; row-gap: 7px; }
.hero-note .hl { color: var(--gold); font-weight: 600; }
