/* 台州府城·根脉临海 — 宣纸墨韵版式 */
:root {
  --paper: #f2ede3;
  --paper-card: #fbf8f0;
  --paper-deep: #ece5d7;
  --ink: #26221d;
  --ink-soft: #6f6558;
  --line: #dcd2bf;
  --line-soft: #e8e0d1;
  --seal: #a3312a;
  --seal-deep: #82251f;
  --seal-soft: #f2e3df;
  --jade: #46665b;
  --gold: #a38450;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(163,132,80,.05) 0, transparent 42%),
    radial-gradient(circle at 82% 68%, rgba(70,102,91,.04) 0, transparent 46%),
    repeating-linear-gradient(0deg, rgba(120,105,80,.018) 0, rgba(120,105,80,.018) 1px, transparent 1px, transparent 4px);
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 30px; }

/* 报头 */
.masthead {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(251,248,240,.85);
  padding: 30px 0 0;
}
.masthead::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--seal-deep), var(--seal) 45%, var(--gold));
}
.masthead::after {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px;
  background: var(--gold); opacity: .5;
}
.masthead .wrap { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 22px; }
.brand { display: flex; align-items: center; gap: 20px; }
.seal {
  width: 64px; height: 64px; flex: 0 0 64px;
  border: 2px solid var(--seal); border-radius: 3px;
  color: #fffdf7; background: var(--seal);
  display: flex; align-items: center; justify-content: center;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 18px; font-weight: 700; letter-spacing: 2px;
  line-height: 1.12; text-align: center;
  box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255,253,247,.55);
  transform: rotate(-2deg);
}
h1 {
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 2.25rem; margin: 0; letter-spacing: 4px; line-height: 1.3; font-weight: 700;
}
.sub { margin: 8px 0 0; color: var(--ink-soft); font-size: .95rem; letter-spacing: 2px; }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a {
  display: inline-block; padding: 10px 13px; text-decoration: none;
  color: var(--ink-soft); font-size: .92rem; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover { color: var(--seal); }
nav a.active { color: var(--seal); border-bottom-color: var(--seal); font-weight: 700; }
nav a.soon { color: #aaa39a; cursor: default; }

/* 主体 */
main { padding: 46px 0 76px; }
section { margin-bottom: 56px; }
h2 {
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 1.5rem; margin: 0 0 24px; letter-spacing: 2px;
  padding-left: 16px; border-left: 4px solid var(--seal); line-height: 1.4;
}
h3 { font-size: 1.08rem; margin: 0 0 8px; letter-spacing: .5px; }
p { margin: 0 0 14px; }
.lead {
  font-size: 1.08rem; line-height: 2; color: var(--ink-soft);
  background: var(--paper-card); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); padding: 16px 22px;
  margin: 0 0 40px; position: relative;
}
.lead::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid var(--line-soft); pointer-events: none;
}
.lead strong { color: var(--seal); }
.muted { color: var(--ink-soft); font-size: .92rem; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper-card); border: 1px solid var(--line);
  padding: 22px 24px; position: relative;
}
.card::after {
  content: ""; position: absolute; top: 5px; right: 5px; bottom: 5px; left: 5px;
  border: 1px solid var(--line-soft); pointer-events: none;
}
.card p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.85; }
.card .kicker { display: block; color: var(--seal); font-size: .78rem; letter-spacing: 2px; margin-bottom: 6px; }

/* 边界声明 */
.boundary { counter-reset: b; }
.boundary .card { padding-left: 62px; }
.boundary .card::before {
  counter-increment: b; content: "0" counter(b);
  position: absolute; left: 22px; top: 22px;
  color: var(--seal); font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 1.35rem; font-weight: 700;
}

/* 文脉四向 */
.axis { text-align: center; border-top: 3px solid var(--jade); }
.axis .dir {
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 1.35rem; color: var(--jade); font-weight: 700; display: block; margin-bottom: 4px; letter-spacing: 3px;
}
.axis .path { font-size: .86rem; color: var(--ink-soft); }

/* 数字 */
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: center; }
.numbers div { border-top: 1px solid var(--seal); padding-top: 14px; }
.numbers b {
  display: block; font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 1.85rem; color: var(--seal); line-height: 1.2;
}
.numbers span { font-size: .8rem; color: var(--ink-soft); }

