/* 研录 —— 个人金融研究档案
   两条规矩：
   1) 全站只有两个颜色，且只表示涨跌（红涨绿跌，中国习惯），其余全是灰阶；
   2) 正文用宋体（读研报的传统），界面用黑体（工具的性格）。
*/

:root {
  --ground: #D8D9D6;
  --surface: #FBFBFA;
  --surface-2: #F0F0ED;
  --surface-3: #E7E7E3;
  --ink: #141618;
  --ink-2: #474B4D;
  --ink-3: #7C8083;
  --rule: #BFBFBA;
  --rule-2: #D9D9D4;
  --up: #9E2B20;
  --down: #256650;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --maxw: 1080px;
  --maxw-read: 1400px;
  --measure: 884px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #D5D8D2; color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  border-bottom: 1px solid var(--rule-2);
  background: var(--surface);
}
.topbar-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  width: 11px; height: 11px;
  border: 1px solid var(--ink);
  border-right-width: 4px;
  display: inline-block;
  transform: translateY(1px);
}
.brand-name {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.topnav { display: flex; gap: 22px; font-family: var(--sans); font-size: 13px; }
.topnav a { color: var(--ink-3); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--ink); }
.topnav a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 容器 ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 96px;
}
.shell-report { max-width: var(--maxw-read); padding-left: 56px; padding-right: 56px; }
.shell-narrow { max-width: 720px; }

/* ---------- 首页：引言 ---------- */
.lede { padding: 56px 0 40px; border-bottom: 1px solid var(--rule-2); }
.intro {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.75;
  max-width: 30em;
  margin: 0 0 20px;
  color: var(--ink);
}
.lede-focus {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.tk {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 7px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- 筛选 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans);
  font-size: 12.5px;
}
.filters-gap { width: 14px; }
.chip {
  padding: 4px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  color: var(--ink-2);
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- 报告流 ---------- */
.feed { padding-top: 8px; }
.feed-count {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin: 16px 0 0;
}
.entries { list-style: none; margin: 0; padding: 0; }
.month {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 34px 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
}
.month::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-2);
}

.entry {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule-2);
  transition: background .15s;
}
.entry:hover { background: var(--surface-2); }
.entry:hover .entry-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.entry-side {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry-side time { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.cat {
  align-self: flex-start;
  padding: 0 6px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  font-size: 11px;
  color: var(--ink-2);
}
.entry-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.entry-sub {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 30em;
}
.entry-metrics {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
}
.entry-metrics .m { display: inline-flex; align-items: baseline; gap: 5px; }
.entry-metrics .m-k { color: var(--ink-3); font-size: 11.5px; }
.entry-metrics .m-v { font-variant-numeric: tabular-nums; }
.entry-metrics .m-d { font-variant-numeric: tabular-nums; font-size: 11.5px; }
.entry-tags { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--sans); font-size: 11.5px; }
.origin {
  color: var(--ink-2);
}
.tag { color: var(--ink-3); }
.tag::before { content: "#"; opacity: .5; }

.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-3); }

.empty { font-family: var(--sans); font-size: 14px; color: var(--ink-3); padding: 40px 0; }

/* ---------- 报告页头部 ---------- */
.report { padding-top: 34px; }
/* 头部与正文同宽，右侧批注栏保持空白 */
/* 头部不设宽度上限：指标条需要整行；标题/副题各自限宽 */
.report-head { max-width: none; }
.crumbs {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--rule); }

