/* ============================================================
   陈姑娘个人博客 — "西湖晨雾"轻暖风格
   导游个人品牌网站 · GEO 规范已适配
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --mist-rose:    #c49b95;
  --mist-rose-light: #d9bdb8;
  --mist-green:   #7a9a7e;
  --mist-green-light: #a3bfa6;
  --tea-gold:     #b8945a;
  --tea-gold-light: #d4ba8a;
  --rice-paper:   #fdfaf5;
  --warm-white:   #fefefb;
  --text-warm:    #4a3f3a;
  --text-soft:    #8a7f7a;
  --text-light:   #b5aca6;
  --border-warm:  #e8e0d8;
  --shadow-sm:    0 2px 8px rgba(74,63,58,0.06);
  --shadow-md:    0 6px 24px rgba(74,63,58,0.10);
  --shadow-lg:    0 12px 40px rgba(74,63,58,0.14);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --font-heading: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --font-body:    'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width:    1200px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-warm);
  background: var(--rice-paper);
  line-height: 1.75;
  overflow-x: hidden;
}

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

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--mist-rose);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--tea-gold); }

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(254,254,251,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-warm);
  padding: 0.6rem 1.5rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-warm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo i { color: var(--mist-rose); font-size: 1.35rem; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  padding: 0; margin: 0;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--mist-rose);
  border-bottom-color: var(--mist-rose);
}
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-warm);
  cursor: pointer;
}

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

/* ---------- Section ---------- */
.section {
  padding: 4rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-warm);
}
.section-header .subtitle {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-divider {
  width: 48px; height: 3px;
  background: var(--mist-rose);
  margin: 0.8rem auto 1rem;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-primary {
  background: var(--mist-rose);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196,155,149,0.35);
}
.btn-primary:hover {
  background: #b38680;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,155,149,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--mist-rose);
  border: 1.5px solid var(--mist-rose);
}
.btn-outline:hover {
  background: var(--mist-rose);
  color: #fff;
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--tea-gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184,148,90,0.35);
}
.btn-gold:hover {
  background: #a07d48;
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--warm-white);
  box-shadow: var(--shadow-md);
  background: var(--border-warm);
}
.hero-name {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hero-slogan {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
  font-style: italic;
}
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Card Grid ---------- */
.card-grid { display: grid; gap: 1.8rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--border-warm);
}
.card-body { padding: 1.3rem 1.3rem 1.5rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-body p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}

/* ---------- Trust Cards (Why Me) ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.trust-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.trust-icon {
  font-size: 2.2rem;
  color: var(--mist-rose);
  margin-bottom: 0.8rem;
}
.trust-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-warm);
}
.trust-label {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  padding: 1.5rem;
  transition: all 0.3s;
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--border-warm);
  object-fit: cover;
}
.review-name { font-weight: 600; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--text-light); }
.review-stars { color: var(--tea-gold); font-size: 0.85rem; }
.review-body {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(74,63,58,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i {
  color: #fff;
  font-size: 1.8rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-warm);
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-warm);
  background: var(--warm-white);
  transition: border 0.25s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--mist-rose);
  box-shadow: 0 0 0 3px rgba(196,155,149,0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ---------- Contact Cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  padding: 2rem 1.5rem;
  text-align: center;
}
.contact-card i {
  font-size: 2rem;
  color: var(--mist-rose);
  margin-bottom: 0.8rem;
}
.contact-card h4 { margin-bottom: 0.4rem; }
.contact-card p { color: var(--text-soft); font-size: 0.9rem; margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--mist-rose); }
.breadcrumb span { color: var(--text-warm); }

/* ---------- Blog Detail ---------- */
.blog-detail-header {
  text-align: center;
  margin-bottom: 2rem;
}
.blog-detail-header .blog-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.blog-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 2;
}
.blog-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-warm);
}
.blog-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
}
.blog-content blockquote {
  border-left: 3px solid var(--mist-rose);
  padding: 0.8rem 1.2rem;
  margin: 1.2rem 0;
  background: var(--warm-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: italic;
}
.blog-content ul, .blog-content ol { margin-bottom: 1rem; }
.blog-content li { margin-bottom: 0.5rem; }

/* Author Card */
.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem auto;
  max-width: 760px;
}
.author-card img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author-card h4 { margin-bottom: 0.2rem; }
.author-card p { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--mist-rose), #d4a89a);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}
.cta-section p {
  color: rgba(255,255,255,0.88);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}
