/* ============================================================
   子荷诊所官网 · 设计系统
   主色：青绿（专业、健康、克制）
   辅色：暖金（温度感）
   ============================================================ */

:root {
  /* 品牌色 */
  --brand: #0f8a7e;
  --brand-dark: #0b5f57;
  --brand-light: #1fb6a3;
  --brand-soft: #e7f5f3;
  --brand-soft-2: #f4faf9;

  --accent: #e8a33d;
  --accent-soft: #fdf4e5;

  /* 中性色 */
  --ink: #16292c;
  --ink-2: #3d5457;
  --ink-3: #6b8286;
  --ink-4: #9db0b3;
  --line: #e3eceb;
  --line-2: #eef4f3;
  --bg: #ffffff;
  --bg-2: #f7fbfa;

  /* 状态色 */
  --danger: #d9534f;
  --warn: #d68910;
  --ok: #1e8e5a;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(16, 42, 44, 0.04), 0 2px 8px rgba(16, 42, 44, 0.05);
  --sh-2: 0 4px 12px rgba(16, 42, 44, 0.07), 0 12px 32px rgba(16, 42, 44, 0.08);
  --sh-3: 0 18px 48px rgba(11, 95, 87, 0.16);

  /* 尺寸 */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --maxw: 1160px;
  --nav-h: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------------------------- 布局 ---------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 76px 0;
}

.section--tight {
  padding: 52px 0;
}

.section--soft {
  background: var(--bg-2);
}

.center {
  text-align: center;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 46px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--ink-3);
  font-size: 15.5px;
}

/* ---------------------------- 导航 ---------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

.brand__mark {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand__sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  margin-top: -3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav__link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.16s;
}

.cart-btn:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft-2);
}

.cart-btn__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
}

/* ---------------------------- 按钮 ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.17s;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 138, 126, 0.28);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 138, 126, 0.34);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft-2);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 163, 61, 0.3);
}

.btn--accent:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 9px 17px;
  font-size: 13.5px;
  border-radius: 9px;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 16px;
  border-radius: 13px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f2fbf9 0%, #e9f6f4 44%, #ffffff 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
  padding: 74px 0 82px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
  margin-bottom: 22px;
}

.hero__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.16);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.22;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}

.hero__lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero__points {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.hero__point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.hero__point svg {
  color: var(--brand);
  flex-shrink: 0;
}

.hero__art {
  position: relative;
}

/* 视觉卡片（纯 CSS/SVG，无外链图片） */
.visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--brand-dark), var(--brand) 52%, var(--brand-light));
  padding: 34px;
  color: #fff;
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}

.visual::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  right: -80px;
  bottom: -100px;
}

.visual::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  left: -50px;
  top: -46px;
}

.visual__head {
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.82;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.visual__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  position: relative;
}

.visual__cell {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  padding: 16px 17px;
  backdrop-filter: blur(4px);
}

.visual__cell strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.visual__cell span {
  font-size: 12.5px;
  opacity: 0.86;
}

.visual__foot {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}

/* 顶部公告条 */
.notice {
  background: var(--accent-soft);
  border-bottom: 1px solid #f6e3c4;
  font-size: 13.5px;
  color: #7a531a;
  text-align: center;
  padding: 9px 20px;
}

.notice b {
  color: #5c3d0d;
}

/* ---------------------------- 卡片 ---------------------------- */
.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.2s;
}

.card:hover {
  border-color: #cfe7e4;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 17.5px;
  margin-bottom: 9px;
}

.card p {
  color: var(--ink-3);
  font-size: 14.5px;
}

/* 服务卡片 */
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.svc:hover {
  border-color: #cfe7e4;
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}

.svc__cover {
  height: 132px;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.svc__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.28), transparent 58%);
}

.svc__tags {
  position: absolute;
  top: 11px;
  left: 11px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
}

.tag--plain {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.tag--accent {
  background: var(--accent);
  color: #fff;
}

.svc__body {
  padding: 19px 20px 21px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc__cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.svc__name {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.45;
}

.svc__sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 15px;
  flex: 1;
}

.svc__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-4);
  margin-bottom: 15px;
}

.svc__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line-2);
}

.price {
  color: var(--danger);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price__cur {
  font-size: 14px;
  margin-right: 1px;
}

.price__num {
  font-size: 26px;
}

.price__unit {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin-left: 2px;
}

.price__was {
  font-size: 12.5px;
  color: var(--ink-4);
  text-decoration: line-through;
  margin-left: 7px;
  font-weight: 500;
}

/* ---------------------------- 筛选器 ---------------------------- */
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.filter {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.16s;
}

.filter:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 138, 126, 0.24);
}

