/* ============================================================
   齐小榆 · 北京导游个人品牌博客
   "西湖晨雾" 轻暖风格
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --mist-rose:    #c49b95;
  --mist-green:   #7a9a7e;
  --tea-gold:     #b8945a;
  --rice-paper:   #fdfaf5;
  --warm-white:   #fefefb;
  --text-warm:    #4a3f3a;
  --text-soft:    #8a7f7a;
  --border-light: #ede6dd;
  --shadow-card:  0 2px 12px rgba(74,63,58,0.06);
  --shadow-hover: 0 6px 24px rgba(74,63,58,0.10);
  --radius:       12px;
  --radius-sm:    8px;
  --font-heading: 'Noto Serif SC', 'Georgia', serif;
  --font-body:    'Noto Sans SC', 'PingFang SC', sans-serif;
  --max-width:    1200px;
  --header-height: 68px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mist-green); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--tea-gold); }

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

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }

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

.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--mist-rose);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--mist-rose);
  color: #fff;
}
.btn-primary:hover {
  background: #b0837c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196,155,149,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-warm);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--mist-rose);
  color: var(--mist-rose);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,250,245,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-warm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.logo span { color: var(--mist-rose); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-warm);
  background: rgba(196,155,149,0.1);
}
.nav-links a.active { color: var(--mist-rose); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-warm);
  cursor: pointer;
  padding: 4px;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--rice-paper) 0%, var(--warm-white) 100%);
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-visual { flex: 0 0 320px; }
.hero-visual img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.hero-content { flex: 1; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  border-radius: 50px;
  background: rgba(196,155,149,0.12);
  color: var(--mist-rose);
  font-weight: 500;
}
.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.hero-content .slogan {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Stats Cards (为什么选我) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.stat-card .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mist-rose);
  display: block;
}
.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 4px;
}

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

.card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(122,154,126,0.1);
  color: var(--mist-green);
  border-radius: 50px;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.card-body p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.card-price {
  font-family: var(--font-heading);
  color: var(--mist-rose);
  font-weight: 600;
}

/* --- Reviews --- */
.review-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist-rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.review-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.review-date {
  font-size: 0.78rem;
  color: var(--text-soft);
}
.stars {
  color: var(--tea-gold);
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--mist-rose) 0%, #b0837c 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius);
  margin: 48px auto;
  max-width: var(--max-width);
}
.cta-section h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.cta-section p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1rem;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--mist-rose);
}
.cta-section .btn-primary:hover {
  background: var(--warm-white);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--text-warm);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 32px;
  text-align: center;
  font-size: 0.8rem;
}

.qrcode-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--mist-rose); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--text-warm); font-weight: 500; }

/* --- Blog List --- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 18px;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  background: var(--warm-white);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--mist-rose);
  color: #fff;
  border-color: var(--mist-rose);
}

/* --- Blog Detail --- */
.blog-detail-article {
  max-width: 780px;
  margin: 0 auto;
}
.blog-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-content {
  font-size: 1rem;
  line-height: 1.9;
}
.blog-content h2 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.blog-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.blog-content p {
  margin-bottom: 16px;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 16px 24px;
}
.blog-content li { margin-bottom: 6px; }
.blog-content blockquote {
  border-left: 3px solid var(--mist-rose);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(196,155,149,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: italic;
}
.author-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 40px 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.author-info p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* --- Route Detail --- */
.route-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.route-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.route-price-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.route-price-card .price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--mist-rose);
}
.route-price-card .price span {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.itinerary-day {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.itinerary-day h3 {
  color: var(--mist-rose);
  margin-bottom: 8px;
}
.itinerary-day ul {
  list-style: none;
}
.itinerary-day ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 0.9rem;
}
.itinerary-day ul li::before {
  content: '•';
  color: var(--mist-green);
  position: absolute;
  left: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-grid .gallery-item:nth-child(2) { grid-row: span 2; }
.gallery-grid .gallery-item:nth-child(2) img { height: 100%; min-height: 536px; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
}
.contact-info-card .icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info-card .icon-row i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(196,155,149,0.1);
  color: var(--mist-rose);
  font-size: 1.1rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-warm);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--warm-white);
  color: var(--text-warm);
  transition: border-color 0.25s;
}
.form-control:focus {
  outline: none;
  border-color: var(--mist-rose);
  box-shadow: 0 0 0 3px rgba(196,155,149,0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* --- Submit Success --- */
.success-page {
  text-align: center;
  padding: 80px 24px;
}
.success-page .icon {
  font-size: 4rem;
  color: var(--mist-green);
  margin-bottom: 24px;
}
.success-page h1 {
  margin-bottom: 12px;
}
.success-page p {
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* --- FAQ --- */
.faq-item {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  color: var(--mist-rose);
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* --- Reviews Page Specific --- */
.reviews-summary {
  text-align: center;
  padding: 32px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.reviews-summary .big-score {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--mist-rose);
}
.reviews-summary .stats {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 4px;
}
.review-list .review-card {
  margin-bottom: 16px;
}

/* --- About Page --- */
.about-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.about-hero img {
  width: 280px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.about-story {
  flex: 1;
}
.about-story p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.about-qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.about-qual-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.about-qual-item i {
  font-size: 1.3rem;
  color: var(--mist-green);
  width: 36px;
  text-align: center;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(180deg, var(--rice-paper) 0%, var(--warm-white) 100%);
  padding: 48px 0 32px;
  text-align: center;
}
.page-header h1 {
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-tags { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: unset; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .route-detail-layout { grid-template-columns: 1fr; }
  .route-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 12px 24px;
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 40px 0; }
  .hero-visual { flex: 0 0 auto; }
  .hero-visual img { width: 200px; height: 260px; }
  .hero-content h1 { font-size: 1.6rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item:nth-child(2) { grid-row: auto; }
  .gallery-grid .gallery-item:nth-child(2) img { min-height: auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .about-hero { flex-direction: column; align-items: center; text-align: center; }
  .about-qual-grid { grid-template-columns: 1fr; }
  .about-qual-item { justify-content: center; }
  .site-footer .container { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 20px; }
  .cta-section h2 { font-size: 1.4rem; }

  .blog-detail-article { padding: 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .filter-bar { justify-content: center; }
}

/* --- Skeleton / Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #f5f0ea 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--rice-paper); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

/* GEO 规范已适配 */
