/* ===== DESIGN TOKENS ===== */
:root {
  /* Background */
  --bg: #020814;
  --bg-secondary: #060D1B;
  --bg-glass: rgba(6, 13, 27, 0.75);

  /* Premium Accents */
  --accent-1: #818CF8;   /* Soft Indigo */
  --accent-2: #22D3EE;   /* Bright Cyan */
  --accent-3: #34D399;   /* Emerald */
  --accent-4: #F472B6;   /* Pink */

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #818CF8, #22D3EE);
  --grad-hero: linear-gradient(135deg, #818CF8 0%, #A78BFA 50%, #22D3EE 100%);
  --grad-warm: linear-gradient(135deg, #F472B6, #818CF8);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --surface-card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(129, 140, 248, 0.5);

  /* Text */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #475569;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;

  /* Glows */
  --glow-primary: 0 0 60px rgba(129, 140, 248, 0.2);
  --glow-cyan: 0 0 60px rgba(34, 211, 238, 0.2);
  --glow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #F8FAFF;
  --bg-secondary: #EEF2FF;
  --bg-glass: rgba(248, 250, 255, 0.85);
  --surface: rgba(129, 140, 248, 0.06);
  --surface-hover: rgba(129, 140, 248, 0.1);
  --surface-card: rgba(255, 255, 255, 0.9);
  --border: rgba(129, 140, 248, 0.15);
  --border-hover: rgba(129, 140, 248, 0.5);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  --glow-primary: 0 0 60px rgba(129, 140, 248, 0.12);
  --glow-cyan: 0 0 60px rgba(34, 211, 238, 0.12);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.02em; }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }

.loader-geometry {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.hex {
  position: absolute; width: 56px; height: 56px;
  border: 2px solid var(--accent-1);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(129,140,248,0.5), inset 0 0 20px rgba(129,140,248,0.15);
  transform: rotate(45deg);
  animation: spinHex 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.hex.inner {
  width: 28px; height: 28px;
  border-color: var(--accent-2);
  box-shadow: 0 0 15px rgba(34,211,238,0.5), inset 0 0 15px rgba(34,211,238,0.15);
  animation: spinHexReverse 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.glow-point {
  width: 6px; height: 6px; background: var(--accent-1); border-radius: 50%;
  box-shadow: 0 0 20px 6px var(--accent-1);
  animation: pulsePoint 1s ease-in-out infinite alternate;
}
@keyframes spinHex {
  0% { transform: rotate(45deg) scale(0.85); opacity: 0.5; }
  50% { transform: rotate(225deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(405deg) scale(0.85); opacity: 0.5; }
}
@keyframes spinHexReverse {
  0% { transform: rotate(45deg) scale(1.1); opacity: 1; }
  50% { transform: rotate(-135deg) scale(0.7); opacity: 0.5; }
  100% { transform: rotate(-315deg) scale(1.1); opacity: 1; }
}
@keyframes pulsePoint {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 1; }
}

/* ===== CANVAS & BACKGROUND ORBS ===== */
#particlesCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
}
[data-theme="light"] #particlesCanvas { opacity: 0.2; }

.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #818CF8, transparent 70%);
  top: -200px; left: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #22D3EE, transparent 70%);
  top: 30%; right: -150px;
  animation: orbFloat2 25s ease-in-out infinite;
}
.bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #F472B6, transparent 70%);
  bottom: 10%; left: 20%;
  animation: orbFloat3 18s ease-in-out infinite;
}
[data-theme="light"] .bg-orb { opacity: 0.06; }

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.05); }
  66% { transform: translate(-30px, 80px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.1); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(50px, -40px) scale(1.08); }
  80% { transform: translate(-30px, 30px) scale(0.92); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  height: var(--header-height);
  background: transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-box {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(34,211,238,0.2));
  border: 1px solid rgba(129,140,248,0.3);
  display: flex; align-items: center; justify-content: center; padding: 4px;
}
.logo-img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
  font-family: var(--font-heading); font-weight: 700; font-size: 17px;
  letter-spacing: -0.5px;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--grad-primary);
  transition: width var(--transition); border-radius: 2px;
}
.nav-link:hover { color: var(--text-main); background: var(--surface); }
.nav-link.active { color: var(--accent-1); }
.nav-link.active::after { width: 18px; }

.nav-right { display: flex; align-items: center; gap: 6px; position: relative; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
  border: 1px solid transparent;
}
.icon-btn:hover {
  background: var(--surface-hover); color: var(--text-main);
  border-color: var(--border);
}
.icon-btn .material-icons-round { font-size: 19px; }

