/* ============================================================
   张春 · 新疆导游个人博客 — 全局样式
   设计风格："天山晨光"轻暖风（由"西湖晨雾"模板适配新疆主题）
   关键词：温暖 / 真实 / 亲切 / 文化感 / 留白 / 手写质感
   ============================================================ */

:root {
  /* 天山晨光色板 */
  --dune-gold:     #c08a3e;   /* 胡杨金 · 主色 */
  --tianshan-blue: #5f8ea8;   /* 天池蓝 · 辅色 */
  --pomegranate:   #c05b4d;   /* 石榴红 · 点缀 */
  --sand-paper:    #faf6ef;   /* 沙宣纸 · 背景 */
  --warm-white:    #fefefb;   /* 暖白 · 卡片 */
  --text-warm:     #4a3f3a;   /* 暖棕 · 正文 */
  --text-soft:     #8a7f7a;   /* 柔灰 · 辅助 */
  --line-warm:     #ece2d3;   /* 暖线 · 分隔 */

  --font-heading: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body:    'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(74, 63, 58, .08);
  --shadow-hover: 0 12px 32px rgba(74, 63, 58, .14);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-warm);
  background: var(--sand-paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--dune-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pomegranate); }

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

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

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-warm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 700; color: var(--text-warm);
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dune-gold), var(--pomegranate));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--text-warm); padding: 8px 14px; border-radius: 999px;
  font-size: .95rem; position: relative;
}
.main-nav a:hover { color: var(--pomegranate); background: rgba(192, 138, 62, .08); }
.main-nav a.active { color: #fff; background: var(--dune-gold); }
.nav-toggle {
  display: none; border: none; background: none; font-size: 1.3rem;
  color: var(--text-warm); cursor: pointer; padding: 6px 10px;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--warm-white); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker {
  display: inline-block; font-size: .82rem; letter-spacing: .2em;
  color: var(--pomegranate); margin-bottom: 10px; font-weight: 500;
}
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--text-soft); margin-top: 10px; max-width: 560px; margin-inline: auto; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; border: none;
  font-size: 1rem; cursor: pointer; transition: all .25s;
  font-family: var(--font-body); font-weight: 500;
}
.btn-primary { background: linear-gradient(135deg, var(--dune-gold), #d9a55c); color: #fff; box-shadow: 0 4px 14px rgba(192, 138, 62, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(192, 138, 62, .45); color: #fff; }
.btn-outline { background: transparent; color: var(--dune-gold); border: 1.5px solid var(--dune-gold); }
.btn-outline:hover { background: var(--dune-gold); color: #fff; transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(95, 142, 168, .12), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(192, 138, 62, .10), transparent 50%),
    var(--sand-paper);
}
.hero-inner { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero-photo::after {
  content: "📷 形象照占位 · 请替换为张春真实照片";
  position: absolute; inset: auto 0 0 0; padding: 8px 0;
  background: rgba(74, 63, 58, .72); color: #fff; font-size: .78rem;
  text-align: center; border-radius: 0 0 24px 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(192, 138, 62, .12); color: var(--dune-gold);
  border: 1px solid rgba(192, 138, 62, .35);
  padding: 6px 16px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px;
}
.hero h1 { font-size: 2.7rem; margin-bottom: 14px; }
.hero h1 .accent { color: var(--pomegranate); }
.hero .slogan { font-size: 1.25rem; color: var(--text-soft); margin-bottom: 22px; font-family: var(--font-heading); }
.hero .desc { color: var(--text-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  background: var(--warm-white); border: 1px solid var(--line-warm);
  border-radius: 999px; padding: 7px 16px; font-size: .88rem; color: var(--text-warm);
  box-shadow: var(--shadow);
}
.chip i { color: var(--tianshan-blue); margin-right: 6px; }

/* ---------------- 为什么选我 / 数据 ---------------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  background: var(--warm-white); border-radius: var(--radius); padding: 34px 26px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line-warm);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-card .num {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700;
  color: var(--dune-gold); line-height: 1.2;
}
.stat-card .num small { font-size: 1.1rem; }
.stat-card .label { color: var(--text-soft); margin-top: 8px; font-size: .95rem; }

/* ---------------- 卡片网格 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--warm-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line-warm);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.12rem; }
.card-body h3 a { color: var(--text-warm); }
.card-body h3 a:hover { color: var(--pomegranate); }
.card-meta { display: flex; gap: 14px; font-size: .83rem; color: var(--text-soft); }
.card-summary { color: var(--text-soft); font-size: .93rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.card-link { font-size: .9rem; font-weight: 500; }

.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .78rem; background: rgba(95, 142, 168, .12); color: var(--tianshan-blue);
  font-weight: 500; align-self: flex-start;
}
.badge.hot { background: rgba(192, 91, 77, .12); color: var(--pomegranate); }
.badge.food { background: rgba(192, 138, 62, .14); color: var(--dune-gold); }
.badge.story { background: rgba(192, 91, 77, .10); color: var(--pomegranate); }
.badge.tips { background: rgba(95, 142, 168, .12); color: var(--tianshan-blue); }

/* 路线卡片 */
.route-card .route-info { display: flex; gap: 18px; align-items: center; }
.route-days { color: var(--tianshan-blue); font-size: .88rem; }
.route-price { color: var(--pomegranate); font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.route-price small { font-size: .8rem; color: var(--text-soft); font-weight: 400; }

/* ---------------- 好评 ---------------- */
.review-card { padding: 26px; }
.review-stars { color: #e8a33d; font-size: .9rem; letter-spacing: 2px; }
.review-text { color: var(--text-warm); margin: 14px 0; font-size: .95rem; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--tianshan-blue), var(--dune-gold));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
}
.review-author .name { font-weight: 600; font-size: .95rem; }
.review-author .meta { font-size: .8rem; color: var(--text-soft); }

/* ---------------- 相册 ---------------- */
.gallery-grid { columns: 3; column-gap: 20px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 20px; position: relative; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(74, 63, 58, .75));
  color: #fff; font-size: .88rem;
}
.gallery-item .gallery-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(250, 246, 239, .9);
  color: var(--text-warm); font-size: .75rem; padding: 3px 10px; border-radius: 999px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(30, 24, 20, .9);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lightbox-cap { color: #eee; font-size: .95rem; }
.lightbox .lightbox-close {
  position: absolute; top: 22px; right: 30px; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}

/* ---------------- 详情页 ---------------- */
.article-hero { padding: 48px 0 24px; }
.article-hero h1 { font-size: 2.1rem; margin: 16px 0 12px; }
.article-hero .meta { display: flex; gap: 18px; color: var(--text-soft); font-size: .9rem; flex-wrap: wrap; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-top: 26px; box-shadow: var(--shadow); }

.article-body { max-width: 760px; margin: 0 auto; padding: 36px 0 60px; }
.article-body h2 { font-size: 1.45rem; margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--dune-gold); }
.article-body h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--pomegranate); }
.article-body p { margin: 14px 0; }
.article-body ul { margin: 14px 0 14px 22px; }
.article-body li { margin: 8px 0; }
.article-body strong { color: var(--pomegranate); }

.author-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--warm-white); border: 1px solid var(--line-warm);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.author-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card h4 { margin-bottom: 4px; }
.author-card p { font-size: .9rem; color: var(--text-soft); }