.report-head h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 26em;
}
.report-sub {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 46em;
}
.byline {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.byline time { font-variant-numeric: tabular-nums; }

/* 关键指标条 */
.metrics {
  list-style: none;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 24px;
}
.metrics li { display: flex; flex-direction: column; gap: 3px; }
.mk { font-family: var(--sans); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.mv {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.md { font-family: var(--sans); font-size: 12px; font-variant-numeric: tabular-nums; }

/* 工具条 */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-2);
}
.btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.solid:hover { background: #000; color: #fff; }
.btn.on { background: var(--surface-3); border-color: var(--ink-3); color: var(--ink); }
.btn.ghost { border-color: transparent; color: var(--ink-3); }
.btn.ghost:hover { border-color: var(--rule); color: var(--ink); }

/* ---------- 正文 + 批注栏 ---------- */
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: start;
  padding: 44px 0 0;
}

.report-body { font-size: 17px; line-height: 1.95; }
/* 文字块保持窄栏，表格可以占满整块正文轨道（宽表不掉进横向滚动） */
.report-body > * { max-width: var(--measure); }
.report-body > .tbl { max-width: var(--measure); }
.report-body p { margin: 0 0 1.15em; text-align: justify; }
.report-body h2 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 2.6em 0 1em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule-2);
  scroll-margin-top: 90px;
}
.report-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.report-body h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  margin: 2em 0 .7em;
  color: var(--ink);
  line-height: 1.6;
}
.report-body ul, .report-body ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.report-body li { margin: 0 0 .5em; text-align: justify; }
.report-body ol > li::marker { font-family: var(--sans); font-size: .85em; color: var(--ink-3); }
.report-body strong { font-weight: 700; }
.report-body code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  padding: .1em .35em;
  border-radius: 2px;
}
.report-body hr { border: 0; border-top: 1px solid var(--rule-2); margin: 2.4em 0; }

/* 图表 */
.report-body > .fig { max-width: var(--measure); margin: 2.1em 0 2.3em; }
.report-body .fig { width: 100%; }
.report-body .fig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule-2);
}
.report-body .fig figcaption {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-top: .7em;
  padding-left: 1px;
}
.report-body .fig + .fig { margin-top: -0.9em; }

/* 数字高亮：红涨绿跌 */
.report-body .up, .tbl .up { color: var(--up); }
.report-body .down, .tbl .down { color: var(--down); }
.report-body .flat { color: var(--ink-2); }
.report-body .num-key {
  font-weight: 700;
  border-bottom: 1px dotted var(--ink-3);
  padding-bottom: 1px;
}
.report-body .num-key.up { border-bottom-color: rgba(158, 43, 32, .55); }
.report-body .num-key.down { border-bottom-color: rgba(37, 102, 80, .55); }

/* 表格 */
.tbl { margin: 1.5em 0 1.9em; overflow-x: auto; }
.report-body table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.report-body thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 0 7px 18px;
  border-bottom: 1px solid var(--ink);
  line-height: 1.35;
  min-width: 4.1em;
}
.report-body tbody td {
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink-2);
}
.report-body thead th:first-child,
.report-body tbody td:first-child { padding-left: 0; }
.report-body tbody td:first-child { min-width: 7.5em; }
.report-body tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.report-body tbody td:first-child { color: var(--ink); }

/* 注释块 */
.report-body .note {
  margin: 0 0 1.9em;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.8;
}
.report-body .note p { margin: 0; white-space: pre-line; text-align: left; }

/* 批注高亮 */
.report-body mark.hl {
  background: transparent;
  color: inherit;
  border-bottom: 1px solid rgba(158, 43, 32, .45);
  cursor: pointer;
  transition: background .15s;
}
.report-body mark.hl:hover, .report-body mark.hl.active { background: rgba(158, 43, 32, .09); }

