/* ============================================================
   components.css — L1 基础组件 + L2 复合组件
   导航 / 抽屉 / 轮播控件 / 回到顶部 / 产品卡 / 参数卡 / 页脚
   ============================================================ */

/* —— 跳转主内容（无障碍） —— */
.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 300;
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-m) var(--r-m);
  font-size: var(--fs-aux);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* ============ 站点导航 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--c-on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
/* 滚动后翻为"白色浮层"：与暖白页面底拉开层次（细线 + 轻影 + 更亮的底色） */
.site-header.is-scrolled {
  background: #ffffff;
  color: var(--c-text);
  border-bottom-color: var(--c-line);
  box-shadow: 0 14px 30px -24px rgba(74, 38, 32, 0.4);
}
/* 支持毛玻璃的浏览器：半透明白 + 背景虚化（内容从导航下滚过时被模糊，边界更清晰） */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
/* 抽屉打开时：导航回到透明浅字态（衬深色抽屉），并去掉滚动阴影 */
body.drawer-open .site-header {
  background: transparent;
  color: var(--c-on-dark);
  border-bottom-color: transparent;
  box-shadow: none;
}

/* 辅助行（仅桌面显示）：服务入口 + 语言切换；滚动后自动收起 */
.header-utility {
  display: none;
  max-height: 36px;
  overflow: hidden;
  opacity: 1;
  font-size: 12px;
  border-bottom: 1px solid rgba(247, 242, 236, 0.16);
  transition: max-height var(--t-base) var(--ease), opacity var(--t-fast) var(--ease),
    border-color var(--t-base) var(--ease);
}
.site-header.is-scrolled .header-utility {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
@media (min-width: 768px) {
  .header-utility {
    display: block;
  }
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.utility-link {
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.utility-link:hover {
  opacity: 1;
}
.site-header:not(.is-scrolled) .utility-link:hover {
  color: var(--c-gold);
}
.site-header.is-scrolled .utility-link:hover {
  color: var(--c-brand);
}
.header-utility .lang-switch {
  display: inline-flex;
  font-size: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 76px;
  }
  .header-inner .logo {
    justify-self: start;
  }
  .header-inner .main-nav {
    justify-self: center;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  color: inherit;
}
/* 文字字标（公司名称式，替代原图形 logo） */
.logo-word {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* 桌面菜单 */
.main-nav {
  display: none;
}
@media (min-width: 768px) {
  .main-nav {
    display: block;
    position: relative; /* 刻度沿 + 游标的定位锚点 */
  }
  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .main-nav a {
    padding: 6px 0;
    font-size: var(--fs-body); /* 16px：导航字号加大 */
    letter-spacing: 0.04em;
    transition: color var(--t-fast) var(--ease);
  }
  /* —— 刻度沿：菜单下方一条量尺（短刻 12px/段、长刻 60px/段；颜色随导航文字） —— */
  .nav-ruler {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    height: 6px;
    pointer-events: none;
    opacity: 0.4;
    border-top: 1px solid;
    background-image:
      repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 60px),
      repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px);
    background-size: auto 6px, auto 3px;
    background-position: 0 0, 0 0;
    background-repeat: repeat-x, repeat-x;
  }
  /* —— 游标：金色卡尺指针，悬停滑向对应项、离开回到当前页 —— */
  .nav-cursor {
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    width: 2px;
    height: 14px;
    background: var(--c-gold);
    border-radius: 1px;
    opacity: 0;
    pointer-events: none;
    transition: transform 380ms var(--ease), opacity var(--t-fast) var(--ease),
      background-color var(--t-base) var(--ease);
  }
  .site-header.is-scrolled .nav-cursor {
    background: var(--c-brand);
  }
  .nav-cursor.is-ready {
    opacity: 1;
  }
  .site-header:not(.is-scrolled) .main-nav a:hover {
    color: var(--c-gold);
  }
  .site-header.is-scrolled .main-nav a:hover {
    color: var(--c-brand);
  }
  /* 当前页：文字显色（位置标记交给下方游标） */
  .site-header:not(.is-scrolled) .main-nav a.is-current {
    color: var(--c-gold);
  }
  .site-header.is-scrolled .main-nav a.is-current {
    color: var(--c-brand);
  }
}

/* （原 .header-actions 容器已移除：语言按钮移入辅助行，汉堡并入主行） */

/* 语言切换（仅 UI，不做功能） */
.lang-switch {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-aux);
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .lang-switch {
    display: inline-flex;
  }
}
.lang-switch .cur {
  font-weight: 500;
}
.lang-switch .sep {
  opacity: 0.4;
}
.lang-switch .alt {
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease);
}
.lang-switch:hover .alt {
  opacity: 0.95;
}

