/* ═══════════════════════════════════════════════════════════
   玄逍 SPA · 品牌官网样式
   主色：#809D88 湖绿 | 底色：#DBD9C8 凝脂
   深色：#624A4D 玄色 | 点缀：#B79480 朱赤
   ═══════════════════════════════════════════════════════════ */

/* ═══════ Reset ═══════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #3A3530;
  background: #FAFAF8;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100%; display: flex; flex-direction: column;
}
body.home-page {
  background: linear-gradient(135deg, #DBD9C8 0%, #C7D3CA 30%, #AABEB0 70%, #809D88 100%);
  background-attachment: fixed;
}
.page-wrap { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════ Navbar ═══════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(128,157,136,0.12);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(74,102,82,0.08); }
.home-page .navbar {
  background: transparent; backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.home-page .navbar.scrolled {
  background: rgba(255,255,255,0.3); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(128,157,136,0.08);
}
.nav-inner {
  width: 100%; padding: 0 48px;
  display: flex; justify-content: space-between; align-items: center;
  height: 117px;
}
.nav-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; font-weight: 700;
  color: #4A6652; letter-spacing: 2px;
  display: flex; align-items: center;
}
.nav-logo { height: 44px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 15px; color: #624A4D;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active { color: #624A4D; border-bottom-color: #624A4D; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #624A4D; }

/* ═══════ Hero ═══════ */
.hero {
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="g"><stop offset="0%" stop-color="%23809D88" stop-opacity="0.08"/><stop offset="100%" stop-color="%23809D88" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="150" r="300" fill="url(%23g)"/><circle cx="1000" cy="550" r="400" fill="url(%23g)"/><circle cx="600" cy="350" r="250" fill="url(%23g)"/></svg>') center/cover;
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero-eyebrow {
  font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
  color: #B79480; margin-bottom: 16px;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  color: #4A6652; letter-spacing: 3px; line-height: 1.3;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #6B7F72; letter-spacing: 2px; margin-bottom: 40px;
}
.hero-slogan {
  font-family: Georgia, serif;
  font-size: clamp(14px, 2.25vw, 24px);
  color: #4A6652; letter-spacing: 2px; margin-bottom: 80px;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 40px;
  border-radius: 50px; font-size: 15px; letter-spacing: 2px;
  transition: all 0.3s; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary { background: #809D88; color: #fff; box-shadow: 0 6px 20px rgba(128,157,136,0.3); }
.btn-primary:hover { background: #6B8A74; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(128,157,136,0.4); }
.btn-outline { background: transparent; color: #624A4D; border: 1.5px solid #B79480; }
.btn-outline:hover { background: #B79480; color: #fff; transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: #6B7F72; letter-spacing: 1px;
  animation: bounce 2s infinite; z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════ Section ═══════ */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 4vw, 38px); font-weight: 700;
  color: #4A6652; text-align: center; letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: #8A8076; font-size: 15px;
  letter-spacing: 1px; margin-bottom: 48px;
}

/* ═══════ Entry Cards (Homepage 3-up) ═══════ */
.cards-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.entry-card {
  background: #fff; border-radius: 16px; padding: 48px 32px;
  text-align: center; box-shadow: 0 4px 24px rgba(74,102,82,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(128,157,136,0.08);
}
.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(74,102,82,0.12);
}
.entry-icon {
  font-size: 48px; margin-bottom: 20px; display: block;
}
.entry-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; color: #4A6652; margin-bottom: 8px;
  letter-spacing: 1px;
}
.entry-card p { color: #8A8076; font-size: 14px; margin-bottom: 20px; }
.entry-card .btn { padding: 10px 28px; font-size: 14px; }

/* ═══════ QR Section ═══════ */
.qr-section { background: #F5F3EE; }
.home-page .section { background: none; }
.home-page .qr-section { background: none; }
.home-page .footer { background: transparent; color: #624A4D; }
.home-page .footer a { color: #624A4D; }
.home-page .footer a:hover { color: #4A6652; }
.qr-row {
  display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
}
.qr-item { text-align: center; }
.qr-placeholder {
  width: 180px; height: 180px; border-radius: 16px;
  background: linear-gradient(135deg, #DBD9C8, #E3E9E5);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; border: 2px dashed #B8CCBD;
}
.qr-placeholder span {
  font-size: 13px; color: #8A8076; letter-spacing: 1px;
}
.qr-img {
  width: 180px; height: 180px; border-radius: 16px;
  object-fit: cover; margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(74,102,82,0.1);
}
.qr-item h4 {
  font-family: Georgia, serif; font-size: 18px;
  color: #4A6652; margin-bottom: 4px;
}
.qr-item p { font-size: 13px; color: #8A8076; }

/* ═══════ Footer ═══════ */
.footer {
  background: #DBD9C8; color: #624A4D;
  padding: 40px 24px; text-align: center; font-size: 13px;
  letter-spacing: 1px; line-height: 2;
  margin-top: auto;
}
.footer a { color: #624A4D; text-decoration: none; }
.footer a:hover { color: #809D88; }
/* ═══════ Page Header (sub pages) ═══════ */
.page-hero {
  padding: 120px 24px 40px;
  text-align: center;
}
.page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 48px); font-weight: 700;
  color: #4A6652; letter-spacing: 2px;
}

/* ═══════ Brand Page ═══════ */
.brand-img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 16px; margin-bottom: 48px;
}
.brand-img-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 48px;
}
.brand-img-item {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s;
}
.brand-img-item:hover { transform: scale(1.03); }
.brand-text {
  background: rgba(255,255,255,0.85); border-radius: 16px; padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(74,102,82,0.06);
  margin: 0 auto 48px;
  border: 1px solid rgba(128,157,136,0.08);
  backdrop-filter: blur(8px);
}
.home-page .brand-text {
  background: transparent; box-shadow: none; border-color: transparent;
}
.brand-text p {
  margin-bottom: 20px; font-size: 15px; color: #3A3530;
  text-indent: 2em; line-height: 2;
}
.brand-section-title {
  font-family: Georgia, serif; font-size: 22px; color: #4A6652;
  letter-spacing: 1px; margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid #DBD9C8;
}
.quote-text {
  font-style: italic; color: #6B7F72 !important;
  border-left: 3px solid #B79480; padding-left: 16px;
  text-indent: 0 !important; margin-top: 8px;
}
.contact-item { text-indent: 0 !important; margin-bottom: 8px !important; }
.brand-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 800px; margin: 0 auto;
}
.value-card {
  text-align: center; padding: 32px 20px;
  background: #fff; border-radius: 12px;
  border: 1px solid rgba(128,157,136,0.08);
  box-shadow: 0 4px 16px rgba(74,102,82,0.04);
}
.value-card .value-icon { font-size: 36px; margin-bottom: 12px; }
.value-card h4 { font-family: Georgia, serif; color: #4A6652; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: #8A8076; }

/* ═══════ Products Page ═══════ */
.tabs {
  display: flex; justify-content: center; gap: 0; margin-bottom: 48px;
}
.tab-btn {
  padding: 12px 48px; font-size: 16px; letter-spacing: 2px;
  background: transparent; border: none; cursor: pointer;
  color: #8A8076; font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.tab-btn.active { color: #809D88; border-bottom-color: #809D88; font-weight: 600; }
.tab-btn:hover { color: #809D88; }

.products-wrap {
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.products-scroll {
  flex: 1; display: flex; flex-wrap: nowrap; gap: 24px; overflow-x: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 16px; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
}
.products-scroll::-webkit-scrollbar { display: none; }
.products-arrow {
  flex: 0 0 auto; border: none; background: none;
  font-size: 32px; color: #624A4D; cursor: pointer;
  padding: 0 4px; line-height: 1;
  transition: opacity 0.3s; opacity: 0.5;
}
.products-arrow:hover { opacity: 1; }
.products-arrow:disabled { opacity: 0.15; cursor: default; }
.product-card {
  flex: 0 0 300px; min-width: 300px; scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(74,102,82,0.06);
  border: 1px solid rgba(128,157,136,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(74,102,82,0.12);
}
.product-card-img {
  width: 100%; height: 240px; object-fit: cover;
  background: linear-gradient(135deg, #DBD9C8, #E3E9E5);
}
.product-card-body { padding: 20px 24px 24px; }
.product-card-body h4 {
  font-family: Georgia, serif; font-size: 18px;
  color: #4A6652; margin-bottom: 8px; letter-spacing: 1px;
}
.product-card-body .desc {
  font-size: 13px; color: #8A8076; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-body .meta {
  display: flex; justify-content: space-between; align-items: center;
}
.product-price {
  font-family: Georgia, serif; font-size: 22px; color: #B79480; font-weight: 700;
}
.product-duration {
  font-size: 13px; color: #8A8076; background: #F5F3EE;
  padding: 4px 10px; border-radius: 20px;
}

.products-nav {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px;
}
.products-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid #B8CCBD; background: #fff;
  font-size: 18px; color: #809D88; cursor: pointer;
  transition: all 0.3s;
}
.products-nav button:hover { background: #809D88; color: #fff; border-color: #809D88; }
.products-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.products-dots { display: flex; gap: 8px; }
.products-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #B8CCBD; transition: all 0.3s;
}
.products-dots span.active { background: #809D88; width: 24px; border-radius: 4px; }

.product-type-tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 12px; letter-spacing: 1px; margin-bottom: 12px;
}
.tag-service { background: rgba(128,157,136,0.12); color: #4A6652; }
.tag-goods { background: rgba(183,148,128,0.12); color: #B79480; }

/* ═══════ Booking Page ═══════ */
.booking-hero {
  text-align: center; padding: 0 24px;
}
.booking-hero .hero-icon { font-size: 64px; margin-bottom: 24px; }
.booking-hero h2 {
  font-family: Georgia, serif; font-size: 28px;
  color: #4A6652; letter-spacing: 2px; margin-bottom: 12px;
}
.booking-hero p { color: #6B7F72; font-size: 15px; margin-bottom: 48px; }
.booking-qr-row {
  display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap;
  min-height: 60vh;
}
.booking-tip {
  text-align: center; color: #8A8076; font-size: 14px; letter-spacing: 1px;
  padding-top: 32px; border-top: 1px solid rgba(128,157,136,0.12);
  max-width: 500px; margin: 0 auto;
}

/* ═══════ Empty State ═══════ */
.empty-state {
  text-align: center; padding: 64px 24px; color: #8A8076;
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; letter-spacing: 1px; }

/* ═══════ Loading ═══════ */
.loading-spinner {
  display: flex; justify-content: center; padding: 64px 0;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid #E3E9E5;
  border-top-color: #809D88; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════ Fade In Animation ═══════ */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════ Responsive ═══════ */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links {
    display: none; position: fixed; top: 117px; left: 0; right: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
    flex-direction: column; gap: 0; padding: 16px 0;
    border-bottom: 1px solid rgba(128,157,136,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 32px; border-bottom: none; }
  .nav-toggle { display: block; }

  .cards-row { grid-template-columns: 1fr; }
  .brand-values { grid-template-columns: 1fr; }
  .brand-img-row { grid-template-columns: repeat(2, 1fr); }

  .product-card { flex: 0 0 260px; }

  .qr-row, .booking-qr-row { gap: 40px; }
  .qr-placeholder { width: 140px; height: 140px; }

  .brand-text { padding: 32px 24px; }
}
