/* === 全局变量 === */
:root {
  --primary: #2c5282;
  --primary-dark: #1e3a5f;
  --primary-light: #3182ce;
  --bg: #f5f7fa;
  --bg-section: #f7fafc;
  --text: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; margin: 0; background: transparent; box-shadow: none; min-height: 100vh; }

/* === Header（浮在 hero 上方） === */
.site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--white);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.site-header.scrolled .logo,
.site-header.scrolled nav a { color: var(--primary-dark); }
.site-header.scrolled nav a.active { border-bottom-color: var(--primary); }
.site-header.scrolled .menu-toggle { color: var(--primary-dark); }
.site-header .logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
}
.site-header .logo small { font-size: 11px; opacity: .8; font-weight: normal; display: block; letter-spacing: 0; }
.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-header nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a.active { opacity: 1; border-bottom: 2px solid var(--white); padding-bottom: 2px; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--white); font-size: 24px; cursor: pointer; padding: 0 6px; }

/* === AuPair.com 官方合作伙伴徽章（紧贴「功夫侃侃」右侧） === */
.header-left { display: flex; align-items: flex-start; gap: 7px; }
.site-header .logo { position: relative; flex-shrink: 0; margin-bottom: 16px; }
.site-header .logo small { position: absolute; left: 0; top: 100%; margin-top: 0; display: block; white-space: nowrap; }
.partner-badge { display: flex; align-items: center; gap: 5px; margin-top: 11px; flex-shrink: 0; }
.partner-badge img { height: 17px; width: auto; display: block; }
.partner-badge span { font-size: 11px; color: var(--white); opacity: .9; letter-spacing: .5px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.site-header.scrolled .partner-badge span { color: var(--primary-dark); opacity: .95; text-shadow: none; }

/* === Hero（团队背景 + slogan 叠加） === */
.hero {
  position: relative;
  min-height: 340px;
  background: linear-gradient(90deg, rgba(10, 26, 46, 0.30) 0%, rgba(15, 37, 64, 0.50) 50%, rgba(30, 58, 95, 0.65) 100%),
              url('../images/hero-bg.jpg') center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 100px 40px 50px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.40) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; }
