/* style.css — 首页版式。设计基准 1440×2160（见 03-ui/compare-log.md 分区预算），
   颜色与字号一律走 tokens.css 的语义变量。 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-10);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-serif); color: var(--brand-deep); }
p { margin: 0; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 40;
  background: var(--brand); color: var(--ink-invert); padding: 8px 14px;
  text-decoration: none; font-size: 13px; border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }
.wrap { width: min(var(--content), calc(100% - 112px)); margin-inline: auto; }

/* -------------------------------------------------------------- header */
.site-header {
  height: 78px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { flex: 0 0 auto; color: var(--brand); display: block; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand);
  line-height: 1.12;
  white-space: nowrap;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; margin-left: auto; min-width: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 14px; }
.site-nav li { position: relative; }
.site-nav a {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 2px;
  font-size: var(--fs-8);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a.is-active {
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 0 13px;
  color: var(--brand);
}
.site-nav .nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 172px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 60;
  white-space: normal;
}
.site-nav li:hover > .nav-drop { display: block; }
.site-nav .nav-drop a { display: block; height: auto; padding: 6px 10px; font-size: 13px; border-radius: 6px; }
.site-nav .nav-drop a:hover { background: var(--accent-soft); }
.site-nav .nav-all > a { color: var(--accent-deep); font-weight: 600; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--brand);
  font-size: var(--fs-5);
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-deep); }
.nav-cta svg { width: 14px; height: 14px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 9px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--brand); margin: 4px 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 514px;
  overflow: hidden;
  background: var(--brand-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(24, 34, 16, 0.95) 0%,
    rgba(24, 34, 16, 0.86) 34%,
    rgba(24, 34, 16, 0.35) 58%,
    rgba(24, 34, 16, 0.02) 78%,
    rgba(24, 34, 16, 0) 100%);
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 660px; color: var(--ink-invert); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #cfdab6;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: #cfdab6; }
.hero-title {
  margin: 10px 0 6px;
  font-size: 62px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #fff;
}
.hero-sub {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  color: #e8eeda;
}
.hero-lede {
  max-width: 610px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(247, 242, 226, 0.88);
}
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-5);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-solid { background: var(--brand); color: var(--ink-invert); }
.btn-solid:hover { background: var(--brand-deep); }
.btn-ghost { border-color: rgba(247, 242, 226, 0.5); color: #f7f2e2; }
.btn-ghost:hover { border-color: #f7f2e2; }

/* ----------------------------------------------------------- fact band */
.fact-band { height: 124px; }
.fact-inner {
  height: 124px;
  background: var(--paper-2);
  border-radius: var(--r-2);
  display: grid;
  grid-template-columns: 205px repeat(4, 1fr);
  align-items: center;
  padding: 0 30px;
}
.fact-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  border-right: 1px solid var(--line-strong);
}
.fact-lead svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; }
.fact-lead h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.fact { padding-left: 26px; border-left: 1px solid var(--line-strong); }
.fact:first-of-type { border-left: 0; }
.fact dt {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  margin-bottom: 5px;
}
.fact dd {
  margin: 0;
  max-width: 215px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

/* ------------------------------------------------------------ sections */
.section { padding: 0; }
.col-head { text-align: center; margin: 0 0 16px; }
.col-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.col-head h2::before, .col-head h2::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}
.col-head p {
  margin: 8px auto 0;
  max-width: 960px;
  font-size: var(--fs-6);
  line-height: 1.7;
  color: var(--ink-soft);
}
.count-pill {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 15px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: var(--r-pill);
  font-size: 11.5px;
  text-decoration: none;
}
.count-pill:hover { background: var(--accent); color: var(--ink-invert); }

