
:root {
  --bg1: #04080f; --bg2: #070d17; --bg3: #0b1320; --panel: #0f1929; --panel2: #141f32;
  --text: #f7fafc; --muted: #a0b0c0; --dim: #6b7a8c;
  --cyan: #45e2df; --cyan-dim: #2a8a88; --gold: #f1c875; --gold-dim: #b5944a;
  --lime: #d6ff49; --lime-dim: #9dbd35;
  --error: #ff6b7a; --success: #2ae0b8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --nav-h: 76px; --max: 1280px; --gap: clamp(1rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg1); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Noto Sans', 'Noto Sans Arabic', Tahoma, sans-serif; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: var(--cyan); color: var(--bg1); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
@media (max-width: 768px) { .wrap { width: calc(100% - 2rem); } }

.skip {
  position: absolute; top: -60px; left: 1rem; z-index: 999; padding: 0.75rem 1.25rem;
  background: var(--lime); color: var(--bg1); font-weight: 700; border-radius: 8px;
}
.skip:focus { top: 1rem; }

#sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bar {
  position: relative; z-index: 120; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1.5rem; background: var(--lime); color: var(--bg1); font-size: 0.75rem; font-weight: 700; text-align: center;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg1); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.9); } }

.hdr {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: rgba(4, 8, 15, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(69, 226, 223, 0.1);
}
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-weight: 900; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.logo b { font-size: 1.125rem; letter-spacing: 0.02em; }
.logo small { font-size: 0.5rem; letter-spacing: 0.2em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { white-space: nowrap; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s var(--ease-out); }
.nav a:hover, .nav a:focus { color: var(--cyan); }
.hdr-act { display: flex; align-items: center; gap: 0.75rem; }
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.5rem; height: 42px; padding: 0 1rem; border-radius: 12px;
  background: var(--panel); border: 1px solid rgba(69, 226, 223, 0.15); font-weight: 600; font-size: 0.875rem;
  transition: all 0.2s var(--ease-out);
}
.lang-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.lang-btn:hover { border-color: var(--cyan); background: var(--panel2); }
.lang-list {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 180px; max-height: 320px; overflow-y: auto;
  background: var(--panel2); border: 1px solid rgba(69, 226, 223, 0.2); border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); list-style: none; padding: 0.5rem; z-index: 10;
}
.lang-list li {
  padding: 0.625rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.875rem; transition: background 0.15s;
}
.lang-list li:hover { background: rgba(69, 226, 223, 0.1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; padding: 0.875rem 1.75rem;
  border-radius: 999px; font-weight: 700; font-size: 0.9375rem; white-space: nowrap; transition: all 0.25s var(--ease-out);
  position: relative; transform: translate(var(--mx, 0), var(--my, 0));
}
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }
.btn-lg { padding: 1.125rem 2.25rem; font-size: 1.0625rem; }
.btn-xl { padding: 1.375rem 2.75rem; font-size: 1.125rem; }
.btn-glow {
  background: linear-gradient(135deg, #e9ff7a, var(--lime) 45%, #b8f03a); color: #0a1200; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 0 rgba(214, 255, 73, 0.4), 0 8px 24px rgba(214, 255, 73, 0.25);
}
.btn-glow:hover { transform: translateY(-3px) translate(var(--mx, 0), var(--my, 0)); box-shadow: 0 0 0 8px rgba(214, 255, 73, 0.15), 0 16px 40px rgba(214, 255, 73, 0.35); }
.btn-ghost {
  background: transparent; border: 1.5px solid rgba(69, 226, 223, 0.3); color: var(--cyan);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(69, 226, 223, 0.08); }
.hide-m { display: inline-flex; }
main, .ftr { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .nav { display: none; }
  .hide-m { display: none; }
  .hdr-in { gap: 1rem; }
}

.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .rv.vis { opacity: 1; transform: none; }

.idx { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; color: var(--cyan); margin-bottom: 0.75rem; }
.sub { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
.head { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.625rem); font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }

.sec { position: relative; padding: clamp(4rem, 10vw, 7rem) 0; z-index: 2; }

.grad { background: linear-gradient(135deg, var(--cyan) 0%, var(--lime) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.ftr {
  position: relative; z-index: 2; padding: 3rem 0 2rem; background: var(--bg2); border-top: 1px solid rgba(69, 226, 223, 0.08);
}
.ftr-in { display: grid; gap: 1.5rem; text-align: center; }
.ftr-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 800; font-size: 1.125rem; margin-bottom: 0.5rem; }
.ftr-brand img { width: 28px; height: 28px; }
.ftr-note { font-size: 0.8125rem; color: var(--dim); max-width: 520px; margin-inline: auto; }
.ftr-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; font-size: 0.875rem; }
.ftr-links a { color: var(--muted); transition: color 0.2s; }
.ftr-links a:hover { color: var(--cyan); }
.ftr-copy { font-size: 0.75rem; color: var(--dim); margin-top: 1rem; }

.dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; background: rgba(7, 13, 23, 0.95); backdrop-filter: blur(20px); border-top: 1px solid rgba(69, 226, 223, 0.15);
  transform: translateY(100%); transition: transform 0.3s var(--ease-out);
}
.dock.on { transform: translateY(0); }
.dock b { font-size: 1.125rem; color: var(--lime); }
.dock small { font-size: 0.75rem; color: var(--muted); display: block; margin-top: 0.125rem; }
@media (max-width: 600px) { .dock { flex-direction: column; align-items: stretch; padding: 1rem; } .dock .btn { width: 100%; } }


.btn-glow::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.6s var(--ease-out) infinite; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.ticker-track span { padding: 0 1.5rem; } .ticker-track i { font-style: normal; color: var(--lime); }
[dir="rtl"] .ticker-track { animation-direction: reverse; }
@media (max-width: 600px) {
  .dock { flex-direction: row; align-items: center; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
  .dock .btn { width: auto; }
  .ftr { padding-bottom: 6rem; }
  .lang-btn span { max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* 汉堡菜单 */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid rgba(69,226,223,.15); flex-shrink: 0; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s var(--ease-out); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob-nav { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: rgba(4,8,15,.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: stretch; gap: .5rem; padding: 1.5rem; overflow-y: auto; }
.mob-nav a { padding: 1rem 1.25rem; border-radius: 14px; font-size: 1.0625rem; font-weight: 600; color: var(--muted); background: var(--panel); transition: all .2s; }
.mob-nav a:hover { color: var(--cyan); background: var(--panel2); }
.mob-nav .btn { margin-top: .5rem; justify-content: center; text-align: center; }
.mob-nav .btn-glow { color: #04080f; background: linear-gradient(135deg, var(--lime), #a8f03a); }
@media (max-width: 1240px) { .nav { display: none; } .burger { display: flex; } }
@media (min-width: 1241px) and (max-width: 1360px) { .nav { gap: 1.25rem; } }
