:root {
  --bg: #f5f7f6;
  --ink: #14201d;
  --muted: #65736f;
  --line: rgba(20, 32, 29, .12);
  --surface: #ffffff;
  --soft: #eef6f4;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --warm: #d94930;
  --gold: #c89438;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(18, 28, 25, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 247, 246, .96), rgba(238, 246, 244, .96)),
    repeating-linear-gradient(90deg, rgba(15,118,110,.06) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(37,99,235,.05) 0 1px, transparent 1px 80px);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, .button, .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent), #1d8bd1);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .16);
}
button:hover, .button:hover, .link-button:hover { background: var(--accent-strong); }
button.secondary, .button.secondary { background: var(--ink); }
button.ghost {
  color: var(--ink);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(15, 118, 110, .7);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.publish-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.file-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
}
.file-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-inline-status {
  color: var(--muted);
  line-height: 1.5;
}
.publish-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 140px));
  gap: 10px;
}
.publish-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.publish-closed-notice {
  display: grid;
  gap: 8px;
}
.publish-closed-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.publish-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 1.4fr) minmax(320px, 1fr);
}
.publish-grid > [data-role-card="seller"] {
  grid-column: 1 / -1;
}
.publish-grid > [data-role-card="seller"] form {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  align-items: start;
}
.publish-grid > [data-role-card="seller"] .publish-editor-toolbar,
.publish-grid > [data-role-card="seller"] .publish-rich-editor,
.publish-grid > [data-role-card="seller"] .seller-upload-library,
.publish-grid > [data-role-card="seller"] button[type="submit"],
.publish-grid > [data-role-card="seller"] .sr-only {
  grid-column: 1 / -1;
}
.publish-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf9;
}
.publish-editor-toolbar button,
.toolbar-file-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  color: var(--accent);
  background: #eef8f6;
  font-size: 13px;
  font-weight: 800;
}
.toolbar-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.toolbar-file-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.publish-editor-toolbar select,
.publish-editor-toolbar input[type="color"] {
  min-height: 36px;
  width: auto;
  padding: 4px 8px;
}
.rich-editor {
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.8;
  overflow-wrap: anywhere;
  cursor: text;
}
.publish-rich-editor {
  min-height: 520px;
  font-size: 16px;
}
.rich-editor video,
.embedded-video video {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  background: #000;
}
.embedded-video {
  margin: 12px 0;
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.rich-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.rich-editor p {
  min-height: 1.6em;
  margin: 8px 0;
}
.seller-upload-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf9;
}
.seller-upload-library[hidden] {
  display: none;
}
.seller-asset-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.seller-asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.seller-asset-card button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(247, 251, 250, .84);
  border-bottom: 1px solid rgba(15,118,110,.14);
  box-shadow: 0 14px 34px rgba(14, 36, 32, .08);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 250px;
}
.brand-logo {
  width: 62px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.top-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.top-nav a,
.top-nav button {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.top-nav a:hover,
.top-nav button:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.top-nav .logged-in-user,
.topbar-logout-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}
.topbar-logout-link {
  cursor: pointer;
}
.topbar-logout-link:hover,
.top-nav .logged-in-user:hover {
  border-color: rgba(15,118,110,.34);
  color: var(--accent);
}
.mini-program-launch {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(15,118,110,.22);
  border-radius: 8px;
  background: #e8f7f2;
  color: #0f766e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mini-program-launch:hover {
  border-color: rgba(15,118,110,.42);
  background: #d8f0e9;
  color: #0b5f59;
}
.mini-program-guide-open { overflow: hidden; }
.mini-program-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.mini-program-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 18, .56);
}
.mini-program-guide-panel {
  position: relative;
  z-index: 1;
  width: min(390px, calc(100vw - 36px));
  padding: 28px 24px 24px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  text-align: center;
}
.mini-program-guide-panel h2 {
  margin: 0 0 8px;
  color: #173b36;
  font-size: 22px;
}
.mini-program-guide-panel p,
.mini-program-guide-panel small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}
.mini-program-guide-panel p { margin: 0 0 18px; }
.mini-program-guide-panel small { margin-top: 16px; }
.mini-program-guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #52716b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mini-program-guide-close:hover { background: #edf6f3; color: #0f766e; }
.mini-program-guide-qr {
  display: block;
  width: min(260px, 72vw);
  height: min(260px, 72vw);
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: #fff;
}
.mini-program-guide-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #b9d4cd;
  border-radius: 8px;
  color: var(--muted);
}
.floating-service {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 198px) 46px;
  gap: 8px;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.floating-service-panel {
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.floating-service:hover .floating-service-panel,
.floating-service:focus-within .floating-service-panel,
.floating-service.force-open .floating-service-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.floating-service-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f5faf8;
}
.floating-service-tabs button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.floating-service-tabs button:last-child { border-right: 0; }
.floating-service-tabs button.active {
  background: #fff;
  color: var(--accent);
}
.floating-service-panes { padding: 12px; }
.floating-service-pane {
  display: none;
  gap: 6px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.floating-service-pane.active { display: grid; }
.floating-service-qr {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.floating-service-pane a {
  color: var(--accent);
  font-weight: 800;
}
.floating-service-buttons {
  display: grid;
  gap: 8px;
}
.floating-service-button {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
}
.floating-service-button:hover {
  border-color: rgba(15,118,110,.42);
  transform: translateY(-1px);
}
.qr-icon {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px 0 / 8px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 14px / 8px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px 14px / 8px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 7px 7px / 8px 8px no-repeat;
}
.headset-button span {
  font-size: 24px;
  line-height: 1;
}
.header-tools {
  flex: 1 1 500px;
  min-width: 360px;
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(310px, auto);
  gap: 10px;
  align-items: center;
  justify-content: end;
}
.announcement-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 5px 9px;
}
.announcement-strip > span {
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}
.announcement-viewport {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.announcement-track {
  display: inline-flex;
  gap: 34px;
  min-width: max-content;
  color: #c7361f;
  font-weight: 800;
  font-size: 13px;
  animation: announcementMarquee 18s linear infinite;
}
.announcement-track a,
.announcement-track span {
  color: #c7361f;
  font-weight: 900;
  text-decoration: none;
}
.announcement-track a:hover {
  color: #0f766e;
  text-decoration: underline;
}
.announcement-track i {
  width: 1px;
  height: 1em;
  align-self: center;
  background: rgba(20,32,29,.22);
}
.region-picker,
.address-picker {
  display: grid;
  grid-template-columns: auto 92px 96px 100px;
  gap: 6px;
  align-items: center;
}
.region-picker::before {
  content: "地区";
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.address-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.region-picker [data-region="town"],
.region-picker [data-region="community"],
.region-picker [data-region-go] {
  display: none;
}
.region-picker select,
.address-picker select,
.address-picker input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}
.region-picker button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(52px, 8vw, 92px) clamp(16px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 20, 18, .92), rgba(7, 40, 52, .7) 42%, rgba(11, 27, 24, .18)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 110px),
    url("./assets/hero-servicehub.webp") center/cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
  overflow: hidden;
}
.eyebrow {
  display: inline-flex;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 19px;
  line-height: 1.85;
}
.search-box {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.search-box input { border: 0; box-shadow: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  border: 1px solid rgba(39, 221, 197, .24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
  backdrop-filter: blur(12px);
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(18, 28, 25, .22);
}
.metric {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .22s ease, border-color .22s ease;
}
.metric:hover {
  transform: translateX(6px);
  border-color: rgba(15, 118, 110, .35);
}
.metric.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1e88e5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.metric span, .metric small { display: block; color: currentColor; opacity: .78; }
.metric strong { display: block; margin: 8px 0; font-size: 28px; }
.hero-news-card .metric {
  min-height: 104px;
}
.hero-news-card .metric strong {
  font-size: 20px;
  line-height: 1.35;
}
.hero-news-card .metric small {
  font-size: 12px;
}
.hero-news-card .muted-metric {
  color: var(--muted);
  background: #fff;
}

.role-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 72px);
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.role-band article {
  min-height: 250px;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.role-band article:hover {
  transform: translateY(-7px);
  border-color: rgba(15, 118, 110, .28);
  box-shadow: 0 22px 58px rgba(18, 28, 25, .16);
}
.role-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}
.role-band h2 { margin: 16px 0 10px; font-size: 24px; }
.role-band p { color: var(--muted); line-height: 1.7; min-height: 82px; }

.section {
  padding: 62px clamp(16px, 5vw, 72px);
  scroll-margin-top: 118px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.section h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}
.section-head h2,
.panel-head h2,
.dashboard-card h2 {
  position: relative;
}
.section-head h2::after,
.panel-head h2::after,
.dashboard-card h2::after {
  content: "";
  display: block;
  width: 78px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #52e2ff, #f2b84b);
}
#categories .section-head {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: center;
}
#categories.home-category-rail {
  padding-top: 22px;
  padding-bottom: 22px;
}
#categories.home-category-rail .section-head {
  align-items: center;
  margin-bottom: 12px;
}
#categories.home-category-rail .section-head h2 {
  max-width: none;
  font-size: 26px;
  line-height: 1.2;
  white-space: nowrap;
}
#categories.home-category-rail .section-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
#categories.home-category-rail .chips {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
#categories .section-head h2 {
  max-width: none;
  font-size: 26px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 10px;
  width: min(100%, 980px);
}
.category-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ink);
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(18, 28, 25, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,118,110,.34);
  box-shadow: 0 12px 24px rgba(18, 28, 25, .1);
}
.category-card.active {
  color: #fff;
  border-color: rgba(15,118,110,.45);
  background: linear-gradient(135deg, #0b1815, #0f766e);
}
.category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #0f766e;
  background: linear-gradient(135deg, #e6fbf6, #eaf2ff);
  font-weight: 900;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(15,118,110,.12);
}
.category-card.active .category-icon {
  color: #08211d;
  background: linear-gradient(135deg, #72f0ff, #ffcf43);
}
.category-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.category-main strong {
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.category-card.active .category-main small { color: rgba(255,255,255,.76); }

.service-wall {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: stretch;
}
.service-banner {
  position: relative;
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(39, 221, 197, .24);
  box-shadow: 0 28px 70px rgba(5, 18, 20, .2);
  background: #0b1815;
  animation: openingMediaDrop .72s cubic-bezier(.2, .84, .22, 1) both;
}
.service-banner > img,
.service-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: slowImagePan 16s ease-in-out infinite alternate;
}
.service-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #0b1815;
}
.service-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 18, 20, .4), transparent 38%, rgba(5, 18, 20, .24)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 96px);
}
.service-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(10%);
  transition: opacity .7s ease, transform .7s ease;
}
.service-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}
.service-slide.active img {
  animation: serviceSlideScan 3s ease-in-out both;
}
.service-slide figcaption {
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  bottom: clamp(22px, 4vw, 42px);
  z-index: 3;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100% - 120px));
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.38);
}
.service-slide figcaption span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(88, 225, 255, .46);
  border-radius: 8px;
  background: rgba(7, 25, 30, .66);
  color: #8ce9ff;
  font-size: 12px;
  font-weight: 900;
}
.service-slide figcaption strong {
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.12;
}
.service-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.54);
  background: rgba(5, 18, 20, .66);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}
