/* 帕尼尼宠物公寓 · 全站基础样式（唯一明亮主题） */

:root {
  --bg: #fbf7f1;
  --bg-soft: #f5ede2;
  --bg-deep: #efe4d6;
  --surface: #fffdfa;
  --surface-2: #fff8ee;
  --ink: #26332c;
  --ink-soft: #4d5b52;
  --muted: #5b6860;
  --brand: #dd6b38;
  --brand-dark: #a8481f;
  --brand-ink: #9a3d19;
  --brand-soft: #fbe4d5;
  --brand-tint: #fdf0e7;
  --sage: #5d8370;
  --sage-dark: #2f4a3b;
  --sage-soft: #e7f0e8;
  --sun: #f2c163;
  --sun-soft: #fdf2d9;
  --rose: #b85249;
  --rose-soft: #fbe6e3;
  --line: rgba(38, 51, 44, 0.1);
  --line-strong: rgba(38, 51, 44, 0.18);
  --shadow-sm: 0 4px 16px rgba(88, 61, 36, 0.06);
  --shadow: 0 18px 46px rgba(88, 61, 36, 0.1);
  --shadow-lg: 0 32px 80px rgba(72, 48, 27, 0.16);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --nav-h: 74px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--brand-soft); color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid rgba(224, 112, 60, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-ink);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

.btn {
  --btn-bg: var(--brand-dark);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  box-shadow: 0 10px 24px rgba(168, 72, 31, 0.24);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-ink); box-shadow: 0 14px 30px rgba(154, 61, 25, 0.3); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--ink); }
.btn.light { --btn-bg: #fff; --btn-fg: var(--brand-dark); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12); }
.btn.light:hover { background: var(--brand-tint); }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled {
  background: var(--bg-deep);
  color: var(--muted);
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--brand-tint); transform: rotate(6deg); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
} 
.tag.accent { background: var(--brand-soft); color: var(--brand-dark); }
.tag.sun { background: var(--sun-soft); color: #8a6416; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea, textarea.input { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(224, 112, 60, 0.12);
}
.field small { color: var(--muted); font-size: 12px; }

/* 顶部导航 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-nav.scrolled { border-color: var(--line); background: rgba(251, 247, 241, 0.96); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(224, 112, 60, 0.28);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: 0.02em; }
.brand-text span { font-size: 10px; color: var(--muted); letter-spacing: 0.16em; font-weight: 600; }
.nav-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(224, 112, 60, 0.09); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 59;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 22px;
  display: none;
  box-shadow: var(--shadow);
}
.mobile-panel.open { display: block; animation: slideDown 0.25s var(--ease); }
.mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  min-height: 48px;
}
.mobile-panel a:last-child { border-bottom: 0; }
.mobile-panel .btn { margin-top: 14px; width: 100%; }

/* 页脚 */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p { margin-top: 14px; color: var(--ink-soft); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 16px; }
.footer-col a, .footer-col button {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  text-align: left;
  min-height: 32px;
}
.footer-col a:hover, .footer-col button:hover { color: var(--brand-dark); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

/* Toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 460px);
}
.toast {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(38, 51, 44, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn 0.28s var(--ease);
  text-align: center;
}
.toast.err { background: #b4443a; }
.toast.out { animation: toastOut 0.24s var(--ease) forwards; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 34, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.22s var(--ease);
}
.modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: panelIn 0.3s var(--ease);
  overscroll-behavior: contain;
}
.modal-panel.wide { width: min(100%, 1040px); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 0;
}
.modal-head h3 { font-size: 22px; line-height: 1.3; }
.modal-head p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.modal-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: var(--brand-soft); }
.modal-body { padding: 22px 28px 28px; }

/* 滚动条 */
.thin-scroll { scrollbar-width: thin; scrollbar-color: rgba(38, 51, 44, 0.22) transparent; }
.thin-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: rgba(38, 51, 44, 0.18); border-radius: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 112, 60, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(224, 112, 60, 0); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 981px) {
  .mobile-panel { display: none !important; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-tag { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col a, .footer-col button { min-height: 40px; }
  .field input, .field select, .field textarea, .input { font-size: 16px; }
  .btn.small { min-height: 40px; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal-panel { max-height: 92vh; border-radius: 24px 24px 18px 18px; }
  .modal-head { padding: 22px 20px 0; }
  .modal-body { padding: 18px 20px 24px; }
  .footer-bottom { margin-top: 30px; }
}

@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; }
}
