/* 门户首页：深色科技风 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: #0a1428;
  background-image: linear-gradient(180deg, #0a1428 0%, #0c1a36 55%, #0a1428 100%);
  color: #e8eefc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

/* ===== 背景特效 ===== */
.fx-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 140, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
}
.fx-glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: glowFloat 14s ease-in-out infinite alternate;
}
.fx-glow-1 { width: 460px; height: 460px; left: -120px; top: 8%;
  background: radial-gradient(circle, rgba(28, 100, 242, .5), transparent 70%); }
.fx-glow-2 { width: 420px; height: 420px; right: -140px; top: 42%;
  background: radial-gradient(circle, rgba(112, 83, 202, .42), transparent 70%);
  animation-delay: -7s; }
@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.15); }
}
.fx-rain { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx-rain span {
  position: absolute; bottom: -30px;
  color: rgba(105, 168, 255, .38);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  animation: rainRise linear infinite;
}
@keyframes rainRise {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: .9; }
  92%  { opacity: .6; }
  100% { transform: translateY(-108vh); opacity: 0; }
}

/* ===== 顶部导航 ===== */
.topnav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(10, 20, 40, .72);
  border-bottom: 1px solid rgba(105, 168, 255, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-shield { font-size: 26px; filter: drop-shadow(0 0 10px rgba(64, 140, 255, .6)); }
.brand-name {
  font-size: clamp(15px, 2.6vw, 19px); font-weight: 700; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topnav-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 10px; font-size: 14px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.nav-btn:active { transform: scale(.95); }
.nav-btn.ghost {
  color: #bcd0f5; border-color: rgba(105, 168, 255, .35);
}
.nav-btn.ghost:hover { background: rgba(105, 168, 255, .12); }
.nav-btn.primary {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #1c64f2, #3b82f6);
  box-shadow: 0 4px 18px rgba(28, 100, 242, .45);
}
.nav-btn.primary:hover { box-shadow: 0 6px 24px rgba(59, 130, 246, .6); }

/* ===== Hero ===== */
.hero {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(36px, 7vh, 72px) 16px 30px;
  text-align: center;
}
.hero-badge {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 3px; color: #6aa8ff;
  border: 1px solid rgba(105, 168, 255, .35); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 22px;
  background: rgba(20, 50, 110, .25);
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 6vw, 52px); font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(120deg, #ffffff 20%, #8db9ff 60%, #b39dff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #fff;
}
.hero-sub {
  margin: 0 0 42px; min-height: 24px;
  color: #7f96c4; font-size: clamp(13px, 2.4vw, 17px); letter-spacing: 1px;
}
.typer-caret { color: #6aa8ff; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ===== 三大正方形模块 ===== */
.modules {
  display: grid; grid-template-columns: repeat(3, minmax(96px, 168px));
  gap: clamp(12px, 3vw, 24px); justify-content: center;
  width: 100%; max-width: 640px; margin-bottom: 44px;
}
.module {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 10px;
  border-radius: 18px; text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid rgba(105, 168, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(4, 12, 30, .5);
  transition: transform .18s ease, border-color .2s ease, box-shadow .25s ease;
}
.module:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 180, 255, .6);
  box-shadow: 0 18px 44px rgba(28, 100, 242, .35);
}
.module:active { transform: translateY(-2px) scale(.98); }
.module-ico {
  width: clamp(44px, 8vw, 58px); height: clamp(44px, 8vw, 58px);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(22px, 4.5vw, 28px);
}
.module-ico.t-blue   { background: rgba(28, 100, 242, .22); box-shadow: inset 0 0 0 1px rgba(105, 168, 255, .3); }
.module-ico.t-green  { background: rgba(20, 122, 72, .24);  box-shadow: inset 0 0 0 1px rgba(94, 200, 148, .3); }
.module-ico.t-purple { background: rgba(112, 83, 202, .24); box-shadow: inset 0 0 0 1px rgba(178, 148, 255, .32); }
.module-name { font-size: clamp(14px, 2.8vw, 17px); font-weight: 700; color: #f2f6ff; }
.module-desc { font-size: clamp(10.5px, 1.9vw, 12.5px); color: #7f96c4; text-align: center; line-height: 1.4; }
.module-arrow {
  font-size: 11.5px; color: #6aa8ff; opacity: .85;
  border: 1px solid rgba(105, 168, 255, .3); border-radius: 999px; padding: 3px 12px;
}

/* ===== 数据条 ===== */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 4vw, 40px);
}
.hstat { text-align: center; min-width: 72px; }
.hstat b { display: block; font-size: clamp(18px, 3.4vw, 26px); color: #8db9ff; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 12px; color: #7f96c4; }

/* ===== 底部 ===== */
.foot {
  position: relative; z-index: 1;
  padding: 22px clamp(16px, 4vw, 40px) 26px;
  border-top: 1px solid rgba(105, 168, 255, .12);
  background: rgba(8, 16, 34, .6);
  text-align: center;
}
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 12px; }
.foot-links a { color: #7f96c4; font-size: 13px; text-decoration: none; }
.foot-links a:hover { color: #8db9ff; text-decoration: underline; }
.foot-copy { color: #55688f; font-size: 12px; letter-spacing: .4px; }

@media (max-width: 420px) {
  .module-desc { display: none; }
  .hero-stats { gap: 10px 22px; }
}
