:root {
  --bg: #ffffff;
  --grey: #f6f6f4;
  --paper: #ffffff;
  --ink: #111214;
  --muted: #55575c;
  --line: #e7e6e2;
  --red: #e10600;
  --red-dark: #b10500;
  --night: #0e0d0c;
  --night-soft: #1c1a18;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 60;
}
.skip:focus { left: 12px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.brand img { height: 46px; width: auto; max-width: 172px; display: block; }
.brand-text {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #fff;
}
.brand-text i { width: 12px; height: 12px; background: var(--red); display: inline-block; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  text-decoration: none;
  padding: 8px 13px;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.15s;
}
.nav a:hover { color: var(--red); }
.nav a.is-active { color: var(--red); }
.phone-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.phone-btn, .btn-red { background: var(--red); color: #fff; }
.phone-btn:hover, .btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: rgba(17, 18, 20, 0.28); }
.btn-line:hover { border-color: var(--ink); background: var(--grey); }
.btn-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, 0.12); }
.menu-toggle {
  display: none;
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: #fff;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* 首页：页头叠在深色首屏上 */
@media (min-width: 981px) {
  body.on-home .site-header {
    position: absolute;
    left: 0; right: 0; top: 0;
    background: transparent;
    border-bottom-color: transparent;
    color: #fff;
  }
  body.on-home .nav a { color: rgba(255, 255, 255, 0.88); }
  body.on-home .nav a:hover, body.on-home .nav a.is-active { color: #fff; }
  body.on-home .brand img { display: none; }
  body.on-home .brand-text { display: flex; }
  body.on-home .phone-btn.desktop {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
  }
  body.on-home .phone-btn.desktop:hover { background: #fff; color: var(--ink); }
}

/* ---------- 首屏（全屏作品） ---------- */
.hero-full {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 92vh, 940px);
  background: #0c0b0a;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #0c0b0a;
  cursor: zoom-in;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.42) 0%, rgba(10, 9, 8, 0.25) 42%, rgba(10, 9, 8, 0.84) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding-bottom: 84px; }
.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.32em;
}
.hero-content h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 14em;
}
.lead { margin: 22px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, 0.85); max-width: 36em; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-actions .btn-light { min-height: 54px; }
.hero-note { margin: 28px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.58); letter-spacing: 0.04em; }
.hero-caption { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.hero-points { display: none; }

/* ---------- 数字带 ---------- */
.stats-band { border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-stat { padding: 42px 26px; border-left: 1px solid var(--line); }
.home-stat:first-child { border-left: 0; padding-left: 0; }
.home-stat b { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.home-stat b small { font-size: 0.5em; font-weight: 600; margin-left: 2px; }
.home-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 通用区块 ---------- */
h1, h2, h3, p { overflow-wrap: anywhere; }
.kicker {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.28em;
  display: block;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 104px 0 48px;
}
.section-head h2 { margin: 14px 0 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.22; font-weight: 700; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 40em; font-size: 16px; }
.page-head { padding-top: 72px; }
.page-head h1 { margin: 16px 0 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.18; font-weight: 700; }
.page-head p { margin: 16px 0 0; color: var(--muted); max-width: 40em; font-size: 17px; }
.sec-link { font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.sec-link:hover { color: var(--red); border-color: var(--red); }

/* ---------- 业务：编号行 ---------- */
.service-band {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  margin: 42px 0 10px;
}
.service-band a, .service-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 26px 10px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: 0.2s;
}
.service-band a:hover, .service-card:hover { background: var(--grey); padding-left: 24px; }
.service-band .service-no, .service-card .service-no { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.service-band strong, .service-card strong { display: block; font-size: clamp(19px, 2vw, 25px); font-weight: 600; margin: 0; }
.service-band p, .service-card p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.service-band .arr, .service-card .arr { color: var(--muted); font-size: 20px; transition: 0.2s; }
.service-band a:hover .arr, .service-card:hover .arr { color: var(--red); transform: translateX(6px); }

/* ---------- 案例 ---------- */
.cases-section { background: var(--grey); padding: 104px 0; }
.case-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.case-col { display: grid; gap: 20px; }
.case-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd;
  text-decoration: none;
}
.case-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.case-item:hover img { transform: scale(1.035); }
.case-item.tall { min-height: 620px; }
.case-item.mid { min-height: 300px; }
.case-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 72px 26px 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 6, 0.78));
}
.case-cap span { display: block; font-size: 12.5px; letter-spacing: 0.18em; opacity: 0.82; }
.case-cap h3 { margin: 4px 0 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.3; }

.case-grid, .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(17, 18, 20, 0.07);
  min-height: 100%;
  transition: 0.2s;
}
.case-card:hover { border-color: rgba(17, 18, 20, 0.18); }
.case-card-media { overflow: hidden; background: #ddd; }
.case-card img { display: block; width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover img { transform: scale(1.035); }
.case-card-body { padding: 18px 18px 20px; }
.case-kicker { margin: 0 0 8px; color: var(--red); font-size: 12.5px; letter-spacing: 0.14em; }
.case-card h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.4; }
.case-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 客户带 ---------- */
.clients-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.clients-band .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: center; justify-content: center; }
.clients-band .lbl { font-size: 13px; color: var(--muted); letter-spacing: 0.2em; }
.clients-band b { font-size: 16px; font-weight: 600; color: var(--ink); opacity: 0.78; }