/* 时间轴 */
.timeline { border-left: 2px solid var(--line); margin-left: 10px; padding-left: 28px; }
.timeline .item { position: relative; margin-bottom: 24px; }
.timeline .item::before {
  content: ""; position: absolute; left: -34px; top: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--seal); border: 2px solid var(--paper);
}
.timeline .year { color: var(--seal); font-weight: 700; margin-right: 12px; }
.timeline .item p { margin: 2px 0 0; color: var(--ink-soft); font-size: .93rem; }

/* 列表 */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 11px 0 11px 22px; border-bottom: 1px dashed var(--line); position: relative; }
ul.clean li::before { content: "·"; position: absolute; left: 5px; color: var(--seal); font-weight: 700; }

/* 表格 */
table { width: 100%; border-collapse: collapse; background: var(--paper-card); margin: 18px 0; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
th { background: var(--seal-soft); color: var(--seal-deep); font-weight: 700; letter-spacing: 1px; }

/* 提示与标签 */
.notice {
  background: var(--seal-soft); border-left: 3px solid var(--seal);
  padding: 16px 20px; color: var(--ink); font-size: .94rem; margin: 18px 0;
}
.tag {
  display: inline-block; font-size: .74rem; letter-spacing: 1px;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 2px 8px; margin-right: 8px; color: var(--ink-soft);
}
.tag.hold { color: var(--seal); border-color: var(--seal); }

/* 本站立场 · 首屏（立轴式） */
.stance-banner {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--seal);
  border-bottom: 5px solid var(--seal);
  padding: 34px 40px 28px;
  position: relative;
  box-shadow: 0 8px 26px rgba(90,70,45,.10);
}
.stance-banner::before {
  content: "临"; position: absolute; right: 24px; top: 44px;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 8rem; color: var(--seal); opacity: .05; line-height: 1; pointer-events: none;
}
.stance-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stance-top .kicker { color: var(--seal); font-size: .85rem; letter-spacing: 5px; font-weight: 700; }
.stance-seal {
  border: 1px solid var(--seal); color: var(--seal);
  padding: 5px 14px; font-size: .8rem; letter-spacing: 2px; transform: rotate(-1deg);
}
.stance-motto {
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 2.5rem; line-height: 1.5; letter-spacing: 6px; color: var(--seal-deep);
  border: none; padding: 0; margin: 20px 0 16px; text-align: center; font-weight: 700;
}
.stance-lead { font-size: 1.05rem; line-height: 1.95; max-width: 720px; margin: 0 auto 24px; text-align: center; }
.stance-lead strong { color: var(--seal); }
.stance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.stance-grid div { background: var(--paper-card); padding: 16px 12px; text-align: center; border-right: 1px solid var(--line); }
.stance-grid div:last-child { border-right: none; }
.stance-grid b {
  display: block; color: var(--seal-deep); font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 5px;
}
.stance-grid span { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }
.stance-foot { text-align: center; margin: 20px 0 0; font-size: .82rem; color: var(--ink-soft); }