/* 批注栏 */
.annot-rail {
  position: relative;
  font-family: var(--sans);
  font-size: 12.5px;
  /* 右侧这列是留给批注的空白，用一条极浅的竖线把它与正文分开 */
  border-left: 1px solid var(--rule-2);
  padding-left: 26px;
}
.rail-title {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 8px;
}
.rail-count { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rail-list { position: relative; }
.annot {
  border-left: 1px solid var(--rule);
  padding: 0 0 0 12px;
  margin-bottom: 18px;
  transition: border-color .15s;
}
.annot:hover, .annot.active { border-left-color: var(--up); }
.annot-quote {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.annot-quote::before { content: "「"; }
.annot-quote::after { content: "」"; }
.annot-body { margin: 0 0 5px; font-family: var(--serif); font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.annot-meta {
  margin: 0;
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}
.annot-meta time { font-variant-numeric: tabular-nums; }
.annot-act {
  border: 0; background: none; color: var(--ink-3);
  font-size: 10.5px; cursor: pointer; padding: 0 1px;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.annot-act:hover { color: var(--ink); text-decoration: underline; }
.annot-act + .annot-act { margin-left: 2px; }
.annot-del { color: var(--up); }
.annot-del:hover { color: var(--up); }
.annot-meta .edited { color: var(--ink-3); font-style: italic; }
.annot-edit { margin: 0 0 6px; }
.annot-edit textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 6px 8px;
  resize: vertical;
}
.annot-edit textarea:focus { outline: none; border-color: var(--ink-3); }
.annot-edit-actions { display: flex; gap: 8px; margin-top: 6px; }
.annot-edit-actions button {
  font: inherit;
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid var(--rule-2);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 2px;
}
.annot-edit-actions .ae-save { background: var(--ink); border-color: var(--ink); color: #fff; }
.annot-edit-actions button:disabled { opacity: 0.5; cursor: default; }
.rail-hint {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-3);
  border-top: 1px dashed var(--rule-2);
  padding-top: 10px;
}
.annot-rail.is-positioned .annot { position: absolute; left: 0; right: 0; margin-bottom: 0; }

/* 选中后浮出的按钮 */
.annot-pop { position: fixed; z-index: 40; }
.annot-pop-btn {
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 11px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

/* 批注编辑面板 */
.annot-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 22, 24, .28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}
.sheet-in {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 20px;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  border-left: 2px solid var(--rule);
  padding-left: 10px;
  max-height: 4.6em;
  overflow: auto;
}
.sheet-actions { display: flex; gap: 8px; align-items: center; }

.pill {
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.5;
  padding: 0 5px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-2);
}
.pill.admin { border-color: var(--ink); color: var(--ink); }
.pill.reply { border-color: var(--rule-2); color: var(--ink-3); }

/* ---------- 评论 ---------- */
.comments { padding: 20px 0 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.sec-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 26px 0 20px;
}
.c-list { list-style: none; margin: 0 0 34px; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
.comment.pinned { background: var(--surface-2); padding-left: 14px; padding-right: 14px; }
.c-head {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
}
.c-name { color: var(--ink); font-weight: 600; }
.c-head time { font-variant-numeric: tabular-nums; margin-left: auto; }
.c-body { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--ink); text-align: justify; }
.c-tools { display: flex; gap: 8px; }
.c-tools button {
  border: 0; background: none; padding: 0;
  font-family: var(--sans); font-size: 11px; color: var(--ink-3);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.c-tools button:hover { color: var(--ink); }
.empty-c { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin: 0 0 30px; }

.c-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.c-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.c-form-hint { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); }
.c-form-actions { display: flex; align-items: center; gap: 12px; }
.c-form-msg { font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
.c-form-msg.err { color: var(--up); }

input[type="text"], textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--surface);
  transition: border-color .15s;
}
input[type="text"] { max-width: 260px; }
textarea { resize: vertical; line-height: 1.7; }
input[type="text"]:focus, textarea:focus { border-color: var(--ink-3); outline: none; }
::placeholder { color: var(--ink-3); opacity: .8; }

/* ---------- 关于 / 通用正文 ---------- */
.prose { padding-top: 56px; font-size: 17px; line-height: 1.95; max-width: 36em; }
.prose h1 {
  font-family: var(--sans); font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0 0 28px; line-height: 1.4;
}
.prose h2 {
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  margin: 2.4em 0 .8em; padding-top: 1.2em; border-top: 1px solid var(--rule-2);
}
.prose p { margin: 0 0 1.15em; text-align: justify; }
.prose-note { color: var(--ink-3); font-size: 15px; }
.admin-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 1.2em; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--rule-2); background: var(--surface-2); }
.foot-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 32px 44px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.foot-in p { margin: 0; }
.foot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.foot-icp { font-size: 11px; letter-spacing: .02em; }
.foot-icp a { color: var(--ink-3); text-decoration: none; }
.foot-icp a:hover, .foot-icp a:focus-visible { color: var(--ink); text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .annot-rail {
    border-left: 0;
    padding-left: 0;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--rule-2);
  }
  .annot-rail.is-positioned .annot { position: static; }
  .rail-list { display: flex; flex-direction: column; gap: 0; }
}

