:root {
  --bg: #050816;
  --panel: rgba(18, 26, 64, 0.55);
  --line: rgba(120, 170, 255, 0.18);
  --text: #eaf0ff;
  --muted: #8d9bc7;
  --cyan: #22e3ff;
  --violet: #c04bff;
  --green: #2ee59d;
  --red: #ff5c7a;
  --amber: #ffc65c;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --side-w: 232px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 227, 255, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 90% 110%, rgba(192, 75, 255, 0.12), transparent 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; background: linear-gradient(90deg, var(--cyan), #8fd8ff 50%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.brand b { color: var(--cyan); }
.brand-emblem { width: 32px; height: 32px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta {
  margin-left: 8px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); color: #061027;
  box-shadow: 0 6px 24px rgba(34, 227, 255, 0.25);
}

/* ---------- 主布局：左 / 视频 / 右 ---------- */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--side-w);
  gap: 18px;
  padding: 4px 20px 8px;
  align-items: center;
}
.side { display: flex; flex-direction: column; gap: 12px; }
.side-title { font-size: 12px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; padding-left: 4px; }
.side-right .side-title { text-align: right; padding: 0 4px 0 0; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }

.feature {
  position: relative;
  text-align: left;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--cyan), transparent 40%, transparent 60%, var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s;
}
.feature:hover, .feature.active { transform: translateY(-2px); background: rgba(28, 38, 90, 0.65); box-shadow: 0 10px 30px rgba(34, 227, 255, 0.12); }
.feature:hover::before, .feature.active::before { opacity: 1; }
.side-left .feature:hover { transform: translateX(4px); }
.side-right .feature:hover { transform: translateX(-4px); }
.feature-ic {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 10px;
  color: var(--cyan); background: rgba(34, 227, 255, 0.06); border: 1px solid rgba(34, 227, 255, 0.22);
  transition: color .25s, border-color .25s, background .25s;
}
.feature-ic svg, .d-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side-right .feature-ic { color: #c77dff; background: rgba(192, 75, 255, 0.06); border-color: rgba(192, 75, 255, 0.25); }
.feature:hover .feature-ic, .feature.active .feature-ic { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.feature .more { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--cyan); }

/* ---------- 播放器 ---------- */
.player { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.stage {
  position: relative;
  width: min(100%, calc((100vh - 64px - 60px) * 16 / 9));
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 22px;
  overflow: hidden;
  background: #050816;
  border: 1px solid rgba(120, 170, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 60px rgba(34, 227, 255, 0.08);
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-inner {
  position: absolute; left: 0; top: 0;
  width: 1600px; height: 900px;
  transform-origin: 0 0;
  pointer-events: none;
}
.scene { position: absolute; inset: 0; }
[data-in] { will-change: opacity, transform; }
.is-live { pointer-events: auto; }

.big-play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 16, 44, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.big-play svg { width: 40px; height: 40px; fill: #fff; margin-left: 5px; }
.stage.paused .big-play { opacity: 1; pointer-events: auto; }
.big-play:hover { transform: scale(1.06); }

.foot { text-align: center; font-size: 11.5px; color: #5d6990; padding: 6px 16px 14px; }

/* ---------- 视频内场景（1600×900 设计稿坐标） ---------- */
.brand-sub { position: absolute; left: 0; right: 0; top: 590px; text-align: center; font-size: 28px; letter-spacing: 4px; color: #bfd0ff; }

.scene-head { position: absolute; left: 110px; top: 70px; }
.scene-head.center { left: 0; right: 0; text-align: center; top: 56px; }
.chip-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 18px; color: var(--cyan); border: 1px solid rgba(34, 227, 255, 0.4); background: rgba(34, 227, 255, 0.08); letter-spacing: 1px; }
.scene-head h2 { margin-top: 14px; font-size: 50px; font-weight: 800; letter-spacing: 1px; }

.phone {
  position: absolute; left: 150px; top: 215px; width: 360px; height: 640px;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2a3472, #10153a 40%, #251a52);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.08) inset, 0 0 60px rgba(120, 90, 255, 0.25);
}
.phone-notch { position: absolute; left: 50%; top: 22px; width: 100px; height: 26px; margin-left: -50px; border-radius: 20px; background: #050816; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: linear-gradient(180deg, #0b1130, #070b22); padding: 60px 16px 16px; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.app-emblem { width: 26px; height: 26px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; box-shadow: 0 0 10px var(--green); animation: blink 1.4s infinite; }
.app-bar small { font-size: 11px; color: var(--green); letter-spacing: 1px; }
@keyframes blink { 50% { opacity: .3; } }
.app-tabs { display: flex; gap: 18px; margin: 16px 0 12px; font-size: 15px; color: var(--muted); }
.app-tabs .on { color: var(--text); font-weight: 700; position: relative; }
.app-tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--cyan); }
.sig-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sig-list li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.sym, .px { display: flex; flex-direction: column; gap: 2px; }
.sym { flex: 1; }
.sym b, .px b { font-size: 15px; }
.sym small { font-size: 12px; color: var(--muted); }
.px { align-items: flex-end; }
.px small { font-size: 12px; }
.up { color: var(--green); }
.down { color: var(--red); }
.amber { color: var(--amber); }
.tag { font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
.tag.buy { color: #04261a; background: var(--green); }
.tag.sell { color: #fff; background: var(--red); }
.tag.hold { color: var(--text); background: rgba(255, 255, 255, 0.14); }
.tag.warn { color: #2a1b00; background: var(--amber); }

.toast {
  position: absolute; left: -40px; right: -40px; top: 92px;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: rgba(22, 30, 72, 0.92); border: 1px solid rgba(46, 229, 157, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(46, 229, 157, 0.25);
  backdrop-filter: blur(10px);
}
.toast-ic { font-size: 24px; }
.toast b { display: block; font-size: 16px; color: var(--green); }
.toast small { font-size: 13px; color: #c8d3f5; }

.chart-card {
  position: absolute; left: 600px; top: 250px; width: 860px; height: 560px;
  padding: 26px 30px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(30, 40, 96, 0.7), rgba(12, 16, 44, 0.75));
  border: 1px solid rgba(120, 170, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.chart-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 24px; }
.muted { color: var(--muted); font-size: 18px; }
.chart-price { font-size: 30px; font-weight: 800; }
.chart-price small { font-size: 18px; margin-left: 6px; }
.chart { position: absolute; left: 30px; right: 30px; top: 92px; height: 280px; width: calc(100% - 60px); overflow: visible; }
.chart .grid-lines line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .line { fill: none; stroke: url(#brandGrad); stroke: var(--cyan); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(34, 227, 255, 0.7)); }
.chart .area { fill: url(#areaGrad); }
.marker {
  position: absolute; transform: translate(-50%, -50%);
  margin-left: 0; font-size: 14px; font-weight: 800; letter-spacing: 1px;
  padding: 6px 10px; border-radius: 10px;
}
.marker.buy { background: var(--green); color: #04261a; box-shadow: 0 0 24px rgba(46, 229, 157, 0.7); }
.marker.sell { background: var(--red); color: #fff; box-shadow: 0 0 24px rgba(255, 92, 122, 0.7); }
.chart-card .marker { margin-top: 0; }
.metrics { position: absolute; left: 30px; right: 30px; bottom: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.metric small { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.metric b { font-size: 30px; font-weight: 800; }
.metric b i { font-style: normal; font-size: 16px; color: var(--muted); margin-left: 4px; }

.chat {
  position: absolute; left: 300px; top: 210px; width: 1000px; height: 640px;
  padding: 30px 34px; border-radius: 30px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(160deg, rgba(30, 40, 96, 0.6), rgba(12, 16, 44, 0.7));
  border: 1px solid rgba(120, 170, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.msg { font-size: 22px; line-height: 1.6; }
.msg.me {
  align-self: flex-end; max-width: 70%; padding: 14px 22px; border-radius: 22px 22px 6px 22px;
  background: linear-gradient(90deg, #1fb8e0, #7b5cff); color: #fff; font-weight: 600;
}
.msg.ai { display: flex; gap: 14px; align-items: flex-start; max-width: 86%; }
.ai-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 30% 25%; background: #0b1236; border: 2px solid rgba(34, 227, 255, 0.5); flex-shrink: 0; }
.bubble { padding: 14px 22px; border-radius: 6px 22px 22px 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); min-height: 58px; position: relative; }
.bubble p { min-height: 1em; }
.typing { position: absolute; left: 22px; top: 22px; display: flex; gap: 6px; }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -3px; background: var(--cyan); animation: blink .8s infinite; }
.pill-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pill { font-size: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(34, 227, 255, 0.12); color: var(--cyan); border: 1px solid rgba(34, 227, 255, 0.3); }
.pill.amber { background: rgba(255, 198, 92, 0.12); border-color: rgba(255, 198, 92, 0.35); color: var(--amber); }

.final-logo { position: absolute; left: 0; right: 0; top: 452px; display: flex; justify-content: center; align-items: center; gap: 22px; font-size: 76px; font-weight: 800; letter-spacing: 1px; }
.final-logo b { color: var(--cyan); text-shadow: 0 0 30px rgba(34, 227, 255, 0.6); }
.final-emblem { width: 88px; height: 88px; filter: drop-shadow(0 0 24px rgba(120, 140, 255, 0.6)); }
.final-tagline { position: absolute; left: 0; right: 0; top: 572px; text-align: center; font-size: 36px; font-weight: 700; }
.final-vision { position: absolute; left: 0; right: 0; top: 632px; text-align: center; font-size: 24px; color: #b9c6ef; letter-spacing: 1px; }
.store-row { position: absolute; left: 0; right: 0; top: 706px; display: flex; justify-content: center; gap: 22px; }
.store-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 28px 14px 22px; min-width: 250px;
  border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(8, 12, 32, 0.85); border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.store-btn:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 16px 40px rgba(34, 227, 255, 0.3); }
.store-btn svg { width: 38px; height: 38px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 14px; opacity: .8; }
.store-btn b { font-size: 27px; font-weight: 700; }
.store-note { position: absolute; left: 0; right: 0; top: 808px; text-align: center; font-size: 17px; color: var(--muted); }

/* ---------- 详情抽屉 ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(2, 4, 14, 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(500px, 92vw); z-index: 50;
  background: linear-gradient(180deg, #0f1640, #080c26);
  border: 1px solid rgba(120, 170, 255, 0.22);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  visibility: hidden;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s;
  overflow-y: auto;
}
.drawer.open { visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.drawer.from-left { left: 0; transform: translateX(-105%); border-radius: 0 26px 26px 0; }
.drawer.from-right { right: 0; transform: translateX(105%); border-radius: 26px 0 0 26px; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(255, 255, 255, 0.08); }
.drawer-close:hover { background: rgba(255, 255, 255, 0.16); }
.drawer-body { padding: 44px 36px 40px; }
.d-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 18px; color: var(--cyan); background: rgba(34, 227, 255, 0.06); border: 1px solid rgba(34, 227, 255, 0.25); }
.d-ic svg { width: 28px; height: 28px; stroke-width: 1.5; }
.d-kicker { font-size: 12px; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; }
.drawer h2 { font-size: 30px; margin: 6px 0 12px; }
.d-lead { font-size: 15px; line-height: 1.8; color: #c4cff2; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.d-stat { padding: 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); text-align: center; }
.d-stat b { display: block; font-size: 22px; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-stat small { font-size: 12px; color: var(--muted); }
.d-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.d-points li { display: flex; gap: 12px; font-size: 14px; line-height: 1.7; color: #c4cff2; }
.d-points li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.d-points b { color: var(--text); }
.d-actions { display: flex; gap: 10px; margin-top: 28px; }
.d-btn { padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.08); }
.d-btn.primary { background: linear-gradient(90deg, var(--cyan), var(--violet)); color: #061027; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) { :root { --side-w: 210px; } .feature p { display: none; } }
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr 1fr; padding: 4px 14px 8px; }
  .player { grid-column: 1 / -1; grid-row: 1; }
  .stage { width: 100%; }
  .side-right .side-title { text-align: left; }
  .feature p { display: block; }
  .topnav .nav-link { display: none; }
}
@media (max-width: 640px) {
  .layout { grid-template-columns: 1fr; }
  .stage { border-radius: 14px; }
}
