/* 钓鱼工具配件综合 · 页面版式（首页 / 分类页 / 详情页）
   分区高度按 03-ui/compare-log.md 的分区预算落位（1440 设计宽：2160 总高）。 */

/* ================================================================ 基础 */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-5);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  -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: var(--fw-semibold);
  line-height: 1.25;
}

p { margin: 0; }

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

button, input, select { font: inherit; color: inherit; }

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--navy);
  color: var(--ink-invert);
  border-radius: var(--r-2);
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

.num { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-variant-numeric: tabular-nums; }

/* 分区标题（左标题 + 右一句说明） */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.sec-head h2 {
  font-size: var(--fs-13);
  letter-spacing: .01em;
  flex: 0 0 auto;
}
.sec-head .sec-note {
  font-size: var(--fs-5);
  color: var(--ink-3);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
}

/* 通栏深色块里的浅字 */
.on-navy { color: var(--navy-ink); }

/* ================================================================ M0 页头 */

.site-header {
  position: relative;
  z-index: 30;
  height: 71px;
  background: var(--navy);
  border-bottom: 3px solid var(--accent-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--ink-invert);
  font-size: var(--fs-10);
  font-weight: var(--fw-semibold);
  letter-spacing: .01em;
}
.brand svg {
  width: 26px; height: 26px;
  padding: 4px;
  border-radius: var(--r-3);
  background: rgba(152, 200, 251, .16);
  color: var(--accent-soft);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}
.site-nav a {
  position: relative;
  padding: 7px 8px;
  font-size: var(--fs-5);
  color: var(--navy-ink-2);
  white-space: nowrap;
  border-radius: var(--r-1);
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover { color: var(--ink-invert); background: rgba(152, 200, 251, .12); }
.site-nav a[aria-current="page"] { color: var(--ink-invert); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 1px;
  height: 2px;
  background: var(--accent-soft);
}
.header-tools { flex: 0 0 auto; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: rgba(152, 200, 251, .14);
  color: var(--accent-soft);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--accent-soft); color: var(--navy); }
.nav-toggle {
  display: none;
  width: 34px; height: 30px;
  padding: 6px 7px;
  border: 1px solid rgba(152, 200, 251, .3);
  border-radius: var(--r-2);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.6px;
  margin: 3px 0;
  background: var(--navy-ink);
}

/* ================================================================ M1 首屏 */

.home-hero {
  position: relative;
  height: 347px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #a9c4e2 0%,
      #b4cce7 10%,
      #c2d4ea 20%,
      #cedcec 27%,
      #d6e0eb 34%,
      #cddaea 41%,
      #bccfe4 48%,
      #b0c9e4 55%,
      #a5c1de 70%,
      #97b8d9 85%,
      #8db0d1 100%);
}
.hero-media {
  position: absolute;
  top: 0; bottom: 0;
  left: 49%;
  right: max(0px, calc((100% - 1440px) / 2));
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 300px;
  background: linear-gradient(90deg, rgba(228, 238, 248, .97) 0%, rgba(228, 238, 248, .82) 32%, rgba(228, 238, 248, .3) 68%, rgba(228, 238, 248, 0) 100%);
}
.hero-inner { position: relative; height: 100%; }
.hero-copy { width: 812px; max-width: 100%; padding-top: 47px; padding-left: 16px; }
.hero-copy h1 {
  font-size: 40px;
  font-weight: var(--fw-bold);
  line-height: 45px;
  letter-spacing: -.005em;
  color: var(--ink);
}
.hero-lead {
  margin-top: 21px;
  max-width: 664px;
  font-size: var(--fs-7);
  line-height: 32px;
  color: var(--ink-2);
}
.search-field {
  display: flex;
  gap: 2px;
  margin-top: 16px;
  width: 790px;
  max-width: 100%;
}
.search-field .field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  height: 48px;
  padding: 0 18px;
  background: var(--surface-white);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
}
.search-field .field svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-3); }
.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: var(--fs-7);
  color: var(--ink);
}
.search-field input:focus { outline: none; }
.search-hint {
  position: absolute;
  left: 43px;
  right: 18px;
  font-size: var(--fs-7);
  color: var(--ink-3);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-field input:not(:placeholder-shown) + .search-hint,
.search-field input:focus + .search-hint { opacity: 0; }
.btn-search {
  flex: 0 0 auto;
  width: 105px;
  height: 48px;
  border: 0;
  border-radius: var(--r-2);
  background: var(--accent);
  color: var(--ink-invert);
  font-size: var(--fs-6);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn-search:hover { background: var(--accent-hover); }
.search-note {
  min-height: 0;
  margin-top: 6px;
  font-size: var(--fs-3);
  color: var(--accent);
}
.search-note:empty { display: none; }
.hot-index {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 16px;
  margin-top: 21px;
  font-size: var(--fs-4);
  color: var(--ink-3);
}
.hot-index a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}
.hot-index a:hover { color: var(--accent); border-color: var(--accent); }
.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 11px;
  font-size: var(--fs-3);
  color: var(--ink-3);
}
.hero-stats span { display: inline-flex; align-items: baseline; gap: 4px; }
.hero-stats strong {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-9);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

