/*
  Lingxun 官方网站 V9.1 样式。

  维护说明：
  - 页面正文在 index.html 中，CSS 只负责布局、视觉和轻量动画。
  - 未引入外部字体、图标库或 UI 框架，适合低带宽静态托管。
  - JavaScript 会给 body 添加 .js-enabled；无 JS 时所有正文仍然可见。
*/
:root {
  --bg: #050816;
  --bg-2: #07111f;
  --panel: rgba(9, 22, 46, 0.76);
  --panel-2: rgba(13, 32, 65, 0.72);
  --line: rgba(136, 180, 255, 0.18);
  --line-strong: rgba(136, 180, 255, 0.34);
  --text: #edf6ff;
  --muted: #91a9c9;
  --soft: #cfe5ff;
  --primary: #1c8dff;
  --accent: #37e4ff;
  --warn: #ffd166;
  --dark: #031028;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 0%, rgba(28, 141, 255, 0.26), transparent 34rem),
    radial-gradient(circle at 86% 4%, rgba(55, 228, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 44%, #060b18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 154, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 154, 255, 0.10) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -22%;
  z-index: -1;
  height: 42vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 126, 255, 0.20), transparent 62%);
  filter: blur(16px);
  animation: slowPulse 7s ease-in-out infinite;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  filter: drop-shadow(0 0 16px rgba(55, 228, 255, 0.30));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: .04em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--soft);
  font-size: 14px;
}

.desktop-nav a {
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(154, 194, 255, .26);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, .04);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] {
  z-index: 40;
}

.mobile-menu[open]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
}

.mobile-menu a {
  display: block;
  min-width: 160px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--soft);
  background: rgba(6, 15, 34, .98);
}

.mobile-menu a:first-of-type {
  margin-top: 10px;
  border-radius: 14px 14px 0 0;
}

.mobile-menu a:last-of-type {
  border-bottom: 0;
  border-radius: 0 0 14px 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.tab-button {
  border: 0;
  color: inherit;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 40px rgba(28, 141, 255, .26);
}

.secondary-button,
.ghost-button {
  border: 1px solid rgba(154, 194, 255, .26);
  color: var(--soft);
  background: rgba(255, 255, 255, .04);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(55, 228, 255, .56);
  background: rgba(55, 228, 255, .08);
}

.text-button {
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 700;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(72px, 10vw, 128px) 0 clamp(52px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.metric-strip span,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(55, 228, 255, .20);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(55, 228, 255, .07);
  font-size: 12px;
  font-weight: 700;
}

.hero-panel {
  justify-self: center;
  width: min(100%, 390px);
}

.orbit-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 32, 65, .76), rgba(6, 16, 36, .86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbit-card::before,
.orbit-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(55, 228, 255, .18);
  border-radius: 50%;
}

.orbit-card::before {
  width: 290px;
  height: 290px;
  transform: rotate(-18deg) scaleX(1.26);
}

.orbit-card::after {
  width: 210px;
  height: 210px;
  border-color: rgba(28, 141, 255, .20);
  transform: rotate(22deg) scaleX(1.42);
}

.orbit-card img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(55, 228, 255, .30));
}

.status-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.status-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: var(--soft);
  background: rgba(255,255,255,.04);
  font-size: 13px;
}

.status-list b {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #45ffb0;
  box-shadow: 0 0 16px rgba(69,255,176,.8);
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 780px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.services-shell,
.pricing-shell,
.community-shell,
.about-shell,
.contact-shell {
  padding: clamp(52px, 8vw, 92px) 0;
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(154, 194, 255, .20);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.04);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.tab-button:hover,
.tab-button.active {
  border-color: rgba(55, 228, 255, .58);
  background: rgba(55, 228, 255, .10);
  transform: translateY(-1px);
}

.service-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-group {
  padding: clamp(20px, 4vw, 34px);
}

.js-enabled .category-group[hidden] {
  display: none;
}

.category-heading {
  margin-bottom: 24px;
}

.category-heading h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.category-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.card-list,
.detail-stack {
  display: grid;
  gap: 14px;
}

.service-card,
.service-detail,
.price-card,
.community-grid article,
.about-card,
.contact-card {
  border: 1px solid rgba(154, 194, 255, .16);
  background: var(--panel);
}

.service-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  color: inherit;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-2px);
  border-color: rgba(55, 228, 255, .45);
  background: rgba(13, 32, 65, .88);
}

