/* ==========================================================================
   家具行业官网样板 01 · 木言家居
   自包含样式表：零依赖、零构建、无外部 CDN
   配色：米白 / 浅木 / 深墨   适用：实木家具、成品家具、家居品牌
   ========================================================================== */

:root {
  --ink:        #2B2723;
  --ink-soft:   #6B635B;
  --paper:      #FFFFFF;
  --cream:      #FAF7F2;
  --sand:       #F1EAE0;
  --wood:       #B98A5E;
  --wood-dark:  #9A6F45;
  --line:       #E7DED2;

  --radius:     4px;
  --radius-lg:  6px;
  --shadow:     0 30px 60px -34px rgba(43, 39, 35, 0.45);
  --shadow-sm:  0 12px 30px -18px rgba(43, 39, 35, 0.35);
  --container:  1180px;
  --gutter:     22px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 14px; font-weight: 400; line-height: 1.28; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.125rem; font-weight: 500; }
p  { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--wood-dark);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.75); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--wood-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--wood); color: var(--wood-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* 样板提示条（交付时删除） */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 9px 20px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  text-align: center;
}
.demo-bar-tag {
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--wood-dark);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; }
.brand-text small { font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--ink-soft); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-list a {
  position: relative;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--wood);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-list a:hover { color: var(--wood-dark); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }

/* 汉堡开关：用 :target 而非 checkbox —— 点菜单项后 URL 片段一变，菜单就自动收起，
   不会像 checkbox 那样一直盖在内容上（手机端点「产品系列」看不到系列内容就是这个原因） */
.nav-toggle-label { display: none; }
.nav-close, .nav-backdrop { display: none; }

/* 首屏 */
.hero { background: var(--cream); padding: clamp(44px, 6.5vw, 88px) 0; }
.hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: var(--ink-soft); font-size: 1.0625rem; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* 数据条 */
.trust { background: var(--sand); border-block: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 30px 0;
}
.trust-item { text-align: center; }
.trust-item b { display: block; font-size: 1.5rem; font-weight: 400; color: var(--wood-dark); letter-spacing: 0.02em; }
.trust-item span { font-size: 0.875rem; color: var(--ink-soft); }

/* 通用小节 */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-lead { color: var(--ink-soft); }

/* 产品系列 */
.series-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.series-card { background: var(--paper); }
.series-media { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.series-media img { transition: transform 0.5s var(--ease); }
.series-card:hover .series-media img { transform: scale(1.04); }
.series-body { padding-top: 20px; }
.series-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--wood-dark);
}
.series-body p { color: var(--ink-soft); font-size: 0.9375rem; }
.series-link { display: inline-block; margin-top: 6px; font-size: 0.9375rem; color: var(--wood-dark); }
.series-link:hover { color: var(--ink); }

/* 匠心工艺 */
.craft-section { background: var(--cream); }
.craft-grid {
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.craft-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.craft-text p { color: var(--ink-soft); }
.craft-list { display: grid; gap: 10px; margin: 20px 0 28px; }
.craft-list li { position: relative; padding-left: 22px; font-size: 0.9375rem; }
.craft-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 10px; height: 1px;
  background: var(--wood);
}

/* 服务承诺 */
.service-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-item { padding-top: 22px; border-top: 1px solid var(--line); }
.service-num { display: block; margin-bottom: 10px; font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--wood); }
.service-item p { color: var(--ink-soft); font-size: 0.9375rem; }

