/* =========================================================
   略略宠物医院 · 网站练习
   设计基调：淡黄色 / 暖白 / 圆角 / 大留白，温暖、干净、可信
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 颜色 */
  --cream-50: #FFFCF5;
  --cream-100: #FEF8EA;
  --cream-200: #FBF0D2;
  --cream-300: #F7E5B8;
  --amber-300: #F4CF86;
  --amber-400: #EFBE63;
  --amber-500: #E2A63C;
  --amber-600: #B87F22;
  --amber-700: #8E6116;

  --ink: #332E27;
  --ink-soft: #5C5446;
  --muted: #7A7264;
  --white: #ffffff;
  --line: rgba(94, 76, 40, 0.12);
  --line-strong: rgba(94, 76, 40, 0.2);

  /* 字号 */
  --fs-h1: clamp(2.1rem, 4.4vw, 3.55rem);
  --fs-h2: clamp(1.6rem, 2.7vw, 2.25rem);
  --fs-h3: 1.15rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;

  /* 其他 */
  --wrap: 1160px;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 12px rgba(140, 110, 40, 0.06);
  --shadow-md: 0 22px 48px -24px rgba(140, 110, 40, 0.32);
  --shadow-lg: 0 34px 70px -34px rgba(140, 110, 40, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { flex: none; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--amber-300); color: var(--ink); }

