:root {
  --ink: #13211f;
  --muted: #516460;
  --line: #dbe5df;
  --paper: #f7f8f5;
  --white: #ffffff;
  --green: #1f6b54;
  --green-dark: #124536;
  --wechat: #07c160;
  --wechat-dark: #06ad56;
  --mint: #dcefe6;
  --sun: #f3be4b;
  --rose: #e97861;
  --shadow-sm: 0 2px 8px rgba(19, 33, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 33, 31, 0.12);
  --shadow-lg: 0 16px 40px rgba(19, 33, 31, 0.18);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* A型 Hero 区域 (纯净清晰背景，无泛白遮罩) */
.a-hero {
  min-height: 72vh;
  background: url("../assets/housekeeping.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.a-hero .site-header {
  color: var(--ink);
}

.a-hero .nav {
  color: var(--green-dark);
  font-weight: 500;
}

.a-hero .nav a:hover {
  color: var(--green);
}

/* 顶部导航 */
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 7px;
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

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

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

/* 微信登录按钮 */
.wechat-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(7, 193, 96, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #078a44;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.wechat-login-btn:hover {
  background: #ffffff;
  border-color: var(--wechat);
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.2);
}

.wechat-login-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 用户已登录状态 */
.user-profile-widget {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.user-profile-widget.is-active {
  display: inline-flex;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-link {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  margin-left: 4px;
}

.logout-link:hover {
  color: var(--rose);
}

.header-cta, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.header-cta:hover, .primary-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: var(--mint);
}

/* Hero 介绍文本区 */
.hero-intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: end;
  padding: 48px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-intro h1 {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.15;
  font-weight: 800;
}

.hero-intro .lead {
  max-width: 700px;
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 信任背书条 */
.trust-strip {
  background: var(--green-dark);
  color: var(--white);
}

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

.trust-item {
  min-height: 128px;
  padding: 25px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* 通用 Section */
.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* 服务卡片 Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  background: #eaece8;
  overflow: hidden;
}

.service-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.service-card-body h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.price-tag {
  color: var(--rose);
  font-weight: 700;
  font-size: 18px;
}

.price-tag small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}

.service-card-body p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.book-btn {
  padding: 7px 16px;
  background: var(--mint);
  color: var(--green-dark);
  border: 1px solid #b6dec9;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.book-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* 合作网点展示 */
.stores-section {
  background: var(--white);
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.store-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.store-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.store-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 合作入驻模块 */
.partner-band {
  background: var(--mint);
}

.partner-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.partner-layout .lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

.steps {
  display: grid;
  border-top: 1px solid #afd3c1;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #afd3c1;
}

.step-number {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.step h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

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

/* 纯净页脚 (已移除测试控件与状态条) */
.site-footer {
  padding: 32px 0 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 模态框弹窗 (Modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 33, 31, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

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

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-active .modal-card {
  transform: translateY(0);
}

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

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}

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

.modal-body {
  padding: 24px;
}

/* 微信扫码卡片特殊样式 */
.wx-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 8px;
}

.wx-qr-frame {
  position: relative;
  width: 210px;
  height: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

.wx-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #078a44;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.wx-qr-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.wx-quick-auth {
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

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

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 107, 84, 0.12);
}

.form-tip {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}

.toast.success { background: #1b5e20; }
.toast.error { background: #b71c1c; }
.toast.info { background: var(--green-dark); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 响应式断点 */
@media (max-width: 800px) {
  .shell { width: min(100% - 32px, 640px); }
  .site-header { height: 64px; }
  .nav { display: none; }
  h1 { font-size: 42px; }
  .section { padding: 58px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .service-grid, .trust-items { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .a-hero { min-height: 440px; background-position: 62% center; }
  .hero-intro-inner { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 38px; }
  .intro-actions { justify-content: flex-start; }
  .partner-layout { grid-template-columns: 1fr; gap: 28px; }
}