/* ================================================================ M2 分类索引 */

.cat-section { height: 288px; padding-top: 27px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 18px;
  list-style: none;
}
.cat-tile {
  padding: 0 13px;
  border-left: 1px solid var(--line-soft);
}
.cat-tile:first-child { border-left: 0; padding-left: 0; }
.cat-tile:last-child { padding-right: 0; }
.cat-tile a { display: block; }
.cat-no {
  display: block;
  padding-bottom: 9px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-2);
  line-height: 16px;
  color: var(--ink-3);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line-soft);
}
.cat-tile figure { margin: 12px 0 0; }
.cat-tile img {
  width: 100%;
  aspect-ratio: 187 / 69;
  height: 69px;
  object-fit: cover;
  border-radius: var(--r-2);
  background: var(--surface-2);
  transition: transform .25s ease;
}
.cat-tile a:hover img { transform: scale(1.03); }
.cat-name {
  display: block;
  margin-top: 14px;
  font-size: var(--fs-7);
  line-height: 18px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.cat-desc {
  display: block;
  margin-top: 13px;
  font-size: var(--fs-4);
  line-height: 21px;
  color: var(--ink-3);
}

/* ================================================================ M3 / M6 表格 */

.spec-section { height: 315px; padding-top: 31px; }
.trouble-section { height: 241px; padding-top: 31px; }
.table-wrap {
  margin-top: 11px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-4);
}
.data-table caption {
  padding: 0 0 8px;
  font-size: var(--fs-4);
  color: var(--ink-3);
  text-align: left;
}
.data-table th,
.data-table td {
  padding: 7.5px 14px;
  line-height: 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  height: 36px;
  background: var(--navy-2);
  color: var(--ink-invert);
  font-size: var(--fs-4);
  font-weight: var(--fw-medium);
  letter-spacing: .02em;
  border-bottom: 0;
  line-height: 34px;
  padding: 0 14px;
}
.data-table tbody th {
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.data-table tbody tr:nth-child(even) { background: rgba(226, 234, 243, .45); }
.data-table tbody tr:hover { background: var(--surface); }
.data-table td.val {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.data-table td.note { color: var(--ink-3); }
.spec-table col.c1 { width: 16%; }
.spec-table col.c2 { width: 20%; }
.spec-table col.c3 { width: 36.5%; }
.spec-table col.c4 { width: 27.5%; }

.trouble-table tbody td:first-child,
.trouble-table tbody th:first-child {
  position: relative;
  color: var(--ink);
  font-weight: var(--fw-medium);
}
.trouble-table tbody th:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.trouble-table col.c1 { width: 30.5%; }
.trouble-table col.c2 { width: 33%; }
.trouble-table col.c3 { width: 36.5%; }

/* ================================================================ M4 装配流程 */

.path-section { height: 187px; padding-top: 32px; }
.path-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 12px;
  list-style: none;
}
.path-step {
  padding: 0 20px;
  border-left: 1px solid var(--line-soft);
}
.path-step:first-child { border-left: 0; padding-left: 0; }
.path-step .step-no {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 26px;
  line-height: 35px;
  letter-spacing: .02em;
  color: var(--accent-soft);
  font-weight: var(--fw-semibold);
}
.path-step h3 {
  margin-top: 8px;
  line-height: 26px;
  font-size: var(--fs-8);
  font-weight: var(--fw-semibold);
}
.path-step p {
  margin-top: 6px;
  font-size: var(--fs-4);
  line-height: 21px;
  color: var(--ink-3);
}

/* ================================================================ M5 常换配件 */

.parts-section { height: 284px; padding-top: 27px; }
.part-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 12px;
  list-style: none;
}
.part-card {
  padding: 0 13px;
  border-left: 1px solid var(--line-soft);
}
.part-card:first-child { border-left: 0; padding-left: 0; }
.part-card:last-child { padding-right: 0; }
.part-card img {
  width: 100%;
  aspect-ratio: 215 / 111;
  object-fit: cover;
  border-radius: var(--r-2);
  background: var(--surface-2);
}
.part-card h3 {
  margin-top: 6px;
  font-size: var(--fs-6);
  line-height: 18px;
  font-weight: var(--fw-semibold);
}
.part-card p {
  margin-top: 16px;
  font-size: var(--fs-4);
  line-height: 25px;
  color: var(--ink-3);
}

