/* ============================================================
   萌爪宠物店 · 全局样式
   温暖明媚 · 圆润可爱 · 适合宠物市场调性
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary: #ff8a5c;
  --primary-dark: #f26b3a;
  --primary-light: #ffb48f;
  --accent: #ffc857;
  --mint: #5cc9a7;
  --pink: #ffb3c8;
  --bg: #fff8f0;
  --bg-soft: #fff0e2;
  --card: #ffffff;
  --text: #5a4a40;
  --text-soft: #9a8a80;
  --danger: #e5544b;
  --line: #f3e7db;
  --shadow: 0 12px 34px rgba(232, 140, 90, 0.14);
  --shadow-sm: 0 6px 18px rgba(232, 140, 90, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, .brand, .logo-text {
  font-family: 'Fredoka', 'PingFang SC', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; color: var(--primary-dark); }
.brand .paw { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-weight: 700; color: var(--text);
  transition: all .2s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--primary-dark); }
.nav-links a.active { background: var(--primary); color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: 999px;
  font-family: 'Fredoka', sans-serif; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(242,107,58,.32); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-accent { background: var(--accent); color: #6b4a12; box-shadow: 0 8px 20px rgba(255,200,87,.4); }
.btn-accent:hover { transform: translateY(-3px); }
.btn-ghost { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary-light); }
.btn-ghost:hover { background: var(--bg-soft); transform: translateY(-3px); }
.btn-lg { padding: 18px 40px; font-size: 1.2rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- 通用区块 ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--bg-soft); color: var(--primary-dark); font-weight: 700;
  font-size: .85rem; letter-spacing: .5px; margin-bottom: 14px;
}
.section-title { font-size: 2.3rem; color: var(--text); }
.section-sub { color: var(--text-soft); margin-top: 10px; font-size: 1.05rem; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffd9bf 0%, #ffe9c4 45%, #fff3e0 100%);
  padding: 70px 0 90px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hero-copy h1 { font-size: 3.4rem; color: var(--text); margin-bottom: 18px; }
.hero-copy h1 .hl { color: var(--primary-dark); }
.slogan-word { display: inline-block; opacity: 0; transform: translateY(20px); animation: wordIn .6s forwards; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
.hero-copy p { font-size: 1.18rem; color: var(--text-soft); margin-bottom: 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hero-stat .num { font-family: 'Fredoka'; font-size: 1.9rem; color: var(--primary-dark); }
.hero-stat .lbl { font-size: .9rem; color: var(--text-soft); }

.hero-visual { position: relative; }
.hero-img-frame {
  position: relative; border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow); transform: rotate(1.5deg);
  border: 6px solid #fff;
}
.hero-img-frame img { width: 100%; height: 420px; object-fit: cover; }
.float-badge {
  position: absolute; background: #fff; border-radius: 18px;
  padding: 12px 18px; box-shadow: var(--shadow-sm); font-weight: 700;
  display: flex; align-items: center; gap: 8px; font-size: .95rem;
  animation: bob 3s ease-in-out infinite;
}
.float-badge .emo { font-size: 1.3rem; }
.badge-1 { top: 24px; left: -22px; }
.badge-2 { bottom: 30px; right: -18px; animation-delay: 1s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 漂浮装饰 */
.deco { position: absolute; pointer-events: none; opacity: .55; }
.deco.paw { font-size: 1.6rem; animation: bob 5s ease-in-out infinite; }
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,180,143,.4));
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(40px) scale(.6); opacity: 0; }
  20% { opacity: .7; }
  100% { transform: translateY(-160px) scale(1.1); opacity: 0; }
}

