/* ==========================================================================
   远岑科技 · 企业官网样式
   设计令牌与规则见项目根目录 DESIGN.md
   ========================================================================== */

:root {
  --ink: #241B18;
  --ink-soft: #5A4B44;
  --muted: #8E7C73;
  --line: #E7DFD7;
  --line-strong: #D3C4B8;
  --paper: #FFFFFF;
  --surface: #FAF6F1;
  --accent: #9C5B4C;
  --accent-soft: #F6E9E4;
  --accent-ink: #6E3B31;
  --accent-light: #E3B9A6;
  --amber: #B08A57;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --container: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, dl, dd, dt { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

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

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

/* --------------------------------------------------------------- 排版元件 */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow-light { color: rgba(255, 255, 255, .5); }
.eyebrow-light::before { background: rgba(255, 255, 255, .3); }

.display {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.22;
  letter-spacing: .02em;
}

h2 {
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: .02em;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.005em;
}

.lede {
  max-width: 34em;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.lede-light {
  max-width: 30em;
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .66);
}

/* --------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }

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

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

.btn:disabled { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------- 导航 */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--accent);
}

.brand-mark { width: 27px; height: 27px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.brand-text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 180ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 220ms var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 16px; }

.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { height: 38px; padding: 0 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* --------------------------------------------------------------- Hero */

.hero { padding: 108px 0 76px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .display { margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual svg { width: 100%; max-width: 460px; height: auto; margin-left: auto; }

.rt-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; fill: var(--accent); }
.rt-t { font-family: var(--serif); font-size: 15.5px; fill: var(--ink); }
.rt-s { font-family: var(--font); font-size: 10.5px; fill: var(--muted); }

.cy-v { font-family: var(--serif); font-size: 26px; fill: var(--ink); letter-spacing: .04em; }
.cy-l { font-family: var(--font); font-size: 10.5px; fill: var(--muted); letter-spacing: .1em; }

.hv-s2 { font-family: var(--font); font-size: 12px; fill: var(--ink-soft); }

/* --------------------------------------------------------------- 数据条 */

.stats {
  background: var(--ink);
  padding: 46px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.stat:first-child { padding-left: 0; border-left: 0; }

.stat strong {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat span { font-size: 13px; color: rgba(255, 255, 255, .58); }

/* --------------------------------------------------------------- 章节 */

.section { padding: 112px 0; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .72); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { max-width: 20em; }

.section-desc {
  margin-top: 20px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.section-head-split {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: end;
  max-width: none;
}

.section-head-split .section-desc { margin-top: 0; max-width: 26em; }

.section-foot { margin-top: 40px; display: flex; justify-content: center; }

.loading { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- 卡片 */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 180ms var(--ease), transform 220ms var(--ease);
}

.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card-index {
  display: block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
}

.card h3 { margin-bottom: 12px; }
.card p { font-size: 14.5px; line-height: 1.72; }

.ticks {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}

.ticks li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* 产品卡 */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  transition: border-color 180ms var(--ease), transform 220ms var(--ease);
}

.product:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.product-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 4px 8px;
}

.product-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.product h3 { font-size: 20px; margin-bottom: 6px; }

.product .tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
  margin-bottom: 16px;
}

.product .summary { font-size: 14.5px; line-height: 1.72; }

.product .feat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.product .feat span {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: 3px;
  padding: 4px 9px;
}

.product .more {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product .more::after {
  content: "→";
  transition: transform 200ms var(--ease);
}

.product:hover .more::after { transform: translateX(4px); }

/* --------------------------------------------------------------- 图文交替 */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.feature:last-child { padding-bottom: 0; }

.feature-reverse .feature-copy { order: 2; }

.feature-tag {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; }
.feature p { font-size: 15px; max-width: 30em; }

.feature-art {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.feature-art svg { width: 100%; height: auto; }

.feature-facts {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.feature-facts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.feature-facts dd { font-family: var(--serif); font-size: 21px; color: var(--ink); font-weight: 500; letter-spacing: .02em; }

/* --------------------------------------------------------------- 新闻 */

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.chip {
  height: 34px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 180ms var(--ease);
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.news-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr 32px;
  gap: 28px;
  align-items: start;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  transition: background-color 180ms var(--ease);
}

.news-item:hover { background: rgba(255, 255, 255, .6); }

.news-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.news-meta .cat { color: var(--accent); }

.news-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-item p { font-size: 14px; color: var(--ink-soft); max-width: 46em; }

.news-arrow {
  align-self: center;
  font-size: 16px;
  color: var(--muted);
  transition: transform 200ms var(--ease), color 180ms var(--ease);
}

.news-item:hover .news-arrow { transform: translateX(4px); color: var(--accent); }

/* --------------------------------------------------------------- 关于 */

.about-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 80px;
}

.about-grid h2 { margin-bottom: 26px; max-width: 16em; }

.about-text { font-size: 15.5px; margin-bottom: 18px; max-width: 34em; }

.facts { display: grid; align-content: start; }

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); text-align: right; }

/* --------------------------------------------------------------- 联系 */

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}

.section-dark h2 { color: #fff; }

.contact-list {
  margin-top: 44px;
  display: grid;
  gap: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

.contact-list dt { color: rgba(255, 255, 255, .44); }
.contact-list dd { color: rgba(255, 255, 255, .88); }

.contact-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 34px;
}

.field { display: grid; gap: 8px; margin-bottom: 18px; }

.field label {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.field label span { color: var(--accent-light); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.field input { height: 46px; }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.7; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .3); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, .08);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn-primary {
  background: #fff;
  color: var(--ink);
  margin-top: 4px;
}

.contact-form .btn-primary:hover { background: var(--accent-soft); }

.form-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--accent-light);
}

