/* ==========================================================
   青嫂家政官网 · 样式表
   纯静态、零依赖；配色取自青嫂家政小程序与品牌物料
   ========================================================== */

:root {
  --brand: #C4632C;          /* 暖橙主色 */
  --brand-deep: #A34B20;     /* 深红 */
  --brand-soft: #FFF1E4;     /* 浅粉底 */
  --bg-soft: #FDF8F2;        /* 区块浅底 */
  --ink: #3B2F27;            /* 主文字 */
  --muted: #7C6857;          /* 次要文字 */
  --line: #F0E2D2;           /* 分隔线 */
  --white: #FFFFFF;
  --radius: 18px;
  --shadow-sm: 0 6px 24px rgba(90, 60, 40, .07);
  --shadow-lg: 0 24px 60px rgba(90, 60, 40, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, ul { margin-top: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(196, 99, 44, .42); outline-offset: 3px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(90, 60, 40, .08); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; padding: 6px; border-radius: 13px;
  background: var(--brand);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark.small { width: 34px; height: 34px; padding: 5px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; letter-spacing: .5px; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .2px; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: #5A483B; font-size: 15px; transition: color .2s ease; }
.nav a:hover, .nav a.is-active { color: var(--brand); }

.header-tel {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 9px 16px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  transition: background .2s ease, transform .2s ease;
}
.header-tel:hover { background: var(--brand-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 通用按钮 / 标题 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(196, 99, 44, .18); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 14px 28px rgba(196, 99, 44, .24); }
.btn-ghost { background: #fff; color: var(--brand); border-color: #EEC6A6; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }

.section-kicker { margin-bottom: 10px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 2.2px; }
.section-kicker.light { color: rgba(255, 255, 255, .78); }
h2 { margin-bottom: 14px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.5px; }
.section-head { margin-bottom: 40px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.85; color: #4B3B31; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 82px 0 92px;
  background: radial-gradient(900px 520px at 88% 18%, #FFE6CF 0%, rgba(255, 230, 207, 0) 70%),
              linear-gradient(180deg, #FFFCF7 0%, #FFFFFF 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.eyebrow { margin-bottom: 22px; color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .8px; }
h1 { margin-bottom: 22px; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.22; letter-spacing: -1.5px; }
h1 em { font-style: normal; color: var(--brand); }
.hero-lead { max-width: 520px; margin-bottom: 32px; font-size: 18px; line-height: 1.85; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li {
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: #6F5B4C; font-size: 13px;
}

.hero-visual { position: relative; justify-self: center; }
.phone {
  width: 272px; padding: 8px;
  background: #fff; border-radius: 40px;
  border: 1px solid #EBDDCC;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }
.phone-badge {
  position: absolute; right: -34px; bottom: 38px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--brand);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* ---------- 关于青嫂 ---------- */
.split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; }
.split p { color: #5E4C40; }
.split .belief {
  margin: 24px 0 0; padding-left: 18px;
  border-left: 3px solid var(--brand);
  color: var(--ink); font-weight: 600;
}
.quote-card {
  padding: 38px; border-radius: 24px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; box-shadow: 0 22px 50px rgba(163, 75, 32, .16);
}
/* 覆盖 .split p 的深色文字，保证红底白字对比度 */
.quote-card p { color: #fff; }
.quote-label { margin-bottom: 18px; font-size: 13px; letter-spacing: 2px; opacity: .82; }
.quote-main { margin-bottom: 22px; font-size: 20px; line-height: 1.75; font-weight: 600; }
.quote-sub { margin-bottom: 10px; font-size: 14px; line-height: 1.8; opacity: .88; }
.quote-slogan {
  margin: 26px 0 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
}

/* ---------- 业务范围 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; padding: 30px 28px 34px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: #EEC6A6; box-shadow: var(--shadow-sm); }
.num { display: block; margin-bottom: 14px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; }
.service-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.45; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.tag {
  display: inline-block; margin-top: 18px; padding: 4px 12px;
  border-radius: 999px; background: var(--brand-soft);
  color: var(--brand); font-size: 12px; font-weight: 600;
}

/* ---------- 服务项目价格 ---------- */
.price-list {
  overflow: hidden; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 30px; border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: var(--bg-soft); }
.price-row h3 { margin: 0 0 2px; font-size: 17px; }
.price-row p { margin: 0; color: var(--muted); font-size: 13px; }
.price { flex-shrink: 0; color: var(--brand); font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.price small { margin-left: 3px; font-size: 13px; font-weight: 500; }
.pricing-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.note { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- 小程序与截图 ---------- */
.miniapp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot {
  display: block; width: 100%; padding: 0; overflow: hidden; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.shot img { display: block; width: 100%; height: 250px; object-fit: cover; object-position: center top; }
.shot:nth-child(3) img, .shot:nth-child(4) img { height: 170px; object-position: center; }
.shot span { display: block; padding: 11px 14px; color: var(--muted); font-size: 13px; }
.gallery-hint { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 12px; text-align: right; }

.qr-card {
  padding: 28px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-align: center;
}
.qr-card h3 { margin-bottom: 18px; font-size: 18px; }
/* 品牌卡原图 1800×1080，按 0.475 倍放大定位，裁出右侧小程序码白卡区域 */
.qr-frame {
  position: relative; width: 190px; height: 190px; margin: 0 auto;
  overflow: hidden; border-radius: 14px; background: #fff;
}
.qr-frame img {
  display: block; width: 855px; max-width: none; height: auto;
  transform: translate(-622px, -133px);
}
.qr-tip { margin: 14px 0 20px; color: var(--brand); font-size: 14px; font-weight: 600; }
.miniapp-features { margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); text-align: left; }
.miniapp-features li { position: relative; padding: 4px 0 4px 18px; color: var(--muted); font-size: 13px; }
.miniapp-features li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.qr-card .btn { width: 100%; }

/* ---------- 常见问题 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 22px; box-shadow: var(--shadow-sm);
}
.faq-item[open] { border-color: rgba(196, 99, 44, .26); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 17px 38px 17px 0; font-size: 17px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: 18px; font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq-item p { margin: 0; padding: 0 0 20px; color: var(--muted); font-size: 15px; }
.faq-more { max-width: 860px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 14px; }
.faq-more a { color: var(--brand); font-weight: 600; }

/* ---------- 联系我们 ---------- */
.contact { padding: 72px 0; background: linear-gradient(130deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.contact h2 { margin-bottom: 12px; }
.contact-copy > p:not(.section-kicker) { margin-bottom: 6px; font-size: 17px; opacity: .92; }
.contact-copy .contact-slogan { margin-top: 18px; font-size: 14px; opacity: .78; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.contact-list span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 1px; opacity: .75; }
.contact-list a, .contact-list p, .contact-list address { margin: 0; font-size: 17px; font-weight: 600; font-style: normal; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.footer-slogan { margin-left: 8px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-nap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.footer-nap address { font-style: normal; }
.footer-nap a { color: var(--brand); font-weight: 600; }

/* ---------- 图片灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(42, 27, 18, .9);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox img { display: block; max-width: min(92vw, 720px); max-height: 82vh; margin: 0 auto; border-radius: 12px; background: #fff; }
.lightbox figcaption { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 14px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer; transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- 滚动出现动画（渐进增强） ----------
   默认内容可见：不执行 JS 的搜索引擎 / AI 抓取器也能读到完整正文。
   仅当 <html> 被脚本加上 .has-reveal 时才启用淡入动画。 */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: 0; }
  .header-tel { margin-left: auto; }
  .hero-inner, .split, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .miniapp-layout { grid-template-columns: 1fr; }
  .qr-card { max-width: 420px; margin-inline: auto; }
  .phone-badge { right: -12px; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, 100% - 32px); }
  .section { padding: 64px 0; }
  .header-inner { height: 66px; gap: 14px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 17px; }
  .brand-mark { width: 38px; height: 38px; padding: 5px; border-radius: 11px; }
  .brand-mark.small { width: 32px; height: 32px; padding: 4px; }
  .header-tel { padding: 8px 12px; font-size: 12px; }
  .header-tel svg { display: none; }
  .nav { top: 66px; }
  .hero { padding: 56px 0 72px; }
  h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-lead { font-size: 16px; }
  .phone { width: 236px; }
  .phone-badge { right: -6px; bottom: -10px; font-size: 12px; padding: 8px 12px; }
  .quote-card { padding: 28px; }
  .quote-main { font-size: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .price-row { padding: 16px 20px; }
  .price { font-size: 19px; }
  .pricing-footer { flex-direction: column; align-items: flex-start; }
  .gallery { gap: 12px; }
  .shot img { height: 200px; }
  .shot:nth-child(3) img, .shot:nth-child(4) img { height: 120px; }
  .shot span { padding: 8px 10px; font-size: 12px; }
  .contact { padding: 56px 0; }
  .contact-list { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-slogan { display: none; }
  .faq-item { padding: 0 16px; }
  .faq-item summary { font-size: 16px; padding: 15px 34px 15px 0; }
  .faq-item p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