/* 汉堡按钮（移动端） */
.nav-toggle {
  width: 40px;
  height: 40px;
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}
.nav-toggle .bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background var(--t-fast) var(--ease);
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.nav-toggle .bars::before {
  top: -7px;
}
.nav-toggle .bars::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 移动抽屉 */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 110; /* 高于页头(100)：抽屉为 body 级元素，需盖住整页 */
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding: 88px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform var(--t-base) var(--ease),
    visibility 0s linear var(--t-base);
}
/* 抽屉内置关闭按钮（细线方框，与全站控件同语言） */
.nav-drawer-close {
  position: absolute;
  top: 16px;
  right: var(--pad-x);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 242, 236, 0.35);
  border-radius: var(--r-s);
  color: var(--c-on-dark);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-drawer-close:hover,
.nav-drawer-close:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.nav-drawer-close svg {
  width: 16px;
  height: 16px;
}
.nav-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform var(--t-base) var(--ease), visibility 0s;
}
.nav-drawer a {
  font-size: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247, 242, 236, 0.14);
}
.nav-drawer a.is-current {
  color: var(--c-gold);
  font-weight: 600;
}

/* ============ 灯箱（通用浮层查看：宽内容如参数对照） ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130; /* 高于页头(100)与抽屉(110) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-x);
  animation: lb-fade 240ms var(--ease);
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 18, 14, 0.72);
}
.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  max-height: min(86vh, 920px);
  background: var(--c-paper-2);
  border-radius: var(--r-m);
  overflow: hidden;
  animation: lb-rise 280ms var(--ease);
}
.lightbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 14px;
}
.lightbox-head .eyebrow {
  margin-bottom: 8px;
}
.lightbox-close {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: var(--r-s);
  color: var(--c-brand);
  transition: border-color var(--t-fast) var(--ease);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--c-brand);
}
.lightbox-close svg {
  width: 16px;
  height: 16px;
}
.lightbox-body {
  overflow: auto;
  padding: 4px 24px 26px;
}
@keyframes lb-fade {
  from { opacity: 0; }
}
@keyframes lb-rise {
  from { opacity: 0; transform: translateY(14px); }
}
.nav-drawer .lang-switch {
  display: inline-flex;
  margin-top: 28px;
}

/* ============ 分类筛选 tabs（同类功能统一 · 新闻资讯 / 咖啡学院共用） ============ */
.filter-tabs {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.filter-tab {
  position: relative;
  flex: none;
  padding: 6px 0 10px;
  border: 0;
  background: none;
  font-size: var(--fs-aux);
  letter-spacing: 0.08em;
  color: var(--c-text-2);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.filter-tab:hover {
  color: var(--c-brand);
}
.filter-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease);
}
.filter-tab.is-active {
  color: var(--c-brand);
  font-weight: 600;
}
.filter-tab.is-active::after {
  transform: scaleX(1);
}

/* ============ 加载更多（列表底部居中按钮 · 新闻资讯 / 咖啡学院共用） ============ */
.load-more {
  display: flex;
  justify-content: center;
  padding-top: 42px;
}
.load-more-btn {
  padding: 12px 34px;
  border: 1px solid rgba(124, 64, 52, 0.35);
  border-radius: var(--r-s);
  background: none;
  font-size: var(--fs-aux);
  letter-spacing: 0.06em;
  color: var(--c-brand);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.load-more-btn:hover {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: var(--c-on-dark);
}

/* ============ 下拉选择器（触发器 + 纸感菜单 · 新闻年份 / 联系表单共用） ============ */
.dropdown {
  position: relative;
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: var(--fs-aux);
  letter-spacing: 0.06em;
  color: var(--c-text-2);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.dropdown-trigger:hover {
  color: var(--c-brand);
}
/* 选值 ≠ 默认值：触发器转主色（如新闻页选中年份） */
.dropdown.has-change .dropdown-trigger {
  color: var(--c-brand);
  font-weight: 600;
}
/* 双边框小箭头（与页脚 chevron 同语言） */
.dropdown-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--t-base) var(--ease);
}
.dropdown.is-open .dropdown-caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}
/* 纸感菜单（默认左对齐；.is-end = 右对齐，用于行尾触发器） */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  min-width: 136px;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 2px;
  list-style: none;
  background: var(--c-paper-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  box-shadow: 0 18px 40px -22px rgba(74, 38, 32, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-base) var(--ease),
    visibility var(--t-base);
}
.dropdown-menu.is-end {
  left: auto;
  right: -4px;
}
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-s);
  background: none;
  text-align: left;
  font-size: var(--fs-aux);
  letter-spacing: 0.04em;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.dropdown-opt::before {
  content: "";
  width: 12px;
  height: 2px;
  flex: none;
  background: transparent;
  transition: background-color var(--t-fast) var(--ease);
}
.dropdown-opt:hover {
  background: rgba(124, 64, 52, 0.07);
  color: var(--c-brand);
}
.dropdown-opt.is-active {
  color: var(--c-brand);
  font-weight: 600;
}
.dropdown-opt.is-active::before {
  background: var(--c-brand);
}

