:root {
  --bg: #0a0e1a;
  --bg-soft: #111726;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8edf7;
  --text-dim: #97a3b8;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1140px;
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.75);
  --card-border: rgba(15, 23, 42, 0.08);
  --text: #101728;
  --text-dim: #5a6b85;
  --shadow: 0 20px 50px rgba(40, 60, 110, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* 背景光球 */
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 18s ease-in-out infinite; }
.orb-1 { width: 480px; height: 480px; background: #6366f1; top: -120px; left: -80px; }
.orb-2 { width: 420px; height: 420px; background: #22d3ee; top: 30%; right: -120px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #a855f7; bottom: -120px; left: 30%; animation-delay: -12s; }
[data-theme="light"] .orb { opacity: 0.28; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* 布局容器 */
main, .site-header, .site-footer { position: relative; z-index: 1; }
.site-header, main > section, .site-footer { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* 顶栏 */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.brand-mark { font-size: 1.5rem; }
.brand-dot { color: var(--brand-2); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.theme-toggle { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; font-size: 1.05rem; color: var(--text); transition: transform 0.2s, background 0.2s; }
.theme-toggle:hover { transform: translateY(-2px); }
.lang-switch {
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: 5px 12px; font-size: 0.82rem !important; font-weight: 600;
  background: var(--card); color: var(--text) !important;
}
.lang-switch:hover { border-color: var(--brand); }

/* Hero */
.hero { text-align: center; padding-top: 70px; padding-bottom: 60px; }
.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 26px auto 0; max-width: 600px; color: var(--text-dim); font-size: 1.12rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(120deg, var(--brand), #818cf8); color: #fff; box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(99, 102, 241, 0.5); }
.btn-ghost { background: var(--card); border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { transform: translateY(-3px); }

.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* Section heads */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 2rem; font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 8px; }
.demos { padding-top: 50px; }

/* DEMO grid */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.demo-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--text);
  overflow: hidden; transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  backdrop-filter: blur(14px);
}
.demo-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow, #6366f1) 0%, transparent 60%);
  transition: opacity 0.3s; pointer-events: none;
}
.demo-card:hover { transform: translateY(-6px); border-color: var(--glow, var(--brand)); box-shadow: var(--shadow); }
.demo-card:hover::before { opacity: 0.16; }
.demo-card.coming { cursor: default; opacity: 0.72; }
.demo-card.coming:hover { transform: none; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); }
.card-status { font-size: 0.72rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.status-online { background: rgba(34, 197, 94, 0.15); color: #34d399; }
.status-coming { background: rgba(148, 163, 184, 0.15); color: var(--text-dim); }

.card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.card-subtitle { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.card-desc { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 0.76rem; padding: 5px 11px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: var(--text-dim); }
.card-go { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; color: var(--glow, var(--brand)); font-size: 0.95rem; }
.card-go .arrow { transition: transform 0.25s; }
.demo-card:hover .card-go .arrow { transform: translateX(5px); }

/* About */
.about { padding-top: 90px; padding-bottom: 40px; }
.about-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 24px; padding: 48px; backdrop-filter: blur(14px); }
.about-card h2 { font-size: 1.7rem; margin-bottom: 16px; }
.about-card > p { color: var(--text-dim); max-width: 760px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 36px; }
.about-item { display: flex; gap: 14px; align-items: flex-start; }
.about-item span { font-size: 1.6rem; }
.about-item h3 { font-size: 1.02rem; }
.about-item p { color: var(--text-dim); font-size: 0.9rem; }

/* Footer */
.site-footer { text-align: center; padding-top: 60px; padding-bottom: 40px; color: var(--text-dim); }
.footer-sub { font-size: 0.85rem; opacity: 0.7; margin-top: 6px; }
.footer-disc { font-size: 0.82rem; opacity: 0.8; margin-top: 10px; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.footer-disc a { color: var(--brand-2); text-decoration: none; }
.footer-disc a:hover { text-decoration: underline; }
.footer-beian { font-size: 0.8rem; opacity: 0.6; margin-top: 12px; }
.footer-beian a { color: var(--text-dim); text-decoration: none; }
.footer-beian a:hover { text-decoration: underline; }

/* Disclaimer */
.disclaimer { padding-top: 40px; padding-bottom: 20px; }
.disclaimer-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 4px solid #ff8c42;
  border-radius: 20px;
  padding: 40px 44px;
  backdrop-filter: blur(14px);
}
.disclaimer-card h2 { font-size: 0.82rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.disc-icon { font-size: 0.82rem; }
.disc-lead { color: var(--text-dim); max-width: 820px; line-height: 1.8; margin-bottom: 22px; }
.disc-list { list-style: none; display: grid; gap: 16px; max-width: 880px; }
.disc-list li {
  color: var(--text-dim);
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
}
.disc-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #ff8c42;
  font-weight: bold;
}
.disc-list strong { color: var(--text); }
.disc-lead strong { color: var(--text); }
.disc-foot { margin-top: 24px; color: var(--text-dim); font-size: 0.88rem; opacity: 0.85; font-style: italic; }
.disclaimer-card a { color: var(--brand-2); text-decoration: none; }
.disclaimer-card a:hover { text-decoration: underline; }
.footer-sub a { color: var(--brand-2); text-decoration: none; }
.footer-sub a:hover { text-decoration: underline; }

/* Consent modal (first-visit) */
.consent-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  animation: consentFade 0.3s ease;
}
.consent-mask[hidden] { display: none; }
@keyframes consentFade { from { opacity: 0; } to { opacity: 1; } }
.consent-card {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-top: 4px solid #ff8c42;
  border-radius: 20px;
  padding: 34px 36px;
  box-shadow: var(--shadow);
  animation: consentPop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes consentPop { from { transform: translateY(18px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-card h2 { font-size: 1.4rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.consent-intro { color: var(--text-dim); line-height: 1.75; font-size: 0.94rem; margin-bottom: 18px; }
.consent-intro strong { color: var(--text); }
.consent-list { list-style: none; display: grid; gap: 11px; margin-bottom: 18px; }
.consent-list li {
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}
.consent-list li::before { content: "▸"; position: absolute; left: 0; color: #ff8c42; font-weight: bold; }
.consent-list strong { color: var(--text); }
.consent-more { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 22px; }
.consent-more a { color: var(--brand-2); text-decoration: none; }
.consent-more a:hover { text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-consent-agree {
  flex: 1 1 auto;
  min-width: 180px;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-consent-agree:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35); }
.btn-consent-decline {
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-consent-decline:hover { border-color: #ff4f6d; color: #ff4f6d; }
.consent-note { margin-top: 14px; color: #ff8c42; font-size: 0.88rem; text-align: center; }
.consent-note[hidden] { display: none; }
body.consent-locked { overflow: hidden; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .nav a { display: none; }
  .nav a.lang-switch { display: inline-block; }
  .about-card { padding: 30px 22px; }
  .hero-stats { gap: 28px; }
  .disclaimer-card { padding: 28px 22px; }
}