/* ---------- 快速入口 ---------- */
.quick { background: var(--bg); }
.quick-card {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius); padding: 54px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.quick-card::after {
  content: '🐾'; position: absolute; font-size: 9rem; opacity: .12;
  right: 30px; bottom: -20px; transform: rotate(-12deg);
}
.quick-card h2 { font-size: 2rem; color: #fff; }
.quick-card p { color: rgba(255,255,255,.9); margin: 10px 0 0; }
.quick-card .btn-accent { flex-shrink: 0; }

/* 套餐小卡 */
.pkg-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.pkg-mini {
  background: var(--card); border-radius: var(--radius-sm); padding: 26px 22px;
  box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s;
  border: 1px solid var(--line);
}
.pkg-mini:hover { transform: translateY(-6px); }
.pkg-mini .pname { font-family: 'Fredoka'; font-size: 1.2rem; color: var(--text); }
.pkg-mini .pprice { color: var(--primary-dark); font-size: 1.6rem; font-weight: 800; margin: 6px 0; }
.pkg-mini .pprice small { font-size: .8rem; font-weight: 600; }
.pkg-mini .pdur { color: var(--text-soft); font-size: .9rem; }
.pkg-mini .pdesc { color: var(--text-soft); font-size: .85rem; margin-top: 8px; }

/* ---------- 口碑轮播 ---------- */
.reviews { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.review-track {
  display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.review-track::-webkit-scrollbar { height: 8px; }
.review-track::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 9px; }
.review-card {
  flex: 0 0 330px; scroll-snap-align: start; background: var(--card);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka'; font-size: 1.3rem; color: #fff; font-weight: 700;
}
.rname { font-weight: 800; color: var(--text); }
.rmeta { font-size: .82rem; color: var(--text-soft); }
.stars { color: var(--accent); letter-spacing: 2px; }
.review-text { color: var(--text); }
.review-controls { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.review-controls button {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-sm); font-size: 1.1rem; color: var(--primary-dark);
  transition: transform .18s;
}
.review-controls button:hover { transform: scale(1.1); background: var(--primary); color: #fff; }

/* ---------- 联系我们 ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-info {
  background: var(--card); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.contact-info h3 { font-size: 1.6rem; margin-bottom: 22px; color: var(--text); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-item .ico {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-item .lbl { font-size: .82rem; color: var(--text-soft); }
.contact-item .val { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 6px solid #fff; min-height: 360px; background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- 页脚 ---------- */
.footer {
  background: #4a3a30; color: #f3e7db; padding: 50px 0 30px; margin-top: 20px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand { color: #ffd9bf; }
.footer p { color: #c9b8aa; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; text-align: center; font-size: .85rem; color: #a9988a; }

/* ---------- 页面通用头 ---------- */
.page-hero {
  background: linear-gradient(135deg, #ffd9bf, #ffe9c4);
  padding: 56px 0 64px; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: 2.8rem; color: var(--text); }
.page-hero p { color: var(--text-soft); margin-top: 10px; font-size: 1.1rem; }

/* ============================================================
   预约页 · 横向时间轴
   ============================================================ */
.booking-wrap { background: var(--bg); }
.booking-card {
  background: var(--card); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 28px;
}
.booking-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.booking-top h3 { font-size: 1.4rem; }
.date-picker { display: flex; align-items: center; gap: 10px; }
.date-picker input {
  border: 2px solid var(--primary-light); border-radius: 12px; padding: 10px 14px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
}

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: .88rem; color: var(--text-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.dot.busy { background: var(--primary); }
.dot.free { background: #eaf6ef; border: 2px solid var(--mint); }
.dot.preview { background: var(--accent); }
.dot.conflict { background: var(--danger); }

/* 时间轴主体 */
.timeline-scroll { overflow-x: auto; padding: 0 4px 14px; scrollbar-width: thin; }
.timeline-scroll::-webkit-scrollbar { height: 8px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 9px; }
.timeline {
  position: relative; height: 92px; min-width: 900px; margin-top: 8px;
  background: #eaf6ef; border-radius: 16px; border: 2px dashed #c5e8d6;
}
.tl-hours {
  position: relative; height: 26px; min-width: 900px; margin-bottom: 4px;
}
.tl-hours .hmark {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: .74rem; color: var(--text-soft); font-weight: 700;
}
.tl-hours .hmark::after {
  content: ''; position: absolute; left: 50%; top: 16px; width: 1px; height: 6px;
  background: #c5e8d6;
}
.tl-block {
  position: absolute; top: 6px; height: 80px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 8px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); overflow: hidden;
}
.tl-block.busy { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); cursor: default; }
.tl-block.preview { background: rgba(255,200,87,.85); color: #6b4a12; border: 2px dashed #d9a82e; }
.tl-block.conflict { background: var(--danger); }
.tl-block .b-title { font-size: .8rem; }
.tl-block .b-time { font-size: .7rem; opacity: .9; }

.tl-slot-layer { position: absolute; inset: 0; display: flex; }
.tl-slot {
  flex: 1; cursor: pointer; transition: background .15s; border-right: 1px solid rgba(0,0,0,.04);
}
.tl-slot:hover { background: rgba(255,200,87,.25); }
.tl-slot.disabled { cursor: not-allowed; background: rgba(229,84,75,.06); }
.tl-slot.disabled:hover { background: rgba(229,84,75,.1); }

.timeline-hint { font-size: .9rem; color: var(--text-soft); margin-top: 10px; }

/* 预约表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--text); font-size: .95rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
  transition: border .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 90px; }
.preview-bar {
  grid-column: 1 / -1; background: var(--bg-soft); border-radius: 14px;
  padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.preview-bar.ok { background: #eaf6ef; color: #2a8a64; }
.preview-bar.warn { background: #fdecea; color: var(--danger); }
.preview-bar .emo { font-size: 1.3rem; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--text); color: #fff; padding: 14px 26px; border-radius: 999px;
  box-shadow: var(--shadow); font-weight: 700; z-index: 200; transition: transform .35s;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

/* ============================================================
   商城页
   ============================================================ */
.shop-wrap { background: var(--bg); }
.filters {
  background: var(--card); border-radius: var(--radius); padding: 24px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 32px;
}
.filters .field { gap: 6px; }
.filters .field label { font-size: .82rem; color: var(--text-soft); }
.filters select, .filters input {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--text);
}
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100px; }
.price-inputs span { color: var(--text-soft); }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 700; color: var(--text);
  transition: all .18s; font-family: inherit;
}
.chip:hover { border-color: var(--primary-light); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pet-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column;
}
.pet-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pet-photo { position: relative; height: 230px; overflow: hidden; background: var(--bg-soft); }
.pet-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pet-card:hover .pet-photo img { transform: scale(1.06); }
.pet-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 800;
  color: var(--primary-dark);
}
.pet-tag.dog { color: #2a7ab0; }
.pet-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pet-name { font-family: 'Fredoka'; font-size: 1.3rem; color: var(--text); }
.pet-breed { color: var(--text-soft); font-size: .9rem; margin-bottom: 10px; }
.pet-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pet-meta span {
  background: var(--bg-soft); border-radius: 8px; padding: 4px 10px;
  font-size: .8rem; color: var(--text); font-weight: 600;
}
.pet-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pet-price { font-family: 'Fredoka'; font-size: 1.5rem; color: var(--primary-dark); font-weight: 700; }
.pet-price small { font-size: .8rem; }
.pet-empty { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--text-soft); }

/* ---------- 进入动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.4rem; }
  .pkg-row { grid-template-columns: repeat(2, 1fr); }
  .pet-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .quick-card { flex-direction: column; text-align: center; padding: 38px; }
  section { padding: 60px 0; }
  .nav-links a { padding: 8px 11px; font-size: .92rem; }
}
@media (max-width: 560px) {
  .pkg-row, .pet-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .nav-links a span.hide-sm { display: none; }
  .hero-stats { gap: 20px; }
}