/* ============ 白底带 / 双列预约区（联系页 · 预约页共用） ============ */
.band-paper {
  background: var(--c-paper-2);
}
.apply-grid {
  display: grid;
  gap: 40px;
  max-width: 1120px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .apply-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
  }
}
/* 右列信息面（左缘刻度细线随列拉伸，沿用站内侧栏语言） */
.apply-aside {
  min-width: 0;
}
@media (min-width: 900px) {
  .apply-aside {
    border-left: 1px solid var(--c-line);
    padding-left: 44px;
  }
}
.apply-aside .eyebrow {
  margin-bottom: 18px;
}

/* ============ 刻度要点列表（流程 / 须知 · 联系页 · 预约页共用） ============ */
.tip-list {
  display: grid;
  gap: 20px;
}
.tip-t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--c-text);
}
.tip-t::before {
  content: "";
  width: 14px;
  height: 2px;
  flex: none;
  background: var(--c-brand);
}
.tip-d {
  margin-top: 8px;
  padding-left: 24px; /* 与「刻度短横 + 10px 间距」对齐 */
  font-size: var(--fs-aux);
  line-height: 1.8;
  color: var(--c-muted);
}
/* 信息列尾部的电话快捷行 */
.aside-call {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-aux);
  color: var(--c-muted);
}
.aside-call a {
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) var(--ease);
}
.aside-call a:hover,
.aside-call a:focus-visible {
  color: var(--c-brand);
}

/* ============ 表单（联系页 · 预约页共用：卡片 / 字段 / 控件 / 提交 / 成功态） ============ */
.form-card {
  padding: 26px 26px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  background: var(--c-paper);
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-field {
  display: grid;
  gap: 8px;
}
.form-label {
  font-size: var(--fs-cap);
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-s);
  background: var(--c-paper-2);
  font: inherit;
  font-size: var(--fs-aux);
  color: var(--c-text);
  transition: border-color var(--t-fast) var(--ease);
}
.form-input::placeholder {
  color: var(--c-muted);
}
.form-input:focus {
  border-color: var(--c-brand);
  outline: none;
}
textarea.form-input {
  resize: vertical;
}
.form-submit {
  margin-top: 4px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--r-s);
  background: var(--c-brand);
  font-size: var(--fs-aux);
  letter-spacing: 0.06em;
  color: var(--c-on-dark);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.form-submit:hover,
.form-submit:focus-visible {
  background: var(--c-brand-deep);
}
.form-note {
  font-size: var(--fs-cap);
  line-height: 1.6;
  color: var(--c-muted);
}
/* 提交成功态（替换表单区；刻度短横 + 两行提示） */
.form-done {
  display: grid;
  gap: 10px;
  padding: 26px 4px;
}
.form-done-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-h4);
  color: var(--c-text);
}
.form-done-title::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: none;
  background: var(--c-brand);
}
.form-done-note {
  font-size: var(--fs-aux);
  line-height: 1.8;
  color: var(--c-muted);
}

/* ============ hero 轮播控件 ============ */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 刻度进度（横段式，当前段金色） */
.hero-ticks {
  display: flex;
  gap: 8px;
}
.hero-tick {
  position: relative;
  width: 36px;
  height: 20px;
  padding: 0;
}
.hero-tick::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 2px;
  background: rgba(247, 242, 236, 0.32);
  transition: background var(--t-base) var(--ease);
}
.hero-tick:hover::before {
  background: rgba(247, 242, 236, 0.6);
}
.hero-tick.is-active::before {
  background: var(--c-gold);
}

