/* 狄安娜宠物医疗第三方入驻平台 - 统一布局 */
:root {
  --primary: #2c7da0;
  --primary-dark: #1e5a73;
  --primary-light: #e8f4f8;
  --text: #212529;
  --muted: #6c757d;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #dee2e6;
  --danger: #dc3545;
  --radius: 12px;
  --gap: 24px;
  --container: 1140px;
  --header-h: 72px;
  --shadow: 0 2px 12px rgba(44, 125, 160, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

main { flex: 1; width: 100%; }

/* 统一内容宽度，左右对齐 */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.3;
  min-width: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.logo-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm { min-height: 34px; padding: 0 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ========== 区块 ========== */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-foot {
  text-align: center;
  margin-top: 32px;
}

/* ========== 统一网格（等高卡片） ========== */
.card-grid {
  display: grid;
  gap: var(--gap);
  align-items: stretch;
}

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

/* 通用面板 */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-merchant { background: #fff3cd; color: #856404; }
.badge-third { background: var(--primary-light); color: var(--primary-dark); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.hero-text h1 {
  font-size: 2rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-text p {
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 520px;
}

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

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--white);
  background: transparent;
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.hero-panel h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.hero-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.hero-item:last-of-type { margin-bottom: 16px; }

.hero-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
}

.hero-item .sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========== 资质条 ========== */
.qual-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.qual-ico {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.qual-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.qual-body p { margin-bottom: 6px; }

.qual-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ========== 服务卡片 ========== */
.svc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.svc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.svc-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.svc-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.rating {
  font-size: 0.85rem;
  color: #e6a800;
}

.svc-card .badge { margin-bottom: 10px; }

.svc-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
  flex: 1;
}

.svc-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 16px;
}

.svc-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.svc-card .btn { margin-top: auto; align-self: stretch; }

.merchant-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.merchant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 125, 160, 0.16);
}

.merchant-card .btn-book {
  position: relative;
  z-index: 1;
}

/* 商家详情页 */
.merchant-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.merchant-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.merchant-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  flex-shrink: 0;
}

.merchant-hero h1 {
  font-size: 1.65rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.merchant-hero .rating {
  font-size: 1rem;
  margin-bottom: 8px;
}

.merchant-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.merchant-block h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.merchant-services {
  list-style: none;
}

.merchant-services li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.merchant-services li:last-child { border-bottom: none; }

.merchant-services .price {
  color: var(--danger);
  font-weight: 700;
}

.merchant-info-list p {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.merchant-info-list strong {
  color: var(--primary-dark);
  margin-right: 8px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-item .review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.review-item .review-user { font-weight: 600; color: var(--primary-dark); }

.review-item .review-stars { color: #e6a800; }

.review-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.merchant-not-found {
  text-align: center;
  padding: 60px 20px;
}

.merchant-not-found h2 { color: var(--primary-dark); margin-bottom: 12px; }

@media (max-width: 768px) {
  .merchant-detail-grid { grid-template-columns: 1fr; }
}

/* 全部服务页 - 简化服务卡片（3×2 网格） */
.svc-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  box-shadow: var(--shadow);
}

.svc-item-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.svc-item-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.svc-item-card .svc-item-shop {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.svc-item-card .svc-price {
  margin-bottom: 18px;
}

.svc-item-card .btn {
  margin-top: auto;
  width: 100%;
  max-width: 200px;
}

.svc-item-card .badge-merchant {
  margin-top: 12px;
}

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

@media (max-width: 900px) {
  .card-grid.cols-3x2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid.cols-3x2 { grid-template-columns: 1fr; }
}

/* ========== 兽医卡片 ========== */
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow);
}

.doc-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.doc-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.doc-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.doc-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

/* 首页 - 展开更多兽医（网格卡片，参考 .doc-card） */
.doc-expand-panel {
  display: none;
  margin-top: 24px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-expand-panel.is-open {
  display: block;
}

.doc-more-grid {
  align-items: stretch;
}

.doc-more-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
}

.doc-more-card:hover,
.doc-more-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 125, 160, 0.16);
}