/* LANG POPUP */
.lang-popup {
  position: absolute; top: 48px; right: 40px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 6px; min-width: 88px;
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
}
.lang-popup.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-opt {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  transition: all var(--transition); color: var(--text-muted);
}
.lang-opt:hover { background: var(--surface-hover); color: var(--text-main); }
.lang-opt.active { color: var(--accent-1); font-weight: 600; background: rgba(129,140,248,0.08); }

/* ===== MENU BTN & SIDEBAR ===== */
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm); transition: background var(--transition);
}
.menu-btn:hover { background: var(--surface); }
.menu-btn span {
  width: 20px; height: 2px; background: var(--text-main);
  border-radius: 2px; transition: var(--transition);
}
.menu-btn.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.on span:nth-child(2) { opacity: 0; }
.menu-btn.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-mask {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.sidebar-mask.show { opacity: 1; visibility: visible; }
.sidebar {
  position: fixed; top: 0; left: -300px; bottom: 0; z-index: 150; width: 280px;
  background: var(--bg-secondary); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.open { left: 0; }
.sb-head {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px; border-bottom: 1px solid var(--border);
}
.sb-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(34,211,238,0.2));
  border: 1px solid rgba(129,140,248,0.3);
  object-fit: contain; padding: 4px;
}
.sb-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.sb-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sb-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.sb-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
}
.sb-link:hover { background: var(--surface-hover); color: var(--text-main); }
.sb-link.active { color: var(--accent-1); background: rgba(129,140,248,0.1); }
.sb-link .material-icons-round { font-size: 19px; }
.sb-hr { height: 1px; background: var(--border); margin: 8px 0; }

/* ===== LAYOUT & SPA PAGE TRANSITIONS ===== */
.content { position: relative; z-index: 2; overflow-x: hidden; }

/* All sections hidden by default; JS adds .page-active */
.section {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 32px) 0 64px;
  flex-direction: column; justify-content: flex-start;
}
.section.page-active {
  display: flex;
}
/* Slide-in animations */
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
.section.slide-in-right { animation: slideInFromRight 0.38s cubic-bezier(0.4, 0, 0.2, 1) both; }
.section.slide-in-left  { animation: slideInFromLeft  0.38s cubic-bezier(0.4, 0, 0.2, 1) both; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; width: 100%; }

.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-right { opacity: 0; transform: translateX(48px); transition: all 0.7s cubic-bezier(0.5, 0, 0, 1) 0.1s; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ===== HERO SECTION ===== */
.hero {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 24px; align-items: center; min-height: 62vh;
}
.hero-content { padding-right: 8px; position: relative; z-index: 10; }

.hero-ver {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px; font-family: var(--font-mono);
}
.ver-tag {
  padding: 4px 12px;
  background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.3);
  border-radius: 100px; font-size: 12px; font-weight: 700;
  color: var(--accent-1); letter-spacing: 0.02em;
}
.ver-ch {
  padding: 4px 10px;
  background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25);
  color: var(--accent-3); border-radius: 100px; font-size: 12px; font-weight: 600;
}

.hero-title {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.06; font-weight: 800; margin-bottom: 22px;
}
.highlight {
  background: var(--grad-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block;
}

.hero-desc {
  font-size: 16px; color: var(--text-muted); margin-bottom: 36px;
  max-width: 440px; line-height: 1.8;
}

.hero-btns { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.magnetic-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition);
  overflow: hidden; z-index: 1; cursor: pointer;
}
.btn-content { display: flex; align-items: center; gap: 8px; z-index: 2; pointer-events: none; }
.btn-content .material-icons-round { font-size: 18px; }

