@import url("tokens.css");

/* =====================================================================
   野外露营电源设备大全 — 首页样式
   设计基准 1440，内容栏 1368（左右 36），分区高度按 03-ui 稿的分区预算落位
   ===================================================================== */

:root {
  --wrap: 1368px;
  --gutter: 36px;
  --ink: #122e50;
  --ink-2: #2a4463;
  --ink-soft: #4d6480;
  --ink-mute: #6b7f95;
  --accent: #ee852b;
  --accent-dark: #d9721c;
  --page: #f4f7fb;
  --hero-a: #dcebf9;
  --hero-b: #d6dfe7;
  --card: #e7eff8;
  --card-line: rgba(18, 46, 80, .1);
  --line: rgba(18, 46, 80, .12);
  --note: #d9eafb;
  --radius: 10px;
  --radius-lg: 16px;
  --serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --mono: "Noto Sans Mono CJK SC", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(18, 46, 80, .35);
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; font-size: 14px; }
.link-arrow:hover { color: var(--accent-dark); border-color: var(--accent); }

/* ------------------------------------------------------------- 顶部导航 */
/* 页头压在首屏实拍之上：左侧浅底保证导航可读，右侧让出照片（与稿一致） */
.site-header {
  background: linear-gradient(90deg,
    #f2f6fb 0%, #f2f6fb 38%,
    rgba(242, 246, 251, .93) 52%,
    rgba(242, 246, 251, .55) 68%,
    rgba(242, 246, 251, .16) 80%,
    rgba(242, 246, 251, 0) 92%);
  position: relative;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand { display: flex; flex-direction: column; gap: 1px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--ink-mute);
  line-height: 1.2;
}
.nav {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li { position: relative; }
.nav .dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav .caret {
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
}
.dropdown-menu {
  display: none;
  position: absolute;
  left: -14px;
  top: 100%;
  z-index: 40;
  min-width: 168px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.dropdown-menu a {
  display: block;
  padding: 7px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--page); color: var(--ink); }
.nav .dropdown:hover .dropdown-menu { display: block; }
.nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.header-cta { margin-left: 6px; height: 40px; padding: 0 18px; font-size: 14px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  content: "";
  position: relative;
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ 首屏 */
.hero {
  position: relative;
  margin-top: -77px;
  padding-top: 77px;
  min-height: 477px;
  background: linear-gradient(178deg, var(--hero-a) 0%, #d9e6f2 52%, var(--hero-b) 100%);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 404px;
  padding-top: 34px;
  padding-bottom: 30px;
}
.hero-copy { position: relative; z-index: 3; padding-right: 28px; padding-top: 10px; }
.hero-title {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  max-width: 15em;
}
.hero-sub {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 27em;
}
.hero-actions {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.hero-stats {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 40px;
}
.hero-stats li { display: flex; align-items: baseline; gap: 8px; }
.hero-stats b {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.hero-stats span { font-size: 13px; color: var(--ink-soft); }

.hero-media {
  margin: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;   /* 装饰层：不能挡住文案区按钮 */
  z-index: 1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(222, 236, 249, .97) 0%, rgba(222, 236, 249, .93) 30%, rgba(219, 234, 248, .55) 48%, rgba(217, 231, 243, .12) 64%, rgba(214, 223, 231, 0) 78%);
  pointer-events: none;
}

/* --------------------------------------------------------------- 通用区块 */
.section { position: relative; }
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .01em;
}
.section-sub {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62em;
}

/* ------------------------------------------------------------- 分类索引 */
.section-cat { padding: 16px 0 20px; }
.cat-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}
.cat-card { display: flex; }
.cat-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 148px;
  padding: 14px 15px 12px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cat-card a:hover {
  transform: translateY(-2px);
  background: #dfeaf6;
  box-shadow: 0 8px 20px rgba(18, 46, 80, .09);
}
.cat-no {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent-dark);
  line-height: 1.4;
}
.cat-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
}
.cat-range {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  flex: 1;
}
.cat-count {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------- 方向分组 */
.dim-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dim-block:first-of-type { margin-top: 20px; }
.dim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.dim-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}
.dim-title a:hover { color: var(--accent-dark); }
.dim-count {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--ink-mute);
}
.dim-more {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--accent-dark);
  white-space: nowrap;
}
.dim-more:hover { text-decoration: underline; }
.dim-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62em;
}
.dim-block .entry-row { margin-top: 16px; }
.dim-all { margin-top: 24px; }

