/* ============================================================
   style.css · 路亚钓鱼线材质综合 — 首页 + 内页共用版式
   分区高度按 03-ui/home-ui-desktop.png 量出的预算落位（1440 基准）
   ============================================================ */

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  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.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .01em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

/* ---------- M0 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  background: var(--navy);
  color: var(--on-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  padding: 0 var(--gutter-wide);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-9);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--on-dark);
  white-space: nowrap;
}

.brand__mark {
  width: 22px;
  height: 22px;
  color: var(--accent-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 104px;
  font-size: var(--fs-3);
  color: var(--on-dark-soft);
}

.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav a:hover,
.nav a:focus-visible { color: var(--white); border-bottom-color: var(--accent-light); }

.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent-light); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 3.5px auto;
  background: currentColor;
}

/* ---------- M1 首屏 ---------- */
.hero {
  position: relative;
  height: 344px;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 55px;
  padding-left: 55px;
}

.hero__text { max-width: 660px; }

.hero h1 {
  color: var(--white);
  font-size: var(--fs-hero);
  line-height: 1.2;
  letter-spacing: .02em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 19px;
  max-width: 604px;
  font-size: var(--fs-6);
  line-height: 2.1;
  color: var(--hero-lead);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: var(--fs-3);
  color: var(--hero-pill);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--hero-pill-line);
  border-radius: var(--radius-pill);
  letter-spacing: .06em;
}

.hero__photo {
  position: absolute;
  top: 0;
  right: max(0px, calc((100vw - var(--wrap)) / 2));
  width: 57%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  z-index: 1;
}

.hero__photo-fade {
  position: absolute;
  top: 0;
  left: calc(max(0px, calc((100vw - var(--wrap)) / 2)) + 40%);
  width: 22%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(90deg, var(--navy) 8%, var(--hero-fade-mid) 55%, var(--hero-fade) 100%);
}

/* ---------- M2 分类索引 ---------- */
.cat-index {
  height: 284px;
  padding-top: 30px;
}

.cat-index__panel {
  margin-top: 10px;
  padding: 18px 20px 16px;
  background: var(--bg-panel);
  border: 1px solid #e4edf5;
  border-radius: var(--radius);
}

.cat-index h2 {
  font-size: var(--fs-11);
  line-height: 1.15;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.cat-tile { display: block; }

.cat-tile__thumb {
  display: block;
  width: 96px;
  aspect-ratio: 96 / 86;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--thumb-bg);
}

.cat-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform .35s ease;
}

.cat-tile:hover .cat-tile__thumb img { transform: scale(1.04); }

.cat-tile__name {
  display: block;
  margin-top: 9px;
  font-size: var(--fs-8);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}

.cat-tile__desc {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-3);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- M3 精选三条 ---------- */
.featured {
  height: 412px;
  padding-top: 31px;
  background: var(--bg);
}

.featured__grid { align-items: start; }

.featured h2 {
  font-size: var(--fs-11);
  line-height: 1.15;
}

.featured__grid {
  display: grid;
  grid-template-columns: 455fr 422fr 457fr;
  gap: 19px;
  margin-top: 15px;
}

.fcard {
  display: block;
}

.fcard__media {
  display: block;
  aspect-ratio: 455 / 127;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--media-bg);
}

.fcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform .45s ease;
}

.fcard:nth-child(2) .fcard__media { aspect-ratio: 422 / 127; }
.fcard:nth-child(3) .fcard__media { aspect-ratio: 457 / 127; }

.fcard:hover .fcard__media img { transform: scale(1.03); }

.fcard h3 {
  margin-top: 18px;
  font-size: var(--fs-10);
  line-height: 30px;
}

.fcard p {
  margin-top: 10px;
  max-width: 386px;
  font-size: var(--fs-7);
  line-height: 28px;
  color: var(--card-sum);
}

/* ---------- M4 材质速查表 ---------- */
.spec {
  height: 328px;
  padding-top: 27px;
}

.spec h2 {
  font-size: var(--fs-11);
  line-height: 1.15;
}

.spec__table {
  width: 100%;
  margin-top: 7px;
  border-collapse: collapse;
  font-size: var(--fs-4);
}

.spec__table caption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.spec__table thead th {
  height: 38px;
  padding: 0 20px;
  background: var(--navy-band);
  color: var(--white);
  font-size: var(--fs-3);
  font-weight: 600;
  letter-spacing: .12em;
  text-align: left;
  white-space: nowrap;
}

.spec__table thead th:first-child {
  padding-left: 100px;
  border-radius: var(--radius-sm) 0 0 0;
}

.spec__table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.spec__table tbody th,
.spec__table tbody td {
  height: 38px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-table);
  text-align: left;
  vertical-align: middle;
  color: var(--body);
}

.spec__table tbody th:first-child {
  padding-left: 100px;
  color: var(--ink);
  font-weight: 700;
}

