/* ═══════════════════════════════════════════════════════════
   AU SHIZO · 拾象澳洲版
   Editorial / newspaper styling, adapted from shizo.ai
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: #F5F1EA;
  --paper-2: #EDE7DC;
  --ink: #1A1A1A;
  --ink-2: #3A3530;
  --muted: #8A837B;
  --line: #1A1A1A;
  --line-soft: #C9C2B6;
  --rule: #C9C2B6;
  --accent: #B4322A;   /* 朱砂 */
  --accent-2: #3A5A40; /* 松绿 备用 */
  --highlight: #E8DFC9;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", -apple-system, system-ui, sans-serif;
  --latin: "EB Garamond", "Noto Serif SC", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
[data-theme="night"] {
  --paper: #141210;
  --paper-2: #1C1A17;
  --ink: #ECE5D6;
  --ink-2: #BBB4A4;
  --muted: #7A7468;
  --line: #ECE5D6;
  --line-soft: #3A352E;
  --rule: #3A352E;
  --accent: #D4574C;
  --highlight: #2A251E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); }
body {
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ───── READING PROGRESS ───── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 0%; background: var(--accent);
  z-index: 100; transition: width 0.1s linear;
}

/* ───── MASTHEAD ───── */
.masthead {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 48px 0;
  border-bottom: 1px solid var(--line);
}
.masthead-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase;
  padding-bottom: 14px;
}
.masthead-top .vol { display: flex; gap: 22px; flex-wrap: wrap; }
.masthead-top .vol span:first-child { color: var(--accent); font-weight: 500; }
.masthead-actions { display: flex; gap: 18px; align-items: center; }
.masthead-actions button {
  background: none; border: none; font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2);
  text-transform: uppercase; cursor: pointer; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: border .2s, color .2s;
}
.masthead-actions button:hover { border-bottom-color: var(--ink); color: var(--ink); }
.masthead-actions button.is-current {
  color: var(--accent); cursor: default; pointer-events: none;
  border-bottom-color: transparent;
}

.nameplate {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 36px 48px 28px;
  border-bottom: 1px solid var(--line);
}
.nameplate-left h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 0.9; margin: 0;
  letter-spacing: -0.02em;
}
.nameplate-left h1 a { color: inherit; }
.nameplate-left .sub {
  font-family: var(--latin); font-style: italic;
  font-size: 18px; color: var(--ink-2);
  margin-top: 10px; letter-spacing: 0.02em;
}
.nameplate-right { text-align: right; font-family: var(--sans); font-size: 11px; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.nameplate-right .big {
  font-family: var(--latin); font-style: italic; font-size: 36px;
  color: var(--ink); letter-spacing: 0; text-transform: none;
  line-height: 1; display: block; margin-bottom: 8px; font-weight: 500;
}
.nameplate-right .line { display: block; margin-top: 3px; }
.nameplate-right .session { color: var(--accent); }

/* ───── CATEGORY NAV ───── */
.catnav {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 48px;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  border-bottom: 3px double var(--line);
}
.catnav a { padding: 4px 0; color: var(--ink-2); transition: color .2s; }
.catnav a:hover { color: var(--accent); }
.catnav .cn { font-family: var(--serif); letter-spacing: 0.2em; margin-left: 6px; font-size: 12px; }

/* ───── MAIN ───── */
main {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px 80px;
}

/* ───── EDITOR'S NOTE / 要点 ───── */
.editors-note {
  display: grid; grid-template-columns: 1fr 2.2fr;
  gap: 48px; padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.en-label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: 10px;
  width: fit-content;
}
.en-label-cn { font-family: var(--serif); color: var(--ink); font-size: 14px; letter-spacing: 0.2em; margin-top: 4px; }
.en-meta {
  font-family: var(--latin); font-style: italic; color: var(--muted);
  font-size: 15px; margin-top: 20px; line-height: 1.6;
}
.edition-nav {
  margin-top: 16px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.edition-nav .lbl { color: var(--muted); margin-right: 4px; }
.edition-nav .ed {
  color: var(--ink-2); padding: 4px 9px;
  border: 1px solid var(--line-soft); border-radius: 2px;
  font-family: var(--mono); letter-spacing: 0.05em;
  transition: color .2s, border-color .2s;
}
.edition-nav .ed:hover { color: var(--accent); border-color: var(--accent); }
.edition-nav .ed.current {
  color: var(--paper); background: var(--accent);
  border-color: var(--accent); font-weight: 600; pointer-events: none;
}
.en-body {
  font-family: var(--serif); font-size: 22px; line-height: 1.7;
  font-weight: 400; color: var(--ink);
}
.en-body .dropcap::first-letter,
.en-body.dropcap::first-letter {
  float: left; font-size: 72px; line-height: 0.85;
  padding: 6px 12px 0 0; font-weight: 700; color: var(--accent);
}
.en-body strong { color: var(--accent); font-weight: 600; }

/* ───── SOURCE / TITLE LINKS ───── */
a.src {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  font-family: var(--sans); font-weight: 500; white-space: nowrap;
}
a.src:hover { color: var(--paper); background: var(--accent); border-bottom-color: transparent; }
.src-sep { color: var(--muted); font-family: var(--sans); font-size: 0.92em; margin-left: 4px; }
a.title-link {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s ease, color .2s;
}
a.title-link:hover { color: var(--accent); background-size: 100% 1px; }

/* ───── SECTION HEAD ───── */
.section-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.section-head .l, .section-head .r { height: 1px; background: var(--line-soft); }
.section-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: 28px; letter-spacing: 0.4em; text-align: center;
}
.section-head .latin {
  font-family: var(--latin); font-style: italic; font-weight: 400;
  font-size: 14px; letter-spacing: 0.02em; color: var(--muted);
  display: block; margin-top: 4px;
}

/* ───── FEATURED GRID (headline category) ───── */
.hot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0; padding: 32px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hot-cell { padding: 0 28px; border-right: 1px solid var(--line-soft); }
.hot-cell:first-child { padding-left: 0; }
.hot-cell:last-child { padding-right: 0; border-right: none; }
.hot-num {
  font-family: var(--latin); font-style: italic; font-size: 14px;
  color: var(--accent); letter-spacing: 0.1em;
}
.hot-cell .kicker {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin: 8px 0 6px;
}
.hot-cell h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; line-height: 1.3; margin: 6px 0 14px;
  letter-spacing: -0.01em;
}
.hot-cell.lead h3 { font-size: 36px; line-height: 1.2; }
.hot-cell p {
  font-family: var(--serif); font-size: 15px; line-height: 1.75;
  color: var(--ink-2); margin: 0 0 14px;
}
.byline {
  font-family: var(--latin); font-style: italic; font-size: 13px;
  color: var(--muted); padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 12px;
}
.byline time { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.05em; }

