/* style.css — 首页样式（分区高度按 03-ui 量稿预算落位）
   设计基准 1440×2160；分区预算见 03-ui/compare-log.md。 */

/* ------------------------------------------------------------ M1 hero */
.hero {
  position: relative;
  height: 408px;
  overflow: hidden;
  background: var(--navy-ink);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 24, 45, .96) 0%, rgba(7, 28, 52, .90) 38%, rgba(7, 28, 52, .55) 62%, rgba(7, 28, 52, .10) 88%),
    linear-gradient(180deg, rgba(5, 24, 45, .25) 0%, rgba(5, 24, 45, 0) 40%, rgba(5, 24, 45, .45) 100%);
}
.hero-inner {
  position: relative;
  height: 100%;
  padding-top: 42px;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
}
.hero-eyebrow {
  margin: 0;
  color: var(--amber-soft);
  font-size: var(--fs-1);
  letter-spacing: .18em;
  font-weight: 600;
}
.hero h1 {
  margin: 14px 0 0;
  max-width: 600px;
  font-size: var(--fs-9);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .005em;
  color: var(--on-dark);
}
.hero-lead {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: var(--fs-4);
  line-height: 1.72;
  color: rgba(255, 255, 255, .80);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.hero-quick {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-2);
  color: var(--on-dark-soft);
}
.hero-quick li { display: flex; align-items: center; gap: 18px; }
.hero-quick li::after { content: ""; width: 1px; height: 11px; background: rgba(255, 255, 255, .32); }
.hero-quick li:last-child::after { display: none; }
.hero-quick a:hover { color: var(--on-dark); }

/* --------------------------------------------------- M2 category-index */
.cat-index {
  height: 287px;
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-index .container { height: 100%; padding-top: 30px; padding-bottom: 24px; }
.cat-index .section-title { font-size: var(--fs-6); }
.cat-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 60px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.cat-item { min-width: 0; }
.cat-item a { display: block; }
.cat-num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-num);
  line-height: 1.15;
  font-weight: 500;
  color: var(--num);
}
.cat-name {
  margin: 8px 0 0;
  font-size: var(--fs-5);
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy-900);
}
.cat-item a:hover .cat-name { color: var(--amber-deep); }
.cat-desc {
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-4);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ------------------------------------------------------- M3 featured */
.featured { height: 319px; }
.featured .container { padding-top: 31px; }
.featured-head { display: flex; align-items: baseline; justify-content: space-between; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 19px;
  padding: 0;
  list-style: none;
}
.feature-card a { display: block; }
.feature-thumb {
  aspect-ratio: 430 / 135;
  overflow: hidden;
  background: var(--band);
}
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .chip { margin-top: 9px; }
.feature-title {
  margin: 2px 0 0;
  font-size: var(--fs-5);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card a:hover .feature-title { color: var(--navy-900); }
.feature-summary {
  margin: 6px 0 0;
  font-size: var(--fs-3);
  line-height: 1.62;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------- M4 latest */
.latest { height: 361px; border-top: 1px solid var(--line); }
.latest .container { padding-top: 33px; }
.latest-list { margin: 8px 0 0; padding: 0; list-style: none; }
.latest-row { border-bottom: 1px solid var(--line); }
.latest-row a {
  display: grid;
  grid-template-columns: 125px 112px minmax(0, 290px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  height: 53px;
  padding: 0;
}
.latest-thumb {
  width: 125px;
  height: 46px;
  overflow: hidden;
  background: var(--band);
}
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-row .chip { font-size: var(--fs-1); color: var(--ink-mute); }
.latest-title {
  margin: 0;
  font-size: var(--fs-4);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-summary {
  margin: 0;
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-row a:hover .latest-title { color: var(--navy-900); }

/* ---------------------------------------------------------- M5 chain */
.chain { height: 264px; }
.chain .container { padding-top: 25px; }
.chain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 67px;
  margin-top: 21px;
  padding: 0;
  list-style: none;
}
.chain-tile {
  position: relative;
  height: 189px;
  overflow: hidden;
  color: var(--on-dark);
}
.chain-tile img { width: 100%; height: 100%; object-fit: cover; }
.chain-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 42, .30) 0%, rgba(6, 22, 42, .60) 55%, rgba(6, 22, 42, .88) 100%);
}
.chain-body {
  position: absolute;
  inset: auto 16px 14px;
  z-index: 1;
}
.chain-stage {
  margin: 0;
  font-size: var(--fs-1);
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--amber-soft);
}
.chain-name {
  margin: 4px 0 0;
  font-size: var(--fs-5);
  line-height: 1.35;
  font-weight: 700;
}
.chain-desc {
  margin: 5px 0 0;
  font-size: var(--fs-2);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------- M6 editorial-note */
.note { height: 244px; }
.note .container { padding-top: 31px; }
.note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px;
  margin-top: 28px;
}
.note-block h3 {
  margin: 0;
  font-size: var(--fs-4);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.note-block p {
  margin: 8px 0 0;
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
  .cat-list { gap: 34px; }
  .latest-row a { grid-template-columns: 110px 96px minmax(0, 1fr) minmax(0, .9fr); gap: 14px; }
  .latest-thumb { width: 110px; }
  .chain-grid { gap: 34px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    gap: 4px 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-item { position: static; }
  .nav-drop { display: none !important; }
  .hero { height: auto; min-height: 420px; }
  .hero-inner { padding-top: 40px; padding-bottom: 30px; }
  .hero-actions { margin-top: 22px; }
  .cat-index { height: auto; }
  .cat-index .container { padding-top: 32px; padding-bottom: 32px; }
  .cat-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; }
  .featured, .latest, .chain, .note { height: auto; }
  .featured .container, .latest .container, .chain .container, .note .container { padding-top: 36px; padding-bottom: 36px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .latest-row a { grid-template-columns: 96px 84px minmax(0, 1fr); grid-template-areas: "thumb chip title" "thumb chip summary"; row-gap: 2px; height: auto; padding: 12px 0; }
  .latest-thumb { grid-area: thumb; width: 96px; height: 58px; }
  .latest-row .chip { grid-area: chip; }
  .latest-title { grid-area: title; white-space: normal; }
  .latest-summary { grid-area: summary; white-space: normal; }
  .chain-grid { grid-template-columns: 1fr; gap: 16px; }
  .chain-tile { height: 190px; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-grid, .footer-row { flex-direction: column; gap: 24px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 14px; }
  .hero-quick { flex-wrap: wrap; gap: 10px; }
  .hero-quick li { gap: 10px; }
  .hero-quick li:last-child::after { display: none; }
  .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .featured-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-title { font-size: 22px; }
  .note-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-row { flex-direction: column; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .latest-row a { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "thumb chip" "thumb title" "summary summary"; }
  .latest-thumb { width: 84px; height: 54px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
