/* ============================================================
   鹈鹕 · 站点插件测试
   纸质底 · 墨色字 · 群青绿与赭石点缀
   ============================================================ */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --ink: #1b1a17;
  --ink-2: #4a4740;
  --ink-3: #8b8578;
  --rule: rgba(27, 26, 23, 0.14);
  --teal: #17564f;
  --teal-soft: #d9e4de;
  --ochre: #b8703a;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1240px;
  --gut: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 纸张纹理：极淡的斜向噪点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(45deg, rgba(27,26,23,.012) 0 1px, transparent 1px 3px);
}

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- 顶部 ---------- */

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gut) 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50% 50% 46% 54% / 58% 62% 38% 42%;
  position: relative;
  transform: rotate(-12deg);
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 16px; height: 2px;
  background: var(--ink);
  transform: translate(-30%, 0) rotate(18deg);
  transform-origin: left center;
}
.brand-mark.small { width: 16px; height: 16px; border-width: 1.2px; }
.brand-mark.small::after { width: 11px; height: 1.4px; }

.brand-text {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
}
.brand-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  margin-left: 8px;
}

.top-right { display: flex; align-items: center; gap: 22px; }

.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .1em;
  color: var(--teal);
  font-family: var(--mono);
}
.live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 3px rgba(184,112,58,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
.live[data-state="ok"] i { background: var(--teal); box-shadow: 0 0 0 3px rgba(23,86,79,.14); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.top-note { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

/* ---------- 首屏 ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) var(--gut) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 148px);
  line-height: .92;
  letter-spacing: .04em;
}

.h1-en {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .56em;
  color: var(--ink-3);
  font-weight: 400;
}

.lede {
  margin: 30px 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.95;
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.btn-ghost:hover { background: rgba(27,26,23,.06); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 44px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  word-break: break-all;
}

.hero-figure { margin: 0; }

.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  border-radius: 2px;
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- 数据条 ---------- */

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.stat {
  padding: 26px 24px 26px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat-k { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-3); }
.stat-v {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.stat-v small {
  font-size: .34em;
  letter-spacing: .06em;
  margin-left: 4px;
  color: var(--ink-3);
  font-family: var(--sans);
}
.stat-n { margin-top: 8px; font-size: 12px; color: var(--ink-2); }

/* ---------- 三段笔记 ---------- */

.notes {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gut);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
}

.note { border-top: 1px solid var(--ink); padding-top: 22px; }
.note-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ochre);
}
.note h2 {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.42;
  letter-spacing: .01em;
}
.note p { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }

/* ---------- 细节 ---------- */

.detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--paper-2);
  max-width: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.detail-figure { margin: 0; max-width: 560px; justify-self: end; width: 100%; }
.detail-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.detail-copy { max-width: 480px; }
.detail-copy h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.32;
}
.detail-copy p { margin: 0 0 16px; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.detail-quote {
  margin-top: 28px !important;
  padding-left: 18px;
  border-left: 2px solid var(--ochre);
  font-family: var(--serif);
  font-size: 19px !important;
  color: var(--ink) !important;
}

/* ---------- 喂鱼 ---------- */

.feed {
  background: var(--ink);
  color: var(--paper);
}
.feed-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feed .eyebrow { color: rgba(246,241,231,.45); }
.feed h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.2;
}
.feed-copy p { color: rgba(246,241,231,.66); font-size: 15px; margin: 0 0 10px; max-width: 26em; }
.feed-btn {
  margin-top: 26px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.feed-btn:hover { background: var(--ochre); border-color: var(--ochre); color: var(--paper); }
.feed-btn .fish { font-size: 15px; display: inline-block; transition: transform .3s ease; }
.feed-btn:hover .fish { transform: translateX(4px) rotate(-8deg); }
.feed-count { margin-top: 18px !important; font-family: var(--mono); font-size: 12px !important; letter-spacing: .1em; }
.feed-count strong { color: var(--paper); font-size: 15px; }

.feed-card {
  border: 1px solid rgba(246,241,231,.22);
  border-radius: 3px;
  padding: clamp(24px, 3vw, 38px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(246,241,231,.03);
}
.feed-card-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ochre);
  text-transform: uppercase;
}
.feed-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.66;
  color: var(--paper);
  flex: 1;
}
.feed-card-idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(246,241,231,.4);
}
.feed-card.flip p { animation: flipIn .5s ease; }
@keyframes flipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 自检 ---------- */

.check {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gut);
}
.check-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
}
.check-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.3;
}
.check-desc { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-2); max-width: 34em; }

.check-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding-top: 10px;
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.ck-name { font-size: 14px; color: var(--ink-2); }
.ck-val {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}
.ck-val::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.check-list li[data-state="ok"] .ck-val { color: var(--teal); }
.check-list li[data-state="ok"] .ck-val::before { background: var(--teal); }
.check-list li[data-state="warn"] .ck-val { color: var(--ochre); }
.check-list li[data-state="warn"] .ck-val::before { background: var(--ochre); }

.check-readout {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 18px;
  align-self: start;
}
.readout-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
}
.readout-row:last-child { border-bottom: 0; }
.readout-row span { color: var(--ink-3); letter-spacing: .08em; }
.readout-row b { font-weight: 500; color: var(--ink-2); text-align: right; word-break: break-all; }

.check-sum {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--teal);
}

/* ---------- 页脚 ---------- */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gut) 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.foot-left, .foot-right { display: flex; align-items: center; gap: 14px; }
.foot-right { gap: 22px; }

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .06s; }
.hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .18s; }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .notes { grid-template-columns: 1fr; gap: 34px; }
  .detail { grid-template-columns: 1fr; }
  .detail-figure { justify-self: start; max-width: 100%; }
  .feed-inner { grid-template-columns: 1fr; }
  .check-head { grid-template-columns: 1fr; align-items: start; }
  .check-body { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .top { padding-top: 18px; padding-bottom: 16px; }
  .top-note { display: none; }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(60px, 20vw, 96px); }
  .hero-meta { flex-direction: column; gap: 12px; }
  .stat { padding: 20px 14px 20px 0; }
  .stats { padding-bottom: 40px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live i { animation: none; }
  .feed-card.flip p { animation: none; }
  .btn, .feed-btn .fish { transition: none; }
}