/* 细线方框箭头（非圆形按钮） */
.hero-arrows {
  display: flex;
  gap: 10px;
}
.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 242, 236, 0.35);
  border-radius: var(--r-s);
  color: var(--c-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.hero-arrow:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.hero-arrow svg {
  width: 15px;
  height: 15px;
}

/* ============ 细线方框按钮（幽灵按钮） ============ */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid rgba(124, 64, 52, 0.35);
  border-radius: var(--r-s);
  font-size: var(--fs-aux);
  letter-spacing: 0.06em;
  color: var(--c-brand);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.ghost-btn::after {
  content: "→";
  transition: transform var(--t-base) var(--ease);
}
.ghost-btn:hover {
  border-color: var(--c-brand);
  background: rgba(124, 64, 52, 0.05);
}
.ghost-btn:hover::after {
  transform: translateX(4px);
}

/* ============ 模块标题区（居中版 · 全站共用） ============ */
.section-head {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .section-head {
    margin-bottom: 56px;
  }
}
/* eyebrow 改为「线 — 文字 — 线」两侧对称短线 */
.section-head .eyebrow {
  justify-content: center;
}
.section-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}

/* ============ 回到顶部（浮动按钮 · 深底+金描边，适配深浅两种背景） ============ */
.to-top {
  position: fixed;
  right: var(--pad-x);
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 161, 92, 0.35);
  border-radius: var(--r-s);
  background: rgba(74, 38, 32, 0.94);
  color: var(--c-on-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
    visibility 0s linear var(--t-base), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
    visibility 0s, border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
/* hover / 键盘聚焦：与"细线方框箭头"同一反馈语言（描边与图标转金） */
.to-top:hover,
.to-top:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-brand-deep);
}
.to-top:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}
.to-top svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 768px) {
  .to-top {
    bottom: 32px;
  }
}

/* ============ 产品图墙（大图四联 · 图片为主） ============ */
.product-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-m);
  overflow: hidden;
}
/* 画面层（产品图 · 1536×1024，16:10 显示 = 上下裁 ~3%；悬停时在内轻微缩放 + 轻提亮） */
.product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #57372c; /* 图片加载前兜底 */
  background-image: url("../img/products/product-1-s9.webp");
  background-size: cover;
  background-position: center;
  transition: transform var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}
.product-tile:hover::before,
.product-tile:focus-visible::before {
  transform: scale(1.045);
  filter: brightness(1.08);
}
.product-tile:nth-child(2)::before {
  background-image: url("../img/products/product-2-c7.webp");
}
.product-tile:nth-child(3)::before {
  background-image: url("../img/products/product-3-l3.webp");
}
.product-tile:nth-child(4)::before {
  background-image: url("../img/products/product-4-d1.webp");
}
/* 底部渐隐：保证叠字可读；悬停时浮现金色描边（2px，大图上 1px 太细感知不到） */
.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(30, 16, 12, 0.66), rgba(30, 16, 12, 0) 52%);
  box-shadow: inset 0 0 0 2px rgba(201, 161, 92, 0);
  transition: box-shadow var(--t-base) var(--ease);
}
.product-tile:hover::after,
.product-tile:focus-visible::after {
  box-shadow: inset 0 0 0 2px rgba(201, 161, 92, 0.9);
}
.product-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 22px;
  color: var(--c-on-dark);
}
.product-tile-caption h3 {
  margin-bottom: 6px;
  color: var(--c-on-dark);
}
.product-tile-meta {
  font-size: var(--fs-aux);
  letter-spacing: 0.02em;
  color: rgba(247, 242, 236, 0.78);
}

/* ============ 型号卡（产品系列页 / 详情页共用；整卡可点） ============ */
.model-card {
  display: block;
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  background: var(--c-paper-2);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease);
}
.model-card:hover {
  border-color: rgba(201, 161, 92, 0.7);
}
.model-media {
  display: block;
  aspect-ratio: 16 / 10;
  background-color: #5c2f27; /* 图片加载前兜底 */
  background-size: cover;
  background-position: center;
  transition: transform var(--t-base) var(--ease);
}
.model-card:hover .model-media {
  transform: scale(1.045);
}
/* 占位（图片未就位时） */
.model-media.is-placeholder {
  background-image: linear-gradient(160deg, #8a6a52, #5c4436);
}
.model-body {
  display: grid;
  gap: 8px;
  padding: 20px 22px 22px;
}
.model-type {
  font-size: var(--fs-aux);
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.model-spec {
  font-size: var(--fs-aux);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-brand);
  font-variant-numeric: tabular-nums;
}
.model-body p {
  font-size: var(--fs-aux);
  line-height: 1.7;
  color: var(--c-text-2);
}
.model-more {
  font-size: var(--fs-aux);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-brand);
}
.model-more::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--t-base) var(--ease);
}
.model-card:hover .model-more::after {
  transform: translateX(4px);
}

