/* ==========================================================================
   露营户外服饰大全 · 首页样式
   基准：1440px 设计宽，内容容器 1366（左右 37px 内边距）
   视觉基准：03-ui/home-ui-desktop.png（归一 1440×2160）
   ========================================================================== */

/* 设计变量统一在 css/tokens.css（环节 5 抽取），本文件只引用 var(--…) */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

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: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--bg-elevated);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--ink-invert);
}

.brand-mark { width: 26px; height: 18px; color: var(--accent); flex: none; }

.brand-name {
  font-size: 18px;
  font-weight: var(--fw-black);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-tag {
  font-size: var(--fs-caption);
  color: var(--ink-on-dark-soft);
  border-left: 1px solid var(--line-on-dark);
  padding-left: 8px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 40px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: var(--fs-nav);
  letter-spacing: 0.4px;
  color: var(--ink-on-dark-soft);
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  position: relative;
  padding: 6px 0;
  margin-right: 29px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-nav a:last-child { margin-right: 0; }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink-invert); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.header-cta {
  margin-left: auto;
  flex: none;
  padding: 7px 19px;
  border: 1px solid rgba(170, 199, 135, 0.65);
  border-radius: var(--radius-pill);
  font-size: var(--fs-meta);
  color: var(--accent);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent);
  color: var(--green-deep);
  border-color: var(--accent);
}


/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 489px;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(94deg, rgba(23, 42, 28, 0.93) 0%, rgba(24, 44, 30, 0.84) 34%, rgba(26, 47, 32, 0.5) 56%, rgba(28, 50, 34, 0.14) 74%, rgba(28, 50, 34, 0) 100%),
    linear-gradient(180deg, rgba(22, 38, 26, 0.3) 0%, rgba(22, 38, 26, 0) 38%, rgba(22, 38, 26, 0.22) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.hero-copy {
  width: 665px;
  max-width: 100%;
  padding-top: 4px;
  color: var(--ink-invert);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  line-height: 2.4;
  letter-spacing: 2.4px;
  color: rgba(247, 247, 241, 0.88);
}

.eyebrow svg { width: 22px; height: 15px; color: var(--accent); }

.eyebrow-line {
  display: inline-block;
  width: 26px; height: 1px;
  background: rgba(247, 247, 241, 0.42);
}

.hero h1 {
  margin-top: 4px;
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: 1.1;
  letter-spacing: -1px;
}

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

.hero-lead {
  margin-top: 18px;
  font-size: 37px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.hero-desc {
  margin-top: 26px;
  max-width: 700px;
  font-size: 19px;
  line-height: 1.58;
  color: rgba(247, 247, 241, 0.9);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 247, 241, 0.9);
}

.hero-stats li { display: flex; align-items: center; gap: 7px; }
.hero-stats svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 21px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--fw-medium);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent);
  color: var(--green-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid rgba(247, 247, 241, 0.5);
  color: var(--ink-invert);
}

.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--ink-invert); background: rgba(247, 247, 241, 0.12); }

/* -------------------------------------------------------- 区块通用头部 */
.section { padding: 0 0 0; }

.section-head { display: block; }

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink-strong);
}

.section-sub {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ------------------------------------------------------- M2 三层穿衣法 */
.layers {
  padding: 16px 0 19px;
}

.layers .section-head h2 { line-height: 1.2; }

.layers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 33px;
  margin-top: 28px;
  height: 243px;
}

.layer-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 12px;
  padding: 15px 0 14px;
  border-top: 2px solid var(--line-strong);
}

.layer-card .layer-num {
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  letter-spacing: 1.2px;
  line-height: 1.9;
  color: var(--accent-strong);
}

.layer-body { min-width: 0; }

.layer-card h3 {
  margin-top: 4px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-black);
  letter-spacing: -0.3px;
  color: var(--ink-strong);
}

.layer-card h3 span { color: var(--green-soft); font-weight: var(--fw-medium); }

.layer-role {
  margin-top: 8px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--ink);
  line-height: 1.7;
}

.layer-detail {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-meta);
  line-height: 1.7;
  color: var(--ink-muted);
}

.layer-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-note);
}

.layer-note .note-label {
  font-size: var(--fs-meta);
  font-weight: var(--fw-black);
  letter-spacing: 1.6px;
  color: var(--green-soft);
}

.layer-note p {
  margin-top: 10px;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: #3d4536;
}

/* ------------------------------------------------- M3 分类内容模块 */
.cats { padding: 1px 0 33px; }

.cats .section-head { padding-left: 0; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
  align-items: start;
}

.cat-col {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-top: 2px solid var(--line-strong);
}

.cat-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cat-col-title {
  font-size: 17px;
  font-weight: var(--fw-black);
  letter-spacing: -0.3px;
  color: var(--ink-strong);
  line-height: 1.4;
}

.cat-col-title a:hover,
.cat-col-title a:focus-visible { color: var(--green-soft); }

.cat-col-meta {
  flex: none;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  font-size: 10.5px;
  color: var(--green-soft);
}

.cat-col-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.cat-col-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.cat-col-item a {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.cat-col-item a:hover,
.cat-col-item a:focus-visible { color: var(--green-soft); }

.cat-col-date {
  flex: none;
  font-size: var(--fs-caption);
  color: var(--ink-faint);
}

.cat-col-more {
  margin-top: 10px;
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--green-soft);
}

.cat-col-more:hover,
.cat-col-more:focus-visible { color: var(--accent-strong); }

/* --------------------------------------------------------- M4 场景表格 */
.outfits { padding: 2px 0 13px; }

.table-wrap { margin-top: 7px; }

.outfit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-small);
}

.outfit-table caption {
  caption-side: top;
  text-align: left;
  font-size: var(--fs-caption);
  color: var(--ink-faint);
  padding-bottom: 8px;
}