.form-status.error { color: #F09595; }

.form-hint {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .36);
}

/* --------------------------------------------------------------- 页脚 */

.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 64px 0 28px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-text strong { color: #fff; font-size: 16px; }
.footer-brand-text em { color: rgba(255, 255, 255, .42); }

.footer-brand p { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }

.footer-col { display: grid; gap: 10px; align-content: start; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .4);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.footer-col a { color: rgba(255, 255, 255, .72); transition: color 180ms var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-addr { font-size: 13px; color: rgba(255, 255, 255, .45); line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .4);
}

.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #fff; }
.dot { margin: 0 8px; }

/* --------------------------------------------------------------- 弹窗 */

.modal {
  width: min(720px, calc(100vw - 40px));
  max-height: 86vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink-soft);
  overflow: auto;
}

.modal::backdrop { background: rgba(13, 27, 26, .55); }

.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.modal-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  transition: all 180ms var(--ease);
}

.modal-close:hover { border-color: var(--ink); color: var(--ink); }

.modal-body { padding: 28px 32px 40px; }

.modal-body h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.32;
  margin-bottom: 18px;
}

.modal-body .meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-body p { font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.modal-body .feat { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.modal-body .feat span {
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 5px 10px;
}

/* --------------------------------------------------------------- 动效 */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 460ms var(--ease), transform 460ms var(--ease);
  }

  .reveal.in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- 响应式 */

@media (max-width: 1024px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }

  .section { padding: 88px 0; }
  .section-head-split { grid-template-columns: 1fr; gap: 22px; align-items: start; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature { gap: 40px; padding: 44px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .nav-links { gap: 22px; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .nav-inner { height: 60px; gap: 16px; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(13, 27, 26, .08);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a::after { display: none; }

  .hero { padding: 52px 0 44px; }
  .hero-actions { margin-top: 30px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { font-size: 12px; line-height: 1.7; }

  .stats { padding: 34px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; }

  .section { padding: 68px 0; }
  .section-head { margin-bottom: 38px; }

  .grid-3, .product-grid { grid-template-columns: 1fr; }
  .card, .product { padding: 26px 22px; }

  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature-reverse .feature-copy { order: 0; }
  .feature-facts { gap: 28px; }

  .chips { justify-content: flex-start; }

  .news-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .news-meta { flex-direction: row; gap: 14px; }
  .news-arrow { display: none; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .contact-list > div { grid-template-columns: 72px 1fr; }

  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  .modal-head { padding: 14px 20px; }
  .modal-body { padding: 22px 20px 32px; }
}

/* ==========================================================================
   在线客服挂件
   ========================================================================== */

.cs-root { position: fixed; right: 22px; bottom: 22px; z-index: 80; font-family: var(--font); }

.cs-launcher {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 56px; padding: 0;
  border: 1px solid var(--accent-ink); border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; letter-spacing: .04em;
  box-shadow: 0 10px 28px rgba(110, 59, 49, .24);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.cs-launcher:hover { box-shadow: 0 14px 34px rgba(110, 59, 49, .3); background: var(--accent-ink); }
.cs-marquee { display: flex; flex-direction: column; width: 100%; height: 100%; transition: transform 420ms cubic-bezier(.4, 0, .2, 1); }
.cs-item {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 56px; flex: 0 0 56px;
  font-weight: 600; line-height: 1; white-space: nowrap;
}
.cs-item em { font-style: normal; font-size: 15px; }
.cs-item svg { opacity: .95; flex: 0 0 auto; }

.cs-panel {
  position: absolute; right: 0; bottom: 64px;
  display: flex; flex-direction: column;
  width: 366px; height: min(560px, calc(100vh - 140px));
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(36, 27, 24, .18);
  animation: cs-in 260ms var(--ease);
}
@keyframes cs-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

/* 关键修复：hidden 属性必须赢过上面的 display:flex，否则面板一打开页面就常驻显示 */
.cs-panel[hidden] { display: none !important; }

.cs-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.cs-id { display: flex; align-items: center; gap: 10px; }
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: #6E9C7A; box-shadow: 0 0 0 3px rgba(110, 156, 122, .16); }
.cs-name { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); font-weight: 500; letter-spacing: .02em; }
.cs-status { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.cs-close {
  margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 20px; line-height: 1;
}
.cs-close:hover { background: var(--surface); color: var(--ink); }

.cs-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--surface); scroll-behavior: smooth; }
.cs-msg {
  max-width: 86%; margin-bottom: 10px; padding: 10px 13px;
  font-size: 13.5px; line-height: 1.68; border-radius: 12px;
  animation: cs-fade 200ms var(--ease);
}
@keyframes cs-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cs-msg p { margin: 0; }
.cs-msg p + p { margin-top: 4px; }
.cs-bot { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cs-user { margin-left: auto; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }

.cs-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.cs-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
  animation: cs-blink 1.1s infinite ease-in-out;
}
.cs-typing span:nth-child(2) { animation-delay: .18s; }
.cs-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes cs-blink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

.cs-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 2px; background: var(--surface); }
.cs-chip {
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); font-size: 12.5px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}
.cs-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.cs-form { display: flex; gap: 8px; align-items: center; padding: 10px 14px 8px; background: var(--surface); }
.cs-input {
  flex: 1; height: 40px; padding: 0 14px; font-size: 13.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.cs-input:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-soft); }
.cs-send {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--accent); color: #fff;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.cs-send:hover { background: var(--accent-ink); transform: translateY(-1px); }
.cs-foot { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--muted); text-align: center; background: var(--surface); }

@media (max-width: 560px) {
  .cs-root { right: 14px; bottom: 14px; left: 14px; }
  .cs-launcher { width: 54px; height: 54px; margin-left: auto; }
  .cs-panel {
    position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto;
    width: auto; height: min(78vh, 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-panel, .cs-msg { animation: none; }
  .cs-launcher, .cs-send { transition: none; }
}

/* ---------- 客服：定位按钮与门店卡片 ---------- */
.cs-loc {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--accent);
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}
.cs-loc:hover { border-color: var(--accent-light); background: var(--accent-soft); }
.cs-loc:active { transform: scale(.96); }

.cs-cards { display: grid; gap: 8px; margin: 2px 0 12px; max-width: 92%; }
.cs-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 13px; box-shadow: 0 2px 8px rgba(36, 27, 24, .04);
}
.cs-card-t {
  font-family: var(--serif); font-size: 14px; color: var(--ink);
  font-weight: 500; letter-spacing: .02em; margin-bottom: 3px;
}
.cs-card-a { margin: 0 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.cs-card-actions { display: flex; align-items: center; gap: 12px; }
.cs-card-btn {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 12.5px; text-decoration: none;
  transition: background 180ms var(--ease);
}
.cs-card-btn:hover { background: var(--accent-ink); color: #fff; }
.cs-card-link { font-size: 12px; color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
.cs-card-link:hover { color: var(--accent); border-color: var(--accent-light); }

/* ==========================================================================
   品牌排版微调（多门店地址换行、标签行距、事实表对齐）
   ========================================================================== */

/* 后台地址是多行文本，前台按行渲染 */
[data-site="address"] { white-space: pre-line; }

/* 首屏底部信息行：加一条细线，做成品牌标签而非普通说明文字 */
.hero-note {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; padding-top: 2px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--muted);
}
.hero-note::before {
  content: ""; width: 26px; height: 1px; flex-shrink: 0;
  background: var(--accent-light);
}

/* 统计条：标签可能较长，允许两行并控制行高 */
.stat span { max-width: 21ch; line-height: 1.55; }

/* 事实表：右侧值较长时不挤压左侧标签 */
.facts dd { max-width: 62%; text-align: right; }
.facts > div { align-items: baseline; }

/* 联系区地址多行 */
.contact-list dd { white-space: pre-line; }

/* 小标题（01 / 理念）统一字距，增强编辑感 */
.eyebrow { letter-spacing: .14em; }

/* 页脚地址多行时的行距 */
.footer-addr { white-space: pre-line; line-height: 1.85; }
