/* 阿姨好管家 — 品牌色：深棕 + 暖金 + 奶油底 */
:root {
  --brown-900: #2a180c;
  --brown-800: #3d2414;
  --brown-700: #4b2c11;
  --brown-600: #6b4423;
  --gold-500: #e8c44a;
  --gold-400: #f5d76e;
  --gold-300: #f8e9a8;
  --gold-200: #fdf3d4;
  --cream: #faf6ef;
  --cream-dark: #f0e8d8;
  --white: #ffffff;
  --text: #2a1a10;
  --text-muted: #6b5a4a;
  --shadow: 0 12px 40px rgba(43, 24, 12, 0.12);
  --shadow-sm: 0 4px 16px rgba(43, 24, 12, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brown-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-500);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold-400);
  color: var(--brown-900);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 44, 17, 0.08);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--brown-700);
  color: var(--gold-300) !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--brown-800);
  color: var(--gold-200) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-700);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--brown-900);
  box-shadow: 0 8px 24px rgba(232, 196, 74, 0.45);
}

.btn-primary:hover {
  color: var(--brown-900);
  box-shadow: 0 12px 32px rgba(232, 196, 74, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.btn-outline:hover {
  background: rgba(248, 233, 168, 0.12);
  color: var(--gold-200);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 0;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--brown-800);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(245, 215, 110, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(107, 68, 35, 0.4), transparent),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  flex: 1;
  padding-bottom: 4rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(245, 215, 110, 0.35);
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--gold-200);
  margin-bottom: 1.25rem;
}

.hero h1 span {
  display: block;
  font-size: 0.72em;
  color: var(--gold-300);
  margin-top: 0.25rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(253, 243, 212, 0.85);
  max-width: 32em;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 233, 168, 0.2);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gold-400);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(253, 243, 212, 0.65);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  padding: 2rem;
  background: rgba(61, 36, 20, 0.6);
  border: 1px solid rgba(248, 233, 168, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-mascot {
  width: min(280px, 70vw);
  border-radius: var(--radius);
}

.hero-badge {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--gold-400);
  color: var(--brown-900);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-wave {
  line-height: 0;
  margin-top: auto;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* Trust bar */
.trust-bar {
  background: var(--cream);
  padding: 2rem 0;
  margin-top: -1px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brown-600);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  color: var(--brown-800);
  margin-bottom: 0.75rem;
}

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

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-200);
  color: var(--brown-700);
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--brown-800);
}

.service-card > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--brown-600);
  padding: 0.25rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.service-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: bold;
}

.service-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Advantages */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.advantage-card {
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  transition: background 0.3s;
}

.advantage-card:hover {
  background: var(--gold-200);
}

.advantage-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.advantage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--brown-800);
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  counter-reset: step;
}

.process-steps li {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  right: -0.5rem;
  width: calc(100% - 3rem);
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--cream-dark));
  transform: translateX(50%);
  z-index: 0;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--brown-700);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.process-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--brown-800);
}

.process-steps p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Pricing */
.section-pricing {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.pricing-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}

.pricing-table th {
  background: var(--brown-800);
  color: var(--gold-300);
  font-weight: 600;
}

.pricing-table th:first-child {
  border-radius: 12px 0 0 0;
}

.pricing-table th:last-child {
  border-radius: 0 12px 0 0;
}

.pricing-table tbody tr:hover {
  background: var(--gold-200);
}

.pricing-table strong {
  color: var(--brown-700);
  font-size: 1.1rem;
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Testimonials */
.section-testimonials {
  background: var(--brown-800);
  color: var(--gold-200);
}

.section-testimonials .section-tag {
  color: var(--gold-400);
}

.section-testimonials h2 {
  color: var(--gold-200);
}

.section-testimonials .section-header p {
  color: rgba(253, 243, 212, 0.7);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  padding: 1.75rem;
  background: rgba(61, 36, 20, 0.5);
  border: 1px solid rgba(248, 233, 168, 0.15);
  border-radius: var(--radius);
  margin: 0;
}

.testimonial p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial footer {
  font-size: 0.85rem;
  color: var(--gold-400);
}

/* Booking */
.section-booking {
  background: var(--white);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.booking-info h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--brown-800);
  margin: 0.5rem 0 1rem;
}

.booking-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.booking-contact {
  list-style: none;
}

.booking-contact li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.booking-contact strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.booking-contact a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown-700);
}

.booking-form {
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--brown-800);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(232, 196, 74, 0.25);
}

.form-row input:invalid:not(:placeholder-shown),
.form-row select:invalid:not(:placeholder-shown) {
  border-color: #c45c4a;
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-hint.success {
  color: #2d6a4f;
}

.form-hint.error {
  color: #c45c4a;
}

/* Footer */
.site-footer {
  background: var(--brown-900);
  color: rgba(253, 243, 212, 0.75);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  margin-bottom: 1rem;
  border-radius: 12px;
}

.footer-brand strong {
  color: var(--gold-300);
}

.footer-links h4 {
  font-size: 0.9rem;
  color: var(--gold-400);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links a,
.footer-links span {
  display: block;
  font-size: 0.9rem;
  color: rgba(253, 243, 212, 0.65);
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(248, 233, 168, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown-700);
  color: var(--gold-300);
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 90;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--brown-800);
  color: var(--gold-200);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps li:not(:last-child)::after {
    display: none;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0.35s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .service-card:hover {
    transform: none;
  }
}