/* ---------------------------- 表单 ---------------------------- */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.field label .req {
  color: var(--danger);
  margin-left: 2px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: all 0.16s;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 138, 126, 0.13);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.65;
}

.hint {
  font-size: 12.5px;
  color: var(--ink-4);
  margin-top: 6px;
}

.form-err {
  display: none;
  background: #fdf2f1;
  border: 1px solid #f4d3d1;
  color: #a3352f;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-err.is-show {
  display: block;
}

/* ---------------------------- 购物车 ---------------------------- */
.cart-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(140deg, var(--brand), var(--brand-light));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 138, 126, 0.4);
  transition: transform 0.18s;
}

.cart-fab:hover {
  transform: scale(1.07);
}

.cart-fab__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--danger);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  z-index: 120;
  box-shadow: -12px 0 44px rgba(11, 42, 44, 0.16);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.68, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-panel__head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel__head h3 {
  font-size: 17px;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--ink-3);
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--line-2);
  color: var(--ink);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}

.cart-panel__foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}

.cart-item {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.cart-item__thumb {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.45;
}

.cart-item__price {
  font-size: 13.5px;
  color: var(--danger);
  font-weight: 700;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.qty button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.qty span {
  min-width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cart-empty {
  text-align: center;
  padding: 60px 10px;
  color: var(--ink-4);
}

.cart-empty svg {
  margin: 0 auto 16px;
  color: var(--line);
}

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 15px;
}

.sum-row span {
  color: var(--ink-3);
  font-size: 14px;
}

.sum-row strong {
  font-size: 24px;
  color: var(--danger);
  letter-spacing: -0.02em;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 38, 40, 0.42);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.24s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------- 页面头 ---------------------------- */
.page-head {
  background: linear-gradient(160deg, var(--brand-soft-2), #fff);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 42px;
}

.crumb {
  font-size: 13.5px;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.crumb a {
  color: var(--ink-3);
}

.crumb a:hover {
  color: var(--brand);
}

.page-head h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-head p {
  color: var(--ink-3);
  max-width: 640px;
}

/* ---------------------------- 详情页 ---------------------------- */
.detail {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 46px;
  align-items: start;
}

.detail__hero {
  height: 210px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
}

.detail h2 {
  font-size: 20px;
  margin: 32px 0 15px;
}

.detail h2:first-of-type {
  margin-top: 0;
}

.detail__lead {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.85;
}

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

.list-check li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--ink-2);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line-2);
}

.list-check li:last-child {
  border-bottom: none;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

/* 购买侧栏 */
.buybox {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--sh-1);
}

.buybox__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 17px;
}

.buybox__meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 19px;
}

.buybox__meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.buybox__meta svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* ---------------------------- 步骤条 ---------------------------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-4);
}

.step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--ink-4);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step.is-done .step__dot {
  background: var(--brand-soft);
  color: var(--brand);
}

.step.is-active {
  color: var(--ink);
}

.step.is-active .step__dot {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.step__line {
  width: 54px;
  height: 2px;
  background: var(--line);
  margin: 0 14px;
  border-radius: 2px;
}

/* ---------------------------- 结算布局 ---------------------------- */
.checkout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
}

.panel__title {
  font-size: 17px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel__title svg {
  color: var(--brand);
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}

.order-line:last-of-type {
  border-bottom: none;
}

.order-line__name {
  color: var(--ink-2);
}

.order-line__name small {
  color: var(--ink-4);
  display: block;
  font-size: 12.5px;
}

.order-line__amt {
  font-weight: 700;
  white-space: nowrap;
}

.total-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 17px;
  margin-top: 13px;
  border-top: 2px solid var(--line);
}

.total-bar strong {
  font-size: 27px;
  color: var(--danger);
  letter-spacing: -0.02em;
}