/* ================================================================ M7 场景 */

.scope-section { height: 280px; padding-top: 31px; }
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 11px;
  list-style: none;
}
.scope-col img {
  width: 100%;
  aspect-ratio: 330 / 88;
  height: 88px;
  object-fit: cover;
  border-radius: var(--r-2);
  background: var(--surface-2);
}
.scope-col h3 {
  margin-top: 11px;
  line-height: 18px;
  font-size: var(--fs-8);
  font-weight: var(--fw-semibold);
}
.scope-col p {
  margin-top: 9px;
  font-size: var(--fs-4);
  line-height: 23px;
  color: var(--ink-3);
}

/* ================================================================ M8 页脚 */

.site-footer {
  height: 147px;
  padding-top: 25px;
  background: var(--navy-3);
  color: var(--navy-ink-2);
}
.footer-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: var(--fs-4);
  line-height: 22px;
}
.footer-legal {
  margin-top: 4px;
  font-size: var(--fs-4);
  line-height: 22px;
  color: #93aec8;
}
.footer-brand {
  font-size: var(--fs-7);
  font-weight: var(--fw-semibold);
  color: var(--ink-invert);
  flex: 0 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 20px;
  font-size: var(--fs-4);
  line-height: 22px;
}
.footer-links a { color: var(--footer-link, #cbd8e6); }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================ 响应式 */

@media (max-width: 1180px) {
  :root { --gutter: 24px; --wrap: 1120px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 7px 6px; font-size: var(--fs-4); }
  .hero-copy { width: 100%; }
  .hero-media { left: 62%; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .cat-tile { padding-left: 0; border-left: 0; }
  .cat-section { height: auto; padding-bottom: 34px; }
  .parts-section, .scope-section, .path-section, .spec-section, .trouble-section { height: auto; padding-bottom: 34px; }
  .part-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .part-card { padding-left: 0; border-left: 0; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .path-steps { grid-template-columns: repeat(5, 1fr); }
  .site-footer { height: auto; padding-bottom: 26px; }
}

@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 71px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px var(--gutter) 14px;
    background: var(--navy);
    border-bottom: 1px solid rgba(152, 200, 251, .25);
    box-shadow: 0 12px 24px rgba(9, 27, 45, .22);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 10px 2px; font-size: var(--fs-6); border-radius: 0; }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; width: 22px; bottom: 4px; }
  .header-tools { margin-left: auto; }

  .home-hero { height: auto; padding-bottom: 30px; }
  .hero-media { position: static; height: 210px; margin-top: 22px; }
  .hero-media::before { display: none; }
  .hero-copy { padding-top: 30px; }
  .hero-copy h1 { font-size: var(--fs-15); }
  .search-field { width: 100%; }
  .btn-search { width: 84px; }
  .hero-stats { flex-wrap: wrap; gap: 6px 18px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tile img { height: auto; aspect-ratio: 4 / 3; }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
  .path-steps { grid-template-columns: repeat(1, 1fr); row-gap: 14px; }
  .path-step { padding: 0 0 0 14px; border-left: 1px solid var(--line-soft); }
  .scope-grid { grid-template-columns: repeat(1, 1fr); gap: 22px; }
  .scope-col img { height: auto; aspect-ratio: 2 / 1; }
  .sec-head { flex-direction: column; gap: 6px; align-items: flex-start; }
  .sec-head .sec-note { border-bottom: 0; padding-bottom: 0; }
  .table-wrap { border-top: 1px solid var(--line); }
  .data-table { min-width: 620px; }
  .footer-top { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
