/* ============================================
   韦依美途旅行设 - 江南水墨风格
   ============================================ */

/* === CSS Reset & Variables === */
:root {
  --ink-green: #4a7c59;
  --ink-dark: #2d5016;
  --ink-light: #7aa87e;
  --ink-pale: #dce8db;
  --rice-paper: #faf6f0;
  --rice-dark: #f0ebe0;
  --text-main: #3a3a3a;
  --text-light: #7a7a7a;
  --gold: #b8914d;
  --gold-light: #d4b872;
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', Georgia, 'Times New Roman', serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 10px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

a { color: var(--ink-green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--ink-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === Glassmorphism Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74, 124, 89, 0.12);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-dark);
}

.navbar-brand .brand-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.navbar-brand .brand-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
  transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--ink-pale);
  color: var(--ink-dark);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.navbar-toggle span {
  width: 24px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* === Hero / Banner === */
.hero-section {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Dark overlay for text readability */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide .slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 0 20px;
}

.hero-slide .slide-content h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 700;
}

.hero-slide .slide-content h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 700;
}

.hero-slide .slide-content p {
  font-size: 1.15rem;
  opacity: 1;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  font-weight: 400;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots button.active {
  background: #fff;
  border-color: #fff;
}

/* === Section Common === */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--ink-green), var(--gold));
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 8px;
}

/* === Card System === */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--ink-pale);
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  background: var(--ink-pale);
  color: var(--ink-dark);
}

.tag-gold {
  background: rgba(184, 145, 77, 0.12);
  color: var(--gold);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--rice-dark);
}

.price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--ink-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

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

.btn-gold:hover {
  background: #a67d3a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 145, 77, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--ink-green);
  border: 2px solid var(--ink-green);
}

.btn-outline:hover {
  background: var(--ink-green);
  color: #fff;
}

.btn-sm { padding: 6px 16px; font-size: 0.82rem; }

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

/* === Feature Cards === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--ink-green);
}

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

.feature-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--ink-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--ink-green);
}

.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-light); }

/* === Steps === */
.steps-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-green), var(--gold));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--ink-green), var(--ink-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.25);
}

.step-item h4 { font-size: 0.92rem; margin-bottom: 4px; }
.step-item p { font-size: 0.8rem; color: var(--text-light); }

/* === Filter Bar === */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.filter-bar select {
  padding: 8px 14px;
  border: 1px solid var(--rice-dark);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
}

.filter-bar select:focus {
  outline: none;
  border-color: var(--ink-green);
}

.filter-bar .filter-btn {
  padding: 8px 20px;
  background: var(--ink-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.filter-btn:hover { background: var(--ink-dark); }

/* === Page Header === */
.page-header {
  margin-top: var(--header-height);
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--ink-pale), var(--rice-dark));
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

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

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--ink-green); }
.breadcrumb span { color: var(--text-light); }

/* === Footer === */
.footer {
  background: var(--ink-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

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

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

.footer p, .footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 2;
}

.footer a:hover { color: var(--gold-light); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* === FAQ Accordion === */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.faq-question:hover { background: var(--rice-paper); }

.faq-question .icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--ink-green);
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* === FAQ chips === */
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid var(--rice-dark);
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover, .chip.active {
  background: var(--ink-green);
  color: #fff;
  border-color: var(--ink-green);
}

/* === Modal / Booking Flow === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-close:hover { background: #ddd; }

.modal h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rice-dark);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink-green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* === Booking Flow === */
.booking-flow {
  text-align: center;
}

.booking-flow .robot-animation {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--ink-green), var(--ink-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  animation: breath 2s ease-in-out infinite;
}

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

.booking-flow .customer-card {
  background: var(--ink-pale);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.booking-flow .customer-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.booking-flow .customer-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.booking-flow .progress-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.booking-flow .progress-step {
  text-align: center;
  flex: 1;
}

.booking-flow .progress-step .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rice-dark);
  margin: 0 auto 6px;
}

.booking-flow .progress-step.active .dot {
  background: var(--ink-green);
}

.booking-flow .progress-step span {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* === Review Stars === */
.stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.rating-number {
  text-align: center;
}

.rating-number .big {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink-dark);
  line-height: 1;
}

.rating-number .sub {
  font-size: 0.82rem;
  color: var(--text-light);
}