.service-carousel-nav.prev { left: 16px; }
.service-carousel-nav.next { right: 16px; }
.service-carousel-dots {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.service-carousel-dots button {
  width: 34px;
  height: 4px;
  min-height: 4px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  box-shadow: none;
}
.service-carousel-dots button.active {
  background: #72f0ff;
}
.service-info-cards {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-info-cards article {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}
.service-info-cards strong {
  color: #08211d;
  font-size: 22px;
  line-height: 1.2;
}
.service-info-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.service-info-cards div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-info-cards span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f7f5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}
.service-video-shell {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: #0b1815;
}
.service-video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1815;
}
.service-video-play {
  position: absolute;
  left: 50%;
  bottom: 22px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(11, 24, 21, .82);
  box-shadow: 0 14px 32px rgba(0,0,0,.2);
  transform: translateX(-50%);
}
.service-video-play:hover {
  background: rgba(15, 118, 110, .94);
}
.service-video-shell.is-playing .service-video-play {
  opacity: 0;
  pointer-events: none;
}
.service-list { display: grid; gap: 14px; }
.service-list article {
  position: relative;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(39, 221, 197, .2);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239, 250, 248, .88));
  box-shadow: 0 12px 34px rgba(9, 36, 42, .08);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  overflow: hidden;
}
.service-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #52e2ff, var(--accent), #f2b84b);
}
.service-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .34);
  box-shadow: 0 18px 44px rgba(8, 31, 45, .14);
}
.service-list strong { font-size: 24px; }
.service-list p { margin: 10px 0 14px; color: var(--muted); line-height: 1.75; }
.service-list div { display: flex; flex-wrap: wrap; gap: 8px; }
.service-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
}

