/* ============================================================
   云迹 Travel · 样式
   ============================================================ */

:root {
  --bg-deep: #05060f;
  --bg-mid: #0b0f2a;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #f4f6ff;
  --text-dim: rgba(244, 246, 255, 0.62);
  --primary: #6ea8ff;
  --primary-2: #a78bfa;
  --accent: #f0abfc;
  --grad: linear-gradient(120deg, #6ea8ff, #a78bfa 45%, #f0abfc);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

/* 锚点跳转：保留基础可访问性，避免平滑滚动影响即时定位与工具截图 */
html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(120, 81, 201, 0.22), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(64, 134, 255, 0.18), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(240, 171, 252, 0.12), transparent 60%),
    var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- 动态背景 ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora-1 { width: 520px; height: 520px; background: rgba(78, 120, 255, 0.35); top: -120px; left: -80px; }
.aurora-2 { width: 420px; height: 420px; background: rgba(167, 139, 250, 0.32); top: 40%; right: -120px; animation-delay: -6s; }
.aurora-3 { width: 460px; height: 460px; background: rgba(240, 171, 252, 0.25); bottom: -140px; left: 30%; animation-delay: -12s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

/* ---------- 玻璃拟态工具 ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  z-index: 100;
  border-radius: 999px;
  padding: 10px 22px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { font-size: 26px; filter: drop-shadow(0 0 10px rgba(110, 168, 255, 0.6)); }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.brand-dot { font-size: 13px; font-weight: 500; margin-left: 8px; color: var(--text-dim); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s, transform 0.25s;
}
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }

/* ---------- 按钮 ---------- */
.btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 26px;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.25s;
  font-weight: 600;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad);
  color: #0b0f2a;
  box-shadow: 0 8px 30px rgba(138, 121, 250, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(138, 121, 250, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: #161a38;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

.btn-lg { font-size: 16px; padding: 15px 34px; }
.btn-block { width: 100%; margin-top: 8px; font-size: 16px; padding: 15px; }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
}
.hero-inner { max-width: 860px; animation: fadeUp 0.9s ease both; }

.hero-eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 1px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 26px rgba(138, 121, 250, 0.35));
}

.hero-sub {
  margin: 26px auto 36px;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 17px;
}
.hero-sub b { color: var(--text); }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-size: 32px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--text-dim); font-size: 14px; }

/* ---------- 规划器 ---------- */
.planner { padding: 40px 24px 100px; }
.planner-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.planner-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.planner-head .sub { color: var(--text-dim); margin-top: 8px; }

.planner-card {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 34px;
}
.planner-form { display: flex; flex-direction: column; gap: 20px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--text-dim); font-weight: 500; }

.field input,
.field select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%;
}
.field input:focus,
.field select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.18);
}
.field select option { background: #141737; color: var(--text); }

/* 天数步进器 */
.stepper { display: flex; align-items: center; }
.stepper input {
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.step-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.step-btn:first-child { border-radius: 12px 0 0 12px; }
.step-btn:last-child { border-radius: 0 12px 12px 0; }
.step-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* 生成按钮 & spinner */
.btn-generate { display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(11, 15, 42, 0.3);
  border-top-color: #0b0f2a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 生成过程 ---------- */
.generating {
  max-width: 560px;
  margin: 40px auto;
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.gen-visual { display: flex; justify-content: center; margin-bottom: 26px; }
.orbit {
  width: 120px; height: 120px;
  border: 2px dashed rgba(110, 168, 255, 0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: orbitSpin 4s linear infinite;
}
.orbit-core { font-size: 46px; animation: floaty 2s ease-in-out infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.generating h3 { font-size: 22px; margin-bottom: 20px; }
.gen-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
}
.gen-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.4s ease;
}
.gen-step { color: var(--text-dim); font-size: 14px; }

/* ---------- 攻略结果 ---------- */
.guide {
  max-width: 960px;
  margin: 44px auto 0;
  border-radius: 24px;
  overflow: hidden;
  animation: fadeUp 0.7s ease both;
}

.guide-cover {
  position: relative;
  padding: 56px 44px 48px;
  background:
    linear-gradient(120deg, rgba(20, 26, 74, 0.92), rgba(56, 44, 120, 0.88), rgba(120, 60, 140, 0.85));
  overflow: hidden;
}
.guide-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(240, 171, 252, 0.3), transparent 60%),
    radial-gradient(300px 200px at 10% 100%, rgba(110, 168, 255, 0.3), transparent 60%);
}
.cover-overlay { position: absolute; inset: 0; pointer-events: none; }
.cover-content { position: relative; z-index: 1; }
.cover-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  margin-bottom: 16px;
}
.cover-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: 1px; }
.cover-meta { color: rgba(255, 255, 255, 0.8); margin-top: 10px; font-size: 15px; }
.cover-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.guide-body { padding: 40px 44px 48px; }
.guide-sec { margin-bottom: 44px; }
.guide-sec:last-child { margin-bottom: 0; }
.sec-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* 概览 */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.ov-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.ov-card .ov-num {
  font-size: 26px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ov-card .ov-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* 时间线 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.5;
}
.day-card { position: relative; margin-bottom: 26px; }
.day-card:last-child { margin-bottom: 0; }
.day-dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(138, 121, 250, 0.7);
}
.day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.day-badge {
  background: rgba(110, 168, 255, 0.16);
  border: 1px solid rgba(110, 168, 255, 0.4);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 999px;
}
.day-title { font-size: 17px; font-weight: 700; }
.day-tagline { color: var(--text-dim); font-size: 14px; }

.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  align-items: flex-start;
}
.activity .act-time {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  min-width: 48px;
  padding-top: 2px;
}
.activity .act-body { flex: 1; }
.activity .act-name { font-weight: 600; font-size: 15px; }
.activity .act-desc { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* 美食 */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.food-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.25s, background 0.25s;
}
.food-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.09); }
.food-emoji { font-size: 30px; margin-bottom: 8px; }
.food-name { font-weight: 700; font-size: 16px; }
.food-desc { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.food-place {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(110, 168, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

/* 贴士 */
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tip-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}
.tip-card b { color: var(--accent); margin-right: 8px; }

/* 预算 */
.budget {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 22px;
}
.budget-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--glass-border);
  font-size: 15px;
}
.budget-row:last-child { border-bottom: none; }
.budget-row.total { font-weight: 800; font-size: 17px; }
.budget-row .b-val { color: var(--primary); }
.budget-row.total .b-val { color: var(--accent); font-size: 20px; }

/* ---------- 亮点 ---------- */
.features { padding: 60px 24px 100px; text-align: center; }
.features h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 44px; }
.feature-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner p { color: var(--text-dim); font-size: 14px; }
.footer-note { margin-top: 6px; font-size: 12px; opacity: 0.7; }

/* ---------- 动画工具 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 130px; }
  .planner-card, .guide-body { padding: 24px 20px; }
  .guide-cover { padding: 40px 24px; }
  .hero-stats { gap: 30px; }
  .cover-actions .btn { width: 100%; }
}
