/* 逐光精密 LUMENLAYER
   1. 变量与基础
   2. 通用组件（按钮 / 表单 / 卡片 / 表格）
   3. 页头与内容区块
   4. 指标带与内容区块
   5. 工艺流程与计算器
   6. 材料 / 精度 / 案例
   7. 报价与 FAQ
   8. 页脚与响应式 */

:root {
  --dark-900: #0b0d10;
  --dark-850: #0f1216;
  --dark-800: #14171c;
  --dark-700: #1a1e24;
  --dark-600: #232830;
  --dark-500: #2f353e;

  --light-100: #f5f6f7;
  --light-000: #ffffff;
  --line-light: #e2e5ea;
  --line-dark: rgba(255, 255, 255, 0.1);

  --text-strong: #0f1319;
  --text-body: #3f4855;
  --text-muted: #6c7686;
  --text-inv: #f2f5f8;
  --text-inv-muted: #98a3b2;

  --accent: #ff5a1f;
  --accent-dark: #e1440c;
  --accent-soft: rgba(255, 90, 31, 0.1);
  --teal: #12b3a1;
  --teal-soft: rgba(18, 179, 161, 0.12);
  --violet: #8b5cf6;

  --radius-card: 8px;
  --radius-control: 6px;
  --radius-pill: 999px;

  --shell: 1240px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section-y: clamp(64px, 8vw, 116px);

  --shadow-sm: 0 1px 2px rgba(15, 19, 25, 0.06), 0 6px 18px rgba(15, 19, 25, 0.05);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--light-100);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
}

h1 { font-size: 3.3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.15rem; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-control);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 通用组件 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-light);
  color: var(--text-strong);
}
.btn--ghost:hover { border-color: var(--text-strong); }

.section--dark .btn--ghost { border-color: var(--line-dark); color: var(--text-inv); }
.section--dark .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.45); }

.btn--sm { padding: 9px 16px; font-size: 0.88rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-inv);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }

.section { padding-block: var(--section-y); background: var(--light-000); }
.section--tint { background: var(--light-100); }
.section--dark { background: var(--dark-900); color: var(--text-inv-muted); }
.section--dark h2, .section--dark h3 { color: var(--text-inv); }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__lead { margin-top: 18px; font-size: 1.02rem; color: var(--text-body); }
.section__lead--tight { margin-top: 12px; }
.section--dark .section__lead { color: var(--text-inv-muted); }

.card {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--light-000);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: #c9cfd8; box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent);
}

.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { color: var(--text-body); font-size: 0.95rem; }

.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-inv-muted);
  font-family: var(--font-mono);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--light-000);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.note svg { flex: none; margin-top: 3px; color: var(--teal); }
.note--dark { background: var(--dark-800); border-color: var(--line-dark); color: var(--text-inv-muted); }
.note__link { margin-left: 4px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.note__link:hover { color: var(--accent); }

.field { display: grid; gap: 8px; }
.field > span { font-size: 0.86rem; font-weight: 600; color: var(--text-inv); }
.field i { color: var(--accent); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--dark-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-control);
  color: var(--text-inv);
  font-size: 0.94rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #67707e; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--dark-800);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--dark-800); color: var(--text-inv); }

.field--file input[type="file"] {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  cursor: pointer;
}
.field--file em { font-style: normal; font-size: 0.82rem; color: var(--text-inv-muted); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-inv-muted);
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  background: var(--light-000);
}
.table-wrap--dark { background: var(--dark-800); border-color: var(--line-dark); }

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}
.data-table thead th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #fbfbfc;
  white-space: nowrap;
}
.data-table tbody th { font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfc; }