.shop-section { background: #fff; }
.supply-ticker-section {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px clamp(16px, 5vw, 72px);
  background: #0b1815;
  color: #fff;
}
.supply-ticker-head {
  display: grid;
  gap: 6px;
}
.supply-ticker-head span {
  color: #f2b84b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.supply-ticker-head strong {
  font-size: 20px;
}
.supply-ticker-head a {
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.supply-ticker-viewport {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.supply-ticker-track {
  display: inline-flex;
  width: max-content;
  gap: 12px;
  padding: 12px;
  animation: supplyTicker 36s linear infinite;
}
.supply-ticker-track a {
  display: inline-grid;
  gap: 4px;
  min-width: 260px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.1);
}
.supply-ticker-track strong {
  font-size: 15px;
}
.supply-ticker-track span {
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.supply-ticker-viewport:hover .supply-ticker-track { animation-play-state: paused; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  min-height: 0;
  align-self: start;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(18, 28, 25, .08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(82,226,255,.14), transparent 34%, rgba(242,184,75,.12));
  opacity: 0;
  transition: opacity .24s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 118, 110, .28);
  box-shadow: 0 22px 54px rgba(18, 28, 25, .14);
}
.product-card:hover::after { opacity: 1; }
.product-media {
  aspect-ratio: 5 / 3;
  background: var(--soft) center/cover;
  transition: transform .38s ease, filter .38s ease;
}
.product-card:hover .product-media {
  transform: scale(1.06);
  filter: saturate(1.08);
}
.product-body {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  padding: 14px;
}
.product-body strong {
  min-height: 0;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-body p {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  overflow: hidden;
}
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.price { color: var(--warm); font-size: 22px; font-weight: 900; white-space: nowrap; }
.shelf-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.shelf-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.mini-link.secondary {
  color: var(--accent);
  background: rgba(15, 118, 110, .1);
}

.mall-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(42px, 7vw, 78px) clamp(16px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 27, 24, .88), rgba(11, 27, 24, .48)),
    url("./assets/services-banner.webp") center/cover;
}
.mall-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}
.mall-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.85;
}
.quick-install {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-install-trigger {
  margin-top: 18px;
  justify-self: start;
}
.mall-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 14, 12, .56);
}
.mall-modal[hidden] {
  display: none;
}
.mall-modal-panel {
  position: relative;
  width: min(740px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}
.mall-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}
.quick-install h2 { margin: 0; font-size: 24px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mall-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 140px auto;
  gap: 8px;
  width: min(720px, 100%);
}
.section-note { color: var(--muted); font-weight: 800; }
.marriage-shelf { background: #f7faf9; }
.home-marriage-shelf {
  background:
    linear-gradient(180deg, rgba(247,250,249,.92), rgba(238,246,244,.96)),
    url("./assets/hero-servicehub.webp") center/cover fixed;
}
.social-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: clamp(72px, 12vw, 130px) clamp(18px, 6vw, 66px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,26,24,.76), rgba(8,26,24,.22)),
    var(--social-hero-image, url("./assets/hero-marriage.png")) center 32%/cover;
  background-position: center 32%;
}
.agriculture-hero {
  background:
    linear-gradient(90deg, rgba(8,26,24,.74), rgba(8,26,24,.2)),
    var(--agriculture-hero-image, url("./assets/hero-agriculture.png")) center 44%/cover;
  background-position: center 44%;
}
.social-hero h1 {
  max-width: 900px;
  margin: 12px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
}
.social-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.85;
}
.marriage-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.marriage-person-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 30px rgba(18, 28, 25, .08);
  transition: transform .24s ease, box-shadow .24s ease;
}
.marriage-person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(18, 28, 25, .14);
}
.marriage-person-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--soft) center/cover;
  overflow: hidden;
}
.marriage-person-photo span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8,26,24,.72);
  font-size: 12px;
  font-weight: 900;
}
.marriage-person-card strong { display: block; margin-bottom: 8px; font-size: 16px; }
.marriage-person-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 0;
}
.marriage-person-card dl div { min-width: 0; }
.marriage-person-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.marriage-person-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.marriage-person-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.marriage-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.marriage-photo-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.marriage-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--soft) center/cover;
}
.marriage-photo-card strong { font-size: 17px; }
.marriage-photo-card span, .marriage-photo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.ad-section,
.consultation-section { background: #eef3f2; }
.consultation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.consultation-grid article {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.consultation-grid h3 {
  margin: 0;
  font-size: 18px;
}
.title-list {
  display: grid;
  gap: 10px;
}
.title-list a {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20,32,29,.08);
  color: var(--ink);
}
.title-list a:hover strong {
  color: var(--accent);
}
.title-list strong {
  font-size: 15px;
}
.title-list span {
  color: var(--muted);
  font-size: 12px;
}
.article-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin: 18px 0;
}
.ad-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
}
.ad-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,26,24,.78), rgba(8,26,24,.28), rgba(8,26,24,.08));
}
.ad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.18) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: adSweep 7s ease-in-out infinite;
}
.ad-hero > div {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: clamp(24px, 5vw, 44px);
}
.ad-hero h2 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 58px); }
.ad-hero p { line-height: 1.8; color: rgba(255,255,255,.88); }
.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.ad-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .24s ease, box-shadow .24s ease;
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(18, 28, 25, .1);
}
.ad-card strong { display: block; margin-bottom: 8px; font-size: 18px; }
.ad-card span { color: var(--muted); }