.hero h1 {
  font-size: 37px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 18px 0 0;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hero-divider {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85) 50%, transparent);
  margin: 22px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(255,255,255,0.5);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 82, 130, 0.35);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-outline-blue {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-blue:hover {
  background: var(--primary);
  color: var(--white);
}

/* === Sections === */
.section { padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
.section.bg-alt { background: var(--bg-section); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--text); margin-bottom: 12px; }
.section-title .line { width: 60px; height: 3px; background: var(--primary); margin: 0 auto; }
.section-title p { color: var(--text-muted); margin-top: 12px; font-size: 14px; }
.section-title .small { font-size: 15px; }

/* === Pain Points === */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.pain-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pain-icon { font-size: 32px; flex-shrink: 0; width: 50px; height: 50px; background: var(--bg-section); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pain-card h3 { color: var(--primary); font-size: 17px; margin-bottom: 8px; }
.pain-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* === Product Architecture === */
.product-arch { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.package-card {
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.package-card.primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.package-card.primary::before {
  content: '推荐';
  position: absolute;
  top: 24px;
  right: -32px;
  background: #f6ad55;
  color: var(--white);
  padding: 4px 40px;
  transform: rotate(35deg);
  font-size: 12px;
  font-weight: 500;
}
.package-card.secondary {
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--text);
}
.package-card h3 { font-size: 22px; margin-bottom: 8px; }
.package-card .price-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  opacity: 1;
}
.package-card.primary .price-row { border-top-color: rgba(255,255,255,.2); }
.package-card .price-label { font-size: 13px; opacity: .8; }
.package-card .price strong { font-size: 32px; font-weight: bold; display: block; margin-top: 4px; }
.package-card .price small { font-size: 13px; opacity: .7; }
.package-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.package-card li { padding: 8px 0 8px 24px; position: relative; font-size: 14px; }
.package-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
}
.package-card.primary li::before { color: #f6ad55; }
.package-card.secondary li::before { color: var(--primary); }

/* === Service Detail === */
.service-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.service-detail.premium { border-left-color: #f6ad55; background: linear-gradient(135deg, #fffaf0 0%, var(--white) 50%); }
.service-detail .label {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}
.service-detail.premium .label { background: #f6ad55; }
.service-detail h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 12px; }
.service-detail .summary { color: var(--text-light); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.service-detail ul { margin: 12px 0 12px 20px; color: var(--text-light); }
.service-detail ul li { margin-bottom: 8px; line-height: 1.7; }
.service-detail .highlight {
  background: var(--bg-section);
  padding: 14px 18px;
  border-radius: 4px;
  margin-top: 18px;
  color: var(--text-light);
  font-size: 13px;
  font-style: italic;
}
.service-detail .highlight strong { color: var(--primary-dark); font-style: normal; }

/* === Advantages === */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-item {
  text-align: center;
  padding: 30px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.adv-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-icon { font-size: 38px; margin-bottom: 12px; }
.adv-item h4 { font-size: 16px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.adv-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* === Process Timeline === */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-step {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.process-step .num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 10px;
}
.process-step h4 { color: var(--primary-dark); font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.process-step p { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

/* === Au Pair Cards === */
.aupair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aupair-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.aupair-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  cursor: pointer;
}
.aupair-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.aupair-card .photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e8efe4 0%, #c8d8be 100%);
  position: relative;
  overflow: hidden;
}
.aupair-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}
.aupair-card .photo img.loaded { opacity: 1; }
.aupair-card .photo .flag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}
.aupair-card .info { padding: 14px 12px; }
.aupair-card .name { font-weight: 600; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.aupair-card .meta { color: var(--text-muted); font-size: 12px; }
.aupair-card .meta .pill {
  display: inline-block;
  background: var(--bg-section);
  border-radius: 10px;
  padding: 1px 8px;
  margin-right: 4px;
  font-size: 11px;
}

/* Featured Au Pair header */
.featured-cta { text-align: center; margin-top: 36px; }
.featured-section .section-title .small { font-size: 15px; max-width: 600px; margin: 12px auto 0; color: var(--text-muted); }

/* === Au Pairs Toolbar === */
.aupairs-toolbar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
}
.aupairs-toolbar label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.aupairs-toolbar select, .aupairs-toolbar input {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  background: var(--white);
}
.aupairs-toolbar select { min-width: 120px; }
.aupairs-toolbar input { flex: 1; min-width: 180px; }
.aupairs-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}
.aupairs-loading, .aupairs-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* === Au Pair Carousel (featured · 横向拖动) === */
.aupair-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                /* Firefox */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.aupair-carousel::-webkit-scrollbar { display: none; }
.aupair-carousel.dragging { cursor: grabbing; scroll-behavior: auto; }
.aupair-carousel .aupair-card {
  flex: 0 0 220px;
  width: 220px;
}
.aupair-carousel .aupair-card .photo { aspect-ratio: 1 / 1; }

/* === Au Pair Pager (翻页) === */
.aupair-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.aupair-pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.15s;
}
.aupair-pager button:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}
.aupair-pager button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.aupair-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.aupair-pager .ellipsis { color: var(--text-muted); padding: 0 4px; }
.aupair-pager .page-info {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* === Au Pair Responsive (mobile 适配) === */
@media (max-width: 768px) {
  .aupair-carousel .aupair-card { flex: 0 0 170px; width: 170px; }
  .aupair-pager .page-info { margin-left: 0; width: 100%; text-align: center; margin-top: 8px; }
}

/* === Contact Section === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info h3 { color: var(--primary); font-size: 20px; margin-bottom: 22px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(44, 82, 130, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-item strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; font-weight: 600; }
.contact-item p { color: var(--text-muted); font-size: 13px; }
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}
.contact-cta h3 { font-size: 28px; margin-bottom: 14px; font-weight: 700; }
.contact-cta p { opacity: 0.95; line-height: 1.8; font-size: 16px; max-width: 720px; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: var(--shadow-lg); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--text-light); line-height: 1.8; }

/* === About === */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 26, 46, 0.75) 0%, rgba(15, 37, 64, 0.55) 50%, rgba(30, 58, 95, 0.45) 100%),
              url('../images/hero-bg.jpg') center 40% / cover no-repeat;
  color: var(--white);
  padding: 100px 40px 60px;
  text-align: center;
  overflow: hidden;
}
.about-hero h1 { font-size: 36px; margin-bottom: 12px; position: relative; z-index: 2; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.about-hero p { opacity: 0.95; max-width: 600px; margin: 0 auto; position: relative; z-index: 2; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* === Footer === */
.site-footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 30px 40px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer a { color: #cbd5e0; }
.site-footer .links { margin-bottom: 10px; }
.site-footer .links a { margin: 0 10px; }

/* === Utility === */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .aupair-grid, .aupair-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px 20px;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    gap: 16px;
    align-items: flex-start;
  }
  .site-header nav.open { display: flex; }
  .menu-toggle { display: block; }

  .hero { padding: 80px 16px 36px; min-height: 240px; }
  .hero h1 { font-size: 22px; letter-spacing: 0; line-height: 1.4; }
  .hero-subtitle { font-size: 12px; letter-spacing: 0; margin-top: 12px; }
  .hero-divider { width: 60px; height: 2px; margin: 12px auto 0; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; }

  .section { padding: 40px 20px; }

  .pain-grid,
  .product-arch,
  .adv-grid,
  .aupair-grid,
  .aupair-grid.cols-3,
  .process-grid,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }

  .aupairs-toolbar { padding: 14px 16px; }
  .aupairs-count { margin-left: 0; width: 100%; }

  .process-step { padding: 18px 12px; }

  .site-footer { padding: 24px 20px; }
}