/* 小屏：横向滚动浏览更多兽医 */
@media (max-width: 768px) {
  .doc-expand-panel {
    padding: 16px;
    overflow: hidden;
  }

  .doc-more-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .doc-more-grid .doc-more-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

/* ========== 盈利卡片 ========== */
.rev-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.rev-card .ico { font-size: 2.4rem; margin-bottom: 10px; }

.rev-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.rev-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 8px 0 12px;
}

.rev-card > p:last-child {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

/* ========== 资讯卡片 ========== */
.art-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.art-img {
  height: 140px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), #b8dce8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.art-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.art-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.art-body > p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 12px;
}

.art-rev {
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 12px;
  margin-bottom: 14px;
  border-top: 1px dashed var(--border);
}

.art-body .btn { align-self: flex-start; }

/* ========== 页头（内页） ========== */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
  border-bottom: 4px solid var(--primary-dark);
}

.page-hero h1 { font-size: 1.6rem; font-weight: 700; }
.page-hero p { opacity: 0.9; margin-top: 8px; font-size: 0.95rem; }

/* ========== 表单页 ========== */
.auth-wrap {
  padding: 48px 0 64px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card .panel { padding: 32px; }

.auth-card h2 {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
}

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.captcha-row input { flex: 1; }

.captcha-box {
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  user-select: none;
}

.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chk input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.form-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ========== 筛选栏 ========== */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: var(--gap);
}

.filter-bar .form-group { margin-bottom: 0; }

/* ========== 入驻步骤 ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.step {
  text-align: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step p { font-size: 0.85rem; color: var(--muted); }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  background: var(--bg);
}

.upload-zone.ok {
  border-color: #28a745;
  background: #f0fff4;
  color: #28a745;
}

/* ========== 法律 / 商业 ========== */
.legal-box,
.biz-box {
  max-width: 880px;
  margin: 32px auto 48px;
}

.legal-box h2,
.biz-box h2 {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.legal-box h2:first-child,
.biz-box h2:first-child { margin-top: 0; }

.legal-box p,
.legal-box li,
.biz-box p,
.biz-box li { margin-bottom: 10px; }

.legal-box ul,
.biz-box ul { padding-left: 24px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

table.data th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.tip-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

/* ========== Footer ========== */
.site-footer {
  background: #1a3a4a;
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.88rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-grid ul { list-style: none; }

.footer-grid a { color: rgba(255, 255, 255, 0.88); }
.footer-grid a:hover { color: var(--white); }

.license-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.82rem;
}

.btn-complaint {
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-complaint:hover { background: rgba(255, 255, 255, 0.1); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.icp { color: #8ecae6; }

/* ========== 弹窗 ========== */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-bg.show { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.modal-box h3 {
  color: var(--primary);
  margin-bottom: 14px;
  padding-right: 28px;
}

.modal-box p { margin-bottom: 8px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* 预约模态框 */
.booking-modal-box {
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
}

.booking-modal-box h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  padding-right: 36px;
}

.booking-merchant {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.booking-merchant:empty { display: none; }

.booking-form .form-group { margin-bottom: 16px; }

.booking-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
}

.booking-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
}

.booking-form-actions .btn { flex: 1; }

@media (max-width: 480px) {
  .booking-form .form-row-2 { grid-template-columns: 1fr; }
  .booking-modal-box { padding: 28px 20px 20px; }
}

.account-wrap { position: relative; }

.account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 50;
}

.account-menu.show { display: block; }

.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover { background: var(--primary-light); }

#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #1a3a4a;
  color: var(--white);
  border-radius: 8px;
  font-size: 0.92rem;
  z-index: 3000;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gap: 16px; }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a { text-align: center; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps { grid-template-columns: 1fr 1fr; }
  .qual-box { flex-direction: column; align-items: center; text-align: center; }
  .filter-bar { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.55rem; }
}