.marriage-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  background: #fff;
}
.marriage-section p { color: var(--muted); line-height: 1.85; font-size: 18px; }
.marriage-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.marriage-cards article {
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #163c38, #2563eb);
  transition: transform .24s ease, filter .24s ease;
}
.marriage-cards article:hover {
  transform: translateY(-5px);
  filter: saturate(1.08);
}
.marriage-cards strong { display: block; margin-bottom: 10px; font-size: 22px; }
.marriage-cards span { color: rgba(255,255,255,.82); line-height: 1.7; }

.safety-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.safety-section article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    url("./assets/services-banner.webp") center/cover;
  transition: transform .24s ease, border-color .24s ease;
}
.safety-section article:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    url("./assets/ad-solar.webp") center/cover;
}
.safety-section article:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    url("./assets/hero-servicehub.webp") center/cover;
}
.safety-section article:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, .3);
}
.safety-section strong { font-size: 22px; }
.safety-section p { color: var(--muted); line-height: 1.7; }

.side-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(8, 20, 18, .42);
}
.side-panel.open { display: flex; }
.panel-card {
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.panel-head h2 { margin: 6px 0 0; font-size: 30px; }
.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--ink);
  background: #eef1f0;
  font-size: 26px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.row-actions button,
.row-actions a {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}
.row-actions .danger,
button.danger {
  background: #b42318;
}
.danger-text {
  color: #b42318;
  font-weight: 700;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 14, 12, .56);
}
.admin-modal.open {
  display: flex;
}
.admin-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 10px;
  padding: clamp(20px, 4vw, 32px);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}
