:root {
  --paper: #FAF7F1;
  --paper-2: #F3EEE3;
  --ink: #171310;
  --muted: #857B6E;
  --line: #E2D9C6;
  --accent: #B93A1E;
  --accent-soft: rgba(185, 58, 30, .08);
  --card: #FFFFFF;
  --shadow: 0 18px 50px -22px rgba(23, 19, 16, .25);
}
html[data-theme="dark"] {
  --paper: #14110D;
  --paper-2: #1B1712;
  --ink: #F0EADA;
  --muted: #9A8F7D;
  --line: #2C2620;
  --accent: #E0684A;
  --accent-soft: rgba(224, 104, 74, .12);
  --card: #1C1813;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
.mono { font-family: "Space Mono", monospace; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Noto Serif SC", serif; font-weight: 900; font-size: 20px;
  color: var(--ink); text-decoration: none; letter-spacing: .12em;
  display: flex; align-items: baseline; gap: 10px;
}
.wordmark-en { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .28em; color: var(--muted); font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted);
  text-decoration: none; transition: color .25s; position: relative; padding: 4px 0;
}
.topnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .3s cubic-bezier(.2,.7,.3,1);
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { width: 100%; }
/* ---------- nav dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted);
  padding: 4px 0; transition: color .25s;
}
.nav-drop-btn:hover { color: var(--ink); }
.nav-drop-btn .caret { font-size: 10px; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; min-width: 172px; box-shadow: var(--shadow); z-index: 70;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a { display: block; padding: 10px 16px; border-radius: 8px; white-space: nowrap; }
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { background: var(--accent-soft); color: var(--accent); }
/* ---------- nav active ---------- */
.topnav a.active { color: var(--ink); }
.topnav a.active::after { width: 100%; }
.nav-drop-btn.active { color: var(--ink); }
.nav-drop-menu a.active { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) { .topnav { gap: 16px; } .topnav a { font-size: 12px; letter-spacing: .08em; } }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
.issue-count { font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--ink); cursor: pointer; transition: transform .3s ease, border-color .3s;
}
.theme-toggle:hover { transform: rotate(24deg); border-color: var(--accent); color: var(--accent); }
/* ---------- masthead ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 120px 28px 40px; }
section[id] { scroll-margin-top: 84px; }
.masthead { text-align: center; padding: 40px 0 56px; }
.kicker { font-size: 11px; letter-spacing: .34em; color: var(--accent); margin-bottom: 22px; }
.masthead-title {
  font-family: "Noto Serif SC", serif; font-weight: 900;
  font-size: clamp(64px, 12vw, 148px); line-height: 1.04; letter-spacing: .06em;
}
.masthead-sub { margin-top: 26px; color: var(--muted); font-size: 15px; letter-spacing: .08em; }
.masthead-meta { margin-top: 30px; font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.masthead-meta b { color: var(--accent); font-weight: 700; }
/* ---------- sections ---------- */
.section-head { display: flex; align-items: center; gap: 18px; margin: 10px 0 28px; }
.section-label { font-size: 11px; letter-spacing: .3em; color: var(--muted); white-space: nowrap; }
.section-label::before { content: "◆ "; color: var(--accent); font-size: 9px; }
.section-meta { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .section-meta { display: none; } }
.rule { flex: 1; height: 1px; background: var(--line); }
/* ---------- latest ---------- */
.latest-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.latest-card:hover { transform: translateY(-4px); }
.latest-date { font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .24em; color: var(--accent); }
.latest-headline {
  font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(26px, 4.4vw, 44px); line-height: 1.35; margin: 16px 0 8px;
}
.latest-count { color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.latest-items { margin-top: 28px; border-top: 1px solid var(--line); }
.latest-item { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.latest-item:last-child { border-bottom: none; }
.item-no {
  font-family: "Noto Serif SC", serif; font-weight: 900; font-size: 30px;
  color: var(--accent); opacity: .85; min-width: 44px; line-height: 1.2;
}
.item-title { font-weight: 700; font-size: 16.5px; line-height: 1.55; overflow-wrap: break-word; }
.item-meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tag {
  font-size: 11px; letter-spacing: .06em; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  white-space: nowrap;
}
.item-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.item-link:hover { border-bottom-color: var(--accent); }
/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  font-size: 12.5px; letter-spacing: .05em; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .25s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* ---------- timeline ---------- */
.month-block { margin-bottom: 44px; }
.month-title {
  font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 22px;
  margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px;
}
.month-title .mono { font-size: 11px; color: var(--muted); letter-spacing: .2em; font-family: "Space Mono", monospace; }
.issue-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; background: var(--card); cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.issue-row:hover { transform: translateX(6px); border-color: var(--accent); box-shadow: var(--shadow); }
.issue-date { font-family: "Space Mono", monospace; font-size: 13px; letter-spacing: .08em; }
.issue-date small { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: .14em; margin-top: 2px; }
.issue-title { font-weight: 500; font-size: 14.5px; line-height: 1.6; overflow-wrap: break-word; }
.issue-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.issue-arrow { font-size: 20px; color: var(--muted); transition: transform .3s, color .3s; }
.issue-row:hover .issue-arrow { transform: translateX(4px); color: var(--accent); }
.empty-note { color: var(--muted); padding: 30px 0; text-align: center; font-size: 14px; }
/* ---------- research ---------- */
.research-empty {
  border: 1px dashed var(--line); border-radius: 16px; padding: 48px 28px;
  text-align: center; color: var(--muted);
}
.research-empty-title { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.research-empty-sub { font-size: 14px; line-height: 2; }
.research-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px; margin-bottom: 14px; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.research-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.research-card-date { font-size: 11px; letter-spacing: .22em; color: var(--accent); margin-bottom: 10px; }
.research-card-title { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 21px; line-height: 1.5; margin-bottom: 8px; }
.research-group { margin-bottom: 26px; }
.research-group-label { font-size: 11px; letter-spacing: .26em; color: var(--accent); margin-bottom: 14px; font-weight: 700; }
.research-card-conclusion { font-size: 14.5px; line-height: 1.8; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 12px; }
/* ---------- footer ---------- */
.footer { margin-top: 80px; padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .mono { font-size: 11px; letter-spacing: .24em; margin-bottom: 12px; color: var(--ink); }
/* ---------- reader ---------- */
.reader-kicker { font-size: 11px; letter-spacing: .3em; color: var(--accent); margin-bottom: 14px; }
.reader-title {
  font-family: "Noto Serif SC", serif; font-weight: 900;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.25; margin-bottom: 10px;
}
.reader-sub { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.ai-badge {
  display: inline-block; font-size: 10.5px; letter-spacing: .08em; color: var(--accent);
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 6px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px;
}
.reader-note {
  margin-top: 36px; padding: 20px 22px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 640px) {
  /* 顶栏：双行布局，避免小屏挤爆 */
  .topbar { flex-wrap: wrap; padding: 12px 18px; row-gap: 4px; }
  .wordmark { font-size: 18px; }
  .wordmark-en { display: none; }
  .issue-count { display: none; }
  .topnav { order: 3; width: 100%; justify-content: flex-start; gap: 24px; padding: 6px 0 2px; overflow-x: visible; }
  section[id] { scroll-margin-top: 122px; }  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { font-size: 12.5px; letter-spacing: .1em; padding: 8px 0; flex-shrink: 0; }
  main { padding: 140px 18px 30px; }
  section[id] { scroll-margin-top: 148px; }
  /* 列表与卡片 */
  .issue-row { grid-template-columns: 1fr auto; }
  .issue-date { grid-column: 1 / -1; }
  .latest-item { gap: 14px; padding: 16px 0; }
  .item-no { font-size: 24px; min-width: 34px; }
  /* 触屏：去掉 hover 位移（点按后会粘住），保留颜色反馈；加大点按目标 */
  .latest-card:hover, .issue-row:hover, .research-card:hover { transform: none; }
  .latest-card:active, .issue-row:active, .research-card:active { border-color: var(--accent); }
  .chip { padding: 10px 20px; }
  /* 阅读器 */
  .reader-title { font-size: clamp(28px, 7.5vw, 40px); }
  .research-card { padding: 24px 22px; }
}

/* ---------- company profiles ---------- */
.profile-head { text-align: center; padding: 36px 0 8px; }
.profile-title { font-family: "Noto Serif SC", serif; font-weight: 900; font-size: clamp(32px, 6vw, 54px); letter-spacing: .04em; }
.profile-code { font-family: "Space Mono", monospace; font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-top: 10px; }
.profile-sub { color: var(--muted); font-size: 14px; margin-top: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 34px 0 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; box-shadow: var(--shadow); }
.kpi-label { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.kpi-value { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 19px; line-height: 1.5; }
.profile-section { margin-top: 44px; }
.profile-section-title { font-size: 11px; letter-spacing: .26em; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; text-decoration: none; color: var(--ink); transition: border-color .25s, transform .25s; }
.doc-row:hover { border-color: var(--accent); transform: translateX(4px); }
.doc-row-title { font-weight: 700; font-size: 15px; }
.doc-row-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.doc-arrow { color: var(--muted); flex-shrink: 0; }
.mini-item { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-item:last-child { border-bottom: none; }
.mini-date { font-family: "Space Mono", monospace; font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }
.mini-title { font-weight: 500; margin: 4px 0; overflow-wrap: break-word; }
.profile-note { margin-top: 40px; }
.company-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0 10px; }
.company-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.company-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.company-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.company-name { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 20px; }
.company-code { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.company-biz { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.co-minis { display: grid; gap: 8px; margin-bottom: 14px; }
.co-mini { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.co-mini span { color: var(--muted); }
.co-mini b { font-weight: 600; text-align: right; }
.company-meta { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 640px) { .company-grid { grid-template-columns: 1fr; } .company-card { padding: 20px; } }

/* ---------- archive month accordion ---------- */
.month-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; cursor: pointer; font-family: inherit; padding: 6px 0; text-align: left; }
.month-toggle .month-title { margin: 0; }
.month-caret { color: var(--muted); font-size: 13px; transition: transform .3s; }
.month-block.collapsed .month-caret { transform: rotate(-90deg); }
.month-block.collapsed .month-issues { display: none; }
.month-toggle:hover .month-caret { color: var(--accent); }

/* ---------- archive tag chips: single scrollable row ---------- */
#tagChips { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 20px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#tagChips::-webkit-scrollbar { display: none; }
#tagChips .chip { flex-shrink: 0; }