@media (max-width: 720px) {
  .topbar-in, .shell, .shell-report, .foot-in { padding-left: 20px; padding-right: 20px; }
  .foot-meta { align-items: flex-start; text-align: left; }
  .shell { padding-bottom: 64px; }
  .lede { padding: 36px 0 28px; }
  .brand-sub { display: none; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .entry-side { flex-direction: row; align-items: center; gap: 10px; padding-top: 0; }
  .entry-title { font-size: 18px; }
  .report-head h1 { font-size: 25px; }
  .report-body { font-size: 16.5px; line-height: 1.9; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mv { font-size: 19px; }
  .byline { gap: 6px 14px; }
  .report-body table { font-size: 12px; }
  .annot-sheet { padding: 0; }
  .sheet-in { width: 100%; }
}

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

/* ============================================================
   门户首页：银白为主、浅蓝为辅、金黄点缀
   浅蓝做 45° 条纹，雨滴带阴影沿 45° 斜落
   ============================================================ */
.portal-body {
  --p-silver-0: #ffffff;
  --p-silver-1: #f5f7fa;
  --p-silver-2: #e7edf2;
  --p-silver-3: #d2dbe3;
  --p-blue: #5c93b8;
  --p-blue-ink: #2c6386;
  --p-gold: #c2a03a;
  --p-gold-ink: #8a7020;
  --p-ink: #0e151a;
  --p-ink-2: #4a5a67;
  background: var(--p-silver-1);
  color: var(--p-ink);
}
.portal-body .topbar { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); }
.portal-body .foot { background: transparent; border-top: 1px solid var(--p-silver-3); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 46vh, 500px);
  display: flex;
  align-items: center;
  padding: 76px 32px 68px;
  background: radial-gradient(120% 92% at 50% -12%, #eaf3fb 0%, #d6e7f4 46%, #c3daea 100%);
  border-bottom: 1px solid var(--p-silver-3);
}
.hero-stripes {
  position: absolute;
  inset: -32% -12% 24% -12%;
  background: repeating-linear-gradient(
    45deg,
    rgba(214, 236, 249, 0) 0 30px,
    rgba(226, 242, 252, 0.62) 30px 32px
  );
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0) 94%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0) 94%);
  pointer-events: none;
}
.hero-rain { position: absolute; inset: 0; pointer-events: none; }

/* 右侧毛笔花：纯 SVG，墨色，落下后像刚干透 */
.hero-ink {
  position: absolute;
  top: 2.4%;
  right: 2.2%;
  width: clamp(250px, 26vw, 366px);
  pointer-events: none;
  z-index: 1;
  /* 原图是白底水墨，用正片叠底把白底让给蓝色背景 */
  mix-blend-mode: multiply;
  opacity: 0;
  animation: ink-dry 2.4s ease-out 0.2s forwards;
}
.hero-ink img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.03);
  /* 边缘再压一层柔化，避免出现生硬的矩形边界 */
  -webkit-mask-image: radial-gradient(68% 68% at 50% 46%, #000 44%, transparent 94%);
  mask-image: radial-gradient(68% 68% at 50% 46%, #000 44%, transparent 94%);
}
@keyframes ink-dry {
  from { opacity: 0; filter: blur(8px) saturate(0.6); }
  to { opacity: 0.93; filter: blur(0) saturate(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ink { opacity: 0.93; animation: none; }
}
/* 窄屏：墨花缩到右上角，让开标题 */
@media (max-width: 760px) {
  /* 手机上给上半屏留足高度，毛笔才能完整露出来又不压字 */
  .hero { min-height: 520px; }
  .hero-ink {
    width: 152px;
    top: -4px;
    right: 4px;
    opacity: 0.92;
  }
}
.drop {
  position: absolute;
  top: -18%;
  left: var(--x);
  width: var(--w);
  height: var(--h);
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: linear-gradient(180deg, #e4f2fb 0%, #a9d1e8 26%, #5f9cc4 68%, #3a6d92 100%);
  box-shadow: 2px 3px 6px rgba(30, 74, 105, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  rotate: 45deg;
  translate: 0 0;
  opacity: 0;
  animation: drop-fall var(--dur) linear var(--delay) infinite;
  will-change: translate, opacity;
}
.drop--far { filter: blur(0.7px); }
.drop--near {
  box-shadow: 4px 5px 10px rgba(28, 72, 102, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}
.drop::after {
  content: '';
  position: absolute;
  left: 24%;
  top: 56%;
  width: 26%;
  height: 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}
@keyframes drop-fall {
  0% { translate: 0 0; opacity: 0; }
  6% { opacity: var(--o); }
  88% { opacity: var(--o); }
  100% { translate: -118vh 118vh; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .drop { animation: none; opacity: 0.32; translate: -22vh 22vh; }
}

.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; }
.hero-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(29px, 3.9vw, 52px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: var(--p-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.hero-brand { position: relative; color: var(--p-gold-ink); padding: 0 0.06em; }
.hero-brand::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 2px;
  background: linear-gradient(90deg, var(--p-gold), rgba(194, 160, 58, 0));
}
.hero-sub {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--p-ink-2);
}

.gateways { max-width: 1180px; margin: 0 auto; padding: 60px 32px 96px; }
.gate-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.gate-hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--p-ink-2);
  white-space: nowrap;
}
.gate-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--p-silver-3), rgba(210, 219, 227, 0)); }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 38px 34px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--p-silver-3);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gate::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--p-gold);
}
.gate:hover,
.gate:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(194, 160, 58, 0.55);
  box-shadow: 0 22px 46px -20px rgba(44, 99, 134, 0.42);
  outline: none;
}
.gate-kicker { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.2em; color: var(--p-blue-ink); }
.gate-name {
  margin-top: 13px;
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--p-ink);
}
.gate-meta {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--p-ink-2);
  font-variant-numeric: tabular-nums;
}
.gate-go {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--p-blue-ink);
}
.gate:hover .gate-go { color: var(--p-gold-ink); }

