/* Tinggle Travel — 设计系统
   直接取自 Tinggle Web 的全局 token（web/src/styles.css），不另起一套：
   主色固定紫 #8b5cf6，浅色为默认、深色跟随系统，圆角 18/26，字体同源。
   🚨 不引入任何外部字体 / CDN：一是 CSP 只放 'self'，二是首屏不该等第三方。 */

:root {
  --radius: 18px;
  --radius-lg: 26px;
  --nav-h: 62px;

  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-bright: #a855f7;
  --accent-deep: #7c3aed;
  --accent-ink: #7b0ae7;
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #6115e4 100%);
  --accent-on: #ffffff;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #eaeaee;
  --text: #12121a;
  --text-dim: #52525f;
  --text-faint: #5c5c68;
  --border: rgba(0, 0, 0, 0.12);
  --success: #157237;
  --danger: #c60b2c;

  --shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 16, 24, 0.08);
  --shadow-lg: 0 24px 60px rgba(60, 20, 120, 0.14);

  --maxw: 1120px;

  font-family: 'Avenir Next', 'SF Pro Display', 'PingFang SC', 'Noto Sans SC',
    'Segoe UI', sans-serif;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #000000;
  --surface: #0e0e11;
  --surface-2: #17171c;
  --surface-3: #22222a;
  --text: #ffffff;
  --text-dim: #9b9ba6;
  --text-faint: #888893;
  --border: rgba(255, 255, 255, 0.1);
  --accent-ink: #c4a5ff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 顶栏 ───────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.brand-sub {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 13px;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--border);
}

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

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

/* 顶栏里的 CTA 是 <a>，会被上面 `.nav-links a` 的 (0,2,0) 压过 .btn-primary 的 (0,1,0)，
   导致白字变灰字、hover 时渐变被 --surface-2 顶掉。这里显式提回来。 */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--accent-on);
  background: var(--accent-grad);
  text-decoration: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover { color: var(--text); background: var(--surface-2); }

/* ── 通用元素 ───────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-grad);
  color: var(--accent-on);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--surface-2); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.section { padding: 76px 0; }

.section-head { max-width: 720px; margin-bottom: 36px; }

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 14px 0 12px;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16.5px;
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 13px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(46% 60% at 22% 34%, rgba(168, 85, 247, 0.22), transparent 70%),
    radial-gradient(38% 52% at 82% 12%, rgba(99, 102, 241, 0.18), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 20px 0 18px;
  max-width: 15ch;
}

.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
}

.stat {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat span { font-size: 13px; color: var(--text-dim); }

/* ── 目的地卡 ───────────────────────────────────────────── */

.deals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.deal {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.deal:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.42);
}

.deal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.deal-flag {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.deal-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.deal h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.deal-city { font-size: 13.5px; color: var(--text-dim); margin-bottom: 16px; }

.deal-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.deal-price b { font-size: 26px; letter-spacing: -0.03em; }
.deal-price span { font-size: 12.5px; color: var(--text-faint); }

/* ── 三原则 ─────────────────────────────────────────────── */

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rule {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.rule-num {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-ink);
  background: rgba(var(--accent-rgb), 0.12);
  margin-bottom: 16px;
}

.rule h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -0.01em; }
.rule p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ── 组队 CTA ───────────────────────────────────────────── */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 30px;
  background: var(--accent-grad);
  color: #fff;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 12px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 15.5px; }

.cta-band .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-band .btn-ghost {
  background: #fff;
  color: #3b0b8f;
  border-color: transparent;
  justify-self: end;
}

.cta-band .btn-ghost:hover { background: #f4efff; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; max-width: 860px; }

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 20px;
}

details.faq-item[open] { background: var(--surface-2); }

details.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 18px;
}
details.faq-item[open] summary::after { content: '−'; }

details.faq-item p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ── 目的地详情页 ───────────────────────────────────────── */

.crumb {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.dest-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.dest-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 16px 0 12px;
  font-weight: 800;
}

.dest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.chip b { color: var(--text); font-weight: 650; }

table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 8px 0 0;
}

table.price-table th,
table.price-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.price-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 700;
}

table.price-table tr:last-child td { border-bottom: 0; }

table.price-table td.num { font-variant-numeric: tabular-nums; font-weight: 650; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.days { display: grid; gap: 0; }

.day {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.day:last-child { border-bottom: 0; }

.day-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 3px;
}

.day h4 { margin: 0 0 4px; font-size: 16px; }
.day p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ── 页脚 ───────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

.footer-legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.65;
  max-width: 78ch;
}

/* ── 响应式 ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .deals, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; padding: 34px; }
  .cta-band .btn-ghost { justify-self: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a:not(.nav-keep) { display: none; }
}

@media (max-width: 640px) {
  .deals, .rules { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 54px 0 44px; }
  .wrap { padding: 0 18px; }
  .day { grid-template-columns: 1fr; gap: 6px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
