/* style.css — 骑行改装装备大全 · 首页
   分区高度按 03-ui/home-ui-desktop.png 量稿得出的预算落位（1440×2160）：
   67 + 306 + 327 + 385 + 205 + 310 + 170 + 220 + 38 + 132 = 2160
   见 03-ui/compare-log.md。 */

/* ------------------------------------------------------------------ header */
.site-header {
  height: 67px;
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__tagline {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(207, 216, 230, 0.26);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(207, 216, 230, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav__link {
  font-size: 12.5px;
  color: rgba(207, 216, 230, 0.82);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

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

.site-nav__link[aria-current='page'] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(207, 216, 230, 0.32);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1px;
  background: #cfd8e6;
  transform: translateX(-50%);
  content: '';
}

.nav-toggle span {
  top: 19px;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] span::before {
  transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span::after {
  transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

/* -------------------------------------------------------------------- hero */
/* 稿面：67–373（306）。左文案约 56%，右整幅实拍出血到右缘。 */
.hero {
  position: relative;
  min-height: 306px;
  height: auto;
  padding-bottom: 26px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    rgba(22, 41, 68, 0.9) 18%,
    rgba(22, 41, 68, 0.34) 54%,
    rgba(22, 41, 68, 0.06) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 33px;
  max-width: 660px;
}

.hero .eyebrow {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 17px;
}

.hero h1 {
  margin-top: 14px;
  font-size: 56px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 .dot {
  color: var(--gold);
}

.hero__lead {
  margin-top: 15px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.62;
  color: #c8d4e4;
}

.hero__lead strong {
  color: var(--white);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.hero__stats {
  display: flex;
  align-items: baseline;
  gap: 34px;
  margin: 12px 0 0;
}

.hero__stats div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero__stats dt {
  order: 2;
  font-size: 11.5px;
  color: rgba(207, 216, 230, 0.7);
  letter-spacing: 0.03em;
}

.hero__stats dd {
  margin: 0;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
}

/* ------------------------------------------------------------- M2 分类索引 */
/* 稿面：373–700（327）。白底，7 列单行图块 458–558，名称行 577–595，三行说明 610–666。 */
.cat-section {
  height: auto;
  padding: 0 0 30px;
  background: var(--paper);
  overflow: hidden;
}

.cat-section .sec-head {
  align-items: flex-end;
}

.cat-section .sec-head__title {
  margin-top: 6px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.cat {
  min-width: 0;
}

.cat a {
  display: block;
}

.cat__tile {
  display: block;
  height: 101px;
  border-radius: var(--radius);
  background: var(--navy) center / cover no-repeat;
}

.cat:nth-child(1) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-light.jpg'); }
.cat:nth-child(2) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-carry.jpg'); }
.cat:nth-child(3) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-mount.jpg'); }
.cat:nth-child(4) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-fender.jpg'); }
.cat:nth-child(5) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-safety.jpg'); }
.cat:nth-child(6) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-computer.jpg'); }
.cat:nth-child(7) .cat__tile { background-image: linear-gradient(180deg, rgba(11, 24, 42, 0.42), rgba(11, 24, 42, 0.8)), url('../images/cat-comfort.jpg'); }

.cat__num {
  display: inline-block;
  margin: 18px 0 0;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.cat__name {
  display: inline-block;
  margin: 0 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.cat__copy {
  display: -webkit-box;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat a:hover .cat__name {
  color: var(--blue);
}

/* ------------------------------------------------------------ M3 编辑推荐 */
/* 稿面：700–1085（385）。标题带 700–795，三张 2.75:1 图卡 795–950，文字 950–1085。 */
.picks {
  height: auto;
  padding: 4px 0 30px;
  background: var(--paper);
  overflow: hidden;
}

.picks .sec-head {
  display: block;
}

.picks .sec-head .eyebrow {
  display: block;
}

.picks .sec-head__title {
  margin-top: 4px;
}

.picks .sec-head__note {
  margin-top: 6px;
  max-width: 880px;
  font-size: 12.5px;
  line-height: 1.7;
}

.picks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 8px;
  padding: 0 16px;
}

.pick {
  min-width: 0;
}

.pick__thumb {
  display: block;
  position: relative;
  height: 153px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.pick__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.pick:hover .pick__thumb img {
  transform: scale(1.03);
}

.pick .card__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  background: rgba(11, 24, 42, 0.8);
  color: #e8eef7;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
}

.pick .card__title {
  margin-top: 10px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.34;
}

.pick .card__title a:hover {
  color: var(--blue);
}

.pick .card__summary {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------------------- M4 判断列表 */
/* 稿面：1085–1290（205）。标题 1106–1127，两列 × 三行条目 1153–1263，行距 47。 */
.notes {
  height: auto;
  padding: 20px 0 30px;
  background: var(--paper);
  overflow: hidden;
}

.notes__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.notes__head .eyebrow {
  flex: none;
}

.notes__head .sec-head__title {
  flex: none;
}

.notes__head .sec-head__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

.notes__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 120px;
  margin-top: 14px;
}

.note {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.note a {
  display: block;
  padding: 3px 0 2px;
}

.note__tag {
  display: inline-block;
  margin-right: 9px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.note__title {
  display: inline;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}

.note__copy {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--muted);
  word-break: break-word;
}

.note a:hover .note__title {
  color: var(--blue);
}

/* -------------------------------------------------------------- M5 优先级表 */
/* 稿面：1290–1600（310）。表头 1344–1382，深蓝底白字，6 行表体。 */
.spec {
  height: auto;
  padding: 8px 0 30px;
  background: var(--paper);
  overflow: hidden;
}

.spec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.spec__scroll {
  margin-top: 12px;
  overflow-x: auto;
}

.spec .spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec .spec-table thead th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 12.5px;
  text-align: left;
  padding: 8px 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.spec .spec-table thead th:first-child {
  border-top-left-radius: var(--radius);
}

.spec .spec-table thead th:last-child {
  border-top-right-radius: var(--radius);
}

.spec .spec-table tbody th,
.spec .spec-table tbody td {
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.spec .spec-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.spec .spec-table tbody td {
  color: var(--muted);
}

.spec .spec-table tbody td:first-of-type {
  color: var(--ink);
}

.spec .spec-table tbody td:last-child {
  width: 76px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 600;
  color: var(--blue);
  text-align: right;
}

/* ------------------------------------------------------------------ M6 步骤 */
/* 稿面：1600–1770（170）。四列等宽，列间 1px 分隔线。 */
.steps-section {
  height: auto;
  padding: 23px 0 30px;
  background: var(--paper);
  overflow: hidden;
}

.steps-section .spec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.steps-section .spec__head .sec-head__title {
  margin-top: 4px;
}

.steps-section .spec__head .sec-head__note {
  margin: 0;
  font-size: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 9px;
  border-top: 1px solid var(--line);
}

.steps .step {
  min-width: 0;
  padding: 14px 24px 0 0;
  border-right: 1px solid var(--line);
}

.steps .step:last-child {
  border-right: 0;
  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: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-deep);
}

.step__title {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.step__copy {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.58;
  color: var(--muted);
}

/* ----------------------------------------------------- M7 问答 + M8 说明并排 */
/* 稿面：1770–1990（220）。左问答约 55%，右米黄说明面板 45%。 */
.faq-band {
  height: auto;
  padding: 0 0 30px;
  background: var(--paper);
  overflow: hidden;
}

.faq-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 674px;
  gap: 118px;
  align-items: stretch;
}

.faq-band .faq {
  min-width: 0;
  padding-top: 2px;
}

.faq-band .faq .eyebrow,
.faq-band .faq .sec-head__title {
  display: inline-block;
  vertical-align: baseline;
}

.faq-band .faq .eyebrow {
  margin-right: 12px;
}

.faq-band .faq .sec-head__title {
  margin: 0;
}

.faq-band .spec__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.faq-band .spec-table,
.faq-band .spec__scroll {
  display: none;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  padding: 7px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.faq__item p {
  padding: 0 0 9px 24px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-band .notice {
  height: auto;
  padding: 20px 26px;
  background: var(--cream);
  border-radius: var(--radius);
}

.faq-band .notice__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.faq-band .notice__copy {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.68;
  color: #5d5340;
}

/* ---------------------------------------------------------------- 页脚 */
.footer-gap {
  height: 24px;
  background: var(--white);
}

.site-footer {
  min-height: 132px;
  height: auto;
  padding: 26px 0 24px;
  background: var(--navy-footer);
  color: rgba(207, 216, 230, 0.78);
  overflow: visible;
}

.site-footer__inner {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 40px;
  padding-top: 0;
}

.site-footer__brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.site-footer__copy {
  margin-top: 6px;
  max-width: 330px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(207, 216, 230, 0.64);
}

.site-footer__label {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 8px;
}

.site-footer__links a {
  font-size: 12.5px;
  color: rgba(207, 216, 230, 0.82);
  transition: color 0.16s var(--ease);
}

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

.site-footer__note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(207, 216, 230, 0.6);
}

/* -------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cat-section,
  .picks,
  .notes,
  .spec,
  .steps-section,
  .faq-band,
  .site-footer {
    height: auto;
    padding-bottom: 30px;
  }

  .footer-gap {
    height: 24px;
  }

  .notes__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .note__title,
  .note__copy {
    white-space: normal;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 60px;
  }

  .brand__tagline {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-left: auto;
    padding: 0;
    background: none;
    border-top: 0;
  }

  .site-nav__link {
    padding: 6px 0;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid transparent;
  }

  .dropdown-menu {
    position: static;
    max-height: none;
    padding: 4px 0 6px 10px;
    background: none;
    border-top: 0;
    box-shadow: none;
  }

  .hero {
    height: auto;
    padding-bottom: 28px;
  }

  .hero__media {
    width: 100%;
    opacity: 0.34;
  }

  .hero__inner {
    padding-top: 26px;
    max-width: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__stats {
    gap: 22px;
  }

  .picks__grid {
    grid-template-columns: 1fr;
  }

  .pick__thumb {
    height: 190px;
  }

  .notes__list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .steps .step:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .faq-band__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps .step {
    padding: 12px 0 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .spec .spec-table {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 34px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