.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.modal-title h2 {
  margin: 4px 0 6px;
}
.modal-title p {
  color: var(--muted);
}
.panel-view { display: none; }
.panel-view.active { display: block; }
.stack { display: grid; gap: 13px; }
.subform { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.stack h3 { margin: 0; font-size: 18px; }
label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; }
.inline-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: end;
}
.inline-code-row button {
  min-height: 42px;
}
@media (max-width: 560px) {
  .inline-code-row {
    grid-template-columns: 1fr;
  }
}
.captcha-widget {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}
.captcha-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.captcha-refresh {
  min-height: 30px;
  padding: 0 10px;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
}
.captcha-image-wrap {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eef6f4;
  cursor: crosshair;
}
.captcha-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.captcha-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.captcha-mark {
  position: absolute;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  color: #fff;
  background: var(--warm);
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  font-size: 12px;
  font-weight: 900;
}
.buy-summary {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.stack select[name="variantId"] {
  border-color: rgba(15, 118, 110, .38);
  background: #fff;
  font-weight: 800;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: .18s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px clamp(16px, 5vw, 72px);
  background: #f6f8f8;
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer strong, .site-footer span { display: block; }
.site-footer span { color: var(--muted); margin-top: 4px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.site-footer nav a {
  color: var(--muted);
  font-size: 12px;
}
.site-copyright {
  display: block;
  margin-top: 6px;
  color: rgba(20,32,29,.54);
  font-size: 12px;
}
.footer-link-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  width: min(100%, 920px);
  padding: 12px 0 6px;
  border-top: 1px solid rgba(20,32,29,.08);
}
.footer-link-badges a {
  display: inline-flex;
  min-width: 146px;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8dddd;
  border-radius: 0;
  padding: 5px 12px;
  color: rgba(20,32,29,.58);
  background: #eceeee;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}
.footer-link-badges a:hover {
  border-color: rgba(15,118,110,.32);
  color: var(--accent);
  background: #fff;
}
.footer-link-badges img,
.footer-link-badges b {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 2px;
  object-fit: contain;
  background: #fff;
}
.footer-link-badges b {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 12px;
}
.footer-promotion {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 22px;
  width: min(100%, 920px);
  padding: 18px 0 12px;
  border-top: 1px solid rgba(20,32,29,.08);
  text-align: left;
}
.footer-promo-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  align-items: stretch;
  min-width: 0;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef9f7, #eef5ff);
}
.footer-promo-banner {
  width: 100%;
  height: 100%;
  min-height: 138px;
  object-fit: cover;
}
.footer-promo-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}
.footer-promo-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.footer-promo-copy strong,
.footer-promo-copy span,
.footer-promo-copy small {
  display: block;
}
.footer-promo-copy strong { color: var(--ink); font-size: 16px; }
.footer-promo-copy span { margin-top: 4px; color: var(--accent); font-size: 13px; }
.footer-promo-copy small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.footer-qr-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #d8dddd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.footer-qr-card img,
.footer-qr-placeholder {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: #f2f6f5;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.footer-qr-card strong { font-size: 13px; }
.footer-qr-card a { color: var(--accent); font-size: 11px; }
.public-share-widget {
  position: fixed;
  right: 18px;
  bottom: 132px;
  z-index: 45;
  display: grid;
  gap: 8px;
  justify-items: end;
}
.public-share-main,
.public-share-panel button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0f6b55;
  box-shadow: 0 14px 34px rgba(8, 31, 26, .2);
  cursor: pointer;
}
.public-share-main {
  min-width: 58px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
}
.public-share-panel {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(12, 32, 27, .08);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(8,31,26,.18);
}
.public-share-panel[hidden] {
  display: none !important;
}
.public-share-panel button {
  min-width: 88px;
  min-height: 34px;
  padding: 0 12px;
  background: #163b33;
  font-size: 13px;
}
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: rgba(12, 28, 24, .94);
  box-shadow: 0 18px 48px rgba(0,0,0,.2);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.share-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.announcement-detail {
  max-width: 860px;
  margin-inline: auto;
}
.article-shell {
  padding: 62px clamp(16px, 5vw, 72px);
  background: linear-gradient(180deg, #f6f8f7, #fff);
}
.article-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.announcement-detail h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
}
.announcement-detail p,
.article-content p {
  color: var(--muted);
  line-height: 1.9;
}
.article-meta {
  color: var(--muted);
  font-size: 14px;
}
.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.article-keywords span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(15,118,110,.08);
  font-size: 13px;
  font-weight: 800;
}
.article-actions {
  margin-top: 26px;
}
.police-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.police-beian img {
  width: 16px;
  height: 16px;
}