/* === 服务选购卡片（首页） === */
.service-cart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; grid-auto-rows: 1fr; }
.service-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.service-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(44, 82, 130, 0.15);
}
.service-card.selected::before {
  content: '✓';
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.3);
}
.service-card .num-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
}
.service-card.selected .num-tag { background: var(--primary-dark); }
.service-card h3 { color: var(--primary-dark); font-size: 18px; margin-bottom: 8px; }
.service-card .summary { color: var(--text-light); font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 14px; }
.service-card li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 13px;
  color: var(--text-light);
}
.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}
.service-card .price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.service-card .price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}
.service-card .price.free { color: #38a169; font-size: 18px; }
.service-card .price small { font-size: 12px; color: var(--text-muted); font-weight: normal; display: block; }
.service-card .card-badges {
  position: absolute;
  top: 28px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-card .refund-badge {
  height: 26px;
  line-height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #2f855a;
  background: rgba(56, 161, 105, 0.1);
  border: 1px solid rgba(56, 161, 105, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}
.service-card .popular-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.45);
  flex-shrink: 0;
}
.service-card .popular-badge svg { width: 15px; height: 15px; display: block; }
.service-card .checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  background: var(--white);
  transition: all 0.2s;
}
.service-card.selected .checkbox { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* === 购物车悬浮 === */
.cart-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cart-summary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cart-summary .label { font-size: 13px; opacity: 0.85; }
.cart-summary .count { font-size: 16px; font-weight: 600; }
.cart-summary .total { font-size: 26px; font-weight: bold; }
.cart-actions { display: flex; gap: 12px; }
.cart-actions .btn { padding: 10px 24px; font-size: 14px; }
.cart-clear {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
}
.cart-clear:hover { background: rgba(255,255,255,.15); }

/* === 提交表单弹窗 === */
.submit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.submit-modal.open { display: flex; }
.submit-modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.submit-modal-content h3 { color: var(--primary-dark); margin-bottom: 16px; font-size: 22px; }
.submit-modal-content .selected-list {
  background: var(--bg-section);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.submit-modal-content .selected-list div { padding: 4px 0; }
.submit-modal-content .total-row {
  font-weight: bold;
  color: var(--primary);
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
}
.submit-modal-content label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 12px;
}
.submit-modal-content input, .submit-modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.submit-modal-content input:focus, .submit-modal-content textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.submit-modal-content textarea { resize: vertical; min-height: 80px; }
.submit-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.submit-modal-actions .btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.submit-modal-actions .btn-submit {
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
}
.submit-modal-actions .btn-submit:hover { background: var(--primary-dark); }

@media (max-width: 1024px) {
  .service-cart { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .service-cart { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cart-bar { padding: 12px 16px; flex-direction: column; align-items: stretch; }
  .cart-summary { justify-content: space-between; }
  .cart-actions { width: 100%; }
  .cart-actions .btn { flex: 1; }
  .cart-summary .total { font-size: 20px; }
}

/* === 品牌行小屏适配（logo + 官方合作伙伴保持紧贴一行） === */
@media (max-width: 480px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .header-left { gap: 5px; }
  .site-header .logo { font-size: 17px; }
  .site-header .logo small { font-size: 9px; }
  .partner-badge { margin-top: 10px; gap: 4px; }
  .partner-badge img { height: 14px; }
  .partner-badge span { font-size: 9px; letter-spacing: 0; }
}