/* ───── ARTICLE GRID (per category) ───── */
.hot-rest {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 0 0 56px;
  border-bottom: 3px double var(--line);
}
.hot-item {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.hot-item:nth-child(4n) { border-right: none; padding-right: 0; }
.hot-item:nth-child(-n+4) { border-top: none; }
.hot-item:not(:nth-child(4n+1)) { padding-left: 24px; }
.hot-item .idx {
  font-family: var(--latin); font-style: italic;
  font-size: 13px; color: var(--accent); letter-spacing: 0.1em;
}
.hot-item h4 {
  font-family: var(--serif); font-weight: 600;
  font-size: 17px; line-height: 1.45; margin: 6px 0 10px;
}
.hot-item p {
  font-family: var(--serif); font-size: 13.5px; line-height: 1.65;
  color: var(--ink-2); margin: 0;
}
.hot-item .tag {
  display: block; font-family: var(--mono); font-size: 10px;
  color: var(--muted); margin-top: 10px; letter-spacing: 0.05em;
}
.hot-item .tag .src { font-family: var(--sans); }

/* ───── ARTICLE DETAIL ───── */
.article-full {
  max-width: 720px; margin: 0 auto; padding: 56px 0 24px;
}
.breadcrumb {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px;
}
.breadcrumb a:hover { color: var(--accent); }
.article-kicker {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: 10px; width: fit-content;
}
.article-full h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.5vw, 46px); line-height: 1.22;
  letter-spacing: -0.01em; margin: 18px 0 18px;
}
.article-meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.05em; display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article-meta .who { font-family: var(--sans); }
.article-body { margin-top: 26px; }
.article-body p {
  font-family: var(--serif); font-size: 18px; line-height: 1.9;
  color: var(--ink); margin: 0 0 1.3em;
}
.article-body p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 72px; line-height: 0.85;
  padding: 6px 14px 0 0; font-weight: 700; color: var(--accent);
}
.source-card {
  margin-top: 34px; padding: 22px 24px;
  border: 1px solid var(--line-soft); background: var(--paper-2);
}
.source-card a { font-family: var(--sans); font-weight: 600; color: var(--accent); }
.source-card .note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