/* ------------------------------------------------------------- 供电链路 */
.section-chain { padding: 7px 0 36px; }
.chain {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.chain-step {
  position: relative;
  padding: 0 26px 0 0;
  margin-right: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.chain-step:last-child { margin-right: 0; padding-right: 0; }
.chain-no {
  display: inline-block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.chain-step:nth-child(n+2) .chain-no { color: #9fb3c9; }
.chain-title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.chain-desc {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- 容量表 */
.section-table { padding: 10px 0 5px; }
.table-scroll { margin-top: 14px; overflow-x: auto; }
/* 表格行高按稿 33px */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fbfdff;
}
.spec-table thead th {
  background: #1b3a5f;
  color: #eef4fb;
  font-weight: 500;
  text-align: left;
  padding: 8px 22px;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.spec-table tbody th,
.spec-table tbody td {
  text-align: left;
  padding: 3px 22px;
  border-bottom: 1px solid rgba(18, 46, 80, .09);
  font-weight: 400;
}
.spec-table tbody th { color: var(--ink); font-weight: 500; }
.spec-table tbody td { color: var(--ink-soft); }
.spec-table tbody tr:nth-child(even) { background: #f3f8fd; }
.table-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------- 精选条目 */
.section-featured { padding: 10px 0 5px; }
.entry-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.entry-card { display: flex; }
.entry-card a {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 125px;
  padding: 0;
  overflow: hidden;
  background: #eff6fe;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.entry-card a:hover {
  background: #e5f0fb;
  box-shadow: 0 8px 18px rgba(18, 46, 80, .08);
}
.entry-thumb {
  margin: 0;
  flex: none;
  width: 183px; height: 125px;
  overflow: hidden;
}
.entry-body { display: flex; flex-direction: column; padding: 4px 22px 12px; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent-dark);
  line-height: 1.5;
}
.entry-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 2px;
}
.entry-summary {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------- 选型顺序 */
.section-order { padding: 10px 0 17px; }
.order-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.order-row li { position: relative; padding-top: 10px; border-top: 1px solid var(--line); }
.order-no {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-mute);
}
.order-row h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.order-row p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.52;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- 收录说明 */
.note-band {
  background: var(--note);
  padding: 18px 0 21px;
}
/* 稿上：左侧标题与说明上下叠放（文字宽约 1000），右侧一张 193×112 的实拍 */
.note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 193px;
  grid-template-areas:
    "title media"
    "text  media";
  gap: 0 44px;
  align-items: start;
}
.note-title { grid-area: title; }
.note-text { grid-area: text; }
.note-media { grid-area: media; }
.note-title {
  font-family: var(--serif);
  font-size: 21px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.4;
}
.note-text {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.note-media {
  margin: 0;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
}
.note-media img { width: 100%; height: 100%; object-fit: cover; }


/* ------------------------------------------------------------------ 页脚 */
.site-footer {
  background: #122e50;
  color: #cddcec;
  padding-top: 36px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 31px;
}
.footer-inner > .footer-col { flex: 1 1 180px; min-width: 170px; }
.footer-inner > .footer-brand { flex: 1.4 1 220px; }
.footer-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: #f3f8fe;
  line-height: 1.4;
}
.footer-tag { margin-top: 6px; font-size: 12.5px; color: #a8bdd4; line-height: 1.6; }
.footer-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #8fa7c0;
  line-height: 1.5;
  margin-bottom: 8px;
}
.footer-col ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-col li { font-size: 12.5px; line-height: 1.9; }
.footer-col p { font-size: 12.5px; line-height: 1.8; color: #a8bdd4; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 16px;
  padding-bottom: 20px;
  font-size: 12px;
  color: #8fa7c0;
}

/* ------------------------------------------------------------ 响应式 1024 */
@media (max-width: 1180px) {
  .nav-list { gap: 14px; }
  .nav { font-size: 13px; }
  .hero-title { font-size: 42px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- 响应式 768 */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .header-cta { display: none; }
  .site-header { background: #f2f6fb; border-bottom: 1px solid rgba(18, 46, 80, .07); }
  .hero { margin-top: 0; padding-top: 0; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 34px; min-height: 0; }
  .hero-media {
    position: relative;
    right: auto; top: auto; bottom: auto;
    width: 100%;
    height: 240px;
    order: -1;
    border-radius: var(--radius-lg);
    margin-bottom: 26px;
  }
  .hero-media::after { display: none; }
  .hero-copy { padding-right: 0; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15.5px; }
  .hero-stats { gap: 24px; }
  .section-title { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .chain-step { margin-right: 0; padding-right: 0; }
  .entry-row { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .note-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ------------------------------------------------------------- 响应式 390 */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 15px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8px; letter-spacing: .18em; }
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding-bottom: 8px; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-list { gap: 16px; padding-bottom: 2px; }
  .nav .dropdown-menu { display: none !important; }
  .nav a { padding: 6px 0; font-size: 14px; }
  .nav a::after { display: none; }
  .hero-media { height: 200px; }
  .hero-title { font-size: 30px; }
  .hero-actions { gap: 18px; flex-wrap: wrap; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-stats b { font-size: 20px; }
  .section-cat { padding: 22px 0 30px; }
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card a { min-height: 0; }
  .chain { grid-template-columns: 1fr; gap: 18px; }
  .spec-table { font-size: 13px; }
  .spec-table thead th, .spec-table tbody th, .spec-table tbody td { padding: 10px 12px; }
  .entry-thumb { width: 108px; height: 108px; }
  .entry-body { padding: 2px 14px 10px; }
  .order-row { grid-template-columns: 1fr; gap: 16px; }
  .note-band { padding: 24px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

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