/* ========================================
   阿呆的城堡 - 全局样式
   温暖治愈系 | 暖米白 + 蜜糖棕 + 深灰
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #FAF6F0;
  --bg-card: #FFFFFF;
  --bg-soft: #F3EDE4;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --accent: #D4A574;
  --accent-dark: #B8865A;
  --accent-light: #F0DFC8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Quicksand", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

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

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 246, 240, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Quicksand", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08) rotate(-5deg);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.5);
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 4px;
}

/* Legacy paw icon fallback */
.nav-logo .paw {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--accent-light);
  color: var(--text);
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(44,44,44,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin: 0 auto 24px;
  display: block;
  object-fit: cover;
  animation: heroLogoFloat 4s ease-in-out infinite;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  opacity: 0.92;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-tags span {
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

.section-title .divider {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- Gallery - Masonry ---------- */
.gallery-section {
  padding: 100px 0;
}

.gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-filter {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
}

.gallery-filter:hover {
  border-color: var(--accent-light);
}

.gallery-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.masonry {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.masonry-item:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.masonry-item .date-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 0.82rem;
  opacity: 0;
  transition: var(--transition);
}

.masonry-item:hover .date-badge {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
}

.lightbox-close:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
  user-select: none;
  padding: 16px;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--accent);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ---------- Video Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: var(--transition);
}

.video-play svg {
  width: 56px;
  height: 56px;
  fill: rgba(255,255,255,0.9);
  transition: var(--transition);
}

.video-card:hover .video-play {
  background: rgba(0,0,0,0.35);
}

.video-card:hover .video-play svg {
  fill: #fff;
  transform: scale(1.1);
}

.video-info {
  padding: 16px 20px;
}

.video-info .v-date {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.video-info .v-title {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 4px;
}

/* ---------- Video Modal ---------- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal-content {
  width: 80%;
  max-width: 900px;
  position: relative;
}

.video-modal video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

/* ---------- Timeline ---------- */
.timeline-section {
  padding: 100px 0;
  background: var(--bg-soft);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  margin-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 4px solid var(--bg);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--accent-light);
}

.timeline-content {
  width: calc(50% - 50px);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}

.timeline-content img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.timeline-date {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---------- About Page ---------- */
.about-section {
  padding: 120px 0 80px;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.about-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}

.about-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-hero-text .breed {
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.about-hero-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.personality-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.personality-tags span {
  padding: 6px 18px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.info-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-card .label {
  font-size: 0.82rem;
  color: var(--text-light);
}

.info-card .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

/* ---------- Contact Page ---------- */
.contact-section {
  padding: 120px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 16px;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-dark);
}

.social-links a:hover svg {
  fill: #fff;
}

/* ---------- Features Section (Home) ---------- */
.features-section {
  padding: 80px 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

/* ---------- Stats Section ---------- */
.stats-section {
  background: linear-gradient(135deg, #2C2C2C 0%, #3A3028 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,165,116,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
}

.stat-item {
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-4px);
}

.stat-item .number {
  font-family: "Quicksand", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item .label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, #F0DFC8 0%, #E8D0B0 100%);
  border-radius: 24px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '🐾';
  position: absolute;
  font-size: 120px;
  opacity: 0.06;
  top: -20px;
  right: 20px;
  transform: rotate(-15deg);
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}

/* ---------- Loading Spinner ---------- */
.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.spinner-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 4px;
  animation: bounce 1.4s ease-in-out infinite both;
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 30px; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; margin-right: 0; }
  .timeline-dot { left: 30px; }
  .timeline-content { width: 100%; margin-left: 60px !important; margin-right: 0 !important; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.show {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .subtitle { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .video-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .section-title h2 { font-size: 1.6rem; }
  .footer-content { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   语言切换按钮
   ======================================== */
.lang-toggle {
  background: var(--bg-soft);
  border: 2px solid var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========================================
   零食铺 - Shop
   ======================================== */
.shop-hero {
  background: linear-gradient(135deg, #F0DFC8, #E8D5B8);
  padding: 80px 24px 64px;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.shop-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(212,165,116,0.3);
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
}

.shop-hero-content h1 {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 8px;
}

.shop-hero-content p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.shop-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
  padding: 0 24px;
}

.shop-filter-btn {
  padding: 8px 20px;
  border: 2px solid #E5DDD3;
  background: #fff;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}

.shop-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.shop-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.shop-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 60px;
}

.shop-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.shop-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  z-index: 1;
  font-weight: 600;
}

.shop-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.shop-card:hover .shop-card-image img {
  transform: scale(1.05);
}

.shop-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #D5CDBF;
}

.shop-card-body {
  padding: 16px;
}

.shop-card-cat {
  font-size: 0.75rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-card-name {
  font-size: 1.05rem;
  color: var(--text);
  margin: 6px 0 8px;
}

.shop-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 2.5em;
}

.shop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-card-price {
  display: flex;
  flex-direction: column;
}

.price-now {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.price-now.big {
  font-size: 1.6rem;
}

.price-old {
  font-size: 0.8rem;
  color: #CCC;
  text-decoration: line-through;
}

.shop-card-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: var(--transition);
}

.shop-card-btn:hover {
  background: var(--accent-dark);
}

/* ---------- 购物车 ---------- */
.cart-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.5);
  z-index: 200;
  transition: var(--transition);
}

.cart-fab:hover {
  transform: scale(1.1);
}

.cart-fab.bounce {
  animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E57373;
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid #F0EBE3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.2rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F5F2EE;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #E57373;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #F0EBE3;
}

.cart-total {
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-align: right;
}

.cart-total span {
  color: var(--accent-dark);
}

.cart-footer .admin-btn-primary {
  width: 100%;
}

/* ---------- 商品详情弹窗 ---------- */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-detail-image img {
  width: 100%;
  border-radius: var(--radius);
}

.product-detail-info h2 {
  margin-bottom: 12px;
}

.product-detail-price {
  margin-bottom: 12px;
}

.product-detail-stock {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-detail-desc {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---------- 结算弹窗 ---------- */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  padding: 32px;
  text-align: center;
  position: relative;
}

.checkout-modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.checkout-modal-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.checkout-qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #CCC;
}

.checkout-qr-placeholder p {
  font-size: 0.85rem;
  margin-top: 8px;
}

.checkout-info {
  margin-bottom: 16px;
}

.checkout-info p {
  margin-bottom: 4px;
}

.checkout-note {
  font-size: 0.8rem !important;
  color: #999 !important;
}

@media (max-width: 600px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
}