.cta-section .btn {
  background: #fff;
  color: var(--mist-rose);
  font-weight: 600;
}
.cta-section .btn:hover {
  background: var(--warm-white);
  color: var(--mist-rose);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border-warm);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.footer-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.footer-contact i { color: var(--mist-rose); margin-right: 0.3rem; }
.footer-qr {
  width: 100px; height: 100px;
  background: var(--border-warm);
  margin: 1rem auto;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ---------- Filter Tags ---------- */
.filter-tags {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tag {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  color: var(--text-soft);
  transition: all 0.25s;
}
.filter-tag:hover { border-color: var(--mist-rose); color: var(--mist-rose); }
.filter-tag.active {
  background: var(--mist-rose);
  color: #fff;
  border-color: var(--mist-rose);
}

/* ---------- Rating Summary ---------- */
.rating-summary {
  text-align: center;
  padding: 2.5rem;
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}
.rating-big {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--tea-gold);
}
.rating-stars { color: var(--tea-gold); font-size: 1.5rem; margin: 0.3rem 0 0.5rem; }
.rating-count { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Route Detail ---------- */
.route-hero { margin-bottom: 2rem; }
.route-hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.route-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.route-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.route-info-item i { color: var(--mist-rose); }
.route-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mist-rose);
  margin: 1rem 0;
}
.route-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-soft); }
.route-section {
  margin-bottom: 2rem;
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.route-section h3 { margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-warm); }
.route-section ul { margin-bottom: 0; }

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: linear-gradient(135deg, rgba(196,155,149,0.08), rgba(184,148,90,0.08));
  border-left: 3px solid var(--tea-gold);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-warm);
}
.highlight-box i { color: var(--tea-gold); margin-right: 0.4rem; }

/* ---------- Submit Success ---------- */
.success-page {
  text-align: center;
  padding: 6rem 0;
}
.success-icon {
  font-size: 5rem;
  color: var(--mist-green);
  margin-bottom: 1.5rem;
}
.success-page h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.success-page p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}
.faq-item summary {
  padding: 1rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-light);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 1.3rem 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- Blog sidebar layout ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.blog-sidebar {
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.blog-sidebar h4 { margin-bottom: 0.8rem; }
.blog-sidebar ul { list-style: none; padding: 0; }
.blog-sidebar ul li { margin-bottom: 0.5rem; }
.blog-sidebar ul li a { font-size: 0.88rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
th, td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-warm);
}
th {
  background: var(--warm-white);
  font-weight: 600;
  color: var(--text-warm);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2rem;
}
.pagination a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--border-warm);
  color: var(--text-soft);
  background: var(--warm-white);
}
.pagination a.active {
  background: var(--mist-rose);
  color: #fff;
  border-color: var(--mist-rose);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-guide { background: rgba(196,155,149,0.15); color: var(--mist-rose); }
.badge-food  { background: rgba(184,148,90,0.15); color: var(--tea-gold); }
.badge-story { background: rgba(122,154,126,0.15); color: var(--mist-green); }
.badge-tips  { background: rgba(138,127,122,0.12); color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(254,254,251,0.98);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-warm);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2rem; }
  .hero-slogan { font-size: 1rem; }
  .section { padding: 3rem 0; }
  .cta-section {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    padding: 3rem 1rem;
  }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-avatar { width: 110px; height: 110px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 260px; justify-content: center; }
  .rating-big { font-size: 2.8rem; }
}
