/* ============ 同途资讯 · AI 科技感主题 ============ */
:root {
  --c1: #2563EB; --c2: #7C3AED; --c3: #38BDF8;
  --bg: #070B14; --bg2: #0B1120;
  --card: rgba(255,255,255,0.055);
  --card-hover: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.09);
  --text: #E5E9F2; --text-dim: #8A94AD;
  --radius: 16px;
  --glow: 0 0 24px rgba(124,58,237,0.45);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 20px;
  min-height: 100vh;
  overflow-x: hidden;
}
/* 深空背景光晕 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(124,58,237,.14), transparent 60%),
    radial-gradient(500px 500px at 50% 110%, rgba(56,189,248,.08), transparent 60%),
    var(--bg);
}
/* 网格科技线（淡） */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image:
    linear-gradient(rgba(148,163,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,255,.5) 1px, transparent 1px);
  background-size: 44px 44px;
}
/* 星空粒子 canvas */
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

a { text-decoration: none; color: inherit; }

/* ============ 顶部导航（毛玻璃） ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(9,13,26,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow);
}
.brand-name {
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(90deg, #60A5FA, #A78BFA, #38BDF8);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradFlow 6s ease infinite;
}
@keyframes gradFlow { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-link {
  font-size: 13px; color: var(--text-dim);
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
  transition: all .25s;
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: var(--glow);
}

/* ============ 主容器 ============ */
.app { max-width: 720px; margin: 0 auto; padding: 16px 14px; }

/* Hero：渐变流光 + AI 光球 */
.banner {
  border-radius: var(--radius);
  background: linear-gradient(120deg, #1E3A8A, #4C1D95, #0E7490, #2563EB);
  background-size: 300% 300%;
  animation: heroFlow 10s ease infinite;
  color: #fff; padding: 30px 22px; margin-bottom: 18px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 40px rgba(37,99,235,.35);
}
@keyframes heroFlow { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.banner::before { /* AI 光球 */
  content: "✨"; position: absolute; right: 22px; top: 20px;
  font-size: 46px; opacity: .9;
  filter: drop-shadow(0 0 18px rgba(168,139,250,.9));
  animation: floaty 3.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(-8deg)} 50%{transform:translateY(-10px) rotate(8deg)} }
.banner::after { /* 扫描线 */
  content: ""; position: absolute; left: 0; right: 0; height: 2px; top: -2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.9), transparent);
  animation: scanline 3.2s linear infinite;
  opacity: .7;
}
@keyframes scanline { 0%{top:-2px} 100%{top:100%} }
.banner h1 {
  font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(168,139,250,.8);
}
.banner .slogan-type { font-size: 14px; opacity: .95; min-height: 24px; font-weight: 600; }
.banner .slogan-type::after {
  content: "▍"; color: #67E8F9; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.banner p { font-size: 12px; opacity: .8; margin-top: 6px; }

/* 区块标题 */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 12px; }
.section-title h2 {
  font-size: 16px; font-weight: 700;
  background: linear-gradient(90deg, #60A5FA, #C4B5FD);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-title .more { font-size: 12px; color: var(--text-dim); }
.section-title .bar {
  width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  margin-right: 8px; display: inline-block; vertical-align: -2px;
  box-shadow: 0 0 8px rgba(124,58,237,.8);
}

/* 分类标签 */
.cat-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 8px; }
.cat-chip {
  flex-shrink: 0; font-size: 13px; padding: 7px 14px; border-radius: 20px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); cursor: pointer; transition: all .25s;
}
.cat-chip:hover { border-color: rgba(124,58,237,.6); box-shadow: var(--glow); transform: translateY(-2px); }
.cat-chip.active {
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  border-color: transparent; box-shadow: var(--glow);
}

/* 文章卡片（悬浮发光） */
.article-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 12px;
  padding: 14px 16px; display: flex; gap: 12px; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 6px 30px rgba(37,99,235,.25), var(--glow);
}
.article-cover {
  width: 92px; height: 72px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
  box-shadow: inset 0 0 20px rgba(255,255,255,.15);
}
.article-body { flex: 1; min-width: 0; }
.article-title { font-size: 15px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.article-meta .cat { color: #7DD3FC; font-weight: 600; }

/* 达人风采（发光头像） */
.talent-scroll { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 2px 12px; }
.talent-card {
  flex-shrink: 0; width: 118px; text-align: center;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 10px 12px; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.talent-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.talent-avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  border: 2px solid rgba(168,139,250,.7);
  box-shadow: 0 0 18px rgba(124,58,237,.6);
  animation: auraPulse 3s ease-in-out infinite;
}
@keyframes auraPulse { 0%,100%{box-shadow:0 0 12px rgba(124,58,237,.4)} 50%{box-shadow:0 0 26px rgba(124,58,237,.85)} }
.talent-name { font-size: 13px; font-weight: 600; }
.talent-city { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* 目的地卡片 */
.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dest-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 120px; color: #fff; cursor: pointer; transition: transform .25s, box-shadow .25s;
  display: flex; align-items: flex-end;
  border: 1px solid rgba(255,255,255,.1);
}
.dest-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 8px 30px rgba(37,99,235,.35); }
.dest-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 52px; filter: drop-shadow(0 0 14px rgba(255,255,255,.35)); }
.dest-info {
  position: relative; z-index: 1; width: 100%;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(2,6,18,.8));
}
.dest-name { font-size: 14px; font-weight: 700; }
.dest-tag { font-size: 11px; opacity: .9; margin-top: 2px; }

/* 列表页 */
.list-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.list-head h1 { font-size: 18px; }
.list-head .count { font-size: 12px; color: var(--text-dim); }

/* 详情页 */
.detail {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px 18px;
}
.detail-title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.detail-meta { font-size: 12px; color: var(--text-dim); padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.detail-cover {
  height: 150px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 56px; color: #fff;
  box-shadow: 0 0 40px rgba(37,99,235,.25);
}
.detail-body { font-size: 15px; color: #C6CDE0; }
.detail-body p { margin-bottom: 14px; }
.detail-body h3 { font-size: 16px; margin: 20px 0 10px; color: var(--text); }
.detail-body ul { margin: 0 0 14px 20px; }
.detail-body li { margin-bottom: 6px; }
.detail-source { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }

/* 关于页 */
.about { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 22px 18px; }
.about h2 { font-size: 17px; margin: 18px 0 8px; color: #A5B4FC; }
.about p, .about li { font-size: 14px; color: #B6BED4; margin-bottom: 8px; }
.about ul { margin-left: 18px; }

/* 页脚 */
.footer { text-align: center; padding: 20px 16px 10px; font-size: 12px; color: var(--text-dim); }
.footer .footer-dim { margin-top: 4px; font-size: 11px; opacity: .7; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%) scale(.9);
  background: rgba(20,28,50,.92); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 22px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 300; white-space: nowrap;
  border: 1px solid rgba(124,58,237,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

.empty { text-align: center; padding: 60px 0; color: var(--text-dim); font-size: 14px; }

/* 加载动画 */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#loader.hide { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(124,58,237,.2);
  border-top-color: #60A5FA;
  animation: spin .9s linear infinite;
  box-shadow: 0 0 30px rgba(124,58,237,.4);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { margin-top: 16px; color: #8A94AD; font-size: 13px; letter-spacing: 2px; }

/* 降级：不支持 backdrop-filter 时 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .cta-bar { background: rgba(9,13,26,.96); }
}