.account-shell,
.dashboard-shell {
  padding: 54px clamp(16px, 5vw, 72px);
}
.account-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 480px);
  gap: 22px;
  align-items: stretch;
}
.account-hero,
.dashboard-hero {
  border-radius: 8px;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,26,24,.9), rgba(8,26,24,.46)),
    url("./assets/hero-servicehub.webp") center/cover;
  box-shadow: var(--shadow);
}
.account-hero h1,
.dashboard-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
}
.account-hero p,
.dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.85;
  font-size: 18px;
}
.account-panel,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 28, 25, .08);
}
.account-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dashboard-shell {
  display: grid;
  gap: 18px;
}
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.dashboard-status {
  min-width: 190px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-card {
  padding: 20px;
}
.dashboard-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card,
.panel-card,
.account-panel,
.dashboard-card,
.consultation-grid article,
.ad-card,
.marriage-person-card,
.marriage-photo-card {
  border: 1px solid rgba(15,118,110,.17);
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(239,250,248,.9));
  box-shadow: 0 16px 42px rgba(9, 36, 42, .09);
}

.article-card:hover,
.panel-card:hover,
.account-panel:hover,
.dashboard-card:hover,
.consultation-grid article:hover,
.ad-card:hover,
.marriage-person-card:hover,
.marriage-photo-card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: 0 22px 58px rgba(8, 31, 45, .14);
}

