/* 难却落地页共享样式（site/*.html），无外部依赖。 */
:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --card: #0e1626;
  --line: #1c2740;
  --text: #e8eefc;
  --muted: #8fa0c2;
  --brand: #00a870;
  --brand-bright: #00d18c;
  --brand-soft: rgba(0, 168, 112, .14);
  --glow: rgba(0, 168, 112, .45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: 64px;
}
::selection { background: rgba(0, 168, 112, .35); }
button { font-family: inherit; cursor: pointer; }
#stars { position: fixed; inset: 0; z-index: 0; }
main { position: relative; z-index: 1; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 84px; }

/* 吸顶导航 */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: rgba(7, 11, 20, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 63px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--text); text-decoration: none; }
.brand i {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  background: radial-gradient(circle at 35% 35%, #6fe8bd, var(--brand) 60%, #005338 100%);
  box-shadow: 0 0 12px rgba(0, 168, 112, .8);
}
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav > a {
  color: #c9d6f2; text-decoration: none; font-size: 15.5px; font-weight: 500;
  padding: 8px 16px; border-radius: 10px; transition: background .15s ease, color .15s ease;
}
nav > a:hover { color: var(--brand); background: var(--brand-soft); }
nav > a.here { color: var(--brand); background: var(--brand-soft); }
.version {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: 0 6px;
}
.nav-cta {
  background: linear-gradient(135deg, var(--brand), #00c484); color: #04120c !important; font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 168, 112, .4);
}
.nav-cta:hover { background: linear-gradient(135deg, #00c484, var(--brand-bright)); color: #04120c !important; }

/* 页面头 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .22em; color: var(--brand); font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand)); }
.eyebrow::after { background: linear-gradient(90deg, var(--brand), transparent); }

.hero { padding: 76px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(36px, 7vw, 62px); font-weight: 800; letter-spacing: .02em; line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--brand-bright); text-shadow: 0 0 30px rgba(0, 209, 140, .45); }
.hero p.lead { margin: 20px auto 0; max-width: 700px; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); }
.hero p.lead b { color: var(--text); font-weight: 600; }
.cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #00c484); color: #04120c; box-shadow: 0 6px 24px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--bg-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }

h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 10px; }
.section { padding: 52px 0; }
.section > .wrap > p.sub { color: var(--muted); max-width: 740px; }

/* 卡片：图标 + 悬停辉光 */
.memory-hero, .relay-hero, .plain-hero {
  position: relative; overflow: hidden;
  margin: 30px 0 0; border: 1px solid rgba(0, 168, 112, .35); border-radius: 20px;
  background: linear-gradient(160deg, rgba(0, 168, 112, .10), var(--bg-soft) 55%);
  padding: 32px 30px;
}
.memory-hero::after, .relay-hero::after, .plain-hero::after {
  content: ""; position: absolute; top: -70px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 140, .16), transparent 70%); pointer-events: none;
}
.memory-hero h3 { font-size: 20px; margin-bottom: 8px; }
.memory-hero h3 span { color: var(--brand-bright); }
.memory-hero p, .relay-hero p { color: var(--muted); max-width: 780px; position: relative; }
.memory-hero p b, .relay-hero p b { color: var(--text); font-weight: 600; }
.grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: block; text-decoration: none; color: var(--text);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { border-color: rgba(0, 168, 112, .5); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-bright);
}
.card .icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card.wide { grid-column: 1 / -1; }
.card .go { margin-top: 12px; font-size: 14px; color: var(--brand-bright); font-weight: 600; }
.pill-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-size: 14.5px; color: var(--muted); background: var(--bg-soft);
}
.pill b { color: var(--text); font-weight: 600; }

/* 中转站 */
.relay-hero { text-align: center; }
.relay-hero .big {
  font-size: clamp(48px, 9vw, 84px); font-weight: 800; color: var(--brand-bright);
  text-shadow: 0 0 34px var(--glow); line-height: 1.1; position: relative;
}
.relay-hero .big span { font-size: clamp(22px, 4vw, 34px); font-weight: 700; margin-left: 6px; }
.relay-hero p { max-width: 720px; margin: 12px auto 0; }
.relay-cta { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.model-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.model-chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: 14px; color: var(--text); background: var(--card);
}
.model-chips span.foreign { border-color: rgba(0, 168, 112, .45); }

/* 页尾“下一站”横幅 */
.next {
  margin-top: 44px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-soft); padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.next .t { font-size: 16px; font-weight: 600; }
.next .t span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }

/* 下载页 */
.download-box { text-align: center; padding: 34px 28px; }
.download-box .big-note { margin-top: 12px; }
.checklist { margin: 26px auto 0; max-width: 660px; text-align: left; display: grid; gap: 10px; }
.checklist .item {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  padding: 13px 18px 13px 46px; font-size: 14.5px; color: var(--muted); position: relative;
}
.checklist .item b { color: var(--text); font-weight: 600; }
.checklist .item::before {
  content: ""; position: absolute; left: 17px; top: 17px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--brand-soft);
  border: 1.6px solid var(--brand);
}
.checklist .item::after {
  content: ""; position: absolute; left: 22px; top: 21.5px; width: 5px; height: 8px;
  border: solid var(--brand-bright); border-width: 0 1.8px 1.8px 0; transform: rotate(42deg);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px var(--glow); }
  50% { box-shadow: 0 6px 48px rgba(0, 209, 140, .85); transform: scale(1.03); }
}
.btn.pulse { animation: pulse 1.2s ease infinite; }

/* 新手攻略：首页弹窗 + 各页右下角跟随卡 */
.guide-mask {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(4, 7, 14, .68); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.guide-mask.show { display: flex; align-items: center; justify-content: center; padding: 20px; }
.guide {
  position: relative; width: min(560px, 100%);
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid rgba(0, 168, 112, .35); border-radius: 20px;
  padding: 30px 30px 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  animation: guide-pop .25s ease;
}
@keyframes guide-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.guide .tag { font-size: 12.5px; color: var(--brand); letter-spacing: .12em; }
.guide h3 { font-size: 24px; margin: 8px 0 12px; }
.guide ol { margin: 0 0 4px 22px; color: var(--muted); font-size: 15px; }
.guide ol b { color: var(--text); }
.guide .row { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guide .row .btn { padding: 11px 22px; font-size: 15px; }
.guide .skip { color: var(--muted); font-size: 14px; text-decoration: none; }
.guide .skip:hover { color: var(--text); }
.guide .x {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: none; border-radius: 10px; background: transparent; color: var(--muted);
  font-size: 18px; cursor: pointer;
}
.guide .x:hover { color: var(--text); background: var(--line); }

.tour {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: min(330px, calc(100vw - 44px));
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid rgba(0, 168, 112, .4); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  animation: guide-pop .25s ease;
}
.tour .step { font-size: 12px; color: var(--brand); letter-spacing: .1em; }
.tour p { font-size: 14px; color: var(--text); margin: 6px 0 12px; }
.tour p span { color: var(--muted); }
.tour .row { display: flex; align-items: center; gap: 10px; }
.tour .btn { padding: 9px 16px; font-size: 14px; }
.tour .x {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border: none; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.tour .x:hover { color: var(--text); background: var(--line); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--brand); }
@media (max-width: 720px) {
  body { padding-top: 110px; }
  .bar { height: auto; flex-direction: column; padding: 10px 0; gap: 6px; }
  .version { display: none; }
}
