/*
 * 桃园雅集水墨视觉系统 · V10
 * 全站共享：宣纸、墨色、朱砂、旧铜与水墨青。
 */
@font-face {
  font-family: "WenKai UI";
  src: url("/assets/fonts/wenkai-ui.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --paper: #f7f2e8;
  --paper-2: #fcfaf5;
  --panel: #eee5d4;
  --wash: #efe7d9;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --muted: #6f6a61;
  --faint: #70695f;
  --rule: #1a1a1a;
  --rule-soft: rgba(74, 58, 37, .18);
  --rule-mid: rgba(74, 58, 37, .29);
  --red: #b23a28;
  --neg: #b23a28;
  --pos: #2f4a43;
  --neu: #9b907f;
  --blue: #2f4a43;
  --cyan: #7ba38e;
  --bronze: #9a6e2e;
  --bronze-deep: #6f491d;
  --bronze-light: #c4a66a;
  --serif: "Songti SC", "STSong", "Source Han Serif CN", "Noto Serif CJK SC", SimSun, Georgia, serif;
  --display: "Kaiti SC", "STKaiti", KaiTi, "楷体", "WenKai UI", "Songti SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
}

html {
  width: 100%;
  overflow-x: hidden;
  color-scheme: only light;
  background: #f7f2e8;
  forced-color-adjust: none;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(154, 110, 46, .08), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(47, 74, 67, .07), transparent 31rem),
    linear-gradient(180deg, #fbf8f1 0%, #f7f2e8 36%, #f1e9dc 100%);
  font-family: var(--serif);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  forced-color-adjust: none;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .32;
  background-image:
    repeating-linear-gradient(2deg, transparent 0, transparent 4px, rgba(70, 53, 31, .014) 5px),
    repeating-linear-gradient(91deg, transparent 0, transparent 7px, rgba(70, 53, 31, .012) 8px);
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: var(--sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 首页 · 桌面 ---------- */
.wrap {
  max-width: 1360px;
  padding: 18px 28px 44px;
}

.masthead {
  position: relative;
  border-bottom: 0;
  padding-bottom: 11px;
}

.masthead::after {
  display: block;
  width: min(390px, 62vw);
  height: 1px;
  margin: 16px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.pre-rule {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 13px;
  color: var(--bronze);
  font-size: 10px;
  letter-spacing: .16em;
}

.pre-rule::before,
.pre-rule::after {
  display: none;
}

.pre-rule .live-tag {
  color: var(--red);
}

.pre-actions {
  padding-right: 76px;
}

.nameplate {
  margin: 5px 0 2px;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 70px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.08;
}

.nameplate-zh {
  margin: 7px 0 10px;
  padding-left: .7em;
  color: var(--ink-2);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .7em;
}

.dateline {
  border-top: 1px solid rgba(26, 26, 26, .72);
  border-bottom: 1px solid rgba(26, 26, 26, .72);
  padding: 6px 3px;
  background: rgba(252, 250, 245, .36);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .04em;
}

.subscribe-cta {
  border-color: var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--sans);
}

.subscribe-cta:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.mode-toggle {
  border: 1px solid rgba(154, 110, 46, .55);
  border-radius: 999px;
  background: rgba(249, 245, 236, .96);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(48, 38, 24, .11);
}

.mode-toggle:hover {
  background: var(--jade, #2f4a43);
  color: #fff;
}

body:not(.admin-mode) .control {
  display: none;
}

.control {
  border-color: var(--bronze);
  background: rgba(252, 250, 245, .35);
}

select,
.btn {
  border-color: var(--rule-mid);
  border-radius: 0;
  background: rgba(252, 250, 245, .8);
}

.btn.primary {
  border-color: var(--ink);
  background: var(--ink);
}

.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(252, 250, 245, .45);
}

.ticker-label {
  background: var(--pos);
  color: #faf6ee;
  letter-spacing: .12em;
}

.tk-item {
  border-right-color: var(--rule-soft);
}

.tk-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.tk-contract {
  padding: 1px 4px;
  border: 1px solid rgba(154, 110, 46, .42);
  color: var(--bronze-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .02em;
}

.freshness {
  border-bottom-color: var(--rule-mid);
  color: var(--muted);
}

.fresh-badge,
.m-fresh span {
  border-color: var(--rule-mid);
  background: rgba(252, 250, 245, .72);
}

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

.col {
  padding: 0 21px;
}

.col.left,
.col.center {
  border-color: var(--rule-mid);
}

.block {
  border-color: var(--rule-soft);
}

.sec-head,
.m-h {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: none;
}

.sec-head::before,
.m-h::before {
  margin-right: 5px;
  color: var(--red);
  content: "—";
}

.sec-head .en,
.m-h span {
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- 海峡情绪指数 · 司南 ---------- */
.bsi-widget {
  text-align: center;
}

.bsi-watch {
  width: min(100%, 292px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.bsi-watch > img {
  object-fit: contain;
  filter: drop-shadow(0 11px 14px rgba(48, 38, 24, .12));
}

.bsi-dial {
  top: 19.3%;
  left: 19.3%;
  width: 61.4%;
  height: 61.4%;
}

.bsi-dial .sinan-guide {
  fill: none;
  stroke: rgba(154, 110, 46, .25);
  stroke-width: .9;
}

.bsi-dial .sinan-guide.inner {
  stroke: rgba(74, 58, 37, .15);
  stroke-dasharray: 2 5;
}

.bsi-dial .sinan-zone-label {
  fill: rgba(26, 26, 26, .62);
  font-family: var(--display);
  font-size: 8px;
  text-anchor: middle;
}

.bsi-dial .sinan-zone-label.cold {
  fill: var(--red);
}

.bsi-dial .sinan-zone-label.bear {
  fill: #9b5449;
}

.bsi-dial .sinan-zone-label.calm {
  fill: var(--bronze);
}

.bsi-dial .sinan-zone-label.warm,
.bsi-dial .sinan-zone-label.hot {
  fill: var(--pos);
}

.bsi-needle {
  transform-origin: 100px 100px;
  transition: transform .85s cubic-bezier(.2, .88, .24, 1);
}

.bsi-meta {
  margin-top: 9px;
  color: var(--muted);
  font: 11px/1.65 var(--sans);
}

.bsi-meta::before {
  display: block;
  width: 52px;
  height: 3px;
  margin: 0 auto 10px;
  content: "";
  background: var(--red);
}

.bsi-meta strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .06em;
}

.bsi-change {
  color: var(--red);
}

.bsi-change.up {
  color: var(--pos);
}

.bsi-scale-note {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
}

.bsi-scale-note a {
  border-bottom: 1px solid rgba(154, 110, 46, .45);
  color: var(--bronze);
  text-decoration: none;
}

.bsi-history-wrap {
  margin-top: 17px;
  border-top-color: rgba(154, 110, 46, .31);
}

.bsi-history-head {
  align-items: center;
  gap: 8px;
  color: var(--ink-soft, #4a4a4a);
  font-size: 9px;
}

.bsi-ranges {
  gap: 5px;
}

.bsi-range {
  min-height: 30px;
  border: 1px solid rgba(74, 58, 37, .22);
  border-radius: 999px;
  background: rgba(252, 250, 245, .76);
  color: var(--muted);
  font-size: 9px;
}

.bsi-range.on {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.bsi-history {
  height: 205px;
}

.bsi-strategist {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid var(--rule-soft);
  padding: 5px 2px 0;
  text-align: left;
}

.bsi-strategist img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center bottom;
}

.bsi-strategist strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
}

.bsi-strategist span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.55;
}

.index-foot {
  border-top: 1px solid var(--rule-soft);
  padding-top: 9px;
}

/* ---------- 舆情流、趋势与报告 ---------- */
.lead-kicker {
  color: var(--red);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: none;
}

.lead-policy {
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 9px;
}

.item {
  border-color: var(--rule-soft);
}

.item .headline,
.item .zh,
.mf-h,
.mf-zh {
  overflow-wrap: anywhere;
  font-family: var(--serif);
}

.item .headline {
  font-size: 20px;
  line-height: 1.35;
}

.item .zh {
  color: var(--ink-2);
}

.item.priority-high {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(178, 58, 40, .075), transparent 80%);
}

.item.priority-high .headline,
.mf-item.priority-high .mf-h {
  color: var(--red);
}

.priority-flag {
  background: var(--red);
}

.official-flag,
.rel-score {
  border-color: var(--pos);
  color: var(--pos);
}

.channel-tag {
  background: rgba(154, 110, 46, .08);
}

.priority-reason {
  border-left-color: var(--red);
  background: rgba(178, 58, 40, .07);
}

.bulletin {
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  background: transparent;
  padding-right: 2px;
  padding-left: 2px;
}

.topic-row,
.tr-row,
.mt-row {
  border-color: var(--rule-mid);
}

.report-archive {
  border-top: 3px double var(--ink);
}

.report-archive-head h2,
.weekly-public h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .08em;
}

.report-entry,
.report-toggle,
.report-body {
  background: transparent;
}

.report-sheet,
.report-sheet .report-html-root {
  color: var(--ink) !important;
  background: var(--paper) !important;
}

/* 已归档日报带有旧版内联白底；用主题层覆盖而不重写历史数据库。 */
.report-sheet .report-html-root [style*="background:#fff;"],
.report-sheet .report-html-root [style*="background: #fff;"],
.report-sheet .report-html-root [style*="background:#ffffff;"],
.report-sheet .report-html-root [style*="background: #ffffff;"] {
  background: var(--paper-2) !important;
}

.report-toggle:hover {
  background: rgba(154, 110, 46, .045);
}

.report-title,
.weekly-card h3 {
  font-family: var(--serif);
}

.weekly-public {
  border-top-color: var(--red);
}

.weekly-card {
  border: 0;
  border-top: 1px solid var(--rule-mid);
  background: transparent;
  padding-right: 4px;
  padding-left: 4px;
}

.newsletter-card {
  border-top-color: var(--red);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .08), transparent 18rem),
    var(--pos);
  color: #faf6ee;
}

.newsletter-card h2 {
  font-family: var(--display);
  font-weight: 500;
}

.footnote {
  border-color: var(--ink);
}

/* ---------- 法律与口径披露 ---------- */
.legal-disclaimer {
  margin: 28px 0 8px;
  padding: 15px 17px 13px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid rgba(154, 110, 46, .32);
  background: rgba(255, 255, 255, .2);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal-disclaimer .legal-title {
  margin-bottom: 7px;
  color: var(--ink);
  font: 700 9px/1.4 var(--sans);
  letter-spacing: 1.45px;
}

.legal-disclaimer p {
  margin: 0;
  font: 10px/1.75 var(--sans);
}

.legal-disclaimer .legal-classic {
  margin-top: 5px;
  color: var(--ink-2);
  font-family: var(--serif);
  letter-spacing: .05em;
}

/* ---------- 手机首页 ---------- */
body.mode-mobile .wrap {
  max-width: 620px;
  padding-bottom: 82px;
  background: transparent;
}

body.mode-mobile,
body.mode-mobile #mobileView,
body.mode-mobile .m-pages,
body.mode-mobile .m-page,
body.mode-mobile .bsi-widget,
body.mode-mobile .bsi-history-wrap,
body.mode-mobile .bsi-history {
  color-scheme: only light;
  color: var(--ink) !important;
  background-color: var(--paper) !important;
  forced-color-adjust: none;
}

body.mode-mobile .mm-row {
  position: relative;
  flex-wrap: wrap;
  min-width: 0;
  padding: 7px 0;
}

body.mode-mobile .mm-row.has-contract {
  padding-bottom: 24px;
}

body.mode-mobile .mm-n,
body.mode-mobile .mm-v,
body.mode-mobile .mm-chg {
  white-space: nowrap;
}

body.mode-mobile .mm-contract {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  overflow: hidden;
  color: var(--bronze-deep);
  font: 9px/1.35 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mode-mobile .legal-disclaimer {
  margin: 12px 0 2px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, .16) !important;
}

body.mode-mobile .legal-disclaimer p {
  font-size: 10px;
  line-height: 1.72;
}

.m-top {
  border-bottom: 0;
  background: rgba(249, 245, 236, .72);
}

.m-top::after {
  display: block;
  width: 54%;
  height: 1px;
  margin: 10px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.m-name {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: .08em;
}

.m-zh {
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .24em;
}

.m-brand-actions .mode-toggle.sm {
  border: 1px solid rgba(154, 110, 46, .5);
  background: transparent;
  color: var(--ink);
}

.m-ticker {
  border-color: var(--ink);
  background: rgba(252, 250, 245, .48);
}

.m-pages {
  padding-top: 15px;
}

.m-card {
  min-width: 0;
  margin-bottom: 20px;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 0;
  padding: 4px 2px 20px;
  background: transparent;
}

.m-h {
  padding-bottom: 8px;
  font-size: 16px;
}

.m-h2 {
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
}

.mf-item {
  border-color: var(--rule-soft);
}

.mf-item.priority-high {
  background: linear-gradient(90deg, rgba(178, 58, 40, .075), transparent 84%);
}

.mt-group {
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 0;
  padding-right: 2px;
  padding-left: 2px;
}

.mt-h {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.m-tabbar {
  border-top: 1px solid rgba(74, 58, 37, .22);
  background: rgba(249, 245, 236, .97);
  box-shadow: 0 -8px 22px rgba(48, 38, 24, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.m-tab {
  color: var(--faint);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .06em;
}

.m-tab .ic {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 17px;
}

.m-tab.on {
  border-top-color: var(--red);
  color: var(--red);
}

.m-tab.on .ic {
  color: var(--red);
}

body.mode-mobile .bsi-watch {
  width: min(100%, 350px);
}

body.mode-mobile .bsi-history {
  height: 230px;
}

body.mode-mobile .bsi-strategist {
  grid-template-columns: 86px minmax(0, 1fr);
  padding-top: 8px;
}

body.mode-mobile .bsi-strategist img {
  width: 86px;
  height: 86px;
}

body.mode-mobile .bsi-strategist strong {
  font-size: 16px;
}

/* ---------- 独立公开页：订阅、周报、方法论 ---------- */
body > main.page,
body > main.sheet,
body > main:not(.page):not(.sheet) {
  border-top-color: var(--red);
  color: var(--ink);
  background: rgba(252, 250, 245, .72);
  box-shadow: 0 15px 48px rgba(48, 38, 24, .09);
}

body > main.page header,
body > main:not(.page):not(.sheet) header {
  border-bottom-color: var(--ink);
}

body > main.page .brand,
body > main:not(.page):not(.sheet) h1 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .06em;
}

body > main.page .zh,
body > main:not(.page):not(.sheet) .zh {
  font-family: var(--display);
  font-weight: 400;
}

body > main.page .benefits,
body > main.page .privacy,
body > main:not(.page):not(.sheet) .note,
body > main:not(.page):not(.sheet) .formula {
  background: rgba(154, 110, 46, .055);
}

body > main.page .benefit {
  border-left-color: var(--red);
}

body > main.page .tab {
  background: transparent;
}

body > main.page .tab.on,
body > main.page button.action {
  border-color: var(--pos);
  background: var(--pos);
  color: #fff;
}

body > main.page input[type="email"] {
  border-color: var(--rule-mid);
  background: #fffdf8;
}

.sheet {
  background: rgba(252, 250, 245, .78);
}

.nav a,
.home {
  color: var(--ink);
}

/* ---------- 窄屏与可访问性 ---------- */
@media (max-width: 1180px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .col {
    border: 0 !important;
    border-bottom: 1px solid var(--rule-mid) !important;
  }
}

@media (max-width: 760px) {
  body > main.page,
  body > main.sheet,
  body > main:not(.page):not(.sheet) {
    width: 100%;
    margin-top: 0;
    border-top-width: 3px;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 390px) {
  .m-pages {
    padding-right: 12px;
    padding-left: 12px;
  }

  .m-card {
    padding-right: 0;
    padding-left: 0;
  }

  body.mode-mobile .bsi-watch {
    width: min(100%, 330px);
  }

  .bsi-history-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bsi-ranges {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bsi-range {
    min-width: 0;
    padding: 6px 2px;
  }

  .m-markets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 330px) {
  .m-pages {
    padding-right: 9px;
    padding-left: 9px;
  }

  .m-name {
    font-size: 26px;
  }

  body.mode-mobile .bsi-watch {
    width: min(100%, 292px);
  }

  .bsi-strategist {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body.mode-mobile .bsi-strategist img {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 明确锁定浅色宣纸，避免手机 WebView 自动反色。 */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
    --paper: #f7f2e8;
    --paper-2: #fcfaf5;
    --panel: #eee5d4;
    --ink: #1a1a1a;
    --ink-2: #4a4a4a;
    --muted: #6f6a61;
    --faint: #70695f;
  }

  html,
  body {
    color-scheme: only light;
    color: #1a1a1a !important;
    background-color: #f7f2e8 !important;
  }

  .m-top,
  .m-tabbar,
  .m-card,
  .report-entry,
  .report-toggle,
  .report-body,
  .weekly-card,
  .chart-wrap {
    color: #1a1a1a !important;
    background-color: transparent !important;
  }

  body.mode-mobile #mobileView,
  body.mode-mobile .m-pages,
  body.mode-mobile .m-page,
  body.mode-mobile .bsi-widget,
  body.mode-mobile .bsi-history-wrap,
  body.mode-mobile .bsi-history {
    color: #1a1a1a !important;
    background-color: #f7f2e8 !important;
  }

  .report-sheet,
  .report-sheet .report-html-root {
    color: #1a1a1a !important;
    background-color: #f7f2e8 !important;
  }

  .m-tabbar {
    background-color: rgba(249, 245, 236, .97) !important;
  }

  img,
  svg,
  canvas {
    filter: none;
  }
}

/* ==================================================================
   桃园雅集 · 水墨二次改版（2026-07-27）
   纯字司南、双刊签、印章与手机阅读收敛。
   ================================================================== */
.ink-rule {
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 50% 100% at 50% 50%,
    rgba(26, 26, 26, .55),
    rgba(26, 26, 26, .22) 64%,
    transparent
  );
}

.edition-switch {
  max-width: 720px;
  margin: 0 auto 13px;
  font-family: var(--sans);
}

.edition-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .12em;
}

.edition-signs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.edition-sign {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--rule-mid);
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(252, 250, 245, .52);
  text-align: left;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.edition-sign:hover {
  border-color: var(--ink-2);
}

.edition-sign.active.taoyuan {
  border: 1.5px solid var(--red);
  background: rgba(178, 58, 40, .05);
}

.edition-sign.active.hanhai {
  border: 1.5px solid var(--pos);
  background: rgba(47, 74, 67, .055);
}

.edition-seal {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 3px;
  color: var(--red);
  font: 500 18px/1 var(--display);
  transform: rotate(-3deg);
}

.edition-sign.active .edition-seal {
  background: var(--red);
  color: var(--paper-2);
  box-shadow: inset 0 0 6px rgba(60, 8, 0, .3);
}

.edition-sign.active.hanhai .edition-seal {
  background: var(--pos);
  color: var(--paper-2);
  box-shadow: inset 0 0 6px rgba(4, 30, 25, .3);
}

.edition-sign.hanhai .edition-seal {
  border-color: var(--pos);
  color: var(--pos);
}

.edition-sign b,
.edition-sign small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition-sign b {
  font: 500 15px/1.25 var(--display);
}

.edition-sign small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .09em;
}

.edition-sign em {
  border: 1px solid var(--red);
  padding: 1px 4px;
  color: var(--red);
  font: normal 8px/1.4 var(--display);
  transform: rotate(3deg);
}

.edition-sign i {
  color: var(--pos);
  font: normal 15px/1 var(--display);
}

.edition-swap {
  color: var(--faint);
  font: 16px/1 var(--display);
  text-align: center;
}

.mast-status {
  margin-bottom: 7px;
}

.nameplate-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
}

.brand-seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 3px;
  background: var(--red);
  color: var(--paper-2);
  box-shadow: inset 0 0 7px rgba(60, 8, 0, .35);
  font: 500 13px/1.05 var(--display);
  letter-spacing: .08em;
  transform: rotate(-3deg);
}

.sec-head,
.m-h {
  position: relative;
  border-bottom: 0 !important;
  padding-bottom: 12px;
}

.sec-head::after,
.m-h::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(
    ellipse 50% 100% at 50% 50%,
    rgba(26, 26, 26, .5),
    rgba(26, 26, 26, .18) 64%,
    transparent
  );
}

/* 司南 2.0：去盘纯字，数值成为主角。 */
.bsi-focus {
  min-width: 0;
  padding: 9px 4px 5px;
}

.bsi-score-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  min-height: 108px;
}

.bsi-value {
  color: var(--ink);
  font: 400 clamp(76px, 8vw, 96px)/.9 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
}

.bsi-zone-vertical {
  color: var(--red);
  font: 500 19px/1.15 var(--display);
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.bsi-focus-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  min-height: 22px;
  color: var(--faint);
  font: 10px/1.4 var(--sans);
}

.bsi-ink-band {
  position: relative;
  height: 18px;
  margin: 11px 0 4px;
  border-top: 1px solid rgba(74, 58, 37, .16);
  border-bottom: 1px solid rgba(74, 58, 37, .16);
  background:
    linear-gradient(90deg,
      rgba(178, 58, 40, .18) 0 25%,
      rgba(178, 58, 40, .08) 25% 45%,
      rgba(154, 110, 46, .08) 45% 55%,
      rgba(47, 74, 67, .07) 55% 75%,
      rgba(47, 74, 67, .15) 75% 100%);
}

.bsi-band-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 50%;
  width: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: translateX(-1px);
  transition: left .75s cubic-bezier(.2, .8, .2, 1);
}