/* ---------- 流程 / 团队 / 关于 ---------- */
.steps, .stats, .promise-grid, .branch-grid, .photo-grid, .plant-grid { display: grid; gap: 14px; }
.steps { grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.stat, .step, .promise, .branch-card, .note, .side, .panel { background: var(--paper); border: 1px solid rgba(17, 18, 20, 0.07); }
.step { padding: 34px 26px; }
.stat { padding: 20px; }
.step b { display: block; font-size: 14px; color: var(--red); font-variant-numeric: tabular-nums; }
.step b.big { font-size: 28px; line-height: 1.1; color: var(--ink); }
.step span, .stat span, .muted { color: var(--muted); }
.step strong { display: block; margin: 12px 0 8px; font-size: 20px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.people article {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  background: var(--paper);
  border: 1px solid rgba(17, 18, 20, 0.07);
}
.people img { width: 108px; height: 116px; object-fit: cover; display: block; }
.people h3 { margin: 12px 0 4px; font-size: 16px; }
.people p { margin: 0 12px 0 0; color: var(--muted); font-size: 14px; }
.plant-grid, .photo-grid { grid-template-columns: repeat(3, 1fr); }
.photo-grid.two { grid-template-columns: 1fr 1fr; }
figure { margin: 0; }
.plant-grid img, .photo-grid img, .license-shot img { width: 100%; display: block; object-fit: cover; }
.plant-grid img, .photo-grid img { height: 260px; }
.plant-grid figcaption, .photo-grid figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 13.5px; }

/* ---------- 深色区块（售后） ---------- */
.night { background: var(--night); color: #f6f1ea; margin-top: 104px; padding: 104px 0; }
.night .section-head { margin-top: 0; }
.night .kicker { color: rgba(255, 255, 255, 0.55); }
.night .section-head p, .night .muted { color: rgba(246, 241, 234, 0.72); }
.promise-grid { grid-template-columns: 1.1fr 1fr 0.9fr; gap: 1px; background: rgba(255, 255, 255, 0.08); }
.night .promise { background: var(--night-soft); border-color: transparent; }
.night .promise h3 { margin: 0 0 10px; }
.night .promise ul { margin: 0; padding-left: 18px; }
.night .promise li + li { margin-top: 6px; }
.tel { display: inline-block; margin: 8px 0; font-size: 28px; text-decoration: none; color: inherit; }

/* ---------- CTA 行动区 ---------- */
.cta-band { background: var(--night); color: #fff; text-align: center; margin-top: 104px; padding: 110px 0; }
.cta-band .kicker { color: rgba(255, 255, 255, 0.55); }
.cta-band h2 { margin: 18px 0 0; font-size: clamp(30px, 4vw, 54px); font-weight: 700; line-height: 1.25; }
.cta-band .tel {
  display: inline-block;
  margin-top: 30px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
}
.cta-band .tel:hover { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.62); margin-top: 20px; font-size: 15px; }

/* ---------- 门店卡 ---------- */
.branch-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.branch-card { display: grid; grid-template-columns: 160px 1fr; min-height: 190px; text-decoration: none; }
.branch-card img { width: 160px; height: 100%; object-fit: cover; }
.branch-card div { padding: 18px; }
.branch-card h3 { margin: 4px 0 8px; }
.branch-card p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.branch-card:hover { border-color: rgba(17, 18, 20, 0.18); }

/* ---------- 案例库（筛选） ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 44px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  border: 1px solid rgba(17, 18, 20, 0.16);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 14.5px;
  background: transparent;
  transition: 0.15s;
}
.chips a:hover { border-color: var(--ink); }
.chips a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search, .field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.search input, .field input, .field select, .field textarea {
  border: 1px solid rgba(17, 18, 20, 0.2);
  background: #fff;
  padding: 12px 13px;
  min-width: 220px;
}
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; width: 100%; }
.field input, .field select { width: 100%; }
.count { color: var(--muted); margin: 0 0 18px; }
.empty { padding: 32px; background: var(--grey); border: 1px dashed var(--line); }

/* ---------- 案例详情 ---------- */
.detail {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 24px;
  align-items: start;
  margin-top: 30px;
}
.gallery-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
}
.gallery-main img { display: block; width: 100%; max-height: 680px; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; display: block; }
.side { position: sticky; top: 108px; }
.side h2 { margin: 10px 0; font-size: 28px; line-height: 1.25; }
.meta-list { margin: 14px 0; padding: 0; list-style: none; }
.meta-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.meta-list span { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- 关于 / 联系 ---------- */
.about-grid, .contact-grid, .license-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.prose p { margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.facts div { background: var(--grey); border: 1px solid rgba(17, 18, 20, 0.06); padding: 16px; }
.facts b { display: block; }
.facts span { color: var(--muted); font-size: 14px; }
.license-shot { padding: 0; border: 0; background: none; cursor: zoom-in; }
.license-shot img { height: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notes div { background: var(--paper); border: 1px solid rgba(17, 18, 20, 0.07); padding: 14px; }
.notes dt { color: var(--muted); font-size: 12.5px; }
.notes dd { margin: 4px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wide { grid-column: 1 / -1; }
.field .error { color: var(--red); min-height: 1.2em; }
.form-result { margin-top: 16px; padding: 16px; background: var(--grey); border: 1px solid var(--line); white-space: pre-wrap; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.pager a { text-decoration: none; font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--night); color: rgba(246, 241, 234, 0.78); margin-top: 104px; padding: 40px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer p { margin: 8px 0; font-size: 15px; }
.footer-brand { height: 44px; width: auto; background: #fff; padding: 5px; }
.legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(246, 241, 234, 0.55); }

/* ---------- 移动端底部通话栏 ---------- */
.mobile-call { display: none; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 8, 7, 0.94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { grid-column: 2; grid-row: 2; max-width: min(1100px, 86vw); max-height: 78vh; justify-self: center; object-fit: contain; }
.lightbox p { grid-column: 1 / -1; grid-row: 3; color: #fff; text-align: center; margin: 0 0 18px; }
.lb-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  min-width: 56px;
  min-height: 56px;
}
.lb-close { grid-column: 3; grid-row: 1; justify-self: end; }

/* ---------- 兼容旧结构 ---------- */
.detail > img { width: 100%; height: min(520px, 70vw); object-fit: cover; display: block; background: #111; }
.panel h2 { margin-top: 0; }
.panel h2 a { text-decoration: none; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; height: 520px; object-fit: cover; }
.hero-figure figcaption { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.service-band a { border-right: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-full { min-height: 88vh; }
  .hero-content { padding-bottom: 64px; }
  .detail, .about-grid, .contact-grid, .license-grid, .footer-grid, .promise-grid { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: 1fr 1fr; }
  .case-feature { grid-template-columns: 1fr; }
  .case-item.tall { min-height: 400px; }
  .case-grid, .related-grid, .plant-grid { grid-template-columns: 1fr 1fr; }
  .case-card img { height: 240px; }
  .side { position: static; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .home-stat { padding: 28px 22px; }
  .home-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { margin: 72px 0 36px; }
  .cases-section, .night, .cta-band, .site-footer { margin-top: 0; padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; align-items: center; min-height: 68px; padding: 10px 0 6px; gap: 14px; }
  .menu-toggle { display: none !important; }
  .phone-btn.desktop { display: none; }
  .nav {
    display: flex;
    position: static;
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
    background: transparent;
    border: 0;
    padding: 0 0 8px;
    margin-left: 0;
  }
  .nav a { padding: 6px 14px 6px 0; font-size: 15px; }
  .page-head { padding-top: 40px; }
  .hero-full { min-height: 86vh; }
  .hero-content h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-points, .people, .photo-grid.two, .notes, .form-grid, .case-grid, .related-grid, .plant-grid { grid-template-columns: 1fr; }
  .case-card img { height: 220px; }
  .case-item.mid { min-height: 240px; }
  .branch-card { grid-template-columns: 1fr; }
  .branch-card img { width: 100%; height: 190px; }
  .service-band a, .service-card { grid-template-columns: 44px 1fr auto; gap: 14px; }
  body { padding-bottom: 68px; }
  .mobile-call {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .mobile-call a { text-align: center; text-decoration: none; padding: 15px 8px; }
  .mobile-call a:first-child { background: var(--red); color: #fff; }
  .cta-band { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-card img, .case-item img { transition: none; }
}

/* ---------- 在线客服 ---------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 30; }
.chat-launcher {
  border: 0;
  background: var(--red);
  color: #fff;
  min-height: 50px;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 18, 20, 0.18);
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(17, 18, 20, 0.18);
}
.chat-panel[hidden] { display: none; }
.chat-head, .chat-form, .chat-note, .chat-prompts { padding-left: 14px; padding-right: 14px; }
.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--night);
  color: #fff;
}
.chat-head strong { display: block; font-size: 16px; }
.chat-head span { display: block; color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-log p { margin: 0; padding: 9px 11px; max-width: 92%; white-space: pre-wrap; border-radius: 2px; }
.chat-bot { background: var(--grey); }
.chat-user { align-self: flex-end; background: var(--red); color: #fff; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
.chat-prompts button, .chat-form button {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  min-height: 36px;
  padding: 4px 10px;
}
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding-bottom: 8px; }
.chat-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.chat-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
}
.chat-form button { background: var(--red); color: #fff; border-color: var(--red); padding: 8px 14px; }
.chat-note { margin: 0; padding-bottom: 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .chat-widget { right: 12px; bottom: 80px; }
  .chat-panel { height: min(480px, calc(100vh - 160px)); }
}