/* 到店预约 */
.cta { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 84px) 0; }
.cta-grid {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.cta h2 { color: #fff; }
.cta-text p { color: rgba(255, 255, 255, 0.72); max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { flex: 1 1 100%; margin: 4px 0 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

/* 页脚 */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 68px) 0 26px; }
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
}
.footer-brand .brand-mark { width: 34px; height: 34px; margin-bottom: 10px; }
.footer-name { margin: 0 0 6px; font-size: 1rem; letter-spacing: 0.06em; }
.footer-desc { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.footer-col h3 { margin: 0 0 14px; font-size: 0.9375rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li, .footer-col a { font-size: 0.9375rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--wood-dark); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }

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

/* 平板及以上：两栏布局 */
@media (min-width: 861px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .craft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 手机 / 窄平板：汉堡菜单 */
@media (max-width: 860px) {
  /* 手机端点菜单项用瞬时跳转：平滑动画会被"菜单收起"打断，
     导致看起来"点了没反应、看不到内容" */
  html { scroll-behavior: auto; }

  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-right: -8px;
    cursor: pointer;
    border-radius: var(--radius);
  }
  .nav-toggle-label:hover { background: var(--sand); }
  .nav-toggle-bar {
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle-label:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }
  /* 菜单展开时汉堡变叉（:has() 渐进增强，不支持也不影响功能） */
  .site-header:has(#nav:target) .nav-toggle-label .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header:has(#nav:target) .nav-toggle-label .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header:has(#nav:target) .nav-toggle-label .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: block;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: max-height 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  #nav:target { max-height: 76vh; overflow-y: auto; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 15px 2px; font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-cta { width: 100%; min-height: 48px; margin: 14px 0 20px; }

  /* 展开时铺一层透明遮罩，点空白处即可收起 */
  body:has(#nav:target) .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5;
  }
  /* 面板内显式的「收起菜单」，任何时候都能关掉 */
  #nav:target .nav-close {
    display: block;
    margin: 10px 0 2px;
    padding: 6px 2px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-align: right;
  }
  #nav:target .nav-close:hover { color: var(--wood-dark); }
  #nav:target { z-index: 6; }                  /* 面板压在遮罩之上 */

}

/* 手机 */
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .trust-grid { gap: 20px 14px; }
  .trust-item b { font-size: 1.3125rem; }
  .demo-bar { font-size: 0.75rem; }
}

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

/* ==========================================================================
   内嵌在「手机仿真预览」框里查看时，隐藏常驻滚动条
   真机本身就没有常驻滚动条；这里只在窄屏（真机 / 仿真框）生效，
   桌面端直接打开样板时滚动条照旧保留，不影响可用性。
   ========================================================================== */
@media (max-width: 620px) {
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar { width: 0; height: 0; display: none; }
  body::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

/* ==========================================================================
   内页样式（series.html 专用）· 追加于文件末尾
   新增内容只服务于内页新增的类；首页原有规则、配色、变量一字未动。
   首页已有的 .demo-bar / .site-header / .site-nav / .btn / .eyebrow /
   .section / .section-head / .section-lead / .cta / .site-footer 等直接复用。
   ========================================================================== */

/* ---------- 导航当前项高亮（内页「产品系列」） ---------- */
.nav-list a[aria-current="page"] { color: var(--wood-dark); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 面包屑条 ---------- */
.crumb-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-block: 12px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.crumb a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.crumb a:hover { color: var(--wood-dark); }
.crumb .crumb-current { color: var(--ink); }

/* ---------- 内页页头 ---------- */
.page-head {
  padding: clamp(40px, 5.6vw, 76px) 0 clamp(30px, 4vw, 54px);
  background: var(--cream);
}
.page-head h1 { max-width: 20em; margin-bottom: 16px; }
.page-head .lead {
  max-width: 40em;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.page-note {
  display: inline-block;
  margin: 0;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- 系列小节：左图右文，相邻小节左右交替 ---------- */
.series-block { padding: clamp(46px, 6.4vw, 88px) 0; }
.series-block--alt { background: var(--cream); }
.series-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
}
.series-row-media { min-width: 0; }
.series-row-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.series-row-text { min-width: 0; }
.series-row-text h2 { margin-bottom: 14px; }
.series-intro { color: var(--ink-soft); }

/* 单品条目：细线列表（单品名 + 一句话 + 到店看样） */
.item-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 24px 0 0;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 18px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.item:first-child { padding-top: 0; border-top: 0; }
.item-text { min-width: 0; }
.item-text h3 { margin: 0 0 3px; font-size: 1rem; }
.item-text p { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }
.item-link {
  align-self: start;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--wood-dark);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.item-link:hover { color: var(--ink); border-color: var(--wood); }

/* ---------- 材质与尺寸：三列小表，窄屏容器内横滑 ---------- */
.spec-section { background: var(--sand); border-block: 1px solid var(--line); }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.spec-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.spec-table th,
.spec-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec-table thead th {
  background: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--wood-dark);
  white-space: nowrap;
}
.spec-table tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
.spec-table tbody td { color: var(--ink-soft); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- 内页响应式 ---------- */
@media (min-width: 861px) {
  .series-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 64px);
  }
  .series-row--flip .series-row-media { order: 2; }
  .series-row--flip .series-row-text { order: 1; }
}

@media (max-width: 860px) {
  .nav-list a[aria-current="page"] { font-weight: 500; }
}

@media (max-width: 620px) {
  .series-row { gap: 20px; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 13px 0; }
  .item-link { justify-self: start; }
  .spec-table { min-width: 560px; }
  .spec-table th,
  .spec-table td { padding: 12px 14px; }
  .page-head .lead { font-size: 1rem; }
}
