/* ============================================================
   广东华尔赛弹簧实业有限公司 · 站点级共享样式
   设计语言：简约风 —— 以浅灰（#d9d9d9）为骨架色，石墨黑为文字色，
   取自 logo 的橙红作为唯一强调色；发丝线与大留白，不做渐变与发光。
   全站复用类名放这里，页面专属样式放各自的 page-*.css。
   ============================================================ */

:root {
  --brand: #d9d9d9;          /* 主色：浅灰骨架 */
  --brand-deep: #bdbdbd;
  --ink: #17191c;            /* 石墨黑（取自 logo 字标） */
  --ink-2: #3d4247;
  --muted: #737a80;
  --line: #e4e4e4;
  --line-strong: #d9d9d9;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #eceded;
  --accent: #e0431c;         /* 强调色（取自 logo 的橙红） */
  --accent-dark: #b5350f;
  --ok: #1f7a44;
  --radius: 3px;
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shadow-1: 0 1px 2px rgba(23, 25, 28, .05);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.7;
  word-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.01em; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 布局容器与节 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--surface-2); }
.section--brand { background: var(--brand); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 .9rem;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 700;
}

.section-lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--line-strong); color: var(--ink-2); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }

.link-more {
  font-size: .86rem;
  letter-spacing: .06em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding: .7rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
}
.site-brand img { display: block; height: 34px; width: auto; }
.site-brand-name { font-size: .84rem; color: var(--muted); letter-spacing: .06em; }

.site-header-tel {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-header-tel:hover { border-color: var(--accent); color: var(--accent); }
.site-header-tel svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.site-nav { order: 3; flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: .35rem; }
.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a,
.site-nav summary {
  display: block;
  padding: .45rem .6rem;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.site-nav a:hover,
.site-nav summary:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-drop { position: relative; }
.nav-drop > details { display: block; }
.nav-drop summary { list-style: none; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: "";
  display: inline-block;
  margin-left: .4rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.nav-drop ul {
  margin: .25rem 0 .35rem;
  padding: 0 0 0 .8rem;
  list-style: none;
  display: grid;
  gap: .1rem;
  border-left: 1px solid var(--line-strong);
}
.nav-drop ul a { font-size: .87rem; color: var(--muted); }

@media (min-width: 900px) {
  .site-header-inner { flex-wrap: nowrap; }
  .site-header-tel { order: 3; margin-left: 0; }
  .site-nav { order: 2; flex: 0 1 auto; margin-left: auto; border-top: 0; padding-top: 0; }
  .nav-drop ul {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    z-index: 70;
    min-width: 12rem;
    margin: 0;
    padding: .5rem 0;
    background: #fff;
    border: 1px solid var(--line-strong);
    box-shadow: 0 12px 28px rgba(23, 25, 28, .1);
  }
  .nav-drop ul a { padding: .45rem 1rem; }
  .nav-drop ul a:hover { background: var(--surface-2); }
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: .82rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--brand-deep); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- 卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.card:hover { border-color: var(--brand-deep); box-shadow: var(--shadow-1); }
.card h3 { margin: 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card__index { font-size: .74rem; letter-spacing: .16em; color: var(--accent); }
.card__list { margin: 0; padding-left: 1.05rem; color: var(--muted); font-size: .92rem; }
.card__list li { margin: .2rem 0; }

/* ---------- 资质标签（认证 / 荣誉） ---------- */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badge {
  padding: .42rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: .87rem;
  color: var(--ink-2);
}
.section--tint .badge { background: #fff; }

/* ---------- 数据条（能力概览） ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts > div { background: #fff; padding: 1.3rem 1.4rem; }
.facts dt { margin: 0; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: .4rem 0 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.facts dd small { display: block; margin-top: .2rem; font-size: .82rem; font-weight: 400; color: var(--muted); }

/* ---------- 流程步骤 ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps li { counter-increment: step; padding: 1.5rem 1.5rem 1.7rem; background: #fff; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: .6rem;
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--accent);
}
.steps h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- 图文分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split__media img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.split__body p { color: var(--ink-2); }
.split__body ul { color: var(--ink-2); padding-left: 1.1rem; }
.split__body li { margin: .35rem 0; }

/* ---------- 列表（新闻/文章通用条目） ---------- */
.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.post-list { margin: 0; padding: 0; list-style: none; }

.post {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.post:last-child { border-bottom: 1px solid var(--line); }
.post__thumb { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.post__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin: 0 0 .5rem;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.post__meta a { color: var(--muted); text-decoration: none; }
.post__meta a:hover { color: var(--accent); }
.post h3 { margin: 0 0 .5rem; font-size: 1.14rem; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--accent); }
.post p { margin: 0 0 .7rem; color: var(--muted); font-size: .95rem; }
.post .link-more { font-size: .84rem; }

@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; gap: 1rem; }
  .post__thumb img { aspect-ratio: 16 / 9; }
}

/* 分类入口（新闻中心 / 分类页顶部） */
.cat-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.cat-nav a {
  display: inline-block;
  padding: .45rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-2);
  text-decoration: none;
}
.cat-nav a:hover { border-color: var(--accent); color: var(--accent); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 正文（文章） ---------- */
.prose { max-width: 74ch; }
.prose > p:first-child { font-size: 1.06rem; color: var(--ink-2); }
.prose h2 {
  margin: 2.4rem 0 .8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.32rem;
}
.prose h3 { margin: 1.7rem 0 .5rem; font-size: 1.08rem; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.9; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.prose img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.prose blockquote {
  margin: 1.6rem 0;
  padding: .4rem 0 .4rem 1.1rem;
  border-left: 3px solid var(--brand);
  color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }

.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 122, 128, .35) transparent;
}
.table-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(115, 122, 128, .35); border-radius: 999px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 600; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-2); max-width: 76ch; }

/* ---------- 表单（询盘） ---------- */
.lead-form { display: grid; gap: 1rem; max-width: 660px; }
.lead-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--ink-2); }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .72rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 67, 28, .12);
  outline: none;
}
.lead-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.lead-form__actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.lead-form__actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: .9rem; color: var(--muted); }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--accent-dark); }
.form-note { margin: 0; font-size: .84rem; color: var(--muted); }