.table-wrap--dark .data-table th,
.table-wrap--dark .data-table td { border-color: var(--line-dark); color: var(--text-inv-muted); }
.table-wrap--dark .data-table thead th { background: var(--dark-700); color: var(--text-inv-muted); }
.table-wrap--dark .data-table tbody th { color: var(--text-inv); }
.table-wrap--dark .data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.data-table .is-highlight { background: var(--accent-soft); color: var(--text-strong); font-weight: 600; }
.table-wrap--dark .data-table .is-highlight { background: rgba(255, 90, 31, 0.14); color: #ffd9c8; }

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  border: 1px solid rgba(15, 19, 25, 0.15);
  vertical-align: -1px;
}
.swatch--grey { background: #b9bec4; }
.swatch--orange { background: #e8763a; }
.swatch--mint { background: #9fd8cd; }
.swatch--amber { background: #c98a3c; }
.swatch--clear { background: #dfeaf2; }
.swatch--clay { background: #8b7f6e; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-inv-muted);
}
.breadcrumb a { color: var(--text-inv-muted); }
.breadcrumb a:hover { color: #fff; }

.cta-band { background: var(--dark-850); border-top: 1px solid var(--line-dark); }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: clamp(36px, 4.4vw, 58px);
}
.cta-band h2 { font-size: 1.7rem; color: #fff; }
.cta-band p { margin-top: 10px; font-size: 0.95rem; color: var(--text-inv-muted); max-width: 620px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(11, 13, 16, 0.95); }

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

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-inv); }
.brand__mark { display: inline-flex; color: var(--accent); }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { font-size: 1.02rem; }
.brand__text em { font-style: normal; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--text-inv-muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a { flex: 0 0 auto; white-space: nowrap; }
.site-nav > a {
  padding: 8px 14px;
  border-radius: var(--radius-control);
  font-size: 0.92rem;
  color: #c6cdd8;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.site-nav > a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav__cta { margin-left: 10px; color: #fff !important; }
.site-nav__cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-inv);
  cursor: pointer;
}

/* 指标带 */

.metrics { background: var(--light-000); border-block: 1px solid var(--line-light); }
.metrics__inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; }
.metric { display: grid; gap: 4px; padding: 26px 22px; border-left: 1px solid var(--line-light); }
.metric:first-child { border-left: 0; }
.metric__value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--text-strong); }
.metric__label { font-size: 0.82rem; color: var(--text-muted); }

.cards { display: grid; gap: 18px; }
.cards--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card--wide { grid-column: span 2; }

/* 方案入口（首页与耳机方案页共用；注意必须放在全站样式里，否则某个页面会丢样式） */
.solution-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.solution-teaser__item {
  display: grid;
  gap: 10px;
  padding: 24px 22px;
  background: var(--light-000);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.solution-teaser__item:hover { border-color: var(--accent); }
.solution-teaser__item span { color: var(--accent); }
.solution-teaser__item strong { color: var(--text-strong); font-size: 1rem; }
.solution-teaser__item em { font-style: normal; font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 1024px) {
  .solution-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .solution-teaser { grid-template-columns: minmax(0, 1fr); }
}

/* 工艺流程 */

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.process__steps {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.process__step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: var(--dark-850);
  color: var(--text-inv-muted);
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.process__step span { font-family: var(--font-mono); font-size: 0.78rem; color: #5f6a78; }
.process__step:hover { background: var(--dark-700); color: #fff; }
.process__step.is-active { background: var(--dark-700); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.process__step.is-active span { color: var(--accent); }

.process__panels {
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--dark-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  min-height: 320px;
}
.process__panel { display: none; }
.process__panel.is-active { display: block; animation: fade-in 0.25s ease; }
.process__panel h3 { margin-bottom: 14px; font-size: 1.35rem; }
.process__panel p { color: var(--text-inv-muted); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 计算器 */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  margin-top: clamp(34px, 4vw, 56px);
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--dark-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  align-items: start;
}
.calc__intro h3 { margin-bottom: 12px; font-size: 1.3rem; }
.calc__intro p { font-size: 0.9rem; color: var(--text-inv-muted); }
.calc__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc__result {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.calc__result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--dark-850);
}
.calc__result dt { font-size: 0.82rem; color: var(--text-inv-muted); }
.calc__result dd { margin: 0; font-family: var(--font-mono); font-size: 0.98rem; color: #fff; }
.calc__result-total { background: var(--dark-700) !important; }
.calc__result-total dd { color: var(--accent); }

/* 精度与案例 */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(28px, 3vw, 44px);
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.spec { display: grid; gap: 6px; padding: 22px 18px; background: var(--light-100); }
.spec__icon { color: var(--accent); }
.spec strong { font-family: var(--font-mono); font-size: 1.22rem; color: var(--text-strong); }
.spec > span:last-child { font-size: 0.82rem; color: var(--text-muted); }

.section--dark .spec-grid { background: var(--line-dark); border-color: var(--line-dark); }
.section--dark .spec { background: var(--dark-850); }
.section--dark .spec__icon { color: var(--teal); }
.section--dark .spec strong { color: #fff; }
.section--dark .spec > span:last-child { color: var(--text-inv-muted); }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.case {
  margin: 0;
  background: var(--light-000);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.case__media { position: relative; aspect-ratio: 4 / 3; background: #0d1013; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case:hover .case__media img { transform: scale(1.03); }
.case figcaption { padding: clamp(20px, 2.2vw, 28px); }
.case h3 { margin-bottom: 10px; }
.case p { font-size: 0.94rem; color: var(--text-body); }

.case__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}
.case__specs li { display: grid; gap: 2px; font-size: 0.78rem; color: var(--text-muted); }
.case__specs strong { font-family: var(--font-mono); font-size: 0.98rem; color: var(--text-strong); }

/* 报价 */

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.quote__form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--dark-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.quote__tip { font-size: 0.84rem; color: var(--text-inv-muted); }
.form-error {
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.4);
  border-radius: var(--radius-control);
  color: #ffb498;
  font-size: 0.88rem;
}

.quote__side {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--dark-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
}
.quote__side h3 { margin-bottom: 18px; font-size: 1.15rem; }

.steps { display: grid; gap: 14px; margin-bottom: 24px; }
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; color: var(--text-inv-muted); }
.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.quote__contact { display: grid; gap: 10px; margin: 0 0 18px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.quote__contact > div { display: flex; justify-content: space-between; gap: 14px; }
.quote__contact dt { font-size: 0.84rem; color: #6f7a89; }
.quote__contact dd { margin: 0; font-size: 0.88rem; color: var(--text-inv); }
.quote__placeholder { font-size: 0.8rem; color: #626c79; }

.quote__result {
  margin-top: 28px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--dark-800);
  border: 1px solid rgba(18, 179, 161, 0.35);
  border-radius: var(--radius-card);
}
.quote__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.quote__result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quote__status {
  margin: 0 0 14px;
  padding: 11px 14px;
  background: rgba(217, 161, 92, 0.12);
  border: 1px solid rgba(217, 161, 92, 0.35);
  border-radius: var(--radius-control);
  font-size: 0.86rem;
  color: #e9c69a;
}
.quote__status.is-done {
  background: rgba(18, 179, 161, 0.12);
  border-color: rgba(18, 179, 161, 0.4);
  color: #9fd8cd;
}
.quote__status.is-error {
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 90, 31, 0.45);
  color: #ffb498;
}
.quote__result pre {
  margin: 0;
  padding: 18px;
  background: var(--dark-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-control);
  color: #d6dce4;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

/* FAQ */

.faq { border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; color: var(--text-muted); transition: transform 0.2s ease; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__body { padding: 0 4px 22px; max-width: 820px; }
.faq__body p { font-size: 0.94rem; color: var(--text-body); }

.section--dark .faq { border-top-color: var(--line-dark); }
.section--dark .faq__item { border-bottom-color: var(--line-dark); }
.section--dark .faq__item summary { color: var(--text-inv); }
.section--dark .faq__item summary svg { color: var(--text-inv-muted); }
.section--dark .faq__body p { color: var(--text-inv-muted); }

/* 页脚 */

.site-footer { background: var(--dark-900); border-top: 1px solid var(--line-dark); }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(40px, 5vw, 64px);
}
.site-footer__brand strong { display: block; margin-bottom: 10px; color: #fff; font-size: 1.05rem; }
.site-footer__brand p { font-size: 0.9rem; color: var(--text-inv-muted); max-width: 360px; }
.site-footer__nav { display: grid; gap: 10px; align-content: start; }
.site-footer__nav a { font-size: 0.9rem; color: var(--text-inv-muted); }
.site-footer__nav a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: 10px; align-content: start; }
.site-footer__contact a,
.site-footer__contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-inv-muted);
}
.site-footer__contact a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: #5f6875;
}

/* 滚动入场 */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* 响应式 */

@media (max-width: 1180px) {
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.9rem; }
  .metrics__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { border-left: 0; border-top: 1px solid var(--line-light); }
  .metric:nth-child(-n + 3) { border-top: 0; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* 断点从 920 提到 1100：导航条加了语言切换后总宽变大，
   原来的断点下 1024 宽会溢出、抬头挤在一起 */
@media (max-width: 1220px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(11, 13, 16, 0.98);
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 12px 8px; font-size: 1rem; }
  .site-nav__cta { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 860px) {
  .cards--services { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: span 1; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .calc__form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .metrics__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-top: 1px solid var(--line-light); }
  .metric__value { font-size: 1.25rem; }
  .section__head { margin-bottom: 28px; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .case__specs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .quote__actions { align-items: stretch; }
  .quote__actions .btn { width: 100%; }
  .quote__result-head { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; }
}
/* 语言切换：中 / EN / ع 三段式（所有页面共用） */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.lang-switch button {
  min-width: 34px;
  padding: 5px 9px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-inv);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button:hover { background: rgba(255, 255, 255, 0.16); }
.lang-switch button.is-active { background: #fff; color: var(--ink); }

/* 默认英文/阿拉伯语时，先隐藏内容避免中文一闪而过；脚本接手后移除 */
html.i18n-pending body { visibility: hidden; }

/* 阿拉伯语：换用阿拉伯字体栈，并按 RTL 镜像左右方向的装饰 */
html[lang='ar'] body {
  font-family: "Noto Sans Arabic", "Geeza Pro", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.9;
}
html[dir='rtl'] .section__head { direction: rtl; }
html[dir='rtl'] .note { border-left: 0; border-right: 2px solid var(--accent); padding-left: 0; padding-right: 16px; }
html[dir='rtl'] .step-list__no { padding-right: 0; }
html[dir='rtl'] .spec,
html[dir='rtl'] .metric { text-align: right; }

/* 内页页头（能力 / 工艺 / 材料 / 精度 / 问答 等独立页面共用） */
.page-hero {
  padding-block: clamp(56px, 7vw, 106px) clamp(34px, 4vw, 54px);
  background: var(--light-000);
  border-bottom: 1px solid var(--line-light);
}
.page-hero__inner { max-width: 900px; }
.page-hero h1 { margin: 18px 0 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.page-hero__lead { max-width: 68ch; margin-top: 20px; font-size: 1.02rem; color: var(--text-muted); }
.page-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 3.4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.page-hero__facts li { display: grid; gap: 3px; padding: 18px 20px; background: #fff; }
.page-hero__facts strong { font-family: var(--font-mono); font-size: 1.08rem; color: var(--text-strong); }
.page-hero__facts span { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .page-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 内页里成对出现的说明块（适合 / 不适合 这类） */
.pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.pair-grid > article {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--light-100);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
}
.pair-grid h3 { font-size: 1.06rem; }
.pair-grid ul { margin: 14px 0 0; padding-left: 18px; font-size: 0.92rem; }
.pair-grid li + li { margin-top: 8px; }
.pair-grid--plain > article { background: #fff; }

@media (max-width: 860px) {
  .pair-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 内页 FAQ 分组标题 */
.faq-group + .faq-group { margin-top: clamp(36px, 4vw, 56px); }
.faq-group__title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* 内页数字清单 */
.step-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.step-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 200px) minmax(0, 1fr);
  gap: 0 clamp(16px, 2.4vw, 32px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line-light);
}
.step-list__no { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 3px; }
.step-list h3 { font-size: 1.04rem; }
.step-list p { font-size: 0.94rem; }
@media (max-width: 860px) {
  .step-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .step-list h3 { grid-column: 2; }
  .step-list p { grid-column: 1 / -1; margin-top: 10px; }
}
