/* ============================================
   壹品家政官网 · 品牌设计系统
   主色取自品牌 LOGO：玫瑰粉 #E8939F
   ============================================ */
:root {
  --pink: #E8939F;            /* 品牌主粉（LOGO 取色） */
  --pink-deep: #D87383;       /* 深粉：hover / 强调 */
  --pink-dark: #B95A6C;       /* 更深：标题点缀 */
  --pink-light: #F6DCE1;      /* 浅粉：标签底、分隔 */
  --pink-bg: #FBF2F4;         /* 页面浅粉底 */
  --pink-bg-2: #F9E9ED;       /* 区块浅粉底 */
  --cream: #FFF9F6;           /* 奶油白 */
  --ink: #3D2B30;             /* 主文字：暖深棕 */
  --ink-soft: #7A666B;        /* 次级文字 */
  --white: #FFFFFF;
  --gold: #E8B04B;            /* 点缀金（评分/徽章） */
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 40px rgba(216, 115, 131, .14);
  --shadow-hover: 0 18px 50px rgba(216, 115, 131, .24);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 246, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 115, 131, .12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow); }
.brand-name { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: 2px; color: var(--pink-dark); white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font); font-size: 11px; font-weight: 400; letter-spacing: 4px; color: var(--ink-soft); white-space: nowrap; }
.nav-links { display: flex; gap: 34px; font-size: 15.5px; }
.nav-links a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--pink-deep); border-bottom-color: var(--pink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-size: 15px; font-weight: 700; color: var(--pink-dark); white-space: nowrap; }
.nav-phone::before { content: "☎"; margin-right: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: none; transition: .25s; font-family: var(--font); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%); color: #fff; box-shadow: 0 8px 24px rgba(216,115,131,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--pink-dark); border: 1.5px solid var(--pink); }
.btn-ghost:hover { background: var(--pink-light); }
.btn-white { background: #fff; color: var(--pink-dark); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 22px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; background: linear-gradient(160deg, var(--cream) 0%, var(--pink-bg) 55%, var(--pink-bg-2) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-block; background: #fff; color: var(--pink-dark);
  border: 1px solid var(--pink-light); border-radius: 999px;
  padding: 7px 18px; font-size: 14px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.hero h1 { font-family: var(--font-serif); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.28; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--pink-deep); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--pink-light); z-index: -1; border-radius: 6px; }
.hero-sub { margin: 20px 0 32px; font-size: 17.5px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 46px; }
.hero-stats b { display: block; font-family: var(--font-serif); font-size: 32px; color: var(--pink-dark); }
.hero-stats span { font-size: 13.5px; color: var(--ink-soft); }
.hero-visual { position: relative; }
.hero-visual > img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; left: -26px; bottom: 30px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 16px 22px; display: flex; align-items: center; gap: 14px;
}
.hero-card .dot { width: 12px; height: 12px; border-radius: 50%; background: #7BC47F; box-shadow: 0 0 0 5px rgba(123,196,127,.18); }
.hero-card b { font-size: 15px; }
.hero-card span { display: block; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 通用区块 ---------- */
section.block { padding: 84px 0; }
.block-alt { background: var(--pink-bg); }
.sec-head { text-align: center; margin-bottom: 54px; }
.sec-kicker { display: inline-block; color: var(--pink-deep); font-size: 14px; letter-spacing: 6px; margin-bottom: 12px; }
.sec-head h2 { font-family: var(--font-serif); font-size: clamp(26px, 3.2vw, 36px); letter-spacing: 1px; }
.sec-head p { color: var(--ink-soft); margin-top: 12px; font-size: 16px; }

/* ---------- 服务卡片 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .3s; display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.svc-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 19px; margin-bottom: 4px; }
.svc-body .en { font-size: 12px; color: var(--pink-deep); letter-spacing: 2px; margin-bottom: 10px; }
.svc-body p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.svc-body .price { margin-top: 14px; font-size: 14px; color: var(--pink-dark); font-weight: 700; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-item {
  background: #fff; border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); transition: .3s; position: relative; overflow: hidden;
}
.adv-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adv-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--pink), var(--pink-light)); }
.adv-num { font-family: var(--font-serif); font-size: 40px; color: var(--pink-light); font-weight: 700; line-height: 1; }
.adv-item h3 { font-size: 18px; margin: 10px 0 8px; }
.adv-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 流程 ---------- */
.flow { display: flex; justify-content: space-between; gap: 8px; position: relative; }
.flow::before { content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--pink-light) 0 10px, transparent 10px 18px); }
.flow-step { text-align: center; flex: 1; position: relative; }
.flow-step .ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--pink-light); color: var(--pink-dark);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
  font-family: var(--font-serif); box-shadow: var(--shadow); position: relative; z-index: 1;
}
.flow-step h4 { font-size: 16.5px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--ink-soft); max-width: 15em; margin: 0 auto; }