/* ============ CTA 带（主色陶土：纸白 → 陶土 → 深棕 三段层次） ============ */
.cta-band {
  margin-top: var(--space-sec);
  padding-block: var(--space-sec);
  background: var(--c-brand);
  color: var(--c-on-dark);
  text-align: center;
}
.cta-band h2 {
  color: var(--c-on-dark);
}
.cta-band p {
  margin-top: 12px;
  color: var(--c-on-dark-muted);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}
.cta-btn {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid rgba(247, 242, 236, 0.5);
  border-radius: var(--r-s);
  font-size: var(--fs-aux);
  letter-spacing: 0.08em;
  color: var(--c-on-dark);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.cta-btn:hover,
.cta-btn:focus-visible {
  border-color: var(--c-on-dark);
  background: rgba(247, 242, 236, 0.08);
}
.cta-btn.is-primary {
  border-color: var(--c-paper);
  background: var(--c-paper);
  color: var(--c-brand);
  font-weight: 600;
}
.cta-btn.is-primary:hover,
.cta-btn.is-primary:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--c-brand-deep);
}

/* ============ 技术项（一行三个 · 文字叠图） ============ */
.tech-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-m);
  overflow: hidden;
}
/* 工艺图（工艺特写 · 1536×1024，4:3 显示 = 左右各裁 ~5.6%；悬停时轻微缩放 + 轻提亮） */
.tech-media {
  position: absolute;
  inset: 0;
  background-color: #5c4436; /* 图片加载前兜底 */
  background-image: url("../img/tech/tech-1-extract.webp");
  background-size: cover;
  background-position: center;
  transition: transform var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}
.tech-item:hover .tech-media {
  transform: scale(1.045);
  filter: brightness(1.08);
}
.tech-item:nth-child(2) .tech-media {
  background-image: url("../img/tech/tech-2-steam.webp");
}
.tech-item:nth-child(3) .tech-media {
  background-image: url("../img/tech/tech-3-filter.webp");
}
/* 底部渐隐：保证叠字可读；悬停时浮现金色描边（2px，大图上 1px 太细感知不到） */
.tech-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(30, 16, 12, 0.72), rgba(30, 16, 12, 0) 56%);
  box-shadow: inset 0 0 0 2px rgba(201, 161, 92, 0);
  transition: box-shadow var(--t-base) var(--ease);
}
.tech-item:hover::after {
  box-shadow: inset 0 0 0 2px rgba(201, 161, 92, 0.9);
}
.tech-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
}
.tech-body h3 {
  margin-bottom: 8px;
  color: var(--c-on-dark);
}
.tech-body p {
  font-size: var(--fs-body);
  color: rgba(247, 242, 236, 0.8);
}

/* ============ 参数卡（深色 · 仪表感） ============ */
.science-card {
  background: var(--c-dark);
  color: var(--c-on-dark);
  border-radius: var(--r-l);
  padding: 30px 28px;
}
.gauge {
  margin-bottom: 24px;
}
.gauge:last-child {
  margin-bottom: 0;
}
.gauge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gauge-name {
  font-size: var(--fs-aux);
  color: var(--c-on-dark-muted);
}
.gauge-value {
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--c-on-dark);
  font-variant-numeric: tabular-nums;
}
.gauge-bar {
  position: relative;
  height: 8px;
  background: rgba(247, 242, 236, 0.13);
  border-radius: 4px;
  overflow: hidden;
}
.gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: var(--c-gold);
}
/* 刻度齿：等距竖线叠加 */
.gauge-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(74, 38, 32, 0.5) 0 1px,
    transparent 1px 9px
  );
}

/* ============ 统计数字 ============ */
.stat-num {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  font-weight: 700;
  color: var(--c-brand);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: var(--fs-aux);
  color: var(--c-text);
}

/* ============ 页脚（深浅双区：深棕品牌区 + 暖砂信息区） ============ */

/* 页脚内容限宽：整体内容 ≤1440px 居中（2026-09-22 按用户要求；区块底色与刻度沿仍通铺全宽） */
.site-footer .wrap {
  max-width: 1440px;
}