.marriage-cards article {
  border: 1px solid rgba(82, 226, 255, .22);
  background:
    linear-gradient(135deg, rgba(10, 42, 46, .96), rgba(37, 99, 235, .88));
  box-shadow: 0 18px 46px rgba(8, 31, 45, .18);
}

.info-list {
  display: grid;
  gap: 10px;
}
.info-list div,
.record-row,
.empty-state {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}
.info-list span,
.record-row span,
.record-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.info-list strong,
.record-row strong {
  overflow-wrap: anywhere;
}
.record-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.responsive-table {
  width: 100%;
  overflow-x: auto;
}
.responsive-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}
.responsive-table th,
.responsive-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.responsive-table th {
  color: var(--ink);
  background: #f3f7f6;
}
.product-detail-card {
  grid-column: span 2;
}
.product-detail-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.rich-content {
  margin-top: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.rich-content video,
.article-content video,
.embedded-video video {
  width: min(100%, 860px);
  max-height: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101b18;
}
.rich-content .video-channel-embed,
.rich-content a[data-external-video="true"] {
  display: block;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, .24);
  border-radius: 8px;
  color: #0f5149;
  background: #eef8f6;
  font-weight: 800;
  text-decoration: none;
}
.rich-content .video-channel-embed::before {
  content: "视频号：";
  color: #0f766e;
}
.rich-content a[data-external-video="true"]::before {
  content: "视频网站：";
  color: #0f766e;
}
.embedded-video {
  margin: 16px 0;
}
.compact-head {
  margin-bottom: 14px;
}
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-menu-button {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.user-menu-panel a,
.user-menu-panel button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
}
.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: var(--soft);
}
.quick-link-list {
  display: grid;
  gap: 10px;
}
.quick-link-list a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--soft);
  font-weight: 900;
}
.quick-link-list a::after {
  content: ">";
  color: var(--accent);
}
.station-grid {
  grid-template-columns: 1.25fr 1.25fr .8fr;
}
.station-hero {
  background:
    linear-gradient(90deg, rgba(8,26,24,.9), rgba(8,26,24,.42)),
    url("./assets/services-banner.webp") center/cover;
}

@keyframes heroDrift {
  from { background-position: center center; background-size: auto, 104%; }
  to { background-position: 58% 46%; background-size: auto, 111%; }
}

@keyframes slowImagePan {
  from { transform: scale(1.03) translateX(0); }
  to { transform: scale(1.09) translateX(-2.5%); }
}