/* ---------- 3. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--cream { background: var(--cream-100); }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--amber-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-500);
}

h2.section-title {
  font-size: var(--fs-h2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, #F2C468, #E2A63C);
  color: #40300F;
  box-shadow: 0 14px 28px -14px rgba(200, 145, 40, 0.75);
}
.btn--primary:hover { box-shadow: 0 20px 34px -16px rgba(200, 145, 40, 0.85); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--amber-500);
  background: #fff;
}

.btn--dark {
  background: var(--ink);
  color: #FFF8E9;
}
.btn--dark:hover { background: #443c31; }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.875rem; }

/* ---------- 5. 顶部信息条 + 导航 ---------- */
.topbar {
  background: #F8E9C4;
  color: #6B4E12;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(120, 90, 30, 0.08);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .icon { width: 14px; height: 14px; opacity: 0.8; }
.topbar-note { opacity: 0.75; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 252, 245, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(120, 90, 30, 0.5);
  background: rgba(255, 252, 245, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #FBE7B4, #F0C063);
  color: #7A5312;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 1.06rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(240, 192, 99, 0.16); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber-500);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, #FBE9BD 0%, rgba(251, 233, 189, 0) 62%),
    radial-gradient(680px 480px at 2% 12%, #FFF7E2 0%, rgba(255, 247, 226, 0) 60%),
    var(--cream-50);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23E2A63C' fill-opacity='0.055'%3E%3Cellipse cx='42' cy='34' rx='7' ry='9'/%3E%3Cellipse cx='60' cy='28' rx='7' ry='9'/%3E%3Cellipse cx='78' cy='34' rx='7' ry='9'/%3E%3Cellipse cx='28' cy='48' rx='7' ry='9'/%3E%3Cpath d='M60 44c10 0 18 8 18 17 0 8-7 13-18 13s-18-5-18-13c0-9 8-17 18-17z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7FA46B;
  box-shadow: 0 0 0 4px rgba(127, 164, 107, 0.16);
}

.hero h1 {
  margin-top: 22px;
  font-size: var(--fs-h1);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-600);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: linear-gradient(90deg, rgba(244, 207, 134, 0.75), rgba(244, 207, 134, 0.25));
  border-radius: 4px;
  z-index: -1;
}

.hero-lead {
  margin-top: 20px;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 46px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--line-strong);
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.stat-num span { font-size: 0.95rem; font-weight: 600; color: var(--amber-700); margin-left: 2px; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Hero 视觉区 */
.hero-visual { position: relative; }
.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1.03;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: linear-gradient(160deg, #FDF2D5, #F6DFA6);
}
.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-chips {
  position: absolute;
  left: -14px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.chip-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
}
.chip-card:nth-child(2) { animation-delay: -2s; margin-left: 18px; }
.chip-card .icon { width: 18px; height: 18px; color: var(--amber-600); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- 7. 图片占位 ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #FDF4DC 0%, #F9E8BE 48%, #FCEFD2 100%);
  color: var(--amber-700);
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
  z-index: -1;
}
.ph::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -80px;
  border-radius: 50%;
  border: 22px solid rgba(226, 166, 60, 0.14);
  z-index: -1;
}
.ph-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
}
.ph-inner .icon { width: 26px; height: 26px; opacity: 0.65; }
.ph-title { font-size: 0.9rem; font-weight: 600; }
.ph-hint { font-size: 0.72rem; color: rgba(142, 97, 22, 0.88); letter-spacing: 0.02em; }

.ar-square { aspect-ratio: 1 / 1; }
.ar-4x3 { aspect-ratio: 4 / 3; }
.ar-16x10 { aspect-ratio: 16 / 10; }
.ar-3x4 { aspect-ratio: 3 / 4; }
.ar-wide { aspect-ratio: 21 / 9; }

/* ---------- 8. 卡片通用 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 166, 60, 0.35);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #FDF0CE, #F8E3AE);
  color: var(--amber-700);
  flex: none;
}
.icon-badge .icon { width: 24px; height: 24px; }

/* ---------- 9. 诊疗服务 ---------- */
.service-grid,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card { padding: 28px 26px 26px; }
.service-card h3 { margin-top: 18px; font-size: 1.06rem; }
.service-card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* ---------- 10. 医疗团队 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
}
.team-card { overflow: hidden; display: flex; flex-direction: column; }
.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 0;
}
.team-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.team-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 700;
}
.team-name .role {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--amber-700);
  background: var(--cream-200);
  padding: 2px 9px;
  border-radius: 999px;
}
.team-meta { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.team-desc { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---------- 11. 设备 ---------- */
.equip-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.equip-list { display: grid; gap: 14px; }
.equip-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.equip-item:hover { border-color: rgba(226, 166, 60, 0.4); transform: translateX(3px); }
.equip-item .icon-badge { width: 44px; height: 44px; border-radius: 13px; }
.equip-item .icon-badge .icon { width: 20px; height: 20px; }
.equip-item h3 { font-size: 0.98rem; }
.equip-item p { margin-top: 4px; font-size: 0.85rem; color: var(--muted); }

/* ---------- 12. 异宠专区 ---------- */
.exotic {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(700px 420px at 92% 10%, #F7DFA4 0%, rgba(247, 223, 164, 0) 60%),
    linear-gradient(140deg, #FFF8E6, #FDEFCB);
  border: 1px solid rgba(226, 166, 60, 0.22);
}
.exotic-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}
.exotic h2 { font-size: var(--fs-h2); line-height: 1.35; }
.exotic p { margin-top: 14px; color: var(--ink-soft); max-width: 30em; }
.animal-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.animal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 166, 60, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #6B4E12;
}
.animal-chip .icon { width: 16px; height: 16px; color: var(--amber-600); }
.exotic-note {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 3px solid var(--amber-500);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 12px 12px 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* 异宠专区图片组 */
.exotic-gallery { display: grid; gap: 14px; }
.exotic-gallery figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  background: #EAF4FB;
}
.exotic-gallery img { display: block; width: 100%; height: auto; }

/* ---------- 13. 案例卡 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card { overflow: hidden; display: flex; flex-direction: column; }
.case-media { position: relative; }
.case-media .ph { border-radius: 0; }
.case-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #EAF4FB;
}
.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--amber-700);
  backdrop-filter: blur(6px);
}
.case-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.case-title { font-size: 1.02rem; font-weight: 700; }
.case-desc { margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--amber-700);
  background: none;
  border: 0;
  padding: 4px;
}
.link-more .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- 14. 就诊流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--amber-600);
}
.step h3 { margin-top: 8px; font-size: 1rem; }
.step p { margin-top: 6px; font-size: 0.84rem; color: var(--muted); }
.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }

/* ---------- 15. CTA 区块 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(600px 340px at 88% 0%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(130deg, #F7DFA2, #F0C063 55%, #E9B051);
  color: #3E2E0E;
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 32px;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; }
.cta-band p { margin-top: 12px; color: rgba(62, 46, 14, 0.78); max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { background: rgba(255, 255, 255, 0.55); border-color: rgba(62, 46, 14, 0.18); }
.cta-band .btn--dark { box-shadow: 0 18px 34px -18px rgba(62, 46, 14, 0.8); }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  background: #2F2A23;
  color: rgba(255, 248, 233, 0.72);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  margin-top: clamp(48px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand .brand-name { color: #FFF8E9; }
.footer-brand .brand-sub { color: rgba(255, 248, 233, 0.45); }
.footer-brand .brand-mark { box-shadow: none; }
.footer-desc { margin-top: 18px; font-size: 0.86rem; line-height: 1.85; color: rgba(255, 248, 233, 0.62); max-width: 26em; }
.footer-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 248, 233, 0.92);
  margin-bottom: 16px;
}
.footer-list { display: grid; gap: 10px; font-size: 0.86rem; }
.footer-list a { transition: color 0.2s var(--ease); }
.footer-list a:hover { color: #F4CF86; }
.footer-contact-item { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact-item .icon { width: 15px; height: 15px; margin-top: 5px; opacity: 0.6; }
.footer-bottom {
  margin-top: clamp(36px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 233, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 248, 233, 0.55);
}

/* ---------- 17. 子页面 Hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  background:
    radial-gradient(720px 420px at 84% 0%, #FBE9BD 0%, rgba(251, 233, 189, 0) 65%),
    var(--cream-50);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb .icon { width: 12px; height: 12px; }
.breadcrumb a:hover { color: var(--amber-700); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.3; letter-spacing: -0.015em; }
.page-hero p { margin-top: 14px; color: var(--ink-soft); max-width: 42em; }

/* ---------- 18. 表单 ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .req { color: #C9603B; }
.field .hint { font-size: 0.76rem; font-weight: 400; color: var(--muted); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: #FFFDF8;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
  appearance: none;
}
.input::placeholder,
.textarea::placeholder { color: #B7AE9C; }
.input:hover,
.select:hover,
.textarea:hover { border-color: rgba(226, 166, 60, 0.5); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(244, 207, 134, 0.38);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E6116' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #D9704A;
  background: #FFF9F6;
}
.error-msg {
  display: none;
  font-size: 0.78rem;
  color: #C0562F;
}
.field.has-error .error-msg { display: block; }

/* 单选/多选胶囊 */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFDF8;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice:hover { border-color: var(--amber-500); background: var(--cream-100); }
.choice:has(input:checked) {
  background: linear-gradient(135deg, #FDF0CE, #F8E3AE);
  border-color: var(--amber-500);
  color: #6B4E12;
  font-weight: 600;
  box-shadow: 0 6px 16px -10px rgba(200, 145, 40, 0.8);
}
.choice:has(input:focus-visible) { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.chip-group.has-error .choice {
  border-color: #E3A38C;
  background: #FFF9F6;
}
.chip-group.has-error + .error-msg { display: block; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.form-note { font-size: 0.78rem; color: var(--muted); max-width: 34em; }

/* 提交成功态 */
.form-success {
  display: none;
  text-align: center;
  padding: 28px 12px 12px;
}
.form-success.is-visible { display: block; animation: pop 0.45s var(--ease); }
.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #FDF0CE, #F0C063);
  color: #7A5312;
}
.success-icon .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin-top: 10px; color: var(--ink-soft); font-size: 0.92rem; }
.success-code {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--cream-100);
  border: 1px dashed var(--amber-400);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-700);
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 19. 预约页布局 ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(24px, 3.4vw, 40px);
  align-items: start;
}
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.side-card + .side-card { margin-top: 18px; }
.side-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.side-card h3 .icon { width: 18px; height: 18px; color: var(--amber-600); }
.side-list { display: grid; gap: 14px; margin-top: 18px; }
.side-item { display: flex; gap: 12px; font-size: 0.88rem; }
.side-item .icon { width: 17px; height: 17px; margin-top: 4px; color: var(--amber-600); flex: none; }
.side-item strong { display: block; font-size: 0.88rem; }
.side-item span { color: var(--muted); font-size: 0.84rem; }
.emergency {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #FFF3E4, #FFE9CF);
  border: 1px solid rgba(201, 96, 59, 0.2);
  font-size: 0.85rem;
  color: #8A4A26;
}
.emergency strong { display: block; font-size: 0.92rem; margin-bottom: 4px; color: #7E3F1E; }

/* ---------- 20. 咨询页 ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.channel-card { padding: 28px 26px; display: flex; flex-direction: column; }
.channel-card .icon-badge { width: 48px; height: 48px; }
.channel-card h3 { margin-top: 16px; font-size: 1.02rem; }
.channel-card p { margin-top: 6px; font-size: 0.86rem; color: var(--muted); flex: 1; }
.channel-value {
  margin-top: 16px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: break-all;
}
.channel-value small { display: block; font-size: 0.74rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.qr-box {
  margin-top: 16px;
  width: 116px;
  height: 116px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  background: repeating-conic-gradient(#FBF0D2 0% 25%, transparent 0% 50%) 50% / 14px 14px;
}
.qr-box span { background: rgba(255, 255, 255, 0.9); padding: 3px 6px; border-radius: 4px; }

/* 手风琴 */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item.is-open { border-color: rgba(226, 166, 60, 0.45); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-icon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-100);
  color: var(--amber-700);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.faq-icon .icon { width: 14px; height: 14px; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--cream-300); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- 21. 案例页筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: all 0.22s var(--ease);
}
.filter-btn:hover { border-color: var(--amber-500); color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF8E9;
  font-weight: 600;
}
.filter-count { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.case-card.is-hidden { display: none; }

/* ---------- 22. 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 40, 28, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s var(--ease);
}
.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.32s var(--ease);
}
.modal-media .ph { border-radius: 0; }
.modal-media img { display: block; width: 100%; height: auto; }
.modal-body { padding: 28px clamp(24px, 4vw, 40px) 36px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; color: var(--amber-700); }
.modal-body h2 { margin-top: 10px; font-size: 1.5rem; line-height: 1.4; }
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.modal-meta .tag { background: #fff; }
.modal-prose { margin-top: 22px; display: grid; gap: 18px; }
.modal-prose h4 {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--amber-700);
  margin-bottom: 4px;
}
.modal-prose p { font-size: 0.92rem; color: var(--ink-soft); }
body.no-scroll { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- 23. 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 24. 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(47, 42, 35, 0.94);
  color: #FFF8E9;
  font-size: 0.86rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 16px; height: 16px; color: #F4CF86; }

/* ---------- 24.5 AI 练习水印（仅首页） ---------- */
.ai-watermark {
  position: fixed;
  inset: -12vh -8vw;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12vh 4vw;
  align-content: center;
  justify-items: center;
  transform: rotate(-16deg);
  pointer-events: none;
  user-select: none;
  color: rgba(142, 97, 22, 0.19);
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
  mix-blend-mode: multiply;
}

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure .ph { min-height: 320px; }
  .hero-chips { left: auto; right: 16px; bottom: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .team-card:first-child .team-photo { width: 42%; aspect-ratio: auto; align-self: stretch; min-height: 320px; object-fit: cover; }
  .equip-layout { grid-template-columns: 1fr; }
  .exotic-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .booking-layout { grid-template-columns: 1fr; }
  .service-grid, .grid-3, .case-grid, .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-note { display: none; }
  .ai-watermark { grid-template-columns: repeat(2, 1fr); gap: 16vh 8vw; font-size: 0.8rem; }
  .topbar .wrap { justify-content: center; }
  .nav { min-height: 68px; }
  .nav-toggle { display: grid; }
  .nav-actions .btn { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    padding: 92px 24px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--cream-50);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -30px rgba(80, 60, 20, 0.5);
    transform: translateX(102%);
    transition: transform 0.36s var(--ease);
    z-index: 70;
  }
  .nav-links.is-open { transform: none; }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-link[aria-current="page"]::after { left: 16px; transform: none; }
  .nav-links .btn { margin-top: 16px; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(48, 40, 28, 0.4);
    z-index: 65;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }

  .hero-stats { gap: 20px 28px; }
  .stat-num { font-size: 1.45rem; }
  .service-grid, .grid-3, .case-grid, .channel-grid, .form-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card:first-child { flex-direction: column; }
  .team-card:first-child .team-photo { width: 100%; aspect-ratio: 1 / 1; min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-count { display: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-height: 92vh; border-radius: 24px 24px 0 0; }
  .cta-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .team-card:first-child .team-photo { aspect-ratio: 4 / 3; }
}

/* ---------- 26. 动效减弱偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 27. 打印 ---------- */
@media print {
  .site-header, .topbar, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}