.rating-bars {
  flex: 1;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.rating-bar-row .bar-track {
  flex: 1;
  height: 8px;
  background: var(--rice-dark);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-row .bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
}

/* === Custom Tours Layout === */
.custom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.custom-cases h3 {
  margin-bottom: 16px;
}

.custom-case-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.custom-case-card img {
  width: 100px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.custom-case-card .info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.custom-case-card .info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ink-green), var(--gold));
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ink-green);
}

.timeline-item .year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

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

/* === Product Detail === */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-main-img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 400px;
  object-fit: cover;
}

.product-info h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-meta span {
  font-size: 0.82rem;
  background: var(--ink-pale);
  padding: 4px 12px;
  border-radius: 20px;
}

.product-info .price-large {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0;
}

.itinerary-day {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.itinerary-day h4 {
  color: var(--ink-dark);
  margin-bottom: 8px;
}

.itinerary-day .meal-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.itinerary-day .meal-icons .check { color: var(--ink-green); }
.itinerary-day .meal-icons .cross { color: #ccc; }

.itinerary-day ul {
  padding-left: 18px;
}

.itinerary-day ul li {
  list-style: disc;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 2px;
    border-bottom: none;
    border-left: 1px solid var(--rice-dark);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  }

  .navbar-links.open { transform: translateX(0); }

  .navbar-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  .navbar-links a:hover,
  .navbar-links a.active {
    background: var(--ink-pale);
  }

  .navbar-toggle { display: flex; z-index: 1000; }

  .hero-slider { height: 380px; }
  .hero-slide .slide-content h1 { font-size: 1.6rem; }
  .hero-slide .slide-content h2 { font-size: 1.6rem; }
  .hero-slide .slide-content p { font-size: 0.9rem; }
  
  .card-img { height: auto; aspect-ratio: 4/3; }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.4rem; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 24px; }
  .steps-row::before { display: none; }
  .custom-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .rating-summary { flex-direction: column; text-align: center; }
  .product-detail-layout { grid-template-columns: 1fr; }

  .page-header { padding: 40px 0 28px; }
  .page-header h1 { font-size: 1.4rem; }

  .filter-bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 375px) {
  .hero-slider { height: 300px; }
  .hero-slide .slide-content h1 { font-size: 1.3rem; }
  .hero-slide .slide-content h2 { font-size: 1.3rem; }
  .container { padding: 0 12px; }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* === Floating Sidebar === */
.sidebar-float {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sidebar-float .side-btn {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rice-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-green);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  position: relative;
}

.sidebar-float .side-btn:hover {
  background: var(--ink-green);
  color: #fff;
  border-color: var(--ink-green);
}

/* WeChat button - special style */
.sidebar-float .side-btn-wechat {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #07C160, #06ad56);
  border: none;
  box-shadow: 0 3px 12px rgba(7, 193, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.sidebar-float .side-btn-wechat:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(7, 193, 96, 0.4);
}

/* Tooltip */
.sidebar-float .side-btn .tooltip,
.sidebar-float .side-btn-wechat .tooltip {
  position: absolute;
  right: 58px;
  background: var(--ink-dark);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sidebar-float .side-btn:hover .tooltip,
.sidebar-float .side-btn-wechat:hover .tooltip {
  opacity: 1;
}

.sidebar-float .side-btn .tooltip::after,
.sidebar-float .side-btn-wechat .tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--ink-dark);
}

/* QR popup - hover card design */
.sidebar-float .wechat-wrap {
  position: relative;
}

.sidebar-float .wechat-wrap .qr-tab {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #07C160, #06ad56);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(7, 193, 96, 0.3);
  transition: box-shadow 0.2s;
}

.sidebar-float .wechat-wrap .qr-pop {
  position: absolute;
  right: 52px;
  top: -10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.15);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.sidebar-float .wechat-wrap:hover .qr-pop {
  opacity: 1;
  visibility: visible;
}

.sidebar-float .wechat-wrap .qr-pop img {
  width: 150px; height: 150px;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}

.sidebar-float .wechat-wrap .qr-pop img:hover {
  transform: scale(1.04);
}

.sidebar-float .wechat-wrap .qr-pop .qr-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.4;
  white-space: nowrap;
}

.sidebar-float .wechat-wrap .qr-pop .qr-label strong {
  color: #07C160;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sidebar-float .wechat-wrap .qr-tab { width: 40px; height: 40px; font-size: 0.95rem; }
  .sidebar-float .wechat-wrap .qr-pop { right: 46px; top: -14px; padding: 10px; }
  .sidebar-float .wechat-wrap .qr-pop img { width: 120px; height: 120px; }
}