/* ---------------------------------------------------------- categories */
.categories { padding: 18px 0 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat-card {
  min-height: 239px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.cat-card:hover { border-color: var(--accent); background: var(--paper-2); }
.cat-icon { display: flex; justify-content: center; }
.cat-icon svg { width: 30px; height: 30px; color: var(--accent); }
.cat-card h3 {
  margin: 9px 0 5px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
.cat-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 9px;
  font-size: 10.5px;
  color: var(--accent-deep);
}
.cat-tags span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--line-strong);
}
.cat-card p {
  margin: 9px 0 0;
  font-size: 11.6px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ featured */
.featured { padding: 22px 0 74px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.entry-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  overflow: hidden;
}
.entry-card .thumb { display: block; position: relative; aspect-ratio: 3.8 / 1; }
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute;
  left: 14px;
  bottom: -12px;
  display: inline-block;
  padding: 4px 11px;
  background: var(--brand);
  color: var(--ink-invert);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.entry-body { display: block; padding: 22px 16px 18px; }
.entry-body h3 { display: block;
  margin: 0 0 7px;
  font-size: var(--fs-11);
  line-height: 1.4;
  font-weight: 700;
}
.entry-body p { display: block;
  margin: 0;
  padding-right: 42px;
  font-size: 12.2px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.round-arrow {
  position: absolute;
  right: 15px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--paper-card);
}
.round-arrow svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------ longform */
.longform { height: 145px; }
.longform-inner {
  height: 145px;
  display: grid;
  grid-template-columns: 248px 1fr auto;
  align-items: center;
  gap: 0;
  padding: 8px 26px 8px 8px;
  background: var(--paper-2);
  border-radius: var(--r-2);
}
.longform-media { height: 129px; border-radius: 9px; overflow: hidden; }
.longform-media img { width: 100%; height: 100%; object-fit: cover; }
.longform-copy {
  margin-left: 14px;
  padding: 0 26px;
  border-left: 1px solid var(--line-strong);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.longform-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.longform-copy p {
  max-width: 730px;
  font-size: 12.2px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.longform .btn { margin-right: 6px; }

/* -------------------------------------------------------------- safety */
.safety { padding: 0; }
.safety-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: 372px 1fr;
  align-items: center;
  gap: 34px;
  padding: 18px 32px;
  background: var(--paper-3);
  border-radius: var(--r-2);
}
.safety-lead { display: flex; gap: 13px; align-items: flex-start; }
.safety-lead > svg { width: 32px; height: 32px; color: var(--danger); flex: 0 0 auto; margin-top: 2px; }
.safety-lead h2 { margin: 0 0 5px; font-size: 22px; line-height: 1.3; font-weight: 700; }
.safety-lead p { font-size: 12.2px; color: var(--ink-soft); }
.safety-grid { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: safety; }
.safety-item { display: flex; gap: 10px; align-items: flex-start; counter-increment: safety; }
.safety-item::before {
  content: counter(safety, decimal-leading-zero);
  flex: 0 0 19px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.safety-item p { font-size: 12px; line-height: 1.75; color: var(--ink-soft); }
.safety-item b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------- scope */
.scope { padding: 0; }
.scope-inner {
  position: relative;
  min-height: 162px;
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 26px;
  padding: 22px 36px;
  background: var(--paper-2);
  border-radius: var(--r-2);
  overflow: hidden;
}
.scope-label { display: flex; gap: 10px; align-items: flex-start; }
.scope-label > svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.scope-label h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.scope-body { position: relative; z-index: 1; }
.scope-body p {
  margin: 0 0 5px;
  font-size: 11.6px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 940px;
}
.scope-leaf {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 120px;
  height: 120px;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  padding: 30px 0 14px;
  background: var(--brand);
  color: var(--ink-invert);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-brand { flex: 1 1 260px; min-width: 220px; }
.footer-col { flex: 1 1 170px; min-width: 150px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 242, 226, 0.22);
  font-size: 11px;
  color: rgba(247, 242, 226, 0.66);
}
.footer-icp, .footer-icp-inline { color: rgba(247, 242, 226, 0.66); }
.footer-icp-inline { font-size: 11.5px; }
.footer-col h2 {
  margin: 0 0 7px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(247, 242, 226, 0.55);
}
.footer-name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-brand p { margin-top: 7px; font-size: 11.5px; line-height: 1.7; color: rgba(247, 242, 226, 0.68); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 5px 15px; font-size: 11.5px; }
.footer-nav a { color: rgba(247, 242, 226, 0.86); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { text-align: right; font-size: 10.5px; line-height: 1.9; color: rgba(247, 242, 226, 0.6); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1400px) {
  .header-inner { gap: 16px; }
  .site-nav { margin-left: 0; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav > ul { gap: 14px; padding-right: 10px; }
  .site-nav a { font-size: 13px; }
  .site-nav .nav-drop { display: none !important; }
  .nav-toggle, .nav-cta { display: none; }
}
@media (max-width: 1180px) {
  .wrap { width: calc(100% - 64px); }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .brand-name { font-size: 24px; }
  .hero-title { font-size: 52px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card { min-height: 0; }
}
@media (max-width: 900px) {
  .site-header { height: 70px; }
  .header-inner { height: 70px; gap: 12px; }
  .nav-toggle, .nav-cta { display: none; }
  .site-nav { margin-left: 0; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav > ul { gap: 14px; padding-right: 10px; }
  .site-nav a { height: 34px; font-size: 13px; }
  .hero { height: auto; min-height: 520px; }
  .hero-inner { padding: 48px 0; align-items: flex-end; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 20px; }
  .hero-lede { font-size: 14px; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(24,34,16,.55) 0%, rgba(24,34,16,.78) 45%, rgba(24,34,16,.93) 100%);
  }
  .fact-inner { height: auto; grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 22px 26px; }
  .fact-band { height: auto; }
  .fact-lead { grid-column: 1 / -1; height: auto; border-right: 0; border-bottom: 1px solid var(--line-strong); padding-bottom: 12px; }
  .fact { border-left: 0; padding-left: 0; }
  .fact:nth-of-type(even) { border-left: 1px solid var(--line-strong); padding-left: 22px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card .thumb { aspect-ratio: 3.4 / 1; }
  .longform { height: auto; }
  .longform-inner { height: auto; grid-template-columns: 1fr; padding: 10px; gap: 14px; }
  .longform-media { height: 180px; }
  .longform-copy { margin-left: 0; padding: 4px 14px 0; border-left: 0; }
  .longform .btn { margin: 0 14px 10px; align-self: flex-start; }
  .safety-inner { grid-template-columns: 1fr; gap: 18px; }
  .scope-inner { grid-template-columns: 1fr; gap: 14px; }
  .site-footer { padding: 30px 0 14px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-brand, .footer-col { flex: 0 0 auto; width: 100%; min-width: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 40px); }
  .brand-name { font-size: 20px; white-space: normal; }
  .brand-sub { font-size: 9px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 18px; }
  .hero-actions { flex-wrap: wrap; }
  .fact-inner { grid-template-columns: 1fr; }
  .fact:nth-of-type(even) { border-left: 0; padding-left: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .col-head h2 { font-size: 22px; }
  .col-head h2::before, .col-head h2::after { width: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .scope-inner { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