.btn-primary {
  background: linear-gradient(135deg, #818CF8, #6366F1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(99,102,241,0.5), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: var(--surface); color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(129,140,248,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); transition: all var(--transition);
}
.btn-ghost:hover {
  color: var(--text-main); background: var(--surface-hover);
  border-color: rgba(129,140,248,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-ghost .material-icons-round { font-size: 17px; }
.btn-qq { color: #38BDF8; }
.btn-qq:hover { border-color: rgba(56,189,248,0.4); color: #38BDF8; }

/* HERO LOGO BADGE */
.hero-logo-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  padding: 8px 16px 8px 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
}
.hero-logo-img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(34,211,238,0.15));
  padding: 3px;
}
.hero-logo-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* HERO BUTTON GRID — 2列对齐，按钮保持自然宽度 */
.hero-btn-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: start;   /* 整体左对齐 */
  align-items: start;
}
.hero-btn-grid .magnetic-btn,
.hero-btn-grid .btn-ghost {
  width: auto;              /* 保持自然宽度，不拉伸 */
  white-space: nowrap;
}

/* XTC 行内 Logo（与标题字等高） */
.title-xtc-row {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  line-height: 1;
}
.hero-title-logo {
  height: 0.85em;
  width:  0.85em;
  object-fit: contain;
  border-radius: 0.15em;
  flex-shrink: 0;
  vertical-align: middle;
  background: #ffffff;
  padding: 0.05em;
}

/* HERO VISUAL */
.hero-visual {
  position: relative; perspective: 1800px;
  display: flex; justify-content: center; align-items: center;
}
.hero-image-wrapper {
  width: 135%; max-width: 960px; margin-left: -32%;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 48px 96px -24px rgba(0,0,0,0.7), 0 0 100px rgba(129,140,248,0.15), 0 0 1px rgba(255,255,255,0.08);
  transform: rotateY(-22deg) rotateX(4deg) translateZ(0);
  transition: transform 0.15s ease-out;
  border: 1px solid rgba(255,255,255,0.07);
  backface-visibility: hidden; transform-style: preserve-3d; will-change: transform;
}
.hero-image {
  width: 100%; height: auto; display: block; object-fit: contain;
}
[data-theme="light"] .hero-image-wrapper {
  box-shadow: 0 48px 96px -24px rgba(99,102,241,0.12), 0 0 80px rgba(129,140,248,0.1);
  border-color: rgba(129,140,248,0.15);
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotateY(-22deg) rotateX(4deg) translateZ(0); }
  50% { transform: translateY(-18px) rotateY(-17deg) rotateX(2deg) translateZ(0); }
}

/* HERO STATS BAR */
.hero-stats {
  display: flex; gap: 24px; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  color: var(--text-main);
}
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ===== SECTION TITLE ===== */
.cards-section { margin-top: 48px; }
.sec-title {
  font-size: 22px; font-weight: 700; margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-main);
}
.sec-title .title-bar {
  width: 3px; height: 20px;
  background: var(--grad-primary);
  border-radius: 2px; flex-shrink: 0;
}

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto); gap: 16px;
}
.bento-grid.three-col .bento-card { grid-column: span 1; }
.bento-grid.three-col .card-inner { flex-direction: column; align-items: flex-start; }
.bento-grid.three-col .card-ico { margin-bottom: 18px; width: 52px; height: 52px; border-radius: var(--radius-md); }
.bento-grid.three-col .card-ico .material-icons-round { font-size: 26px; }

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* ===== SPOTLIGHT CARDS ===== */
.spot-hover {
  position: relative; border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  overflow: hidden; cursor: default;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.spot-hover:hover {
  border-color: rgba(129,140,248,0.3);
  transform: translateY(-3px);
  box-shadow: var(--glow-card), 0 0 0 1px rgba(129,140,248,0.1);
}
.spotlight {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(129, 140, 248, 0.06), transparent 60%);
  z-index: 1; pointer-events: none;
}
[data-theme="light"] .spotlight {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.08), transparent 60%);
}
.spot-hover:hover .spotlight { opacity: 1; }

.card-inner {
  position: relative; z-index: 2; padding: 28px; height: 100%;
  display: flex; flex-direction: column;
}
.bento-wide .card-inner { flex-direction: row; align-items: center; gap: 28px; }