/* ───── PAGER ───── */
.pager {
  max-width: 720px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 32px 0 0; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 12px;
}
.pager a { color: var(--muted); max-width: 47%; line-height: 1.5; }
.pager a:hover { color: var(--accent); }
.pager .dir { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pager .next { text-align: right; }
.pager .t { display: block; font-family: var(--serif); color: var(--ink-2); margin-top: 4px; }

/* ───── PAST ISSUES STRIP / ARCHIVE LIST ───── */
.past {
  padding: 44px 0 10px;
}
.past h3, .arch h2 {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  letter-spacing: 0.2em; margin: 0 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.past-list, .arch-list { list-style: none; margin: 0; padding: 0; }
.past-row a, .arch-row a {
  display: grid; grid-template-columns: 150px 1fr auto;
  gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dotted var(--line-soft);
}
.past-row .date, .arch-row .date { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.past-row .ttl, .arch-row .ttl { font-family: var(--serif); font-size: 16px; transition: color .2s; }
.past-row a:hover .ttl, .arch-row a:hover .ttl { color: var(--accent); }
.past-row .cnt, .arch-row .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.arch-group { margin-bottom: 14px; }
.arch-day { font-family: var(--latin); font-style: italic; font-size: 16px; color: var(--accent); margin: 26px 0 4px; }

/* ───── FOOTER ───── */
footer {
  max-width: 1280px; margin: 0 auto;
  padding: 60px 48px 50px;
  border-top: 3px double var(--line);
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  font-family: var(--sans); font-size: 12px; color: var(--ink-2);
}
footer .colophon { font-family: var(--serif); font-size: 13px; line-height: 1.7; max-width: 460px; }
footer h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px; font-weight: 500;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 4px 0; }
footer li a:hover { color: var(--accent); }
footer .fine {
  grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

/* ───── ARCHIVE MODAL ───── */
.archive-overlay {
  position: fixed; inset: 0; background: rgba(20,18,16,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 200; backdrop-filter: blur(6px);
}
.archive-overlay.open { display: flex; }
.archive {
  background: var(--paper); border: 1px solid var(--line);
  width: min(560px, 92vw); padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.archive-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.archive-head h3 { font-family: var(--serif); font-size: 22px; margin: 0; letter-spacing: 0.1em; }
.archive-head .latin { font-family: var(--latin); font-style: italic; color: var(--muted); font-size: 14px; }
.archive-nav {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--latin); font-size: 18px; margin-bottom: 18px;
}
.archive-nav button {
  background: none; border: 1px solid var(--line-soft); padding: 6px 12px;
  font-family: var(--latin); cursor: pointer; color: var(--ink);
}
.archive-nav button:hover { border-color: var(--ink); }
.archive-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-family: var(--mono); font-size: 12px; }
.archive-grid .dow { text-align: center; padding: 8px 0; color: var(--muted); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.archive-grid .day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; cursor: default; position: relative; color: var(--muted);
}
.archive-grid .day.has { color: var(--ink); border-color: var(--line-soft); cursor: pointer; }
.archive-grid .day.has::after {
  content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}
.archive-grid .day.today { background: var(--accent); color: var(--paper); border-color: var(--accent); font-weight: 600; }
.archive-grid .day.has:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.archive-foot { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 18px; letter-spacing: 0.05em; }
.archive-close { background: none; border: none; cursor: pointer; font-family: var(--latin); font-size: 24px; color: var(--muted); line-height: 1; }

/* ───── TWEAKS PANEL (theme) ───── */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  background: var(--paper); border: 1px solid var(--line);
  padding: 18px 22px; width: 240px;
  font-family: var(--sans); font-size: 12px; display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h5 { margin: 0 0 14px; font-family: var(--serif); font-size: 14px; letter-spacing: 0.2em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tweak-row .label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tweak-opts { display: flex; gap: 4px; }
.tweak-opts button { flex: 1; background: none; border: 1px solid var(--line-soft); padding: 6px 8px; font-family: var(--sans); font-size: 11px; color: var(--ink-2); cursor: pointer; letter-spacing: 0.05em; }
.tweak-opts button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ───── MOBILE ───── */
@media (max-width: 900px) {
  .masthead, .nameplate, .catnav, main, footer { padding-left: 20px; padding-right: 20px; }
  .masthead-top { flex-wrap: wrap; gap: 10px; }
  .nameplate { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nameplate-right { text-align: left; }
  .catnav { gap: 10px 18px; font-size: 10.5px; letter-spacing: 0.2em; }
  .editors-note { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .en-body { font-size: 18px; }
  .hot-grid { grid-template-columns: 1fr; }
  .hot-cell { padding: 24px 0 !important; border-right: none !important; border-bottom: 1px solid var(--line-soft); }
  .hot-cell:last-child { border-bottom: none; }
  .hot-cell.lead h3 { font-size: 28px; }
  .hot-rest { grid-template-columns: 1fr; }
  .hot-item { border-right: none !important; border-top: 1px solid var(--line-soft) !important; padding: 20px 0 !important; }
  .article-body p { font-size: 17px; }
  .past-row a, .arch-row a { grid-template-columns: 1fr auto; }
  .past-row .date, .arch-row .date { grid-column: 1 / 3; }
  .section-head h2 { font-size: 22px; letter-spacing: 0.25em; }
  footer { grid-template-columns: 1fr; gap: 28px; }
}
