/* ========================================
   柴燕玲导游个人博客 - 西湖晨雾轻暖风格
   ======================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --mist-rose: #c49b95;
  --mist-green: #7a9a7e;
  --tea-gold: #b8945a;
  --rice-paper: #fdfaf5;
  --warm-white: #fefefb;
  --text-warm: #4a3f3a;
  --text-soft: #8a7f7a;
  --shadow-soft: rgba(74, 63, 58, 0.08);
  --shadow-medium: rgba(74, 63, 58, 0.12);
  --font-heading: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--rice-paper);
  color: var(--text-warm);
  line-height: 1.8;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mist-rose);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--tea-gold);
}

/* --- Typography --- */
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.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px var(--shadow-soft);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mist-rose);
}

.nav-logo span {
  color: var(--tea-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-warm);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mist-rose);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-warm);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--rice-paper) 0%, rgba(196, 155, 149, 0.1) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .slogan {
  font-size: 1.25rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--warm-white);
  color: var(--mist-rose);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--mist-rose);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-medium);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--mist-rose);
  opacity: 0.2;
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--mist-rose);
  color: white;
}

.btn-primary:hover {
  background: var(--tea-gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 155, 149, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--mist-rose);
  border: 2px solid var(--mist-rose);
}

.btn-secondary:hover {
  background: var(--mist-rose);
  color: white;
}

.btn-ghost {
  background: var(--warm-white);
  color: var(--text-warm);
  border: 1px solid var(--shadow-medium);
}

.btn-ghost:hover {
  border-color: var(--mist-rose);
  color: var(--mist-rose);
}

/* --- Stats Section --- */
.stats {
  background: var(--warm-white);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--mist-rose);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-soft);
  font-size: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-medium);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(196, 155, 149, 0.15);
  color: var(--mist-rose);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-title a {
  color: var(--text-warm);
}

.card-title a:hover {
  color: var(--mist-rose);
}

.card-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Routes Grid --- */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.route-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
  transition: var(--transition);
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-medium);
}

.route-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.route-content {
  padding: 1.5rem;
}

.route-days {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--mist-green);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.route-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-warm);
}

.route-summary {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.route-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--tea-gold);
  font-weight: 700;
}

.route-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-soft);
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow-soft);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--mist-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.review-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.review-info .date {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.review-rating i {
  color: var(--tea-gold);
  font-size: 0.875rem;
}

.review-text {
  color: var(--text-warm);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-size: 0.875rem;
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: var(--warm-white);
  color: var(--text-soft);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--mist-rose);
  color: white;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--mist-rose) 0%, var(--tea-gold) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-section .btn {
  background: white;
  color: var(--mist-rose);
}

.cta-section .btn:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
}

/* --- About Page --- */
.about-hero {
  padding-top: 120px;
  padding-bottom: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 50px var(--shadow-medium);
}

.about-content h1 {
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.about-text {
  margin-bottom: 2rem;
}

.about-text h3 {
  margin-bottom: 1rem;
  color: var(--mist-rose);
}

.certificates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--warm-white);
  border-radius: var(--radius-md);
}

.cert-item i {
  font-size: 1.5rem;
  color: var(--tea-gold);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info {
  background: var(--warm-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 155, 149, 0.15);
  color: var(--mist-rose);
  border-radius: 50%;
  font-size: 1.25rem;
}

.contact-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-soft);
  margin: 0;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  background: var(--rice-paper);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-warm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(138, 127, 122, 0.3);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--warm-white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mist-rose);
  box-shadow: 0 0 0 3px rgba(196, 155, 149, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Blog Detail --- */
.article-header {
  padding-top: 120px;
  padding-bottom: 2rem;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--mist-rose);
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--mist-rose);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-soft);
}

.author-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  margin: 3rem 0;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--mist-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-info h4 {
  margin-bottom: 0.5rem;
}

.author-info p {
  color: var(--text-soft);
  margin: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  padding: 1rem 0;
  margin-top: 80px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--mist-rose);
}

.breadcrumb span {
  color: var(--mist-rose);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  border: none;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Footer --- */
.footer {
  background: var(--text-warm);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-about p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--mist-rose);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact i {
  color: var(--mist-rose);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* --- Success Page --- */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: var(--mist-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 2rem;
}

.success-page h1 {
  margin-bottom: 1rem;
}

.success-page p {
  color: var(--text-soft);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-soft);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--mist-rose);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary:hover {
  color: var(--mist-rose);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    justify-self: center;
  }

  .hero-tags {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 350px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rice-paper);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 10px 30px var(--shadow-soft);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .routes-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .certificates {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }
}

/* --- Page Header --- */
.page-header {
  padding-top: 120px;
  padding-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--rice-paper) 0%, rgba(196, 155, 149, 0.1) 100%);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none; }
