/* ============================================================
   暖熹家政官网 · 全局样式
   风格：高级莫兰迪暖调（燕麦米底 / 陶土橙 / 奶咖深棕）
   ============================================================ */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EDE3;
  --card: #FFFFFF;
  --ink: #4A3F35;
  --muted: #8A7A6D;
  --accent: #BC7A5C;
  --accent-dark: #A56A4E;
  --accent-soft: #F3E9E0;
  --border: #E8E0D5;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(188, 122, 92, 0.05) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.4; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
svg { vertical-align: middle; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-about {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(250, 247, 242, 0.82), rgba(250, 247, 242, 0.82)), url("../assets/img/bg-home.jpg");
  background-size: cover;
  background-position: center;
}
.section-title { text-align: center; font-size: 28px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; }
.todo {
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0 6px;
  border-radius: 3px;
  font-size: 0.92em;
}

/* ---------- 页头（由 site.js 注入） ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 32px; }
.nav a {
  color: var(--muted);
  font-size: 15px;
  padding: 21px 0 19px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--sans);
}

/* ---------- 首页轮播 Hero ---------- */
.hero-carousel { position: relative; overflow: hidden; }
.carousel-track { position: relative; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.carousel-slide.is-active { position: relative; opacity: 1; }
.carousel-slide img { width: 100%; height: auto; display: block; }
.carousel-overlay { position: absolute; inset: 0; background: rgba(62, 54, 46, 0.38); }
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 72px;
}
.hero-content h1 {
  color: #FAF7F2;
  font-size: 42px;
  letter-spacing: 3px;
  text-shadow: 0 1px 3px rgba(62, 54, 46, 0.45);
}
.hero-content .sub {
  color: #F3EDE3;
  font-size: 18px;
  margin: 18px 0 40px;
  text-shadow: 0 1px 2px rgba(62, 54, 46, 0.45);
}
.hero-content .btn-ghost { color: #FAF7F2; border-color: rgba(250, 247, 242, 0.85); }
.hero-content .btn-ghost:hover { background: rgba(250, 247, 242, 0.15); color: #FAF7F2; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.6);
  background: rgba(62, 54, 46, 0.35);
  color: #FAF7F2;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.carousel-arrow:hover { background: rgba(62, 54, 46, 0.6); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.hero-carousel.has-js .carousel-arrow { display: block; }
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 3;
  display: none;
  justify-content: center;
  gap: 10px;
}
.hero-carousel.has-js .carousel-dots { display: flex; }
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: #FAF7F2; }

.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 4px;
  font-size: 15px;
  border: 1px solid var(--accent);
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- 卡片 ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  flex: 1 1 300px;
  max-width: 348px;
}
.card .icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.cards-more { text-align: center; margin-top: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-4 .card { flex: none; max-width: none; }

.about-brief { max-width: 760px; margin: 0 auto; }
.about-brief p { margin-bottom: 16px; }
.about-brief p:last-child { margin-bottom: 0; }

/* ---------- 服务详情页 ---------- */
.service-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 24px;
}
.service-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.service-head .icon { width: 40px; height: 40px; color: var(--accent); flex: none; }
.service-head h2 { font-size: 24px; }
.service-tag { color: var(--muted); font-size: 14.5px; }
.service-list { list-style: none; }
.service-list li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.flow-item {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 12px;
}
.flow-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  margin-bottom: 12px;
}
.flow-item h3 { font-size: 16px; margin-bottom: 6px; }
.flow-item p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- 子页 Hero ---------- */
.page-hero {
  padding: 64px 0;
  text-align: center;
  background: var(--bg-alt) url("../assets/img/bg-inner.jpg") right center / auto 100% no-repeat;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 32px; letter-spacing: 2px; }
.page-hero p { color: var(--muted); margin-top: 8px; }

/* ---------- 联系条（放在 .section 之后定义以覆盖其内边距） ---------- */
.contact-strip { padding: 52px 0; background: var(--accent-soft); }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-inner h2 { font-size: 26px; margin-bottom: 6px; }
.contact-inner .lead { color: var(--muted); }
.contact-info p { margin-bottom: 2px; }
.contact-info .phone { font-size: 22px; font-family: var(--serif); color: var(--accent-dark); }

/* ---------- 协议/政策 ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.legal h1 { font-size: 30px; text-align: center; margin-bottom: 8px; }
.legal .update-date { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; }
.legal p { margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }

/* ---------- 页脚（由 site.js 注入） ---------- */
.site-footer { background: #3E362E; color: #CDBFB2; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  color: #FAF7F2;
  margin-bottom: 14px;
}
.footer-brand svg { width: 28px; height: 28px; }
.footer-col p { font-size: 14px; line-height: 1.9; }
.footer-col h4 { color: #FAF7F2; font-size: 16px; margin-bottom: 14px; }
.footer-col a { color: #CDBFB2; display: block; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}
.footer-bottom a { color: #CDBFB2; }
.footer-bottom .illus-note { opacity: 0.75; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-content h1 { font-size: 28px; }
  .hero-content .sub { font-size: 15px; margin: 12px 0 28px; }
  .hero-content { padding: 0 56px; }
  .hero-carousel .carousel-arrow { display: none; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
  }
  .nav a { padding: 12px 0; border-bottom: none; }
  .site-header.nav-open .nav { display: flex; }
  .nav-toggle { display: block; }
  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-block { padding: 28px 22px; }
}