/* ---------- CTA 带 ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--brand);
  border-radius: var(--radius);
}
.cta-band h2 { margin: 0 0 .4rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line-strong);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-brand img { display: block; height: 32px; width: auto; margin-bottom: .9rem; }
.footer-brand p { margin: 0; max-width: 34ch; color: var(--muted); font-size: .9rem; }
.footer-title {
  margin: 0 0 1rem;
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 600;
}
.footer-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.footer-list a { color: var(--ink-2); font-size: .92rem; text-decoration: none; }
.footer-list a:hover { color: var(--accent); }
.footer-list li { color: var(--ink-2); font-size: .92rem; }

.footer-ai {
  margin: 2.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.footer-ai a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--brand-deep); }
.footer-ai a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-meta { margin: .7rem 0 0; font-size: .88rem; color: var(--muted); }
.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem 1.2rem;
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.footer-legal > span:last-child { text-align: right; }
.footer-icp { color: var(--muted); text-decoration: none; text-align: center; white-space: nowrap; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer-icp:hover, .footer-icp:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 640px) {
  .footer-legal { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-legal > span:last-child { text-align: center; }
}

/* ---------- 返回顶部（左下角，避开 AI 助手保留区） ---------- */
.back-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-2);
  text-decoration: none;
  box-shadow: var(--shadow-1);
}
.back-top:hover { border-color: var(--accent); color: var(--accent); }
.back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- 通用工具类 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack-sm > * + * { margin-top: .75rem; }
.section-foot { margin-top: clamp(1.6rem, 4vw, 2.4rem); }

@media (max-width: 480px) {
  .facts dd { font-size: 1.1rem; }
  .card { padding: 1.3rem; }
}