/* ---------- 客户评价（自动滚动） ---------- */
.review-marquee {
  position: relative; overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.review-track { display: flex; width: max-content; animation: reviewScroll 80s linear infinite; }
.review-marquee:hover .review-track { animation-play-state: paused; }
.review-group { display: flex; gap: 24px; padding-right: 24px; }
.review-card {
  width: 340px; flex: 0 0 340px; background: #fff; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.review-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.review-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.review-card .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.review-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--pink-light); color: var(--pink-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-card .who b { font-size: 14.5px; }
.review-card .who span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.review-hint { text-align: center; color: var(--ink-soft); font-size: 12.5px; margin-top: 18px; }
@keyframes reviewScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; }
  .review-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- 阿姨卡片（团队页） ---------- */
.team-filter { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.chip {
  padding: 9px 24px; border-radius: 999px; border: 1.5px solid var(--pink-light);
  background: #fff; color: var(--ink-soft); font-size: 14.5px; cursor: pointer; transition: .25s;
}
.chip:hover { border-color: var(--pink); color: var(--pink-dark); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.aunt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.aunt-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 60px 20px; font-size: 15px; }
.aunt-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; }
.aunt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.aunt-card .photo { position: relative; aspect-ratio: 4/4.4; overflow: hidden; }
.aunt-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.aunt-card:hover .photo img { transform: scale(1.04); }
.aunt-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(232,147,159,.94); color: #fff;
  font-size: 13px; padding: 5px 14px; border-radius: 999px;
}
.aunt-body { padding: 20px 22px 24px; }
.aunt-body h3 { font-size: 18px; }
.aunt-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; }
.aunt-meta span { font-size: 12.5px; background: var(--pink-bg-2); color: var(--pink-dark); padding: 4px 12px; border-radius: 999px; }
.aunt-body p { font-size: 13.5px; color: var(--ink-soft); }
.aunt-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.aunt-foot .salary { font-size: 17px; font-weight: 700; color: var(--pink-dark); }
.aunt-foot .salary small { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

/* ---------- 表单 ---------- */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lead-info h2 { font-family: var(--font-serif); font-size: 30px; margin-bottom: 16px; }
.lead-info > p { color: var(--ink-soft); margin-bottom: 30px; }
.lead-contact { display: grid; gap: 18px; }
.lead-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.lead-item .ico { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--pink-bg-2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.lead-item b { font-size: 15.5px; }
.lead-item span { display: block; font-size: 13.5px; color: var(--ink-soft); }
.lead-item a { color: var(--pink-dark); font-weight: 700; }
.lead-form { background: #fff; border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--shadow-hover); }
.lead-form h3 { font-size: 20px; margin-bottom: 6px; }
.lead-form .sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-group label i { color: var(--pink-deep); font-style: normal; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #EED6DC; border-radius: 12px;
  font-size: 15px; font-family: var(--font); background: var(--cream); color: var(--ink);
  outline: none; transition: .25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(232,147,159,.14); }
.form-group textarea { resize: vertical; min-height: 88px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-success {
  display: none; text-align: center; padding: 46px 20px;
}
.form-success.show { display: block; }
.form-success .ok { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--pink-bg-2); color: var(--pink-dark); font-size: 30px; display: flex; align-items: center; justify-content: center; }
.form-success b { font-size: 19px; }
.form-success p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }

/* ---------- 二维码占位 ---------- */
.qr-box {
  width: 128px; height: 128px; border-radius: 14px; border: 2px dashed var(--pink);
  background: var(--pink-bg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pink-dark); font-size: 12px; text-align: center; gap: 6px; line-height: 1.5;
}

/* ---------- 阿姨列表分页 ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--pink-light); background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 14px; cursor: pointer; transition: all .18s ease;
}
.pager button:hover:not(:disabled):not(.active) { border-color: var(--pink); color: var(--pink-deep); }
.pager button.active { background: var(--pink); border-color: var(--pink); color: var(--white); font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 页脚 ---------- */
footer { background: #452C33; color: #E8D3D8; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.foot-brand img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; }
.foot-brand b { font-family: var(--font-serif); font-size: 19px; color: #fff; letter-spacing: 2px; }
.foot-brand p { font-size: 13.5px; margin-top: 12px; color: #C9A9B0; }
footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
footer li { font-size: 13.5px; margin-bottom: 10px; }
footer li a:hover { color: var(--pink-light); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 12.5px; color: #A98D94; text-align: center; }
.foot-bottom a { color: inherit; border-bottom: 1px solid rgba(169,141,148,.45); }
.foot-bottom a:hover { color: var(--pink-light); }

/* ---------- 悬浮留资条 ---------- */
.float-bar {
  position: fixed; right: 22px; bottom: 26px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: .25s; position: relative;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); }
.float-btn.phone { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); color: #fff; }
.float-btn.wechat { background: #fff; color: #2AAE67; border: 1.5px solid #D8EFE2; }
.float-btn.top { background: #fff; color: var(--pink-dark); border: 1.5px solid var(--pink-light); font-size: 18px; }
.float-pop {
  position: absolute; right: 70px; bottom: 0; width: 190px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 18px; display: none; font-size: 13.5px; color: var(--ink-soft); text-align: center;
}
.float-btn.has-pop:hover .float-pop { display: block; }
.float-pop b { color: var(--ink); font-size: 14.5px; display: block; margin-bottom: 8px; }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(61,43,48,.45); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%);
  padding: 40px 38px; position: relative; max-height: 90vh; overflow: auto;
}
.modal .close {
  position: absolute; top: 16px; right: 20px; border: none; background: none;
  font-size: 24px; color: var(--ink-soft); cursor: pointer;
}
.modal h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 4px; }
.modal .sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- 滚动动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- 汉堡菜单 ---------- */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  font-size: 26px; color: var(--pink-dark); cursor: pointer;
  border-radius: 12px; align-items: center; justify-content: center;
}
.nav-toggle:active { background: var(--pink-bg-2); }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--pink-light); box-shadow: var(--shadow); }
.mobile-menu.open { display: block; }
.mobile-menu > a {
  display: block; padding: 15px 26px; font-size: 16px;
  border-bottom: 1px solid var(--pink-bg);
}
.mobile-menu > a.active { color: var(--pink-deep); font-weight: 700; }
.mm-actions { display: flex; gap: 12px; padding: 16px 26px 20px; }
.mm-actions .btn { flex: 1; }

/* ---------- 响应式 ---------- */
html, body { overflow-x: hidden; }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .hero-grid, .lead, .foot-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .aunt-grid { grid-template-columns: 1fr 1fr; }
  .flow { flex-wrap: wrap; gap: 24px; }
  .flow::before { display: none; }
  .flow-step { flex: 1 1 40%; }
  .hero-visual { margin-top: 10px; }
  .hero-card { left: 10px; }
  .adv-grid[style] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .nav-phone { display: none; }
  .svc-grid, .adv-grid, .aunt-grid, .form-row { grid-template-columns: 1fr; }
  .adv-grid[style] { grid-template-columns: 1fr !important; }
  .hero { padding: 44px 0 60px; }
  .hero h1 { font-size: 29px; }
  .hero h1 em::after { height: 9px; }
  .hero-sub { font-size: 15.5px; margin: 16px 0 26px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 34px; }
  .hero-stats b { font-size: 26px; }
  .hero-visual > img { aspect-ratio: 4/4.3; }
  .hero-card { left: 8px; bottom: 12px; padding: 11px 15px; }
  section.block { padding: 58px 0; }
  .sec-head { margin-bottom: 36px; }
  .flow-step { flex: 1 1 100%; display: flex; text-align: left; gap: 14px; align-items: flex-start; }
  .flow-step .ico { margin: 0; flex: none; width: 50px; height: 50px; font-size: 19px; }
  .flow-step p { margin: 0; }
  .lead-form { padding: 26px 20px; }
  .lead-info h2 { font-size: 25px; }
  .adv-item { padding: 24px 20px; }
  .adv-num { font-size: 32px; }
  .review-card { width: 300px; flex-basis: 300px; }
  .aunt-foot { flex-wrap: wrap; gap: 10px; }
  .float-bar { right: 14px; bottom: 16px; gap: 10px; }
  .float-btn { width: 50px; height: 50px; font-size: 21px; }
  .float-pop { right: 62px; }
  .foot-grid { gap: 30px; }
  .brand-name { font-size: 18px; }
  .brand-name small { letter-spacing: 2px; }
  .brand img { width: 42px; height: 42px; }
  .modal { padding: 30px 22px; }
}
@media (max-width: 360px) {
  .nav-cta .btn { padding: 9px 16px; font-size: 13.5px; }
}