/* Back to top */
.sidebar-float .back-to-top {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .sidebar-float { right: 10px; }
  .sidebar-float .side-btn, 
  .sidebar-float .side-btn-wechat,
  .sidebar-float .wechat-card,
  .sidebar-float .wechat-card .qr-tab { width: 40px; min-width: 40px; height: 40px; font-size: 0.95rem; }
  .sidebar-float .side-btn .tooltip,
  .sidebar-float .side-btn-wechat .tooltip { display: none; }
  .sidebar-float .wechat-card.open { width: 180px; }
  .sidebar-float .wechat-card.open .qr-body { width: 140px; padding: 12px 8px; }
  .sidebar-float .wechat-card .qr-body img { width: 110px; height: 110px; }
}

.news-list { max-width: 700px; margin: 0 auto; }

/* === Image Lightbox (页面内放大) === */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: lightboxIn 0.3s ease;
  cursor: default;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-overlay .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-overlay .lightbox-close:hover {
  background: rgba(255,255,255,0.35);
}

.lightbox-overlay .lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.4);
  padding: 8px 20px;
  border-radius: 20px;
}
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rice-dark);
}

.news-item:last-child { border-bottom: none; }
.news-item .date {
  min-width: 60px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.news-item .content h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.news-item .content p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ====== 韦依美途新版首页样式 ====== */
:root {
  --pink: #E07A5F;
  --navy: #2D3142;
  --gold: #C9A96E;
  --light: #F8F6F0;
  --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.08); position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 22px; font-weight: 700; display: flex; align-items: center; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--pink); }

/* Hero */
.hero {
  margin-top: 70px;
  height: 520px;
  background: linear-gradient(135deg, #2D3142 0%, #1a1a2e 50%, #16213e 100%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat; opacity: 0.8;
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 0 20px; }
.hero-title { font-size: 42px; font-weight: 800; margin-bottom: 15px; letter-spacing: 2px; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 30px; letter-spacing: 1px; }
.btn-main {
  display: inline-block; padding: 14px 40px;
  background: var(--pink); color: #fff; text-decoration: none;
  border-radius: 50px; font-size: 16px; font-weight: 600;
  transition: all 0.3s; border: none; cursor: pointer;
}
.btn-main:hover { background: #c96a4f; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(224,122,95,0.4); }

/* Section */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.section-line { width: 60px; height: 3px; background: var(--pink); margin: 0 auto 15px; border-radius: 2px; }
.section-desc { text-align: center; color: #888; font-size: 15px; max-width: 700px; margin: 0 auto 40px; }

/* City Nav */
.city-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.city-btn {
  padding: 8px 24px; border: 2px solid #eee; background: #fff; border-radius: 30px;
  cursor: pointer; font-size: 14px; color: var(--text); transition: all 0.3s;
}
.city-btn:hover { border-color: var(--pink); color: var(--pink); }
.city-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Service Grid */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }
.service-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,0.1); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h2 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card-body p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.card-body a { color: var(--pink); text-decoration: none; font-size: 14px; font-weight: 600; }
.card-body a:hover { text-decoration: underline; }

/* Stats */
.stats { background: var(--navy); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { font-size: 42px; font-weight: 800; color: var(--pink); margin-bottom: 5px; }
.stat-label { font-size: 15px; color: rgba(255,255,255,0.7); }

/* Contact */
.contact { background: var(--light); }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2 { font-size: 28px; color: var(--navy); margin-bottom: 10px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-item .icon { font-size: 24px; width: 50px; height: 50px; background: var(--pink); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h3 { font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.contact-item p { font-size: 14px; color: #666; }
.contact-form { background: #fff; padding: 35px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.contact-form h3 { font-size: 20px; color: var(--navy); margin-bottom: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-phone h4 { font-size: 14px; color: var(--pink); margin-bottom: 5px; }
.contact-phone p { font-size: 22px; font-weight: 700; color: var(--navy); }
.contact-qrcode { text-align: center; }
.contact-qrcode h4 { font-size: 14px; color: var(--pink); margin-bottom: 10px; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
.footer-contact { margin-bottom: 8px; font-size: 14px; }
.footer-title { font-size: 16px; color: #fff; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--pink); }
.footer-copyright { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 40px; text-align: center; font-size: 13px; }

@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero { height: 400px; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
}
