/* ==========================================
   智享家政服务 - 全局高级 UI 样式重构说明
   风格定义：轻奢、极其干净、精致圆角与大厂亲和力
   ========================================== */

:root {
  --bg-main: #f5f7fa;
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --accent-blue: #0071e3;
  --accent-hover: #0077ed;
  --card-bg: #ffffff;
  --border-color: rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 全局公共排版 */
.eyebrow {
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
}

/* 现代按钮基类 */
.button.primary {
  background: var(--accent-blue);
  color: #fff !important;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}
.button.primary.dark {
  background: #1d1d1f;
}
.button.primary.dark:hover {
  background: #333336;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   页面专属区块高级样式
   ========================================== */

/* 1. 首页首屏 Hero 区域 */
.hero {
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top, #fff 0%, var(--bg-main) 100%);
}
.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* 2. 现代卡片网格网格布局 (首页与服务页复用) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.service-card:hover img {
  transform: scale(1.03);
}
.service-card > div {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 3. 条幅式呼吁行动模块 (CTA Band) */
.cta-band {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin: 4rem auto;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cta-band div { max-width: 650px; }
.cta-band h2 { font-size: 2rem; }

/* 4. 地区标签样式 */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.areas span {
  background: var(--card-bg);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* 5. 报价表单与布局页面重构 */
.quote-layout {
  max-width: 1050px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.quote-intro {
  padding-right: 1rem;
}
.quote-intro h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}
.quote-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* 极简高级表单控件设计 */
.quote-form {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #d2d2d7;
  background: #fbfbfd;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-smooth);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.quote-form .checkbox {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}
.quote-form .checkbox input {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
}

/* 6. 高级高转化率微信联系卡片组件 */
.contact-panel-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}
.contact-row {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.contact-row strong {
  color: var(--text-main);
  display: inline-block;
  width: 90px;
}
.wechat-premium-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #f5f5f7;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  border: 1px solid rgba(0,0,0,0.02);
}
.wechat-premium-box img {
  width: 105px;
  height: 105px;
  border-radius: 6px;
  border: 1px solid #e2e2e7;
  background: #fff;
  padding: 4px;
}
.wechat-premium-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.25rem;
}
.wechat-id-tag {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.wechat-premium-info p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.wechat-qr-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.wechat-qr-trigger img {
  display: block;
}
.wechat-qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
}
.wechat-qr-modal.is-open {
  display: flex;
}
.wechat-qr-modal-card {
  width: min(92vw, 360px);
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  text-align: center;
}
.wechat-qr-modal-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}
.wechat-qr-modal-card p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.wechat-qr-close {
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

/* 专属的标题间距修饰（用于列表、内容长页） */
.section-heading {
  text-align: center;
  margin: 4rem auto 2rem auto;
  max-width: 700px;
}

/* 响应式断点断开处理 */
@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band { flex-direction: column; text-align: center; padding: 2rem; }
  .hero h1 { font-size: 2.2rem; }
}

/* ========== Header & Footer Layout ========== */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  min-height: 72px;
}
.brand-logo-img { border-radius: 6px; display: block; }
.brand small { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { color: var(--text-main); text-decoration: none; padding: 0.35rem 0.6rem; border-radius: 8px; font-weight: 600; }
.nav a[aria-current="page"] { background: rgba(0,113,227,0.1); color: var(--accent-blue); }
.nav a:hover { background: rgba(0,0,0,0.03); transform: translateY(-1px); }
.header-call { background: transparent; border: 1px solid transparent; color: var(--accent-blue); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 8px; font-weight: 600; }
.header-call:hover { background: rgba(0,113,227,0.06); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 2rem;
  margin-top: 5rem;
  background-color: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 240px; }
.footer-brand strong { font-size: 1.1rem; display: block; margin-bottom: 0.4rem; }
.footer-brand p { color: var(--text-muted); margin: 0; }
.footer-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-links a { color: #424245; text-decoration: none; font-size: 0.95rem; }

@media (max-width: 700px) {
  .site-header { padding: 1rem; }
  .nav { display: none; }
  .site-footer { padding: 2rem 1rem; }
}

/* 固定头部支持（页面可添加 .fixed-header） */
.fixed-header {
  position: fixed;
  inset: 0 auto auto 0;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
/* 页面内容顶部间距，避免固定头部遮挡（可按需覆盖） */
body { padding-top: 0; }
body.with-fixed-header { padding-top: 72px; }

/* Home-style centered header specifics */
.home-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; padding: 1.25rem 1rem; position: relative; min-height: 80px; }
.home-header .nav { margin-top: 0.6rem; gap: 1.25rem; }
.home-header .nav a { padding: 0.4rem 0.8rem; border-radius: 8px; }
.home-header .brand small { display: block; }

@media (min-width: 901px) {
  .home-header { max-width: 1100px; margin: 0 auto; }
  .home-header .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
  }
  .home-header .brand { z-index: 2; }
  .home-header .header-call { z-index: 2; }
}

@media (max-width: 900px) {
  /* mobile: stack header content vertically */
  .home-header { flex-direction: column; align-items: center; text-align: center; }
  .home-header .nav { margin-top: 0.6rem; }
}