/* =========================================================
   破壁机企业官网模板 — base.css
   设计令牌 / 基础样式 / 全站通用组件（页头、抽屉、页脚等）
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色与衍生 */
  --c-primary: #C65D2E;
  --c-primary-dark: #A84A22;
  --c-primary-tint: #F8E9E1;
  --c-primary-bright: #DA7443;

  /* 中性色 */
  --c-ink: #2A2421;
  --c-ink-2: #6B625C;
  --c-ink-3: #9B938B;
  --c-bg: #FAF7F2;
  --c-surface: #FFFFFF;
  --c-soft: #F3EDE4;
  --c-line: #E7E0D6;

  /* 深色区段 */
  --c-dark: #2A2421;
  --c-darker: #241E1B;
  --c-on-dark: #FAF7F2;
  --c-on-dark-2: rgba(250, 247, 242, 0.64);
  --c-on-dark-3: rgba(250, 247, 242, 0.38);
  --c-hairline-dark: rgba(250, 247, 242, 0.14);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;

  /* 布局（容器上限 1440px；左右保底留白由 --pad 控制：桌面 20px、手机 16px） */
  --container: 1440px;
  --pad: 20px;

  /* 形状与动效 */
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--c-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }

/* ---------- 布局容器与区段 ---------- */
.container {
  width: min(var(--container), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.section { padding-block: 80px; }
.section--surface { background: var(--c-surface); }
.section--soft { background: var(--c-soft); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
/* 通栏区块：去掉上下留白（如首页品牌故事全宽影像）；双类选择器确保覆盖移动端 .section 规则 */
.section.section--flush { padding-block: 0; }

/* ---------- 标题组 ---------- */
.section-head { margin-bottom: 48px; }

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 居中标题组（首页产品系列）与区段底部链接 */
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-foot {
  margin-top: 40px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-primary);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  flex: none;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--c-ink-2);
  max-width: 46em;
}

.section--dark .eyebrow { color: var(--c-primary-bright); }
.section--dark .section-desc { color: var(--c-on-dark-2); }

/* ---------- 按钮与文字链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }

.btn--ghost { border: 1px solid var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-ink); }

.btn--ghost-light { border: 1px solid rgba(250, 247, 242, 0.36); color: var(--c-on-dark); }
.btn--ghost-light:hover { border-color: var(--c-on-dark); }

.btn--light { background: var(--c-on-dark); color: var(--c-ink); }
.btn--light:hover { background: #FFFFFF; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-ink-2);
  transition: color 0.3s;
}
.link-more svg { transition: transform 0.3s var(--ease); }
.link-more:hover { color: var(--c-primary); }
.link-more:hover svg { transform: translateX(4px); }

/* 查看更多（列表下方版）：默认隐藏，仅手机端启用（见响应式） */
.section-more { display: none; }

/* ---------- 滚动进场（渐进增强：仅 .js 环境下隐藏待进场元素） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 无障碍辅助 ---------- */
.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;
  top: -64px;
  left: 16px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

/* ---------- 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
}
.logo__mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--c-primary);
  flex: none;
}
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.94;
}
/* 导航栏：仅显示 logo 图形（高 40px），不显示公司名称文字（2026-09-15 规范） */
.site-header .logo__mark { width: 40px; height: 40px; }
.site-header .logo__mark::after { inset: 11px; }
.logo__text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo__text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-left: 8px;
  color: var(--c-ink-2);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  transition: color 0.3s;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--c-primary); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lang-switch__item {
  padding: 4px 0;
  color: var(--c-ink-3);
  transition: color 0.3s;
}
.lang-switch__item.is-active {
  color: var(--c-primary);
  font-weight: 600;
}
.lang-switch__sep { color: var(--c-ink-3); opacity: 0.6; }
.lang-switch:hover .lang-switch__item:not(.is-active) { color: var(--c-ink); }

