/* ===== 汪汪乐园 样式表 ===== */
:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #ea580c;
  --cream: #fff7ed;
  --cream-2: #ffedd5;
  --brown: #7c2d12;
  --ink: #431407;
  --text: #57534e;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(180, 83, 9, 0.10);
  --shadow-lg: 0 20px 50px rgba(180, 83, 9, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fffdf9;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(234, 88, 12, .42); }
.btn-ghost {
  background: #fff;
  color: var(--brown);
  border: 2px solid var(--cream-2);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(245, 158, 11, .14);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand-icon { font-size: 26px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color .18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2.5px;
  background: var(--amber);
  border-radius: 2px;
  transition: width .22s ease;
}
.nav-links a:hover { color: var(--amber-dark); }
.nav-links a:hover::after { width: 100%; }
.btn-nav { padding: 10px 22px; font-size: 14px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(251, 191, 36, .22), transparent 60%),
    radial-gradient(800px 420px at -10% 20%, rgba(254, 215, 170, .5), transparent 55%),
    #fffdf9;
}
.hero-decor { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.hero-decor-1 { width: 300px; height: 300px; background: #fed7aa; top: -90px; right: -60px; }
.hero-decor-2 { width: 220px; height: 220px; background: #fde68a; bottom: -70px; left: -60px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--cream-2);
  color: var(--brown);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: -1px;
  font-weight: 800;
}
.hero-sub { font-size: 18px; color: var(--text); margin: 22px 0 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; color: var(--amber-dark); font-weight: 800; }
.stat span { font-size: 14px; color: var(--text); }

.hero-art { display: flex; justify-content: center; }
.dog-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(180, 83, 9, .18));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== 通用 Section ===== */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--cream), #fffdf9); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--cream-2);
  color: var(--amber-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); font-weight: 800; letter-spacing: -.5px; }
.section-head p { font-size: 16px; color: var(--text); margin-top: 12px; }

/* ===== 卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-emoji {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform .25s ease;
}
.card:hover .card-emoji { transform: scale(1.15) rotate(-6deg); }
.card h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text); margin-bottom: 16px; }
.chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cream);
  color: var(--amber-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 视频嵌入 ===== */
.video-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== 相册（真实照片） ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
}

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.info-item { font-size: 16px; font-weight: 600; color: var(--brown); }
.info-item span { color: var(--text); font-weight: 500; }
.contact-form {
  background: var(--card);
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ffedd5;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fffdf9;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: 14px; color: #16a34a; min-height: 20px; }

/* 上传图片 */
.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #ffedd5;
  border-radius: 12px;
  padding: 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.upload-box:hover { border-color: var(--amber); background: #fffdf9; color: var(--amber-dark); }
.upload-box input[type="file"] { display: none; }
.upload-icon { font-size: 18px; }
.upload-preview {
  display: none;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ffedd5;
}
.upload-preview.show { display: block; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  color: #fed7aa;
  padding: 36px 0;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { font-size: 18px; font-weight: 800; color: #fff; }
.footer-copy { font-size: 14px; }

/* ===== 关于我们 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(67, 20, 7, .55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-card {
  background: #fff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
  transform: translateY(24px) scale(.97);
  transition: transform .3s ease;
}
.modal-overlay.show .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--brown);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.modal-close:hover { background: var(--cream-2); transform: rotate(90deg); }
.modal-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.about-art { display: flex; justify-content: center; }
.paw-svg { width: 100%; max-width: 140px; height: auto; animation: float 6s ease-in-out infinite; }
.about-text .section-tag { margin-bottom: 10px; }
.about-text h2 { font-size: clamp(24px, 4vw, 32px); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.about-text p { font-size: 15.5px; margin-bottom: 12px; }
.about-points {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.about-points li { font-weight: 600; color: var(--brown); }

/* ===== 可拖拽浮动按钮 ===== */
.about-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  font-size: 26px;
  cursor: grab;
  box-shadow: 0 10px 26px rgba(234, 88, 12, .4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.about-fab.show { display: flex; }
.about-fab:hover { transform: scale(1.08); }
.about-fab.dragging { cursor: grabbing; transform: scale(1.1); }

/* ===== 滚动显现动画 ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .hero-stats { gap: 24px; }
  .hero { padding: 60px 0; }
  .section { padding: 60px 0; }
  .modal-card { padding: 32px 22px; }
}

/* 移动端导航 */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #ffedd5;
    border-radius: 0 0 0 16px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    transform: translateX(110%);
    transition: transform .28s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .btn-nav { display: none; }
  .menu-toggle { display: flex; }
}