.card-ico {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.bento-wide .card-ico { margin-bottom: 0; width: 68px; height: 68px; border-radius: 18px; }
.card-ico .material-icons-round { font-size: 26px; color: #fff; }
.bento-wide .card-ico .material-icons-round { font-size: 32px; }

.c1 { background: linear-gradient(135deg, #818CF8, #6366F1); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.c2 { background: linear-gradient(135deg, #22D3EE, #0891B2); box-shadow: 0 8px 24px rgba(34,211,238,0.3); }
.c3 { background: linear-gradient(135deg, #A78BFA, #7C3AED); box-shadow: 0 8px 24px rgba(167,139,250,0.3); }
.c4 { background: linear-gradient(135deg, #34D399, #059669); box-shadow: 0 8px 24px rgba(52,211,153,0.3); }

.card-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.card-content p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ===== ANNOUNCE BOX ===== */
.announce-box {
  margin-top: 24px; padding: 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(129,140,248,0.05), rgba(34,211,238,0.03));
  border: 1px solid rgba(129,140,248,0.2); position: relative; overflow: hidden;
}
.announce-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,0.5), transparent);
}
.announce-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700;
  color: var(--accent-1); margin-bottom: 12px; font-size: 14px;
}
.announce-head .material-icons-round { font-size: 18px; }
.announce-ver {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.announce-list li {
  padding: 5px 0 5px 18px; font-size: 14px; color: var(--text-main);
  position: relative; line-height: 1.6;
}
.announce-list li::before {
  content: '›'; position: absolute; left: 0; color: var(--accent-1);
  font-weight: 700; font-size: 16px; line-height: 1; top: 7px;
}

/* ===== CHANGELOG ===== */
.pg-head { margin-bottom: 40px; }
.pg-head h1 {
  font-size: 32px; display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; font-weight: 800;
}
.pg-head h1 .material-icons-round { color: var(--accent-1); font-size: 32px; }
.pg-head p { color: var(--text-muted); font-size: 15px; }

.timeline {
  position: relative; padding-left: 28px;
  max-width: 760px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 1.5px;
  background: linear-gradient(to bottom,
    var(--accent-1) 0%, rgba(129,140,248,0.3) 15%, var(--border) 100%);
}
.tl-entry {
  position: relative; margin-bottom: 20px; padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.tl-entry:hover {
  border-color: rgba(129,140,248,0.35);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.tl-entry::before {
  content: ''; position: absolute; left: -27px; top: 26px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-1);
  box-shadow: 0 0 8px rgba(129,140,248,0.6);
}
.tl-entry:not(:first-child) { opacity: 0.65; }
.tl-entry:not(:first-child):hover { opacity: 1; }
.tl-entry:not(:first-child)::before { border-color: var(--text-subtle); box-shadow: none; }

.tl-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.tl-ver { font-family: var(--font-mono); font-weight: 700; font-size: 16px; color: var(--accent-1); }
.tl-entry:not(:first-child) .tl-ver { color: var(--text-main); }
.tl-date {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  background: var(--surface); padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--border);
}
.tl-list li {
  padding: 4px 0 4px 16px; font-size: 13px; color: var(--text-muted);
  position: relative; line-height: 1.7;
}
.tl-list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-1); opacity: 0.6;
}
.tl-entry:not(:first-child) .tl-list li::before { background: var(--text-subtle); }

.loader { display: flex; justify-content: center; padding: 60px 0; }
.spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--border); border-top-color: var(--accent-1);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ABOUT ===== */
.about-bento {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 40px;
}
.about-card .card-inner { padding: 22px 24px; }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ico-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-size: 22px;
}
.about-card h3 {
  font-size: 13px; color: var(--text-muted);
  font-weight: 500; font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-desc { font-size: 16px; font-weight: 600; line-height: 1.5; }
.ext-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--text-main);
  transition: color var(--transition);
}
.ext-link:hover { color: var(--accent-1); }
.ext-link .material-icons-round { font-size: 14px; color: var(--text-muted); }
.qq-link { color: var(--accent-2); }
.qq-link:hover { color: var(--accent-2) !important; }

.ver-row { display: flex; align-items: center; gap: 10px; }
.glow-text {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 2;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  background: var(--bg-secondary);
}
.footer .dot { color: var(--accent-1); opacity: 0.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; margin-top: 16px; }
  .hero-content { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
  .hero-desc { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-btn-grid { justify-content: center; }
  .hero-visual { justify-content: center; overflow: visible; }
  .hero-image-wrapper { width: 88%; max-width: 500px; margin-left: 0; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .bento-wide .card-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --header-height: 58px; }
  .menu-btn { display: flex; }
  .nav-links { display: none; }
  .container { padding: 0 18px; }

  /* Hero */
  .hero-logo-badge { display: none; } /* 移动端隐藏，避免拥挤 */
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .hero-desc { font-size: 15px; }
  .hero-btn-grid {
    grid-template-columns: auto auto;
    gap: 8px;
  }
  .hero-image-wrapper {
    width: 100%; max-width: 360px;
    transform: rotateY(0) rotateX(0);
    animation: none;
  }
  .hero-stats { flex-wrap: wrap; gap: 14px; }
  .stat-num { font-size: 16px; }

  /* Cards */
  .bento-grid.three-col,
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; }
  .about-bento { grid-template-columns: 1fr; }
  .card-inner { padding: 22px; }

  /* Timeline */
  .timeline { padding-left: 18px; }
  .tl-entry::before { left: -17px; width: 8px; height: 8px; top: 26px; }
  .tl-entry { padding: 18px; }
  .tl-ver { font-size: 14px; }

  /* Page head */
  .pg-head h1 { font-size: 26px; }
  .pg-head h1 .material-icons-round { font-size: 26px; }

  /* Section padding */
  .section { padding: calc(var(--header-height) + 20px) 0 48px; }

  /* Footer */
  .footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-btn-grid {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero-btn-grid .magnetic-btn,
  .hero-btn-grid .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .magnetic-btn { padding: 11px 16px; font-size: 13px; }
  .btn-ghost     { padding: 10px 14px; font-size: 13px; }
}

@keyframes heroFloatMobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes borderGlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ===== WAVE TEXT ===== */
@keyframes charWave {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-7px); }
}
.highlight-wave {
  display: inline-block;
}
.highlight-wave .wc {
  display: inline-block;
  animation: charWave 1.6s ease-in-out infinite;
}