.bsi-band-marker::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper-2);
  border-radius: 50%;
  content: "";
  background: var(--red);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(60, 8, 0, .2);
}

.bsi-band-labels {
  display: grid;
  grid-template-columns: 25fr 20fr 10fr 20fr 25fr;
  color: var(--faint);
  font: 8px/1.3 var(--display);
  text-align: center;
}

.bsi-focus .bsi-scale-note {
  margin-top: 8px;
}

.bsi-strategist {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.bsi-strategist img,
body.mode-mobile .bsi-strategist img {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(154, 110, 46, .28);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--paper-2);
}

.bsi-strategist strong {
  font-size: 17px;
}

/* 一切强调回归朱砂、黛青和淡墨。 */
.item.priority-high,
.mf-item.priority-high {
  border-left: 2px solid var(--red);
  background: transparent;
}

.item.priority-high .headline,
.mf-item.priority-high .mf-h {
  color: #7b211c;
}

.priority-flag {
  display: inline-block;
  border: 1.3px solid var(--red);
  border-radius: 3px;
  padding: 2px 5px;
  background: none !important;
  color: var(--red) !important;
  font: 500 10px/1 var(--display);
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-4deg);
}

.official-flag,
.channel-tag,
.rel-score,
.moodtag,
.item .score {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: var(--faint) !important;
  font: 10px/1.45 var(--sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.official-flag::before {
  content: "来源：";
}

.rel-score::after {
  content: " 分";
}

.channel-tag + .channel-tag::before {
  content: "· ";
}

.item .score-row,
.mf-bot {
  gap: 6px;
  color: var(--faint);
}

.item .readmore,
.mf-item .readmore {
  border: 0;
  border-bottom: 1px solid rgba(154, 110, 46, .45);
  border-radius: 0;
  padding: 1px 0;
  color: var(--red);
}

.item .readmore:hover,
.mf-item .readmore:hover {
  background: transparent;
  color: #7b211c;
}

.mood-dot,
.mf-dot,
.topic-row .tdot {
  box-shadow: inset 0 0 2px rgba(26, 26, 26, .26);
}

.mood-dot.neg,
.mf-dot.neg,
.tdot.neg {
  background: radial-gradient(circle at 35% 30%, #d36956, var(--red) 54%, #6f1e19);
}

.mood-dot.neu,
.mf-dot.neu,
.tdot.neu {
  background: radial-gradient(circle at 35% 30%, #bbb2a2, #9b907f 56%, #625d55);
}

.mood-dot.pos,
.mf-dot.pos,
.tdot.pos {
  background: radial-gradient(circle at 35% 30%, #66847a, var(--pos) 56%, #172d28);
}

/* 趋势榜统一墨色排行。 */
.tr-h .tag,
.mt-h .tag {
  min-width: 0;
  padding: 0;
  background: none !important;
  color: var(--bronze) !important;
  font: 500 14px/1 var(--display);
}

.tr-rank,
.mt-rank {
  color: var(--bronze);
  font-family: var(--display);
}

.tr-row,
.mt-row {
  position: relative;
}

.tr-row::after,
.mt-row::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 25px;
  height: 2px;
  content: "";
  opacity: .22;
  background: linear-gradient(90deg, var(--ink), transparent 72%);
}

.tr-note,
.mt-note {
  margin-top: 7px;
  color: var(--faint);
  font: 9px/1.5 var(--sans);
}

.edition-segment {
  display: none;
}

body.mode-mobile .edition-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 44px;
  border: 1px solid var(--red);
  background: var(--paper-2);
}

.edition-segment a {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 8px 5px;
  color: var(--ink-2);
  font: 12px/1.25 var(--display);
  text-decoration: none;
}

.edition-segment a.on {
  background: var(--red);
  color: var(--paper-2);
}

.edition-segment b {
  display: inline;
  font-weight: 500;
}

body.mode-mobile .bsi-score-row {
  min-height: 102px;
}

body.mode-mobile .bsi-value {
  font-size: clamp(76px, 24vw, 92px);
}

body.mode-mobile .bsi-zone-vertical {
  font-size: 18px;
}

body.mode-mobile .bsi-mobile-history .bsi-history {
  height: 120px;
  transition: height .22s ease;
}

body.mode-mobile .bsi-mobile-history .bsi-ranges {
  display: none;
  width: 100%;
  margin-top: 8px;
}

body.mode-mobile .bsi-mobile-history.expanded .bsi-ranges {
  display: grid;
}

body.mode-mobile .bsi-mobile-history.expanded .bsi-history {
  height: 250px;
}

.bsi-expand {
  border: 0;
  border-bottom: 1px solid rgba(154, 110, 46, .45);
  padding: 2px 0;
  background: transparent;
  color: var(--bronze);
  font: 10px/1.4 var(--sans);
  cursor: pointer;
}

body.mode-mobile .bsi-history-head {
  flex-wrap: wrap;
}

body.mode-mobile .m-h::before {
  content: none;
}

.m-day-overview {
  margin: 8px 0 12px;
  padding: 9px 2px;
  border-bottom: 1px dotted var(--rule-mid);
  color: var(--bronze);
  font: 12px/1.55 var(--display);
  letter-spacing: .04em;
}

body.mode-mobile .mf-item {
  padding: 15px 1px 16px;
}

body.mode-mobile .mf-h {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
}

body.mode-mobile .mf-original {
  margin-top: 5px;
  color: var(--faint);
  font: italic 12.5px/1.6 Georgia, var(--serif);
  overflow-wrap: anywhere;
}

body.mode-mobile .mf-top {
  margin-bottom: 6px;
}

body.mode-mobile .mf-bot {
  align-items: flex-end;
  margin-top: 9px;
  font-size: 10px;
}

body.mode-mobile .mf-bot .readmore {
  margin-left: auto;
}

.m-weekly-entry p {
  color: var(--muted);
  font: 13px/1.75 var(--serif);
}

.m-weekly-entry a {
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1px solid rgba(154, 110, 46, .45);
  color: var(--red);
  font: 12px/1.5 var(--sans);
  text-decoration: none;
}

.m-dual-subscribe a {
  display: grid;
  min-height: 46px;
  place-items: center;
  margin-top: 8px;
  font: 500 14px/1.4 var(--display);
  text-decoration: none;
}

.m-sub-primary {
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper-2);
}

.m-sub-secondary {
  border: 1px solid var(--pos);
  color: var(--pos);
  background: transparent;
}

.m-dual-subscribe small {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font: 9px/1.5 var(--sans);
  text-align: center;
}

.m-admin-fold {
  margin-bottom: 16px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.m-admin-fold > summary {
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font: 12px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}

.m-admin-fold > summary::-webkit-details-marker {
  display: none;
}

.m-admin-fold[open] > summary span {
  transform: rotate(90deg);
}

body.mode-mobile .legal-disclaimer {
  border-top: 0;
  text-align: center;
}

body.mode-mobile .legal-disclaimer .legal-classic {
  margin: 0;
  font: 13px/2 var(--display);
}

body.mode-mobile .legal-disclaimer details {
  margin-top: 7px;
}

body.mode-mobile .legal-disclaimer summary {
  color: var(--faint);
  font: 9px/1.5 var(--sans);
  cursor: pointer;
}

body.mode-mobile .legal-disclaimer details p {
  margin-top: 8px;
  text-align: left;
}

@media (max-width: 760px) {
  /* JavaScript 尚未执行或图表库加载失败时，仍交付可读的手机首屏。 */
  body:not(.mode-desktop) #desktopView {
    display: none;
  }

  body:not(.mode-desktop) #mobileView {
    display: block;
  }

  body:not(.mode-desktop) .m-tabbar {
    display: flex;
  }

  body:not(.mode-desktop) .wrap {
    width: 100%;
    max-width: 620px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .m-tabbar {
    padding-bottom: env(safe-area-inset-bottom);
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px !important;
  }

  button,
  .btn,
  .readmore,
  .feed-more,
  .bsi-range,
  .bsi-expand,
  .m-tab {
    min-height: 44px;
  }

  .mf-top,
  .mf-bot,
  .meta-row,
  .score-row {
    font-size: 11px !important;
  }

  .edition-switch-desktop {
    display: none;
  }

  .nameplate-row {
    gap: 8px;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  body.mode-mobile .m-pages {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.mode-mobile .bsi-history-head {
    flex-direction: row;
    align-items: center;
  }

  body.mode-mobile .bsi-mobile-history .bsi-ranges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  .bsi-focus,
  .bsi-ink-band,
  .edition-segment,
  .edition-sign,
  .m-dual-subscribe,
  .m-admin-fold {
    color-scheme: only light;
  }
}

@media (hover: none) and (pointer: coarse) {
  .item:hover,
  .mf-item:hover,
  .tr-row:hover,
  .mt-row:hover {
    background: transparent;
  }
}