/* ---------------- 路线详情时间轴 ---------------- */
.timeline { margin: 24px 0; }
.timeline-block {
  border-left: 3px solid var(--line-warm); padding: 6px 0 22px 26px; position: relative;
}
.timeline-block::before {
  content: ""; position: absolute; left: -8px; top: 14px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--dune-gold); border: 3px solid var(--sand-paper);
}
.timeline-block h3 { color: var(--dune-gold); font-size: 1.05rem; }
.timeline-block ul { margin: 8px 0 0 20px; }
.timeline-block li { margin: 6px 0; font-size: .95rem; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { padding: 22px 0 0; font-size: .88rem; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--pomegranate); }
.breadcrumb i { margin: 0 8px; font-size: .75rem; color: #c9beb2; }

/* ---------------- 表单 ---------------- */
.form-card {
  background: var(--warm-white); border: 1px solid var(--line-warm);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); max-width: 640px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .9rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--line-warm); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .95rem; font-family: var(--font-body);
  background: #fff; color: var(--text-warm); transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--dune-gold);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-tip { font-size: .8rem; color: var(--text-soft); }

/* ---------------- FAQ (details/summary, SEO友好) ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--warm-white); border: 1px solid var(--line-warm);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--dune-gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 18px; color: var(--text-soft); font-size: .95rem; }

/* ---------------- 联系卡片 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--warm-white); border: 1px solid var(--line-warm);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.contact-card i {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192, 138, 62, .12); color: var(--dune-gold); font-size: 1.2rem;
}
.contact-card .label { font-size: .82rem; color: var(--text-soft); }
.contact-card .value { font-weight: 600; }
.qr-box {
  background: var(--warm-white); border: 1px dashed var(--line-warm);
  border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.qr-box .qr-placeholder {
  width: 160px; height: 160px; margin: 0 auto 12px;
  border-radius: 12px; background: repeating-linear-gradient(45deg, #f3ecdf, #f3ecdf 8px, #faf6ef 8px, #faf6ef 16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: .8rem; gap: 8px;
}
.qr-box .qr-placeholder i { font-size: 2.4rem; color: var(--dune-gold); }

/* ---------------- 提交成功页 ---------------- */
.success-wrap { text-align: center; padding: 90px 0; }
.success-icon {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
  background: linear-gradient(135deg, #7aa58a, var(--tianshan-blue));
  color: #fff; font-size: 2.6rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(95, 142, 168, .35);
}
.success-wrap h1 { font-size: 1.9rem; margin-bottom: 14px; }
.success-wrap p { color: var(--text-soft); margin-bottom: 10px; }
.success-wrap .btn { margin-top: 26px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #f3ecdf; border-top: 1px solid var(--line-warm); margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px;
  padding: 56px 0 36px;
}
.footer-col h4 { font-size: 1.02rem; margin-bottom: 14px; }
.footer-col p { font-size: .9rem; color: var(--text-soft); margin: 8px 0; }
.footer-col a { display: block; font-size: .9rem; color: var(--text-soft); margin: 8px 0; }
.footer-col a:hover { color: var(--pomegranate); }
.footer-bottom {
  border-top: 1px solid var(--line-warm); padding: 18px 0;
  text-align: center; font-size: .82rem; color: var(--text-soft);
}

/* ---------------- CTA 横幅 ---------------- */
.cta-banner {
  background: linear-gradient(120deg, rgba(192, 138, 62, .14), rgba(95, 142, 168, .14));
  border: 1px solid var(--line-warm); border-radius: 22px;
  padding: 52px 40px; text-align: center; box-shadow: var(--shadow);
}
.cta-banner h2 { font-size: 1.7rem; margin-bottom: 12px; }
.cta-banner p { color: var(--text-soft); margin-bottom: 26px; }

/* ---------------- 筛选按钮 ---------------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  border: 1.5px solid var(--line-warm); background: var(--warm-white); color: var(--text-warm);
  padding: 9px 22px; border-radius: 999px; cursor: pointer; font-size: .92rem;
  font-family: var(--font-body); transition: all .2s;
}
.filter-btn:hover { border-color: var(--dune-gold); color: var(--dune-gold); }
.filter-btn.active { background: var(--dune-gold); border-color: var(--dune-gold); color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 300px 1fr; gap: 36px; }
  .card-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { max-width: 300px; margin: 0 auto; }
  .hero h1 { font-size: 2rem; }
  .hero-actions, .chips { justify-content: center; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--sand-paper); flex-direction: column; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line-warm);
    transform: translateY(-130%); transition: transform .3s; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }

  .card-grid, .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.55rem; }
  .cta-banner { padding: 36px 22px; }
}