/* 投票箱与立柱图 */
.vote-section { background: var(--paper-card); border: 1px solid var(--seal); padding: 28px 30px; position: relative; }
.vote-section::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--seal-soft); pointer-events: none;
}
.vote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.vote-head h2 { margin-bottom: 8px; }
.vote-head .kicker { color: var(--seal); font-size: .82rem; letter-spacing: 3px; }
.ref-badge {
  display: inline-block; border: 2px solid var(--seal); color: var(--seal);
  background: var(--seal-soft); padding: 8px 16px; font-weight: 700;
  letter-spacing: 2px; border-radius: 2px; transform: rotate(-2deg); white-space: nowrap;
}
.chart-card { background: var(--paper-deep); border: 1px solid var(--line); padding: 20px 24px; margin: 20px 0 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chart-total { color: var(--seal); font-size: .95rem; font-weight: 700; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 36px; height: 100px; padding-top: 8px; }
.bars-large { height: 200px; gap: 110px; }
.bar-col { width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-num { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.bars-large .bar-num { font-size: 2.3rem; color: var(--seal); }
.bar-track { width: 100%; flex: 1; display: flex; align-items: flex-end; border-bottom: 2px solid var(--ink-soft); }
.bar-fill { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; transition: height .4s ease; }
.bar-fill.support { background: linear-gradient(180deg, #bb4b40, #8d2d26); }
.bar-fill.oppose { background: linear-gradient(180deg, #6c8277, #3e4a44); }
.bar-label { margin-top: 7px; font-size: .9rem; color: var(--ink-soft); letter-spacing: 3px; }
.bar-empty { text-align: center; margin-top: 6px; font-size: .8rem; }
.verdict {
  margin-top: 12px; text-align: center; font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 1.7rem; font-weight: 700; letter-spacing: 5px; color: var(--ink-soft);
}
.verdict.support { color: var(--seal); }
.verdict.oppose { color: var(--jade); }
.verdict span { font-family: "Songti SC", "SimSun", serif; font-size: .9rem; font-weight: 400; letter-spacing: 1px; margin-left: 14px; }
.vote-login { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
button {
  font-family: inherit; font-size: .9rem; padding: 9px 17px; border: 1px solid var(--jade);
  background: var(--jade); color: #fff; border-radius: 2px; cursor: pointer;
}
button:hover:not(:disabled) { opacity: .88; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.vote-s { background: var(--seal); border-color: var(--seal); }
button.vote-o { background: var(--jade); border-color: var(--jade); }
.vote-subtitle { margin: 30px 0 14px; padding-left: 12px; border-left: 3px solid var(--jade); font-size: 1.25rem; }
.vote-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vote-topic { background: var(--paper-deep); border: 1px solid var(--line); padding: 18px 20px; }
.vt-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vt-head h3 { line-height: 1.5; }
.vt-tag { font-size: .72rem; color: var(--seal); border: 1px solid var(--seal); padding: 2px 6px; white-space: nowrap; }
.vt-body { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.vt-body .bars { flex: 0 0 152px; height: 82px; gap: 14px; }
.vt-body .bar-col { width: 52px; }
.vt-body .bar-num { font-size: 1rem; }
.vt-actions { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vt-actions button { padding: 7px 13px; }
.vt-actions p { width: 100%; margin: 0; font-size: .78rem; }

/* 专题页页头 */
.topic-hero { padding: 8px 0 26px; border-bottom: 3px solid var(--seal); margin-bottom: 26px; }
.topic-hero .kicker { color: var(--seal); letter-spacing: 4px; font-size: .82rem; }
.topic-hero h2 { font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif; font-size: 2.5rem; margin: 10px 0 6px; color: var(--seal-deep); letter-spacing: 3px; }
.topic-sub { font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; font-size: 1.25rem; color: var(--ink); margin: 0 0 14px; }
.topic-hero a { color: var(--seal); }
.topic-links .card p a { color: var(--seal); font-weight: 700; }
.topic-entry { color: var(--seal); font-weight: 700; font-size: .88rem; }

/* 区位示意图 */
.loc-figure { margin: 22px 0 6px; text-align: center; }
.loc-figure img {
  display: block; margin: 0 auto; width: 100%; max-width: 420px; height: auto;
  border: 1px solid var(--line); box-shadow: 0 3px 14px rgba(60,40,30,.10);
}
.loc-figure figcaption {
  margin-top: 10px; font-size: .84rem; color: var(--muted); line-height: 1.7;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--line); background: rgba(251,248,240,.8);
  padding: 28px 0 38px; color: var(--ink-soft); font-size: .86rem;
}
footer p { margin: 5px 0; }

@media (max-width: 760px) {
  .brand-logo { display: none; }
  .brand-mobile {
    position: static; width: auto; height: auto; margin: 0; padding: 0;
    overflow: visible; clip: auto; white-space: normal; border: 0;
    display: flex; align-items: center; gap: 10px;
  }
  .brand-mark { width: 48px; height: 48px; }
  h1 { font-size: clamp(1.05rem, 4.6vw, 1.4rem); letter-spacing: .5px; white-space: nowrap; }
  .sub { font-size: .72rem; letter-spacing: 0; white-space: nowrap; margin-top: 4px; }

  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .brand { gap: 10px; }
  .seal { width: 52px; height: 52px; flex-basis: 52px; font-size: 15px; }
  h1 { font-size: clamp(1.15rem, 5.2vw, 1.5rem); letter-spacing: 1px; white-space: nowrap; }
  .sub { letter-spacing: 1px; }
  .masthead { padding-top: 24px; }
  main { padding-top: 32px; }
  .stance-banner { padding: 24px 20px 22px; }
  .stance-banner::before { font-size: 4rem; right: 8px; top: 16px; opacity: .03; }
  .stance-motto { font-size: 1.6rem; letter-spacing: 3px; }
  .stance-grid { grid-template-columns: repeat(2, 1fr); }
  .stance-grid div { border-bottom: 1px solid var(--line); }
  .stance-grid div:nth-child(2n) { border-right: none; }
  .vote-section { padding: 22px 18px; }
  .vote-topics { grid-template-columns: 1fr; }
  .vt-body { flex-direction: column; align-items: stretch; }
  .vt-body .bars { flex: auto; }
  .bars-large { gap: 56px; height: 160px; }
  .ref-badge { font-size: .9rem; }
  .topic-hero h2 { font-size: 1.85rem; letter-spacing: 1px; }
  .topic-sub { font-size: 1.05rem; }
  .numbers { gap: 10px; }
  .numbers b { font-size: 1.5rem; }
}

/* 府城档案：分板块导览 */
.section-index {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px;
  padding: 16px 18px; background: #faf6ec; border: 1px solid var(--line); border-radius: 4px;
}
.section-index a {
  font-size: .92rem; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: #2b2622; text-decoration: none; background: #fff;
}
.section-index a:hover { background: #9b2f2f; color: #fff; border-color: #9b2f2f; }
h3.subhead {
  margin: 30px 0 14px; font-size: 1.15rem; color: #2b2622;
  border-left: 3px solid #9b2f2f; padding-left: 12px;
}
@media (max-width: 760px) {
  .section-index { padding: 12px; gap: 8px; margin-top: 18px; }
  .section-index a { font-size: .85rem; padding: 5px 10px; }
  h3.subhead { font-size: 1.05rem; }
}

/* 官方站标（2026-12-01） */
.brand-link { display: inline-flex; text-decoration: none; line-height: 0; }
.brand-logo { display: block; width: 440px; max-width: 100%; height: auto; }
/* 桌面端保留 h1 语义但不重复显示站名 */
.brand-mobile {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.brand-mark { display: block; width: 54px; height: 54px; object-fit: contain; }
/* 窄屏用图形标＋文字站名（高特异性，确保覆盖上方基础样式） */
@media (max-width: 760px) {
  .masthead .brand-logo { display: none; }
  .masthead .brand-mobile {
    position: static; width: auto; height: auto; margin: 0; padding: 0;
    overflow: visible; clip: auto; white-space: normal; border: 0;
    display: flex; align-items: center; gap: 10px;
  }
  .masthead .brand-mark { width: 48px; height: 48px; }
  .masthead h1 { font-size: clamp(1.05rem, 4.6vw, 1.4rem); letter-spacing: .5px; white-space: nowrap; }
  .masthead .sub { font-size: .72rem; letter-spacing: 0; white-space: nowrap; margin-top: 4px; }
}

/* 转发素材包（2026-12-01） */
.kit-img { display: block; width: 100%; max-width: 420px; height: auto; margin: 14px auto;
  border: 1px solid #ddd2bd; border-radius: 6px; background: #fff; }
.kit-qr { max-width: 240px; }
.url-line { font-size: 1.05rem; word-break: break-all; line-height: 1.9;
  padding: 14px 18px; background: #faf6ee; border-left: 3px solid #8c2f2f; border-radius: 3px; }
.copy-block textarea { width: 100%; box-sizing: border-box; padding: 14px 16px;
  font: 15px/1.85 "Microsoft YaHei", sans-serif; color: #2b2b2b; background: #faf6ee;
  border: 1px solid #ddd2bd; border-radius: 4px; resize: vertical; }
.copy-btn { padding: 9px 20px; font-size: .95rem; color: #fff; background: #8c2f2f;
  border: 0; border-radius: 3px; cursor: pointer; }
.copy-btn:hover { background: #6f2424; }
.copy-hint { margin-left: 12px; color: #8c2f2f; font-size: .9rem; }
.steps { padding-left: 22px; line-height: 2; }
.steps li { margin-bottom: 10px; }