.spec__table tbody tr:hover td,
.spec__table tbody tr:hover th { background: var(--row-hover); }

.spec__note {
  margin-top: 66px;
  font-size: var(--fs-3);
  color: var(--muted);
}

/* ---------- M5 选线四步 ---------- */
.steps {
  height: 160px;
}

.steps__panel {
  height: 160px;
  padding: 16px 26px 0;
  background: var(--bg-band);
  border-radius: var(--radius);
}

.steps h2 {
  font-size: var(--fs-11);
  line-height: 1.2;
}

.steps__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 84px;
  margin-top: 20px;
}

.step {
  padding: 0;
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step__no {
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
}

.step__name {
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.step__desc {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-2);
  line-height: 1.78;
  color: var(--step-desc);
}

/* ---------- M6 场景反查 ---------- */
.scene {
  height: 260px;
  padding-top: 20px;
}

.scene h2 { font-size: var(--fs-11); }

.scene__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 5px;
}

.scard {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.scard__media {
  position: absolute;
  inset: 0;
  display: block;
}

.scard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform .5s ease;
}

.scard:hover .scard__media img { transform: scale(1.04); }

.scard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--shade-none) 34%, var(--shade-mid) 62%, var(--shade-strong) 100%);
}

.scard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 15px 13px;
  color: var(--on-dark);
}

.scard__scene {
  display: block;
  font-size: var(--fs-3);
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.scard__line {
  display: block;
  margin-top: 8px;
  max-width: 168px;
  font-size: var(--fs-2);
  line-height: 1.75;
  color: var(--scene-line);
}

/* ---------- M7 收录说明 ---------- */
.note {
  height: 170px;
  padding-top: 20px;
}

.note__card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  height: 132px;
  padding: 0 32px;
  background: var(--bg-note);
  border-radius: var(--radius);
}

.note__label {
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
}

.note__body {
  font-size: var(--fs-4);
  line-height: 1.9;
  color: var(--prose);
}

/* ---------- M8 页脚 ---------- */
.site-footer {
  height: 130px;
  background: var(--navy-deep);
  color: var(--footer-text);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: center;
  gap: 10px 28px;
  height: 100%;
  padding-top: 6px;
}

.site-footer__brand {
  font-size: var(--fs-5);
  line-height: 1.4;
  font-weight: 700;
  color: var(--on-dark-heading);
  letter-spacing: .04em;
  white-space: nowrap;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: var(--fs-3);
  line-height: 1.7;
}

.site-footer__links a:hover { color: var(--white); }

.site-footer__meta {
  flex: 1 0 100%;
  font-size: var(--fs-2);
  line-height: 1.7;
  color: var(--footer-meta);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .hero { height: auto; padding-bottom: 48px; }
  .hero__inner { padding-top: 44px; }
  .hero h1 { font-size: var(--fs-hero-md); }
  .hero__photo { position: relative; width: 100%; height: 260px; margin-top: 30px; }
  .hero__photo-fade { display: none; }
  .cat-index, .featured, .spec, .steps, .scene, .note { height: auto; }
  .steps { height: auto; padding-bottom: 24px; }
  .steps__panel { height: auto; padding: 20px 22px 24px; }
  .cat-index { padding-bottom: 10px; }
  .featured { padding-bottom: 24px; }
  .spec { padding-bottom: 10px; }
  .scene { padding-bottom: 22px; }
  .note { padding-bottom: 26px; }
  .nav { gap: 18px; font-size: var(--fs-2); }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
  .steps__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .scene__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { height: auto; padding: 24px 0; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 34px 18px;
    background: var(--navy);
    border-top: 1px solid var(--on-dark-line);
  }
  .site-header.is-open .nav a { padding: 10px 0; width: 100%; }
  .hero h1 { font-size: var(--fs-hero-sm); }
  .hero__lead { font-size: var(--fs-4); line-height: 1.9; }
  .hero__inner { padding-left: 34px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured__grid { grid-template-columns: 1fr; gap: 26px; }
  .fcard__media { aspect-ratio: 16 / 7; }
  .steps__row { grid-template-columns: 1fr; gap: 22px; }
  .scene__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note__card { grid-template-columns: 1fr; gap: 8px; height: auto; padding: 22px; }
  .spec__table thead th:first-child,
  .spec__table tbody th:first-child { padding-left: 16px; }
  .spec__table { font-size: var(--fs-3); }
  .spec__table thead th, .spec__table tbody th, .spec__table tbody td { padding: 0 10px; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .hero h1 { font-size: var(--fs-hero-xs); }
  .hero__points { gap: 8px; }
  .hero__points li { height: 34px; padding: 0 14px; font-size: var(--fs-2); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .cat-tile__name { font-size: var(--fs-5); }
  .scene__row { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer__meta { margin-left: 0; }
  .spec__table { display: block; overflow-x: auto; white-space: nowrap; }
}
