/* ==========================================================================
   AURELIS 品牌官网 - 全站样式表
   --------------------------------------------------------------------------
   目录
   01. 设计令牌 (Design Tokens)  02. 重置与基础  03. 通用组件
   04. 页头与导航                05. 首屏 Hero    06. 数据条
   07. 产品网格                  08. 品牌故事     09. 联系表单
   10. 页脚                      11. 动效         12. 响应式与打印
   ========================================================================== */

/* ==========================================================================
   01. 设计令牌
   主题通过 <html data-theme="light|dark"> 切换，所有颜色都取自这里的变量，
   换配色只需改这一处。
   ========================================================================== */
:root {
  /* 品牌色 —— [替换] 换成你的品牌色 */
  --accent: #2e5e4e;          /* 主色：深松绿 */
  --accent-hover: #24493d;
  --accent-soft: #e6efea;
  --accent-2: #c97b4a;        /* 辅助色：陶土橙 */
  --accent-contrast: #ffffff; /* 主色之上的文字色 */

  /* 中性色（浅色主题默认） */
  --bg: #fbfaf8;
  --bg-soft: #f3efe9;
  --surface: #ffffff;
  --surface-alt: #f7f5f1;
  --text: #1a1917;
  --text-muted: #6b6660;
  --line: #e7e2da;
  --shadow-sm: 0 1px 2px rgba(26, 25, 23, .06), 0 1px 3px rgba(26, 25, 23, .04);
  --shadow-md: 0 4px 12px rgba(26, 25, 23, .07), 0 12px 32px rgba(26, 25, 23, .06);
  --shadow-lg: 0 18px 48px rgba(26, 25, 23, .12);

  /* 排版 */
  --font-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI",
    Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --fs-display: clamp(2.25rem, 1.35rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .8125rem;

  /* 间距与形状 */
  --container: 1200px;
  --gutter: clamp(1.25rem, .75rem + 2vw, 2.5rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .32s;
}

html[data-theme="dark"] {
  --bg: #101211;
  --bg-soft: #161a18;
  --surface: #181b19;
  --surface-alt: #1e2320;
  --text: #f0eee9;
  --text-muted: #9c978f;
  --line: #2b302c;
  --accent: #6fbf9b;
  --accent-hover: #86cfae;
  --accent-soft: #1c2b25;
  --accent-2: #e0a075;
  --accent-contrast: #0b0d0c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   02. 重置与基础
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* 统一且可见的键盘焦点样式（无障碍必需，不要删除） */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ==========================================================================
   03. 通用组件
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.25rem);
}
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .875rem;
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section__title { font-size: var(--fs-h2); }
.section__lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
}

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn--block { width: 100%; }

.tag {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
}

/* 跳转到主内容：键盘用户按 Tab 时第一个出现的链接 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* 仅供屏幕阅读器 */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--accent); }

/* ==========================================================================
   04. 页头与导航
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: .875rem;
  letter-spacing: 0;
}
.logo:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__link {
  position: relative;
  padding-block: .5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: .625rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

/* 主题切换按钮：浅色显示月亮，深色显示太阳 */
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ==========================================================================
   05. 首屏 Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88dvh, 780px);
  padding-block: clamp(3rem, 2rem + 7vw, 6.5rem);
  overflow: hidden;
  background: var(--bg);
}
/* 纯 CSS 生成的背景光斑，无需任何图片资源 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: 46vw; height: 46vw;
  top: -14vw; right: -8vw;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.hero::after {
  width: 34vw; height: 34vw;
  bottom: -16vw; left: -10vw;
  background: color-mix(in srgb, var(--accent-2) 45%, transparent);
  opacity: .38;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  max-width: 46ch;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.hero__trust-item svg { color: var(--accent); flex: none; }

/* 右侧视觉：分层卡片，纯 CSS 绘制 */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 620px;
}
.hero__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__card-label {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: 16rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero__card-label strong { display: block; font-size: var(--fs-sm); }
.hero__card-label span { color: var(--text-muted); font-size: var(--fs-xs); }

.hero__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: .5rem .875rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   06. 数据条 / 合作方
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__item {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--surface);
  text-align: center;
}
.stats__num {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--accent);
}
.stats__label {
  margin-top: .25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   07. 产品网格
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter {
  padding: .5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.product:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-md);
}