.nav-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19.5px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 全屏导航面板（桌面主导航） ---------- */
.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  color: #FFFFFF;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.3s;
}
.menu-btn:hover { color: rgba(255, 255, 255, 0.72); }
/* 滚动后页头变浅底（米白毛玻璃），自动切回主色保证可见 */
.site-header.is-scrolled .menu-btn { color: var(--c-primary); }
.site-header.is-scrolled .menu-btn:hover { color: var(--c-primary-dark); }
.menu-btn__label { white-space: nowrap; }
.menu-btn__icon {
  display: grid;
  justify-items: end;
  gap: 6px;
  width: 26px;
}
.menu-btn__icon span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.menu-btn__icon span:nth-child(2) { width: 15px; }
.menu-btn:hover .menu-btn__icon span:nth-child(2) { width: 26px; }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--c-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-panel__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  padding-bottom: 26px;
}
.nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}
.nav-panel__close {
  position: relative;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-panel__close::before,
.nav-panel__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--c-ink);
  transition: background 0.3s;
}
.nav-panel__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-panel__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-panel__close:hover::before,
.nav-panel__close:hover::after { background: var(--c-primary); }
.nav-panel__nav {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}
.nav-panel__nav ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.nav-panel__item {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.055s + 0.1s);
}
.nav-panel.is-open .nav-panel__item { opacity: 1; transform: none; }
.nav-panel__item > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  transition: color 0.3s, transform 0.35s var(--ease);
}
.nav-panel__item > a svg {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.nav-panel__item > a:hover { color: var(--c-primary); transform: translateX(12px); }
.nav-panel__item > a:hover svg { opacity: 1; transform: none; }
.nav-panel__item > a.is-active { color: var(--c-primary); }
.nav-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.nav-panel__contact { margin: 0; font-size: 13px; color: var(--c-ink-2); }

@media (min-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .site-header .lang-switch { display: none; }
}
@media (max-width: 1023px) {
  .nav-panel { display: none; }
}

/* ---------- 移动端抽屉 ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(36, 30, 27, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  padding: 14px 24px 32px;
  background: var(--c-bg);
  overflow-y: auto;
  transform: translateX(102%);
  pointer-events: none;
  transition: transform 0.45s var(--ease);
}
.drawer.is-open {
  transform: none;
  pointer-events: auto;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  font-size: 17px;
  border-bottom: 1px solid var(--c-line);
  transition: color 0.3s;
}
.drawer__nav a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--c-ink-3);
  border-right: 1.5px solid var(--c-ink-3);
  transform: rotate(45deg);
  transition: border-color 0.3s;
}
.drawer__nav a:hover,
.drawer__nav a.is-active { color: var(--c-primary); }
.drawer__nav a:hover::after,
.drawer__nav a.is-active::after { border-color: var(--c-primary); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-darker);
  color: var(--c-on-dark);
}
/* 页脚品牌语（一行，克制的存在感） */
.footer-slogan {
  margin: 0;
  padding: 62px 0 40px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--c-on-dark);
}
.footer-slogan em {
  font-style: normal;
  color: var(--c-primary-bright);
}
.site-footer__note { margin: 0; }
.site-footer__main { padding-block: 0 44px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr 0.9fr;
  gap: 40px;
}
.footer-brand .logo__text { color: var(--c-on-dark); }
.footer-brand .logo__text em { color: var(--c-on-dark-3); }
.footer-brand__desc {
  margin-top: 18px;
  font-size: 14px;
  color: var(--c-on-dark-2);
  max-width: 30em;
}
.footer-brand__addr {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-on-dark-3);
  line-height: 1.9;
}

.footer-col__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-on-dark-3);
  margin-bottom: 18px;
}
.footer-col__body li { margin-bottom: 11px; }
.footer-col__body a,
.footer-col__body p {
  font-size: 14px;
  color: var(--c-on-dark-2);
  transition: color 0.3s;
}
.footer-col__body a:hover { color: var(--c-on-dark); }

/* 手机访问二维码（卡与提示文字居中对齐） */
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-qr__card {
  width: 148px;
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
}
.footer-qr__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-qr__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: var(--c-ink-3);
  border: 1px dashed var(--c-line);
  border-radius: 8px;
}
.footer-qr__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-on-dark-3);
}

.site-footer__bottom {
  border-top: 1px solid var(--c-hairline-dark);
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-on-dark-3);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s var(--ease), border-color 0.3s, color 0.3s, visibility 0.35s;
}
.back-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-top:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --pad: 16px; }
  .section { padding-block: 44px; }
  .section-head { margin-bottom: 32px; }

  /* 「查看更多」移到列表下方（标题行内隐藏） */
  .section-head--row .link-more { display: none; }
  .section-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }

  .footer-slogan { padding: 44px 0 28px; }
  .site-footer__main { padding-bottom: 28px; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-brand { padding-bottom: 22px; }

  .footer-col--acc { border-top: 1px solid var(--c-hairline-dark); }
  .footer-col--acc .footer-col__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    margin-bottom: 0;
    cursor: pointer;
  }
  .footer-col--acc .footer-col__title::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1.5px solid var(--c-on-dark-3);
    border-bottom: 1.5px solid var(--c-on-dark-3);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s var(--ease);
  }
  .footer-col--acc.is-open .footer-col__title::after {
    transform: rotate(-135deg) translateY(-2px);
  }
  .footer-col--acc .footer-col__body {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.45s var(--ease), padding-bottom 0.45s var(--ease);
  }
  .footer-col--acc.is-open .footer-col__body {
    max-height: 380px;
    padding-bottom: 8px;
  }

  .back-top { right: 16px; bottom: 16px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