.feed-title {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

@media (max-width: 760px) {
  .gate-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero { padding: 64px 20px 60px; min-height: max(520px, 52vh); }
  .gateways { padding: 40px 20px 64px; }
  .gate { min-height: 190px; padding: 30px 24px 26px; }
  .gate-name { font-size: 34px; }
  .feed-title { font-size: 27px; }
}

/* ── 页脚署名（点击打开联系弹窗） ───────────────────────── */
.foot-brand {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.foot-brand:hover,
.foot-brand:focus-visible {
  color: var(--p-blue-ink);
  border-bottom-color: var(--p-blue-ink);
  outline: none;
}

/* ── 联系弹窗 ─────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-veil {
  position: absolute;
  inset: 0;
  background: rgba(16, 38, 56, 0.46);
  backdrop-filter: blur(7px);
  animation: veil-in 0.18s ease-out;
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-top: 2px solid var(--p-gold);
  padding: 34px 36px 30px;
  box-shadow: 0 40px 90px -28px rgba(10, 36, 56, 0.6);
  animation: card-in 0.22s cubic-bezier(0.22, 0.8, 0.35, 1);
}
.modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 2px;
}
.modal-x:hover { color: var(--ink); background: var(--surface-2); }
.modal-kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--p-blue-ink);
}
.modal-title {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.modal-facts {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans);
  font-size: 13px;
}
.modal-facts > div { display: flex; gap: 14px; padding: 5px 0; }
.modal-facts dt { width: 44px; flex: none; color: var(--ink-3); }
.modal-facts dd { margin: 0; color: var(--ink); }
.modal-facts a { color: var(--p-blue-ink); text-decoration: none; border-bottom: 1px solid rgba(44, 99, 134, 0.35); }
.modal-facts a:hover { border-bottom-color: var(--p-blue-ink); }
.modal-form .modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: block; margin: 0 0 14px; font-family: var(--sans); }
.fld > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.fld input,
.fld textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 9px 11px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
}
.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--p-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92, 147, 184, 0.14);
}
.fld textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.modal-hint {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-3);
}
.modal-hint.ok { color: var(--down); }
.modal-hint.err { color: var(--up); }

@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end center; }
  .modal-card { width: 100%; max-height: 92vh; padding: 28px 22px 24px; }
  .modal-form .modal-row { grid-template-columns: 1fr; gap: 0; }
}