/* ---------------------------- 支付页 ---------------------------- */
.paybox {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.paybox__head {
  background: var(--brand-soft-2);
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.paybox__head strong {
  font-size: 17px;
}

.paybox__body {
  padding: 30px 28px;
  text-align: center;
}

.qr-frame {
  width: 244px;
  height: 244px;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  position: relative;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-skeleton {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(100deg, #f0f5f5 30%, #e6efee 50%, #f0f5f5 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  font-size: 13px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.pay-scan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.pay-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 17px;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13.5px;
  font-weight: 700;
}

.pay-status.is-paid {
  background: #e8f6ee;
  color: var(--ok);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.76);
  }
}

/* 离线支付说明 */
.offline-box {
  background: var(--accent-soft);
  border: 1px solid #f6e3c4;
  border-radius: 13px;
  padding: 20px;
  text-align: left;
  font-size: 14px;
  color: #7a531a;
}

.offline-box strong {
  color: #5c3d0d;
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

/* 成功态 */
.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f6ee;
  display: grid;
  place-items: center;
  color: var(--ok);
}

/* ---------------------------- 数据条 ---------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 32px;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat strong small {
  font-size: 15px;
  color: var(--brand);
  margin-left: 2px;
  font-weight: 700;
}

.stat span {
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------------------------- 联系 ---------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-row__label {
  font-size: 12.5px;
  color: var(--ink-4);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.info-row__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

/* ---------------------------- CTA 区块 ---------------------------- */
.cta-band {
  background: linear-gradient(145deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -90px;
  top: -120px;
}

.cta-band h2 {
  font-size: 27px;
  margin-bottom: 9px;
}

.cta-band p {
  opacity: 0.9;
  font-size: 15px;
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------- 页脚 ---------------------------- */
.footer {
  background: #0e2b2d;
  color: #9fb6b8;
  padding: 54px 0 26px;
  margin-top: 20px;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 15px;
}

.footer a {
  color: #9fb6b8;
  display: block;
  padding: 5px 0;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #73908f;
}

.footer__bottom a {
  color: #73908f;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: #a8c5c4;
}

.filing-sep {
  font-style: normal;
  margin: 0 10px;
  opacity: 0.55;
}

.footer__disclaimer {
  font-size: 12.5px;
  color: #73908f;
  line-height: 1.8;
  margin-top: 10px;
}

/* ---------------------------- Toast ---------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translate(-50%, 20px);
  background: #14343a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.26s;
  z-index: 200;
  max-width: 88vw;
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------------------------- 空状态 / 加载 ---------------------------- */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-4);
}

.skeleton-card {
  height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f4f8f8 30%, #eaf1f0 50%, #f4f8f8 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 980px) {
  .hero__inner,
  .detail,
  .checkout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero__inner {
    padding: 50px 0 56px;
  }

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

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

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

  .buybox {
    position: static;
  }

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

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
    gap: 2px;
    box-shadow: var(--sh-2);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav__inner {
    position: relative;
    gap: 12px;
  }

  .nav__actions {
    margin-left: 0;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    font-size: 24px;
  }

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

  .page-head h1 {
    font-size: 25px;
  }

  .cta-band {
    padding: 36px 26px;
  }

  .cta-band h2 {
    font-size: 22px;
  }

  .steps {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cart-fab {
    right: 16px;
    bottom: 16px;
  }

  .wrap {
    padding: 0 17px;
  }
}

/* ============================================================
   新增（2026-10-13）：首页内容模块
   Hero 关键词 / 今日出诊 / 医生卡片 / 就诊指南 / 口碑 / 社区 / FAQ
   ============================================================ */

/* ---------------------------- Hero 科室关键词 ---------------------------- */
.hero__keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.hero__keywords span {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid #cfe9e5; border-radius: 999px; padding: 4px 11px;
}

/* ---------------------------- 今日出诊条 ---------------------------- */
.today-bar {
  margin: 26px 0 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-1); padding: 13px 18px;
}
.today-bar__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13.5px; color: var(--brand-dark); white-space: nowrap;
}
.today-bar__label svg { color: var(--brand); }
.today-bar__list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.today-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-soft-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 5px 13px; font-size: 13px; color: var(--ink-2);
}
.today-chip b { color: var(--ink); }
.today-chip i {
  font-style: normal; font-size: 11.5px; color: var(--brand);
  background: #fff; border-radius: 999px; padding: 1px 7px;
}
.today-bar__note { font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }

/* ---------------------------- 区块辅助类 ---------------------------- */
.section-head--left { text-align: left; margin-bottom: 22px; }
.section-note { margin-top: 18px; font-size: 13px; color: var(--ink-4); }
.section-note--center { text-align: center; }
/* 数据栏来源说明（医疗宣传数字须可溯源） */
.stats__src { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--ink-4); }
.grid--gap-lg { gap: 44px; }

/* ---------------------------- 医生卡片 ----------------------------
   布局：顶部一行 = 圆形头像 + 姓名/职称 + 科室标签；下方为时间/诊室/擅长/简介
   信息优先级：姓名职称最先被看到（姓氏不再做大面积色块）
   ----------------------------------------------------------------- */
