:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --ph: #e8e8ed;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --hover: rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(250, 250, 252, 0.8);
  --nav-line: rgba(0, 0, 0, 0.1);
  --lift: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 36px rgba(0, 0, 0, 0.1);
  --danger: #d70015;
  --foot-bg: #f5f5f7;
  color-scheme: light;
}
body.on-white {--bg: #ffffff; --surface: #f5f5f7; --nav-bg: rgba(255, 255, 255, 0.8);}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000;
  --surface: #1d1d1f;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #86868b;
  --line: #424245;
  --ph: #2c2c2e;
  --link: #2997ff;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --hover: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(22, 22, 23, 0.8);
  --nav-line: rgba(255, 255, 255, 0.14);
  --lift: 0 0 0 1px rgba(255, 255, 255, 0.14);
  --danger: #ff453a;
  --foot-bg: #161617;
  color-scheme: dark;
} :root:not([data-theme="light"]) body.on-white {--bg: #000000; --surface: #1d1d1f; --nav-bg: rgba(22, 22, 23, 0.8);} }
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1d1d1f;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #86868b;
  --line: #424245;
  --ph: #2c2c2e;
  --link: #2997ff;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --hover: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(22, 22, 23, 0.8);
  --nav-line: rgba(255, 255, 255, 0.14);
  --lift: 0 0 0 1px rgba(255, 255, 255, 0.14);
  --danger: #ff453a;
  --foot-bg: #161617;
  color-scheme: dark;
}
:root[data-theme="dark"] body.on-white {--bg: #000000; --surface: #1d1d1f; --nav-bg: rgba(22, 22, 23, 0.8);}

:root {
  /* 苹果设备用自带的 SF 和苹方；其他设备用下载的 Inter 和思源黑体，标题才有真正的半粗体 */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Inter, "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  --page: 1120px;
  --gutter: 22px;
  --radius: 20px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html:has(body.on-white) { background: #ffffff; }
a, button { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
::selection { background: rgba(0, 113, 227, 0.24); }
:focus-visible { outline: 3px solid rgba(0, 125, 250, 0.6); outline-offset: 2px; border-radius: 6px; }
/* 左右留白把刘海屏横放时的安全区也算进去 */
.wrap {
  width: calc(100% - 44px);
  max-width: var(--page);
  width: min(var(--page), calc(100% - var(--gutter) * 2 - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin-left: auto;
  margin-right: auto;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 16px; border-radius: 980px; background: var(--btn); color: #fff; font-size: 14px; }
.skip:focus { left: 12px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: 0.02em; }
.quiet { color: var(--muted); font-size: 15px; }

/* 导航：半透明毛玻璃，吸在顶部 */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--nav-line);
}
/* 不支持毛玻璃的旧浏览器保持不透明，免得底下的字透上来 */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; }
.brand { justify-self: start; line-height: 52px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.nav-links { display: flex; }
.nav-links a { padding: 0 15px; line-height: 52px; font-size: 14px; opacity: 0.72; white-space: nowrap; transition: opacity 0.2s var(--ease); }
.nav-links a.on { opacity: 1; font-weight: 600; }
.theme {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

/* 页面开头的大标题：前半句深色，后半句灰色 */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 48px 0 28px; }
.intro .eyebrow { display: flex; margin-bottom: 12px; font-size: 14px; }
.intro .eyebrow span:nth-child(2) { margin: 0 8px; }
.display { font-size: 40px; font-size: clamp(34px, 4.7vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.display span { display: block; color: var(--faint); }
.intro-note { flex: none; padding-bottom: 8px; color: var(--muted); font-size: 14px; }

/* 图框 */
.ph { position: relative; display: block; overflow: hidden; background: var(--ph); aspect-ratio: 16 / 9; }
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ph-name { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: var(--faint); font-size: 17px; font-weight: 600; opacity: 0; }
.ph-empty .ph-name { opacity: 1; }
.ph-thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 12px; }

/* 卡片 */
.tile { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s var(--ease), transform 0.2s var(--ease); }
.tile a { display: flex; flex-direction: column; height: 100%; }
.tile-body { display: flex; flex: 1; flex-direction: column; padding: 24px 28px 26px; }
.tile h2, .tile h3 { margin-top: 8px; font-size: 21px; line-height: 1.38; }
.tile .sum {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.tile .when { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
/* 头条卡片和旁边的"最新"等高，多出来的高度给图。图铺满图框，不让图自己的长宽把卡片撑高 */
.tile-lead .ph { flex: 1 1 auto; aspect-ratio: auto; min-height: 340px; }
.tile-lead .ph img, .tile-wide .ph img { position: absolute; top: 0; left: 0; }
.tile-lead .tile-body { flex: 0 0 auto; padding: 30px 36px 32px; }
.tile-lead .when { padding-top: 16px; }
.tile-lead h2 { font-size: 30px; font-size: clamp(26px, 2.9vw, 36px); line-height: 1.22; letter-spacing: -0.02em; }
.tile-wide { grid-column: span 2; }
.tile-wide a { flex-direction: row; }
.tile-wide .ph { flex: 0 0 54%; aspect-ratio: auto; min-height: 340px; }
.tile-wide .tile-body { padding: 36px; }
.tile-wide h2, .tile-wide h3 { font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid + .grid, .grid + .panel { margin-top: 24px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid.cols-4 .tile-body { padding: 20px 22px 22px; }
.grid.cols-4 .tile h3 { font-size: 17px; line-height: 1.45; }
.grid.solo .tile-wide { grid-column: 1 / -1; }
.flip .tile-wide { order: 2; }

/* 列表面板 */
.panel { background: var(--surface); border-radius: var(--radius); padding: 10px 28px; }
.panel-title { padding: 18px 0 8px; font-size: 21px; line-height: 1.2; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 44px; overflow: hidden; }
.rows.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rows.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row { margin-top: -1px; border-top: 1px solid var(--line); }
.row a { display: flex; align-items: center; height: 100%; padding: 15px 0; outline-offset: -3px; transition: opacity 0.2s var(--ease); }
.row .ph-thumb { margin-left: 16px; }
.row .txt { flex: 1; min-width: 0; }
.row h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.45;
  transition: color 0.2s var(--ease);
}
.meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.meta i { width: 2.5px; height: 2.5px; margin: 0 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }

/* 首页 */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.band { padding-top: 56px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.band-head h2 { font-size: 32px; line-height: 1.125; letter-spacing: -0.02em; }
.more { color: var(--link); font-size: 17px; white-space: nowrap; }

/* 文章页 */
.story { padding: 48px 0 8px; }
.story-head, .story-body { max-width: 692px; margin-left: auto; margin-right: auto; }
.crumb { display: flex; color: var(--muted); font-size: 14px; }
.crumb span { margin: 0 8px; }
.story h1 { margin-top: 16px; font-size: 36px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.17; letter-spacing: -0.02em; }
.origin { margin-top: 16px; color: var(--muted); font-size: 21px; line-height: 1.4; }
.byline { display: flex; flex-wrap: wrap; align-items: center; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.byline > * { margin-right: 16px; }
.byline b { color: var(--ink); font-weight: 600; }
.story-figure { max-width: 980px; margin: 40px auto 0; }
.story-figure img, .story-photos img { width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: var(--radius); background: var(--ph); }
.story-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 16px auto 0; }
.story-photos img { aspect-ratio: 3 / 2; height: 100%; }
.story-body { margin-top: 44px; }
.prose { margin-top: 14px; }
.prose p { margin-bottom: 1.15em; font-size: 19px; line-height: 1.8; text-wrap: pretty; }
.prose p:first-child { font-size: 21px; font-weight: 600; line-height: 1.6; }
.facts {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 10px 18px;
  margin-top: 30px;
  padding: 22px 26px;
  background: var(--surface);
  border-radius: 18px;
}
.facts dt { color: var(--muted); font-size: 14px; line-height: 1.8; }
.facts dd { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.facts a { color: var(--link); }
.source-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 22px 26px;
  background: var(--surface);
  border-radius: 18px;
}
.source-box p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 980px;
  background: var(--btn);
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

/* 密码页 */
.login { display: flex; justify-content: center; padding: 72px 0 96px; }
.login-card { width: 100%; max-width: 420px; padding: 36px 32px 32px; background: var(--surface); border-radius: var(--radius); }
.login-card h1 { margin-top: 8px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.login-note { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.login-error { margin-top: 16px; color: var(--danger); font-size: 15px; }
.field {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
}
.field:focus { outline: 3px solid rgba(0, 125, 250, 0.6); outline-offset: 1px; border-color: transparent; }
.btn-block { display: flex; justify-content: center; width: 100%; margin-top: 16px; padding: 13px 20px; border: 0; font: inherit; font-size: 17px; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 空状态 */
.empty { padding: 110px 0 130px; text-align: center; }
.empty-mark { color: var(--faint); font-size: 96px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.empty h2 { margin: 18px 0 8px; font-size: 32px; letter-spacing: -0.02em; }
.empty p { color: var(--muted); }
.empty .btn { margin-top: 26px; }

/* 页脚 */
.foot { margin-top: 72px; padding: 18px 0 calc(26px + env(safe-area-inset-bottom, 0px)); background: var(--foot-bg); border-top: 1px solid var(--nav-line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.foot-note { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.foot h4 { margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.foot-links a { display: block; padding: 3px 0; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 16px; }

@media (max-width: 1068px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .tile-lead a { flex-direction: row; }
  .tile-lead .ph { flex: 0 0 50%; min-height: 320px; }
  .tile-lead .tile-body { flex: 1 1 0; min-width: 0; }
  .latest .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
  .flip .tile-wide { order: 0; }
  .rows.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 734px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; height: 48px; }
  .brand { line-height: 48px; font-size: 17px; }
  .nav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 0 10px; line-height: 48px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px 0 24px; }
  .intro .eyebrow { margin-bottom: 8px; font-size: 13px; }
  .intro-note { padding-bottom: 0; font-size: 13px; }
  .hero, .grid, .grid.cols-4 { gap: 16px; }
  .grid, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .grid + .grid, .grid + .panel { margin-top: 16px; }
  .tile-body, .tile-lead .tile-body, .tile-wide .tile-body, .grid.cols-4 .tile-body { padding: 20px 22px 22px; }
  .tile h2, .tile h3, .grid.cols-4 .tile h3 { font-size: 19px; line-height: 1.4; }
  .tile-lead h2, .tile-wide h2, .tile-wide h3 { font-size: 24px; line-height: 1.25; }
  .tile .sum { font-size: 16px; }
  .tile-wide a, .tile-lead a { flex-direction: column; }
  .tile-wide .ph, .tile-lead .ph { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .tile-wide .ph img, .tile-lead .ph img { position: relative; }
  .tile-lead .tile-body { flex: 1 1 auto; }
  .panel { padding: 6px 20px; }
  .latest .rows, .rows.cols-2, .rows.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .ph-thumb { width: 88px; }
  .band { padding-top: 40px; }
  .band-head { margin-bottom: 16px; }
  .band-head h2 { font-size: 26px; }
  .more { font-size: 15px; }
  .story { padding-top: 30px; }
  .origin { font-size: 18px; }
  .story-figure { margin-top: 28px; }
  .story-figure img, .story-photos img { border-radius: 16px; }
  .story-photos { grid-template-columns: minmax(0, 1fr); }
  .story-body { margin-top: 32px; }
  .prose p { font-size: 18px; line-height: 1.8; }
  .prose p:first-child { font-size: 19px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px 20px; }
  .facts dd { margin-bottom: 10px; }
  .source-box { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .empty { padding: 72px 0 84px; }
  .empty-mark { font-size: 72px; }
  .login { padding: 40px 0 64px; }
  .login-card { padding: 28px 22px 24px; }
  .login-card h1 { font-size: 24px; }
  .foot { margin-top: 48px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* 大屏幕多给一点宽度 */
@media (min-width: 1441px) {
  :root { --page: 1240px; }
}

/* 手机横放：把竖向的留白收一收 */
@media (max-height: 480px) and (orientation: landscape) {
  .intro { padding: 20px 0 16px; }
  .intro .eyebrow { margin-bottom: 6px; }
  .display { font-size: 26px; }
  .display span { display: inline; }
  .band { padding-top: 32px; }
}

/* 鼠标：悬停才有的效果只给能悬停的设备，触屏上不会"粘住" */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { opacity: 1; }
  .theme:hover { opacity: 1; background: var(--hover); }
  .tile:hover { box-shadow: var(--lift); }
  .tile:hover .ph img, .row a:hover .ph img { transform: scale(1.04); }
  .row a:hover h3, .crumb a:hover, .intro .eyebrow a:hover { color: var(--link); }
  .more:hover, .facts a:hover { text-decoration: underline; }
  .foot-links a:hover { color: var(--ink); text-decoration: underline; }
  .btn:hover { background: var(--btn-hover); }
}

/* 触屏：按下去有反馈，按钮够手指点 */
@media (hover: none), (pointer: coarse) {
  .tile:active { transform: scale(0.985); }
  .row a:active, .nav-links a:active, .more:active, .crumb a:active, .foot-links a:active { opacity: 0.5; }
  .btn:active { transform: scale(0.97); background: var(--btn-hover); }
  .theme { width: 44px; height: 44px; margin-right: -8px; }
  .theme:active { background: var(--hover); }
  .btn { padding: 12px 22px; }
  .more { margin: -11px 0; padding: 11px 0; }
  .foot-links a { padding: 11px 0; }
  .crumb a { margin: -10px 0; padding: 10px 0; }
}

/* 不认识 aspect-ratio 的旧浏览器（旧版 iOS 和安卓内置浏览器）：用留白撑出图框的比例 */
@supports not (aspect-ratio: 1 / 1) {
  .ph { height: 0; padding-top: 56.25%; }
  .ph img { position: absolute; top: 0; left: 0; }
  .ph-thumb { height: 72px; padding-top: 0; }
  .story-photos img { height: auto; }
  @media (min-width: 735px) {
    .tile-wide .ph, .tile-lead .ph { height: auto; padding-top: 0; }
  }
  @media (max-width: 734px) {
    .ph-thumb { height: 66px; }
  }
}

/* Windows 的高对比度模式：卡片没有底色了，补上边框 */
@media (forced-colors: active) {
  .tile, .panel, .facts, .source-box, .btn, .theme { border: 1px solid CanvasText; }
  .nav-links a.on { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .tile:hover .ph img, .row a:hover .ph img, .tile:active, .btn:active { transform: none; }
}

@media print {
  .nav, .foot, .skip, .band, .source-box .btn { display: none; }
  body, body.on-white { background: #fff; color: #000; }
  .story { padding-top: 0; }
}
