/* 公共组件：导航、按钮、卡片、表格、手风琴、页脚 */

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-mid); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 区块标题（蓝竖条 + 一行说明） ---------- */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: var(--fs-body);
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 4px;
  align-self: stretch;
  min-height: 20px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--white);
  border-color: var(--brand);
  color: var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: var(--white); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 70px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--ink);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--brand);
  color: var(--white);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
.main-nav a:hover { color: var(--brand); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand-soft); color: var(--brand); }

/* ---------- 分类卡（首页 M2） ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--gap);
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 10px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.cat-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  color: var(--ink);
}
.cat-card img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}
.cat-card span {
  padding-inline: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.cat-card em {
  padding-inline: 10px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 规格表 ---------- */
.table-wrap { overflow-x: auto; }
.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-bottom: 8px;
}
.spec-table th,
.spec-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.spec-table thead th {
  background: var(--brand-soft);
  color: var(--white);
  font-weight: 600;
  border-bottom: 0;
  white-space: nowrap;
}
.spec-table tbody tr:nth-child(even) { background: var(--surface-2); }
.spec-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- 条目卡（精选 / 列表） ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.item-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.item-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  color: var(--ink);
}
.item-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.item-card .card-body { padding: 9px 12px 11px; }
.item-card h2 { font-size: 16.5px; margin-bottom: 2px; }
.item-card .card-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- 五步流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
  list-style: none;
}
.step {
  position: relative;
  padding: 12px 13px 10px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.step + .step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--brand-soft);
  transform: translateY(-50%);
}
.step-no {
  position: absolute;
  top: -13px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 4px 0 6px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
}
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 15.5px; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- 空间卡 ---------- */
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.space-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.space-card img {
  width: 100%;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}
.space-card:hover img { transform: scale(1.03); }
.space-card span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 7px 10px;
  background: var(--overlay-deep);
  font-size: 14px;
  font-weight: 600;
}
.space-card:hover span { background: var(--overlay-brand); }

/* ---------- FAQ 手风琴 ---------- */
.faq-list {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-item + .faq-item { border-top: 1px solid var(--line-soft); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color .16s ease, color .16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface); color: var(--brand); }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 15px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--brand); }
.faq-item .faq-body {
  padding: 0 16px 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--deep);
  color: var(--deep-4);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px 34px;
  padding-block: 34px 26px;
}
.footer-col { flex: 1 1 200px; min-width: 170px; }
.footer-col:first-child { flex: 1 1 280px; }
.footer-brand {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer-note { margin: 0; line-height: 1.75; color: var(--deep-3); }
.footer-nav-title { margin: 0 0 8px; font-size: 13.5px; color: var(--white); font-weight: 600; }
.footer-nav a { display: block; margin-bottom: 6px; color: var(--deep-4); }
.footer-col .footer-note { margin-top: 8px; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line-on-deep);
  padding-block: 12px;
  font-size: 12.5px;
  color: var(--deep-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a:focus-visible { outline-color: var(--white); }
