/* style.css — 特种船只综合网首页（1440 设计基准，断点 1440 / 900 / 600）
   分区预算取自 03-ui/home-ui-desktop.png 的剖面：
   header 0–64 / hero 64–432 / topics 432–748 / editor 748–935 / guides 935–1180 /
   spec 1180–1330 / steps 1330–1500 / faq 1500–1660 / notice 1660–1950 / footer 1950–2160 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-4);
  line-height: 1.6; letter-spacing: .01em; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================= M1 hero：整幅深色实拍 + 左侧白字（稿：y 68–432 全幅深蓝照片） ================= */
.hero { position: relative; height: 368px; overflow: hidden; background: var(--deep); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
/* 左侧压深，保证白字在照片上可读 */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(6,30,62,.90) 0%, rgba(7,34,70,.76) 38%, rgba(8,40,80,.58) 66%, rgba(9,44,86,.46) 100%),
    linear-gradient(180deg, rgba(9,38,74,.30) 0%, rgba(9,38,74,.16) 55%, rgba(6,28,58,.34) 100%);
}
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-copy { width: 700px; max-width: 64%; color: #fff; }
.hero .eyebrow { margin-bottom: 8px; color: var(--accent); }
.hero h1 { font-size: var(--fs-9); line-height: 1.04; color: #fff; letter-spacing: -.035em; }
.hero-lead { margin-top: 12px; font-size: var(--fs-4); line-height: 1.62; color: #dce8f6; max-width: 610px; }
.hero-sub { margin-top: 8px; font-size: var(--fs-3); color: #a8c4e0; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; }
.hero .btn--ghost { border-color: rgba(255,255,255,.62); color: #fff; background: rgba(255,255,255,.10); }
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible { background: #fff; color: var(--deep); border-color: #fff; }
.hero-stats { display: flex; align-items: baseline; gap: 0; margin: 16px 0 0; padding: 0; }
.hero-stats > div {
  display: flex; align-items: baseline; gap: 4px;
  padding-right: 20px; margin-right: 20px; border-right: 1px solid rgba(255,255,255,.24);
}
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dd { margin: 0; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-6); font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.hero-stats dt { font-size: var(--fs-2); color: #b9cee4; letter-spacing: .02em; }
.hero-stat-note { font-size: var(--fs-1); color: #a8c4e0; }
.hero-side {
  position: absolute; right: -46px; top: 50%; transform: translateY(-50%) rotate(90deg);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; letter-spacing: .26em;
  color: rgba(255,255,255,.66); white-space: nowrap;
}

/* ================= M2 category-grid：5 卡等宽 + 入口格 ================= */
.topics { padding: 16px 0 14px; background: var(--bg-alt-2); }
.topics .sec-head { align-items: baseline; }
.topics .sec-head h2 { font-size: var(--fs-5); }
.topic-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 12px;
}
.topic-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-1);
  text-decoration: none; overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}
.topic-card:hover, .topic-card:focus-visible { border-color: var(--deep); transform: translateY(-2px); }
.topic-media { position: relative; display: block; aspect-ratio: 256 / 96; overflow: hidden; background: var(--bg-alt-2); }
.topic-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.topic-num {
  position: absolute; right: 8px; top: 6px; z-index: 1;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; font-weight: 700;
  color: #2a2000; background: var(--accent); padding: 1px 6px; border-radius: var(--r-1);
}
.topic-name { margin: 6px 9px 0; font-size: var(--fs-4); line-height: 1.25; color: var(--deep); }
.topic-desc { margin: 4px 9px 9px; font-size: 11px; line-height: 1.45; color: var(--ink-2); }
.topic-meta {
  margin: 8px 10px 10px; margin-top: auto; padding-top: 8px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10.5px; letter-spacing: .06em;
  color: var(--muted); border-top: 1px solid var(--line);
}
.topic-card--more {
  justify-content: center; background: var(--deep); border-color: var(--deep);
  padding: 18px 14px;
}
.topics-foot {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-2);
  font-size: 11px; color: var(--muted); letter-spacing: .01em;
}
.topic-card--more .topic-name { color: #fff; margin: 8px 0 0; }
.topic-card--more .topic-desc { color: var(--inv-dim); margin: 6px 0 0; }
.topic-card--more .topic-num { background: transparent; color: var(--accent); right: 10px; top: 8px; }
.topic-more { color: var(--accent); }

/* ================= M3 editor-picks：3 张横排图文卡 ================= */
.editor { padding: 14px 0 14px; background: var(--bg); }
.editor-head { align-items: baseline; }
.editor-lead { margin-top: 5px; max-width: 1000px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.editor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.pick {
  display: grid; grid-template-columns: 86px 1fr; gap: 9px; align-items: start;
  padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-1);
  text-decoration: none; transition: border-color .16s ease, background .16s ease;
}
.pick:hover, .pick:focus-visible { border-color: var(--deep); background: #f2f8ff; }
.pick-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt-2); }
.pick-media img { width: 100%; height: 100%; object-fit: cover; }
.pick-body { display: flex; flex-direction: column; gap: 3px; }
.pick-title { font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--deep); }
.pick-desc { font-size: 10.5px; line-height: 1.45; color: var(--ink-2); }

/* ================= M4 guide-list：3 列，每列照片 + 2 条判断 ================= */
.guides { padding: 12px 0 12px; background: var(--bg-alt); }
.guides .sec-head { align-items: baseline; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.guide-col { display: flex; flex-direction: column; gap: 8px; }
.guide-photo { display: block; aspect-ratio: 428 / 54; overflow: hidden; background: var(--bg); }
.guide-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-list { list-style: none; margin: 0; padding: 0; counter-reset: guide; }
.guide-list li {
  display: grid; grid-template-columns: 26px 1fr; column-gap: 8px;
  padding: 4px 0; border-top: 1px solid var(--line-2);
}
.guide-list li::before {
  counter-increment: guide;
  content: counter(guide, decimal-leading-zero);
  grid-row: 1 / span 3; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px;
  color: var(--accent-deep); padding-top: 2px;
}
.guide-list .tag { justify-self: start; grid-column: 2; }
.guide-title { grid-column: 2; font-size: 12px; line-height: 1.35; color: var(--deep); }
.guide-desc { grid-column: 2; font-size: 10.5px; line-height: 1.42; color: var(--ink-2); }

/* ================= M5 spec-table ================= */
.spec { padding: 8px 0; background: var(--bg); }
.spec-head { align-items: baseline; }
.spec-scroll { position: relative; margin-top: 8px; width: 100%; max-width: 100%; overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 10px; line-height: 1.2; min-width: 980px; }
.spec-table thead th {
  background: var(--deep); color: var(--inv); text-align: left;
  font-weight: 600; letter-spacing: .03em; padding: 4px 10px; white-space: nowrap;
}
.spec-table tbody th, .spec-table td {
  padding: 1px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.spec-table tbody th { font-weight: 600; color: var(--deep); white-space: nowrap; }
.spec-table tbody td { color: var(--ink-2); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom-color: var(--line-2); }
.spec-table tbody tr:hover { background: #f2f8ff; }

/* ================= M6 steps：四列等宽，1px 分隔 ================= */
.steps { padding: 14px 0 16px; background: var(--bg); }
.steps-head { align-items: baseline; }
.step-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 0 20px; border-left: 1px solid var(--line-2); }
.step:first-child { border-left: 0; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num { display: block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; font-weight: 700; color: var(--accent-deep); letter-spacing: .08em; }
.step-title { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--deep); }
.step-desc { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.5; color: var(--ink-2); }

/* ================= M7 faq：深蓝标题条 + 两列折叠问答 ================= */
.faq { padding: 0 0 14px; background: var(--bg); }
.faq-band {
  display: flex; align-items: center; gap: 14px; min-height: 34px;
  background: var(--deep); color: var(--inv); border-radius: var(--r-1); padding: 0 16px;
}
.faq-kicker { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10.5px; letter-spacing: .18em; color: var(--accent); white-space: nowrap; }
.faq-band h2 { font-size: var(--fs-4); color: #fff; white-space: nowrap; }
.faq-note {
  margin: 8px 0 0; font-size: 11px; color: var(--muted);
  letter-spacing: .01em; border-left: 2px solid var(--accent); padding-left: 10px;
}
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; margin-top: 7px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-1); padding: 0 14px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 3px 24px 3px 0; position: relative;
  font-size: 11.5px; font-weight: 600; line-height: 1.4; color: var(--deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-5); color: var(--accent-deep);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 7px; font-size: 10px; line-height: 1.55; color: var(--ink-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }

/* ================= M8 notice：左多栏说明 + 右图 ================= */
.notice { padding: 14px 0 16px; background: var(--bg-alt); }
.notice-inner { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.notice-text { column-count: 3; column-gap: 28px; column-rule: 1px solid var(--line-2); font-size: 10.5px; line-height: 1.72; color: var(--ink-2); }
.notice-text h2 { column-span: all; margin-bottom: 8px; font-size: var(--fs-5); color: var(--deep); }
.notice-text p { margin-bottom: 6px; break-inside: avoid; }
.notice-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg); }
.notice-cap { margin-top: 6px; font-size: 10px; line-height: 1.45; color: var(--muted); }


/* ================= 分区高度预算（量稿：1440 设计宽下的 y 区间） */
/* header 64 / hero 368 / topics 316 / editor 187 / guides 245 /
   spec 150 / steps 170 / faq 160 / notice 290 / footer 210 = 2160 */
.topics { min-height: 316px; display: flex; flex-direction: column; justify-content: center; }
.editor { min-height: 187px; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.guides { min-height: 245px; display: flex; flex-direction: column; justify-content: center; }
.spec { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.steps { min-height: 170px; display: flex; flex-direction: column; justify-content: center; }
.faq { min-height: 160px; display: flex; flex-direction: column; justify-content: center; padding: 0 0 8px; }
.notice { min-height: 290px; display: flex; flex-direction: column; justify-content: center; }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .editor-grid { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 132px 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .notice-inner { grid-template-columns: 1fr; }
  .notice-media { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: 64px; z-index: 39;
    display: none; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 16px;
  }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 13px 4px; font-size: var(--fs-4); border-bottom: 1px solid var(--line); }
  .hero { height: auto; padding: 30px 0 26px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(6,32,64,.88), rgba(6,32,64,.78)); }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero h1 { font-size: var(--fs-8); }
  .hero-side { display: none; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .notice-text { column-count: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  :root { --gut: 16px; }
  .hero h1 { font-size: var(--fs-7); }
  .topic-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .step { border-left: 0; padding: 12px 0 4px; border-top: 1px solid var(--line-2); }
  .step:first-child { border-top: 0; padding-top: 0; }
  .picker, .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { padding-right: 14px; margin-right: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-band { flex-wrap: wrap; gap: 6px; padding: 10px 16px; }
  .faq-note { margin-left: 0; }
}

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