.doctor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.doctor:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.doctor__head {
  display: flex; align-items: center; gap: 15px;
  padding: 20px; border-bottom: 1px solid var(--line-2);
}
.doctor__avatar {
  position: relative; width: 62px; height: 62px; flex: none; border-radius: 50%;
  background-color: var(--c, #0f8a7e);
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .42) 100%);
  display: flex; align-items: center; justify-content: center;
}
.doctor__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.doctor__initial { font-size: 25px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.doctor__ident { flex: 1; min-width: 0; }
.doctor__dept {
  flex: none; background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #cfe9e5; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.doctor__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.doctor__name { font-size: 18px; margin-bottom: 3px; }
.doctor__role { font-size: 13px; color: var(--ink-3); margin: 0; }
.doctor__meta { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.doctor__meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.doctor__meta svg { color: var(--brand); flex: none; }
.doctor__spec { margin-bottom: 14px; }
.doctor__spec b { display: block; font-size: 12.5px; color: var(--ink-4); font-weight: 600; margin-bottom: 8px; letter-spacing: .04em; }
.doctor__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.doctor__bio { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; margin-bottom: 18px; flex: 1; }
.doctor__cta { margin-top: auto; }

/* ---------------------------- 就诊指南 ---------------------------- */
.guide { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.guide__list { display: flex; flex-direction: column; gap: 12px; }
.guide-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.guide-item__icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.guide-item__label { font-size: 12.5px; color: var(--ink-4); margin-bottom: 3px; }
.guide-item__value { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.guide__side { display: flex; flex-direction: column; gap: 14px; }
.guide__tip { background: var(--accent-soft); border: 1px solid #f3e2c4; border-radius: var(--radius); padding: 18px; }
.guide__tip-head { display: flex; align-items: center; gap: 9px; color: #8a5b12; margin-bottom: 9px; }
.guide__tip-head strong { font-size: 14.5px; }
.guide__tip p { font-size: 13.5px; color: #7a5a20; line-height: 1.75; }
.guide__actions { display: flex; flex-direction: column; gap: 10px; }
.guide__actions .btn { width: 100%; justify-content: center; }

/* ---------------------------- 患者评价 ---------------------------- */
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 20px 22px;
}
.review__text { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.review__from { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.review__from b { color: var(--ink); }
.review__from span { color: var(--ink-4); }

/* ---------------------------- 社区活动 ---------------------------- */
.community-list { display: flex; flex-direction: column; gap: 14px; }
.community-item {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.community-item__when { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); letter-spacing: .03em; margin-bottom: 6px; }
.community-item__title { font-size: 17px; font-weight: 700; }

/* ---------------------------- FAQ 折叠面板 ---------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item__q {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--brand-dark); }
.faq-item__mark { display: flex; color: var(--brand); flex: none; }
/* 展开/收起状态用 + / − 明确区分（不再用旋转 45° 的隐晦表达） */
.faq-item__ic { display: inline-flex; }
.faq-item__ic--minus { display: none; }
.faq-item[open] .faq-item__ic--plus { display: none; }
.faq-item[open] .faq-item__ic--minus { display: inline-flex; }
.faq-item__a { padding: 0 20px 19px; font-size: 14.5px; color: var(--ink-3); line-height: 1.8; }
.faq-item[open] { border-color: #cfe9e5; box-shadow: var(--sh-1); }

.faq-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.faq-cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.faq-cat i {
  font-style: normal; font-size: 11.5px; background: var(--brand-soft);
  color: var(--brand-dark); border-radius: 999px; padding: 1px 8px;
}
.faq-cat:hover { border-color: var(--brand); color: var(--brand-dark); }
.faq-cat.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.faq-cat.is-active i { background: rgba(255, 255, 255, .24); color: #fff; }

.faq-group { margin-bottom: 34px; scroll-margin-top: calc(var(--nav-h) + 18px); }
.faq-group__title { font-size: 17px; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--brand); }

/* ---------------------------- 导航预约按钮 ---------------------------- */
.nav__book { white-space: nowrap; }

/* ---------------------------- 响应式补充 ---------------------------- */
@media (max-width: 980px) {
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .today-bar__note { display: none; }
}

@media (max-width: 720px) {
  .nav__book { display: none; }
  .hero__keywords { gap: 6px; }
  .grid--gap-lg { gap: 34px; }
}

/* ---------------------------- 后台：客户留言 ---------------------------- */
.msg-list {
  display: grid;
  gap: 12px;
}

.msg-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 16px 18px;
}

.msg-item--unread {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.msg-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
}

.msg-item__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.msg-item__phone {
  font-size: 13px;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.msg-item__phone:hover {
  border-bottom-color: var(--brand);
}

.msg-item__time {
  font-size: 12.5px;
  color: var(--ink-4);
  margin-left: auto;
}

.msg-item__body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-item__actions {
  margin-top: 13px;
}

@media (max-width: 720px) {
  .msg-item__time {
    margin-left: 0;
    width: 100%;
  }
}