/* —— 品牌区：字标 / 标语 / 手机版二维码（上沿含刻度刻线） —— */
.footer-brand-zone {
  position: relative;
  padding-block: 34px;
  background-image: linear-gradient(180deg, #4e2c21 0%, #46261f 55%, #40231d 100%);
  color: var(--c-on-dark);
}
@media (min-width: 768px) {
  .footer-brand-zone {
    padding-block: 46px;
  }
}
/* 顶部刻度沿：量尺刻线（短刻 12px/段、长刻 60px/段，全宽平铺） */
.footer-brand-zone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 161, 92, 0.5) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(201, 161, 92, 0.22) 0 1px, transparent 1px 12px);
  background-size: auto 7px, auto 3px;
  background-position: 0 0, 0 bottom;
  background-repeat: repeat-x, repeat-x;
}
.footer-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand .logo {
  margin-bottom: 14px;
  color: var(--c-on-dark);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.045);
}
/* 品牌区字标升一档（页头字标不受影响） */
@media (min-width: 768px) {
  .footer-brand .logo-word {
    font-size: 34px;
  }
}
.footer-brand p {
  max-width: 26em;
  font-size: var(--fs-aux);
  line-height: 1.8;
  color: var(--c-on-dark-muted);
}
/* 手机版二维码（品牌区右端；<1024 隐藏——手机自身无需扫码；白垫 + 铜环视窗） */
.footer-qr {
  display: none;
  align-items: center;
  gap: 14px;
}
@media (min-width: 1024px) {
  .footer-qr {
    display: flex;
  }
}
.footer-qr img {
  width: 96px;
  height: auto;
  padding: 8px;
  box-sizing: content-box;
  background: #fff;
  border-radius: var(--r-s);
  box-shadow:
    0 0 0 1px rgba(201, 161, 92, 0.55),
    0 0 0 5px rgba(255, 255, 255, 0.028),
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.footer-qr-cap {
  display: grid;
  gap: 6px;
}
.footer-qr-cap strong {
  font-size: var(--fs-aux);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-on-dark);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.045);
}
.footer-qr-cap strong::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  vertical-align: 4px;
  background: var(--c-gold);
}
.footer-qr-cap span {
  font-size: var(--fs-cap);
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

/* —— 信息区：暖砂底（--c-paper-deep，比页面暖白深半档——页脚「落地」、与页面画布分层） —— */
.footer-info-zone {
  background: var(--c-paper-deep);
}
.footer-main {
  padding-block: 34px 22px;
}
@media (min-width: 768px) {
  .footer-main {
    padding-block: 52px 28px;
  }
}
/* 联系方式 + 社交 = 信息区内容（无标题；全部从内容区左缘起排） */
.footer-grid {
  display: grid;
  gap: 8px;
}
@media (min-width: 1024px) {
  .footer-grid {
    gap: 26px;
  }
}
/* 条目文字统一 14px / 1.7 行高 */
.footer-contact li {
  font-size: var(--fs-aux);
  line-height: 1.7;
  color: var(--c-text-2);
}
/* 联系方式 = 横排三块（地址 / 电话 / 邮箱）：刻度微标签 + 值（小屏纵向堆叠） */
ul.footer-contact {
  display: grid;
  gap: 22px;
}
.footer-contact .fld {
  display: grid;
  gap: 10px;
}
.footer-contact .fld-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-cap);
  letter-spacing: 0.08em;
  color: var(--c-brand);
}
.footer-contact .fld-label::before {
  content: "";
  width: 14px;
  height: 2px;
  flex: none;
  background: var(--c-brand);
}
.footer-contact .fld-value {
  color: var(--c-text-2);
}
/* 桌面（≥1024）：联系方式三块横排（地址列约 2 份宽：长地址单行放得下） */
@media (min-width: 1024px) {
  ul.footer-contact {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
  }
}
/* 社交行：图标 + 名称（无标题；整行居中） */
.footer-social {
  margin-top: 10px;
}
@media (min-width: 1024px) {
  .footer-social {
    margin-top: 0;
  }
}
.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-aux);
  color: var(--c-text-2);
  transition: color var(--t-fast) var(--ease);
}
.social-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--c-brand);
}
.social-link:hover {
  color: var(--c-brand);
}
/* 底行：上边框通铺全宽（在限宽 wrap 之外）；版权文字在 1440 内容区内居中 */
.footer-bottom {
  border-top: 1px solid var(--c-line);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-block: 22px;
  font-size: var(--fs-cap);
  color: var(--c-muted);
}