.outfit-table th,
.outfit-table td {
  padding: 7px 10px;
  height: 33px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.outfit-table thead th {
  background: var(--bg-thead);
  color: var(--ink-invert);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--bg-thead);
  padding: 8px 10px;
}

.outfit-table thead th:first-child { text-align: left; padding-left: 16px; }

.outfit-table tbody th {
  text-align: left;
  padding-left: 16px;
  font-weight: var(--fw-bold);
  color: var(--ink-strong);
  background: rgba(252, 250, 247, 0.7);
}

.outfit-table tbody tr:nth-child(even) td { background: rgba(252, 250, 247, 0.55); }

/* ---------------------------------------------------------- M5 精选外层 */
.featured { padding: 2px 0 0; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 5px;
  height: 180px;
}

.feat-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  height: 180px;
  background: var(--bg-card);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.feat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

.feat-media {
  width: 110px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
}

.feat-media img { width: 100%; height: 100%; object-fit: cover; }

.feat-body { display: flex; flex-direction: column; min-width: 0; }

.feat-tag {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green-soft);
  font-weight: var(--fw-bold);
}

.feat-body h3 {
  margin-top: 2px;
  font-size: var(--fs-title-sm);
  font-weight: var(--fw-black);
  line-height: 1.35;
  color: var(--ink-strong);
}

.feat-body p {
  margin-top: 4px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--ink-muted);
}

.feat-specs {
  margin-top: auto;
  display: flex;
  gap: 5px;
  font-size: 10.5px;
  color: var(--ink-faint);
}

/* ------------------------------------------------- M6 版型问答 + M7 说明 */
.closing {
  padding: 24px 0 26px;
}

.closing-inner {
  display: grid;
  grid-template-columns: 872fr 483fr;
  gap: 11px;
  align-items: stretch;
  height: 292px;
}

.fit-guide h2 { font-size: 26px; letter-spacing: -0.6px; }

.fit-list { margin-top: 16px; }

.fit-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.fit-item .fit-num {
  font-size: var(--fs-meta);
  font-weight: var(--fw-black);
  color: var(--accent-strong);
  letter-spacing: 1px;
}

.fit-item h3 {
  font-size: var(--fs-title-sm);
  font-weight: var(--fw-bold);
  color: var(--ink-strong);
}

.fit-item > div p {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--ink-muted);
}

.note-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-note);
}

.note-card h2 {
  font-size: 19px;
  font-weight: var(--fw-black);
  color: #33402c;
  letter-spacing: -0.3px;
}

.note-card p {
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: #45503c;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--bg-footer);
  color: var(--ink-invert);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 34px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 33px var(--gutter) 35px;
  font-size: var(--fs-meta);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 190px;
}

.footer-brand .brand-mark { width: 22px; height: 15px; color: var(--accent); }
.footer-brand .brand-name { font-size: 15px; }
.footer-brand .footer-tag { font-size: 10.5px; color: var(--ink-on-dark-soft); }

.footer-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  flex: 1 1 180px;
  min-width: 160px;
  color: var(--ink-on-dark-soft);
  line-height: 1.75;
}

.footer-col .footer-label {
  flex: none;
  color: rgba(247, 247, 241, 0.55);
  letter-spacing: 0.4px;
}

.footer-col a { white-space: nowrap; }
.footer-col a:hover { color: var(--accent); }

.footer-about {
  flex: 1.4 1 260px;
  min-width: 230px;
  display: block;
  text-align: right;
  color: rgba(247, 247, 241, 0.72);
}

.footer-about .footer-label { display: block; margin-bottom: 6px; }
.footer-about .footer-note { line-height: 1.75; }

.footer-icp { color: rgba(247, 247, 241, 0.62); }
.footer-icp a:hover { color: var(--accent); }

.copyright { color: rgba(247, 247, 241, 0.5); }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1199px) {
  .site-nav {
    margin-left: 20px;
    font-size: 12.5px;
  }

  .site-nav a { margin-right: 18px; }

  .header-cta { display: none; }
}

@media (max-width: 1199px) {
  :root { --fs-h1: 58px; --fs-h2: 30px; }
  .hero { height: 470px; }
  .hero-lead { font-size: 28px; }
  .hero-desc { font-size: var(--fs-body); }
  .layers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-inner { grid-template-columns: 1fr; height: auto; gap: 20px; }
  .closing { padding-bottom: 22px; }
  .footer-inner { flex-wrap: wrap; gap: 20px 32px; }
  .footer-brand { width: auto; }
  .footer-about { margin-left: 0; text-align: left; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --fs-h1: 44px; --fs-h2: 26px; }
  .brand-tag { display: none; }
  .brand { flex: none; }
  .brand-name { font-size: 16px; }
  .header-inner { gap: 10px; }
  .site-nav { margin-left: 6px; font-size: 12px; }
  .site-nav a { margin-right: 14px; }
  .hero { height: auto; padding: 26px 0 30px; }
  .hero-inner { display: block; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 44px; letter-spacing: -0.8px; }
  .hero-lead { font-size: 22px; margin-top: 14px; }
  .hero-desc { font-size: var(--fs-body); line-height: 1.8; }
  .hero-stats { flex-wrap: wrap; gap: 10px 18px; font-size: 11px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .btn { height: 44px; padding: 0 20px; font-size: var(--fs-small); }
  .layers-grid { grid-template-columns: 1fr; height: auto; }
  .cat-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card { height: auto; }
  .table-wrap { overflow-x: auto; }
  .outfit-table { min-width: 720px; }
  .footer-inner { display: block; }
  .footer-col { margin-top: 14px; }
  .footer-about { text-align: left; }
}

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