/* 产品图位。当前用 CSS 渐变占位。
   换成真实照片：把 <div class="product__media"> 改为
   <img src="assets/img/xxx.jpg" width="800" height="800" alt="产品名" loading="lazy"> */
.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(100% 100% at 25% 15%, color-mix(in srgb, var(--c1, var(--accent)) 34%, transparent), transparent 62%),
    radial-gradient(90% 90% at 85% 88%, color-mix(in srgb, var(--c2, var(--accent-2)) 40%, transparent), transparent 60%),
    linear-gradient(150deg, var(--surface-alt), var(--surface));
  border-bottom: 1px solid var(--line);
}
/* 占位图中央的抽象几何图案 */
.product__media::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(12deg);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 26% 74% 38% 62% / 58% 32% 68% 42%;
}

.product__badge {
  position: absolute;
  top: .875rem;
  left: .875rem;
  z-index: 1;
  padding: .25rem .65rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1.25rem;
}
.product__cat {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product__name { font-size: var(--fs-h3); }
.product__desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  flex: 1;
}
.product__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  padding-top: .875rem;
  border-top: 1px solid var(--line);
}
.product__price {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.product__price small {
  margin-left: .375rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: line-through;
}
.product__link {
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.product__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 筛选时被隐藏的卡片 */
.product[hidden] { display: none; }

/* ==========================================================================
   08. 品牌故事
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.story__media {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 80% at 15% 10%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 58%),
    radial-gradient(90% 90% at 85% 95%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    linear-gradient(200deg, var(--surface-alt), var(--surface));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.story__media::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50% 50% 46% 54% / 54% 46% 54% 46%;
}
.story__quote {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--text-muted);
}

.story__list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.story__item { display: flex; gap: .875rem; }
.story__item-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.story__item h3 { font-size: 1rem; margin-bottom: .2rem; }
.story__item p { color: var(--text-muted); font-size: var(--fs-sm); }

/* 时间线 */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: clamp(2rem, 1rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}
.timeline__year {
  display: block;
  margin-bottom: .375rem;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.timeline__text { color: var(--text-muted); font-size: var(--fs-sm); }

/* 价值观卡片 */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.value-card {
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.value-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }
.value-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.125rem;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.value-card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.value-card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   09. 联系表单
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.contact__info { display: grid; gap: 1.5rem; }
.contact__row { display: flex; gap: .875rem; }
.contact__row-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact__row dt { font-size: var(--fs-sm); font-weight: 600; }
.contact__row dd { color: var(--text-muted); font-size: var(--fs-sm); }
.contact__row a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form {
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label {
  font-size: var(--fs-sm);
  font-weight: 500;
}
.field__label .req { color: var(--accent); margin-left: .15rem; }

.field__input,
.field__textarea,
.field__select {
  width: 100%;
  padding: .7rem .875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.field__textarea { min-height: 132px; resize: vertical; }
.field__select { appearance: none; background-image: none; }

.field__input::placeholder,
.field__textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 70%, transparent); }

.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* 校验失败态 */
.field__input[aria-invalid="true"],
.field__textarea[aria-invalid="true"] { border-color: #d64545; }
.field__input[aria-invalid="true"]:focus,
.field__textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .2);
}

.field__error {
  min-height: 1.1em;
  color: #d64545;
  font-size: var(--fs-xs);
}
html[data-theme="dark"] .field__error { color: #ff8f8f; }

/* 单列表单：联系页在移除联系方式栏后使用，保持可读行长 */
.form--narrow {
  max-width: 46rem;
  margin-inline: auto;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.form__hint { color: var(--text-muted); font-size: var(--fs-xs); }

.form__status {
  margin-top: 1rem;
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-success {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
.form__status.is-error {
  background: rgba(214, 69, 69, .1);
  border: 1px solid rgba(214, 69, 69, .35);
  color: #d64545;
}

/* ==========================================================================
   10. 页脚
   ========================================================================== */
.footer {
  margin-top: auto;
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.footer__about p {
  max-width: 34ch;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.footer__title {
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__links { display: grid; gap: .65rem; }
.footer__links a { color: var(--text); font-size: var(--fs-sm); }
.footer__links a:hover { color: var(--accent); }

.social { display: flex; gap: .625rem; margin-top: 1.25rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   11. 动效
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 尊重系统的"减弱动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(1rem, .5rem + 1.5vw, 2rem);
  bottom: clamp(1rem, .5rem + 1.5vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-hover); }

/* ==========================================================================
   12. 响应式与打印
   ========================================================================== */

/* 平板 */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* 方图在窄屏下用限宽 + 居中，避免撑满整屏高度 */
  .hero__visual {
    order: -1;
    aspect-ratio: 1 / 1;
    max-height: none;
    width: min(100%, 420px);
    margin-inline: auto;
  }
  .story { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 16 / 10; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机 */
@media (max-width: 768px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: grid; }

  /* 移动端抽屉式导航 */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur) var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }

  .nav .btn { margin-top: 1.25rem; }

  .hero { min-height: auto; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__trust { gap: 1rem 1.5rem; }

  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
}

@media (max-width: 420px) {
  .hero__badge { top: 1rem; right: 1rem; }
  .hero__card-label { left: 1rem; bottom: 1rem; max-width: none; right: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. 内页页头（面包屑 + 页面标题）
   ========================================================================== */
.page-head {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -30%; right: -6%;
  width: 34vw; height: 34vw;
  border-radius: 50%;
  filter: blur(74px);
  opacity: .32;
  background: color-mix(in srgb, var(--accent) 60%, transparent);
  pointer-events: none;
}
.page-head__inner { position: relative; z-index: 1; }
.page-head__title { font-size: var(--fs-h2); }
.page-head__lead {
  max-width: 58ch;
  margin-top: .875rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .55; }

/* ==========================================================================
   14. 规格表 & 产品详情要素
   ========================================================================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.spec-table caption {
  margin-bottom: .875rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
}
.spec-table th,
.spec-table td {
  padding: .8rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  color: var(--text-muted);
  font-weight: 500;
}
.spec-table td { font-weight: 500; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.checklist { display: grid; gap: .7rem; }
.checklist li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.checklist svg { flex: none; margin-top: .18rem; color: var(--accent); }
.checklist strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   15. CTA 横幅
   ========================================================================== */
.cta-band {
  position: relative;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 120% at 0% 0%, color-mix(in srgb, var(--accent) 88%, transparent), transparent 62%),
    linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  color: var(--accent-contrast);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.cta-band h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  color: var(--accent-contrast);
}
.cta-band p {
  max-width: 52ch;
  margin-top: .6rem;
  opacity: .85;
  font-size: var(--fs-sm);
}
.cta-band .btn {
  --btn-bg: var(--bg);
  --btn-fg: var(--text);
  flex: none;
}
.cta-band .btn:hover { --btn-bg: var(--surface); }
.cta-band .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--accent-contrast);
  border-color: color-mix(in srgb, var(--accent-contrast) 45%, transparent);
}
.cta-band .btn--ghost:hover {
  background: color-mix(in srgb, var(--accent-contrast) 14%, transparent);
  color: var(--accent-contrast);
}

/* ==========================================================================
   16. FAQ 折叠面板（原生 details，零 JS，天然可键盘操作）
   ========================================================================== */
.faq { display: grid; gap: .875rem; max-width: 60rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent); }

.faq__a {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.faq__a p + p { margin-top: .75rem; }

/* ==========================================================================
   17. 信任徽标行
   ========================================================================== */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-row__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.trust-row__item svg { flex: none; color: var(--accent); }

/* ==========================================================================
   18. 展示图库（图位占位，换成真实图片时改 <img>）
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1rem, .75rem + 1vw, 1.5rem);
}
.gallery__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  overflow: hidden;
}
.gallery__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   19. 产品详情（单款产品页 / 首页主推位）
   ========================================================================== */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.detail__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 多视角缩略图。由 main.js 切换主图，当前项带 aria-current="true"。 */
.detail__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.4rem, .2rem + .5vw, .75rem);
  margin-top: clamp(.75rem, .5rem + .5vw, 1.125rem);
}
.detail__thumb {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  overflow: hidden;
  cursor: pointer;
  opacity: .68;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.detail__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail__thumb:hover { opacity: 1; border-color: var(--accent); }
.detail__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* 标签行 */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* 价格 */
.detail__price {
  display: flex;
  align-items: baseline;
  gap: .625rem;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.detail__price small {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: line-through;
}

/* 操作按钮行 */
.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.detail__note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* 型号 / SKU 等次要信息 */
.detail__sku {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .detail { grid-template-columns: 1fr; }
}

/* ==========================================================================
   20. 打印
   ========================================================================== */
@media print {
  .header, .to-top, .footer__bottom, .hero::before, .hero::after,
  .page-head::after, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}