@keyframes openingMediaDrop {
  from { opacity: 0; transform: translateY(-34px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes serviceSlideScan {
  from { transform: scale(1.06) translateX(3.4%); }
  to { transform: scale(1.1) translateX(-3.4%); }
}

@keyframes adSweep {
  0%, 42% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}

@keyframes announcementMarquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-50%); }
}
@keyframes supplyTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1160px) {
  .hero, .service-wall, .marriage-section, .mall-hero { grid-template-columns: 1fr; }
  .service-info-cards { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role-band, .product-grid, .dashboard-grid, .account-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card-placeholder { display: none; }
  .consultation-grid { grid-template-columns: 1fr; }
  .mall-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #categories .section-head { grid-template-columns: 1fr; }
  #categories .section-head h2 { max-width: none; }
  #categories.home-category-rail .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-header { flex-wrap: wrap; }
  .header-tools { order: 3; flex-basis: 100%; grid-template-columns: minmax(160px, 1fr) auto; justify-content: stretch; }
  .supply-ticker-section { grid-template-columns: 1fr; }
  .region-picker { grid-template-columns: auto repeat(3, minmax(80px, 1fr)); }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 14px;
  }
  .brand { min-width: 0; }
  .brand-logo { width: 48px; height: 42px; }
  .brand small { display: none; }
  .top-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .announcement-strip { display: none; }
  .header-tools {
    min-width: 100%;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .region-picker {
    width: 100%;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
  }
  .region-picker::before {
    font-size: 12px;
  }
  .region-picker select,
  .region-picker button {
    min-height: 32px;
    padding: 4px 6px;
    font-size: 12px;
  }
  .address-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-nav a:nth-child(2), .top-nav a:nth-child(3) { display: none; }
  .floating-service {
    right: 10px;
    top: auto;
    bottom: 18px;
    grid-template-columns: minmax(0, 176px) 42px;
    transform: none;
  }
  .floating-service:not(.force-open) .floating-service-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
  }
  .floating-service-button {
    width: 42px;
    height: 42px;
  }
  .floating-service-qr {
    width: 112px;
    height: 112px;
  }
  .public-share-widget {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 44px 16px 82px;
    background-position: 62% center;
  }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .search-box { grid-template-columns: 1fr; }
  #categories .section-head {
    grid-template-columns: 1fr;
  }
  #categories .section-head h2 {
    max-width: none;
    font-size: 24px;
  }
  #categories.home-category-rail .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 54px; padding: 8px 9px; }
  .category-main strong { font-size: 13px; }
  .role-band {
    grid-template-columns: 1fr;
    margin-top: -48px;
    padding: 16px;
  }
  .role-band p { min-height: auto; }
  .section { padding: 46px 16px; }
  .section-head { display: grid; align-items: start; }
  .service-banner { min-height: 320px; }
  .service-info-cards { grid-template-columns: 1fr; }
  .service-info-cards article { min-height: 0; padding: 16px; }
  .service-slide figcaption strong { font-size: 26px; }
  .chips { justify-content: flex-start; }
  .service-banner { min-height: 320px; }
  .service-slide figcaption {
    left: 16px;
    right: 16px;
    bottom: 44px;
    max-width: calc(100% - 32px);
  }
  .service-slide figcaption strong { font-size: 28px; }
  .service-carousel-nav {
    width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 26px;
  }
  .service-carousel-nav.prev { left: 10px; }
  .service-carousel-nav.next { right: 10px; }
  .service-carousel-dots {
    left: 16px;
    right: auto;
    bottom: 18px;
  }
  .product-grid, .ad-grid, .marriage-cards, .safety-section, .mall-filters, .form-row, .account-shell, .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .publish-grid > [data-role-card="seller"] form {
    grid-template-columns: 1fr;
  }
  .publish-rich-editor {
    min-height: 380px;
  }
  .account-shell, .dashboard-shell { padding: 38px 16px; }
  .dashboard-hero { display: grid; }
  .ad-hero { min-height: 430px; }
  .site-footer {
    display: grid;
    justify-items: center;
    align-items: center;
  }
  .footer-promotion { grid-template-columns: 1fr; text-align: center; }
  .footer-promo-visual { grid-template-columns: 1fr; }
  .footer-promo-banner { height: 128px; min-height: 128px; }
  .footer-promo-copy { justify-content: center; text-align: left; }
  .footer-qr-card img, .footer-qr-placeholder { width: 84px; height: 84px; }
}
.table-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3f1;
}
