/* ============================================================
   云途·云南8日 — 全站样式
   基调：雪山蓝 #1e3a5f + 草甸绿 + 米白 #f7f5f0
   ============================================================ */

:root {
  --blue: #1e3a5f;
  --blue-deep: #142a47;
  --blue-light: #2f5484;
  --green: #4a7c59;
  --green-light: #6fa87e;
  --cream: #f7f5f0;
  --cream-deep: #efeadf;
  --ink: #2b2f33;
  --ink-soft: #5b626b;
  --line: #e3ddd0;
  --gold: #c89b3c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 58, 95, .10);
  --shadow-hover: 0 12px 32px rgba(30, 58, 95, .18);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }

/* ---------- 页头 / 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 42, 71, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--green-light); }

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

.nav-links a {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}

.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.nav-links a.active {
  color: #fff;
  background: var(--green);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  background-color: var(--blue);
  display: flex;
  align-items: flex-end;
}

.hero-mask {
  width: 100%;
  padding: 56px 20px 40px;
  background: linear-gradient(to top, rgba(15, 30, 50, .78), rgba(15, 30, 50, .15) 70%, transparent);
}

.hero-title {
  max-width: 1120px;
  margin: 0 auto;
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.hero-sub {
  max-width: 1120px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* ---------- 主体容器 / 区块 ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.block {
  margin-top: 56px;
}

.block-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 5px solid var(--green);
  line-height: 1.4;
}

.block > p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ---------- 每日行程卡 ---------- */

.day-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
  transition: box-shadow .25s, transform .25s;
}

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

.day-main {
  flex: 1;
  min-width: 0;
}

.day-num {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.day-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.day-meta {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.day-body {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 卡片网格（景点 / 酒店） ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.spot-card,
.hotel-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}

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

.spot-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-light), var(--green));
}

.spot-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spot-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.spot-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.spot-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.spot-info span {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.spot-info .price {
  background: rgba(200, 155, 60, .14);
  color: #9a7524;
  font-weight: 600;
}

.spot-info .open {
  background: rgba(74, 124, 89, .12);
  color: var(--green);
}

.spot-info .duration {
  background: rgba(30, 58, 95, .10);
  color: var(--blue);
}

.spot-tips {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.book-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  padding: 8px 20px;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}

.book-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(74, 124, 89, .35);
}

/* ---------- 预算表 ---------- */

.budget-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 15px;
}

.budget-table th,
.budget-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.budget-table thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.budget-table tbody tr:nth-child(even) { background: var(--cream); }

.budget-table tbody tr:hover { background: var(--cream-deep); }

.budget-table td:last-child,
.budget-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.budget-table tfoot td {
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  border-bottom: none;
  font-size: 16px;
}

/* ---------- 提示列表 ---------- */

.tips-list {
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
}

.tips-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.tips-list li:last-child { border-bottom: none; }

.tips-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, .65);
  text-align: center;
  font-size: 13.5px;
  padding: 28px 20px;
  letter-spacing: .5px;
}

.site-footer a { color: var(--green-light); }

/* ---------- 滚动渐入 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 返回顶部按钮 ---------- */

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 42, 71, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--green); }

/* ---------- 图片加载失败占位 ---------- */

.img-fallback {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 55%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---------- 移动端响应式 ---------- */

@media (max-width: 768px) {
  .nav {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a { font-size: 14px; padding: 5px 12px; }

  .hero { height: 300px; }

  .hero-title { font-size: 28px; letter-spacing: 2px; }

  .hero-sub { font-size: 14.5px; }

  .block { margin-top: 40px; }

  .block-title { font-size: 21px; }

  .card-grid { grid-template-columns: 1fr; }

  .day-card { flex-direction: column; gap: 12px; padding: 18px; }

  .day-num { width: 48px; height: 48px; font-size: 16px; }

  .budget-table { font-size: 13.5px; }

  .budget-table th,
  .budget-table td { padding: 10px 12px; }

  .back-to-top { right: 18px; bottom: 22px; width: 44px; height: 44px; }
}