.service-card h4 {
  margin: 0;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card strong {
  color: var(--warn);
}

.service-detail {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  animation: fadeIn .22s ease both;
}

.js-enabled .service-detail[hidden] {
  display: none;
}

.service-detail h3 {
  margin: 14px 0 6px;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
}

.service-detail h4 {
  margin: 24px 0 8px;
  color: var(--soft);
}

.service-detail p,
.service-detail li {
  color: var(--muted);
}

.detail-price {
  margin: 0 0 18px;
  color: var(--warn) !important;
  font-size: 22px;
  font-weight: 800;
}

.service-detail ul {
  margin: 0;
  padding-left: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pricing-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.price-card,
.community-grid article {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.price-card.featured {
  border-color: rgba(55, 228, 255, .42);
  background: linear-gradient(180deg, rgba(12, 42, 88, .82), rgba(9, 22, 46, .78));
}

.price-card h3,
.community-grid h3 {
  margin: 0;
}

.price-card strong {
  display: block;
  margin: 14px 0;
  color: var(--warn);
  font-size: 22px;
}

.price-card p,
.community-grid p {
  color: var(--muted);
}

.community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.about-card,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
}

.about-card h2,
.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.04em;
}

.about-card p,
.contact-card p {
  color: var(--muted);
}

.about-points,
.contact-info {
  display: grid;
  gap: 10px;
  align-content: center;
}

.about-points span,
.contact-info span {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: var(--soft);
  background: rgba(255,255,255,.04);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px 18px 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.lead-dialog {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(154, 194, 255, .24);
  border-radius: 24px;
  color: var(--text);
  background: rgba(6, 15, 34, .98);
  box-shadow: var(--shadow);
}

.lead-dialog::backdrop {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(4px);
}

.lead-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
}

.lead-form h2 {
  margin: 0 36px 0 0;
  line-height: 1.25;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 14px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(154, 194, 255, .20);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(55, 228, 255, .60);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.06);
  font-size: 24px;
  line-height: 1;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s ease, transform .58s ease;
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowPulse {
  0%, 100% { opacity: .64; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions > .ghost-button {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .brand {
    min-width: auto;
  }

  .hero,
  .split-layout,
  .about-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-panel {
    justify-self: stretch;
    width: 100%;
  }

  .orbit-card {
    min-height: 320px;
  }

  .pricing-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .section-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .hero h1 {
    font-size: 38px;
  }

  .pricing-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  .lead-form {
    padding: 22px;
  }
}

/* 历史三栏目录样式保留为兼容，当前页面使用 V9.1 横向菜单动态渲染。 */
.services-shell .section-heading {
  max-width: none;
  text-align: left;
  margin-bottom: 26px;
}

.services-shell .section-heading code {
  padding: 2px 6px;
  border: 1px solid rgba(154, 194, 255, .16);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, .055);
  font-size: .92em;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) minmax(310px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.category-panel,
.items-panel,
.detail-panel {
  border: 1px solid rgba(154, 194, 255, .16);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  box-shadow: 0 16px 54px rgba(0, 0, 0, .18);
}

.category-panel {
  position: sticky;
  top: 92px;
  padding: 12px;
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 14px;
  border: 1px solid rgba(154, 194, 255, .12);
  border-radius: 18px;
  color: var(--soft);
  background: rgba(255, 255, 255, .035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.category-button:hover,
.category-button.active {
  transform: translateX(3px);
  border-color: rgba(55, 228, 255, .42);
  background: rgba(28, 141, 255, .12);
}

.category-button .icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.category-button strong {
  display: block;
  font-size: 14px;
}

.category-button small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.items-panel {
  padding: 18px;
  min-height: 560px;
}

.category-summary {
  padding: 18px;
  border: 1px solid rgba(154, 194, 255, .13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(55,228,255,.14), transparent 34%),
    rgba(255,255,255,.04);
}

.category-summary h3 {
  margin: 0;
  font-size: 24px;
}

.category-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.item-card {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(154, 194, 255, .13);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.item-card:hover,
.item-card.active {
  transform: translateY(-4px);
  border-color: rgba(55, 228, 255, .45);
  background: rgba(28, 141, 255, .11);
}

.item-card .badge {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(55, 228, 255, .10);
  font-size: 12px;
  font-weight: 700;
}

.item-card h4 {
  margin: 0;
  font-size: 18px;
}

.item-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.item-card .price {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.detail-panel {
  position: sticky;
  top: 92px;
  min-height: 560px;
  max-height: calc(100vh - 112px);
  padding: 22px;
  overflow: auto;
  scrollbar-width: thin;
}

.detail-panel::before {
  content: "";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(55,228,255,.18), transparent 60%);
}

.detail-content {
  position: relative;
  animation: fadeSlide .24s ease both;
}

.detail-content .badge {
  display: inline-flex;
  width: fit-content;
  min-height: auto;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(55, 228, 255, .10);
  font-size: 12px;
  font-weight: 800;
}

.detail-content h3 {
  margin: 16px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.detail-content .lead {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

.detail-content .price {
  margin: 18px 0;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.detail-content .description,
.detail-content li,
.spec-table td {
  color: var(--muted);
}

.detail-content h4 {
  margin: 22px 0 8px;
}

.detail-content ul {
  margin: 0;
  padding-left: 18px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(154, 194, 255, .14);
  vertical-align: top;
  text-align: left;
}

.spec-table th {
  width: 86px;
  color: var(--soft);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 220px 1fr;
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: sticky;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-panel,
  .detail-panel {
    position: static;
    max-height: none;
  }

  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .category-list {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* V9.1：恢复横向分类菜单，并让右侧详情在桌面端跟随滚动。 */
.services-shell .section-heading,
.community-shell .section-heading {
  max-width: none;
  text-align: left;
  margin-bottom: 26px;
}

.service-tabs {
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.service-stage,
.community-stage {
  position: relative;
}

.split-layout {
  grid-template-columns: minmax(300px, .92fr) minmax(360px, 1.08fr);
  gap: 18px;
}

.service-card {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.service-card .badge {
  width: fit-content;
}

.service-card .text-button {
  justify-self: start;
  margin-top: 4px;
}

.detail-stack {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.service-detail {
  min-height: 520px;
}

.community-stage .service-detail {
  min-height: 360px;
}

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

@media (max-width: 980px) {
  .detail-stack {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .service-tabs {
    margin-left: -2px;
    padding-bottom: 10px;
  }
}

/* V9.1：移动端重排，防止服务/产品与社区详情面板横向溢出。 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 980px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-stack {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .service-detail,
  .community-stage .service-detail {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body {
    line-height: 1.58;
  }

  .site-header {
    min-height: 70px;
  }

  .section-shell {
    width: min(100% - 22px, var(--max-width));
  }

  .services-shell,
  .community-shell,
  .about-shell,
  .contact-shell {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .services-shell .section-heading,
  .community-shell .section-heading {
    text-align: left;
  }

  .service-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 -2px 14px;
    padding: 0 2px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .tab-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .service-stage,
  .community-stage {
    border-radius: 22px;
    overflow: visible;
  }

  .category-group {
    padding: 16px;
  }

  .category-heading {
    margin-bottom: 16px;
  }

  .category-heading h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .card-list {
    gap: 12px;
  }

  .service-card {
    min-height: auto;
    padding: 16px;
    border-radius: 18px;
  }

  .service-card:hover,
  .service-card.active {
    transform: none;
  }

  .service-card h4 {
    font-size: 18px;
    line-height: 1.32;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-card strong,
  .detail-price {
    font-size: 17px;
  }

  .service-detail {
    margin-top: 2px;
    padding: 18px;
    border-radius: 20px;
  }

  .service-detail h3 {
    font-size: clamp(24px, 7.4vw, 32px);
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-actions .primary-button,
  .detail-actions .secondary-button,
  .contact-info .primary-button,
  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .lead-form .primary-button {
    width: 100%;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(154, 194, 255, .14);
  }

  .spec-table th,
  .spec-table td {
    padding: 0;
    border-bottom: 0;
  }

  .spec-table td {
    margin-top: 4px;
  }

  .lead-dialog {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    overflow: auto;
    border-radius: 22px;
  }

  .lead-form {
    gap: 12px;
    padding: 18px;
  }

  .lead-form h2 {
    margin-right: 44px;
    font-size: 24px;
  }

  .lead-form input,
  .lead-form textarea {
    min-height: 46px;
    border-radius: 13px;
    font-size: 16px;
  }

  .dialog-close {
    top: 14px;
    right: 14px;
  }
}

/* V9.1：客服微信二维码与更稳妥的移动端单列排版。 */
.wechat-guide,
.wechat-mini-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(55, 228, 255, .20);
  border-radius: 18px;
  background: rgba(55, 228, 255, .055);
}

.wechat-guide {
  padding: 14px;
}

.wechat-mini-card {
  padding: 12px;
}

.wechat-guide img,
.wechat-mini-card img {
  display: block;
  border-radius: 12px;
  background: #fff;
}

.wechat-guide strong,
.wechat-mini-card strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.wechat-guide p,
.wechat-mini-card small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .split-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .card-list,
  .detail-stack,
  .service-card,
  .service-detail {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .service-stage,
  .community-stage {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .wechat-guide,
  .wechat-mini-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .wechat-guide img,
  .wechat-mini-card img {
    width: 118px;
    height: 118px;
  }
}
