/* ============================================================
 * 新疆 · 极致风光之旅 —— 仿 Bing Spotlight 沉浸式风格
 * ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --accent: #1a5276;
  --accent-light: #2e86c1;
  --line: #e5e5e5;
  --card-bg: #f8f9fa;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ============ Hero（沉浸式整屏） ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 960px;
}

.hero-kicker {
  letter-spacing: 0.45em;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 22px;
  animation: fadeUp 1s 0.2s both;
}

.hero-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  animation: fadeUp 1s 0.4s both;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 2vw, 20px);
  opacity: 0.92;
  letter-spacing: 0.08em;
  animation: fadeUp 1s 0.6s both;
}

.hero-meta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  opacity: 0.85;
  animation: fadeUp 1s 0.8s both;
}
.hero-meta i { font-style: normal; opacity: 0.5; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.8;
}
.scroll-line {
  width: 1px;
  height: 46px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, #fff, transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-links a {
  margin-left: 28px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ============ 通用小节 ============ */
section { padding: 90px 0; }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
}
.section-title .en {
  display: block;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--accent-light);
  font-weight: 500;
  margin-top: 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 48px;
  font-size: 15px;
}

/* ============ 介绍正文（仿 Spotlight 文章） ============ */
.intro {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.intro .lead {
  font-size: 19px;
  color: #333;
  margin-bottom: 22px;
}
.intro p {
  margin-bottom: 18px;
  color: #444;
  font-size: 16px;
}
.intro strong { color: var(--accent); }

/* ============ 区域 Tab ============ */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.region-tab {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.region-tab:hover { border-color: var(--accent-light); color: var(--accent); }
.region-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ 线路卡片 ============ */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.route-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.route-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26,82,118,0.16);
}
.route-card-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.route-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45));
}
.route-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(26,82,118,0.92);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.route-card-days {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.route-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.route-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.45;
}
.route-card-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  flex: 1;
}
.route-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.route-card-tags span {
  font-size: 11.5px;
  background: #eef4f9;
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 9px;
}
.route-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.route-card-foot .start { color: var(--ink-soft); }
.route-card-foot .more { color: var(--accent); font-weight: 600; }

/* ============ 区域探索大卡 ============ */
.region-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.region-card {
  position: relative;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.region-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.72));
}
.region-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 20px;
  color: #fff;
}
.region-card-en {
  font-size: 11px;
  letter-spacing: 0.35em;
  opacity: 0.8;
  text-transform: uppercase;
}
.region-card-name { font-size: 21px; font-weight: 700; margin: 4px 0 6px; }
.region-card-desc { font-size: 12.5px; opacity: 0.9; line-height: 1.6; }
.region-card-count {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ============ 说明 ============ */
.notice { background: #f4f6f6; }
.notice-list {
  list-style: none;
  margin-top: 10px;
}
.notice-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #444;
}

/* ============ 页脚 ============ */
.footer {
  background: #12263a;
  color: #cbd5e0;
  text-align: center;
  padding: 46px 24px;
}
.footer-brand {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer-contact { font-size: 14px; margin-bottom: 8px; color: #9fb3c8; }
.footer-note { font-size: 12.5px; color: #718096; }

/* ============ 弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,20,30,0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover { background: #fff; }
.modal-hero {
  position: relative;
  height: 190px;
  background-size: cover;
  background-position: center;
}
.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
}
.modal-hero-text {
  position: absolute;
  left: 24px; right: 24px; bottom: 18px;
  color: #fff;
  z-index: 2;
}
.modal-hero-text h3 { font-size: 22px; font-weight: 700; line-height: 1.4; }
.modal-tags { margin-top: 8px; font-size: 12px; opacity: 0.92; }
.modal-body { padding: 24px; }
.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.fact {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}
.fact-label { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 4px; }
.fact-value { font-size: 16px; font-weight: 700; color: var(--accent); }
.modal-desc { font-size: 14.5px; color: #444; margin-bottom: 20px; }
.modal-h4 { font-size: 16px; margin-bottom: 12px; color: var(--accent); }
.modal-itinerary { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.modal-itinerary th, .modal-itinerary td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}
.modal-itinerary th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
}
.modal-itinerary tr:nth-child(even) td { background: #f8fafc; }
.modal-itinerary td:first-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--accent);
}
.modal-note { margin-top: 16px; font-size: 12px; color: #999; }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-links a { margin-left: 16px; font-size: 13px; }
  .route-grid { grid-template-columns: 1fr; }
  .modal-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-meta { flex-wrap: wrap; }
}
