/* ============================================================
   装企进化岛 · 官网（单页）
   Design Token 沿用项目《07 设计约束规范》：主蓝 #2563EB 为唯一强调色
   首屏：Canvas 粒子星座 + 大字品牌名；下方：网站式信息布局
   ============================================================ */

:root {
  --brand-200: #BFDBFE;
  --brand-400: #60A5FA;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;

  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #EEF2F7;
  --ink-50: #F7F9FC;
  --white: #FFFFFF;
  --gold: #FCD34D;

  --maxw: 1120px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 10px 30px rgba(15, 23, 42, .08);
  --sh-brand: 0 10px 26px rgba(37, 99, 235, .28);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 240ms;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }

/* 整页撑满视口：首屏自适应剩余高度，页脚贴底，不产生滚动条 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.site-footer { flex: none; }

svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 顶部 ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background var(--dur) var(--ease);
}
.site-header.is-scrolled { background: rgba(15, 23, 42, .88); }
.header-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--sh-brand);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: .3px; line-height: 1.25; }
.logo-text span { display: block; font-size: 10px; color: #94A3B8; letter-spacing: 1.6px; line-height: 1.25; }

/* ============ 首屏 ============ */
.hero {
  position: relative; overflow: hidden;
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 28px) 0 32px;
  background: radial-gradient(1000px 620px at 50% 18%, #16305C 0%, transparent 62%),
              linear-gradient(170deg, #0B1220 0%, #0F172A 52%, #0A0F1C 100%);
  color: var(--white);
  text-align: center;
}

/* 粒子画布（JS 绘制；未启用时保持纯渐变兜底） */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 透视网格地平线 */
.grid-floor {
  position: absolute; left: -25%; right: -25%; bottom: -6%; height: 46%;
  perspective: 340px; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 42%, rgba(0, 0, 0, .35) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 42%, rgba(0, 0, 0, .35) 100%);
}
.grid-floor::before {
  content: ""; position: absolute; inset: -60% -10% -10%;
  transform: rotateX(66deg);
  background-image: linear-gradient(rgba(96, 165, 250, .30) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(96, 165, 250, .30) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: floor 7s linear infinite;
}
@keyframes floor { from { background-position: 0 0; } to { background-position: 0 64px; } }

/* 光标光晕 */
.cursor-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 320px at var(--mx, 50%) var(--my, 42%), rgba(59, 130, 246, .18), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.cursor-glow.on { opacity: 1; }

/* 顶部/底部暗角，保证文字对比度 */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 420px at 50% 46%, rgba(11, 18, 32, .72), transparent 72%);
}

.hero-inner { position: relative; z-index: 2; }

.brand {
  font-size: clamp(52px, 11.5vw, 148px);
  font-weight: 600; line-height: 1.1; letter-spacing: clamp(2px, 1.2vw, 14px);
  color: var(--white);
  text-shadow: 0 0 60px rgba(37, 99, 235, .45);
}
.brand .char { display: inline-block; opacity: 0; transform: translateY(.36em) scale(.96); animation: charIn 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.brand .char.glow { color: #DBEAFE; text-shadow: 0 0 26px rgba(147, 197, 253, .85); }
@keyframes charIn { to { opacity: 1; transform: none; } }

.brand-en {
  margin-top: 18px;
  font-size: clamp(11px, 1.6vw, 17px); font-weight: 500;
  letter-spacing: clamp(6px, 1.4vw, 18px); color: #7EA6E8;
  text-indent: clamp(6px, 1.4vw, 18px);
  opacity: 0; animation: fadeIn 1.2s var(--ease) .5s forwards;
}

.brand-rule {
  width: min(420px, 62vw); height: 1px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, .9), transparent);
  transform: scaleX(0); transform-origin: 50% 50%;
  animation: ruleIn 1.4s var(--ease) .7s forwards;
}
@keyframes ruleIn { to { transform: scaleX(1); } }

.tagline {
  margin-top: 22px; font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 2px; color: rgba(203, 213, 225, .82);
  opacity: 0; animation: fadeIn 1.2s var(--ease) 1s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand .char, .brand-en, .tagline { opacity: 1; transform: none; }
  .brand-rule { transform: scaleX(1); }
  .grid-floor { display: none; }
}

/* 极矮视口（横屏手机等）：放开滚动，避免内容被裁 */
@media (max-height: 520px) {
  body { height: auto; min-height: 100dvh; overflow: auto; }
  .hero { min-height: 100dvh; }
}

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .hero { padding: calc(var(--header-h) + 20px) 0 24px; }
  .brand { letter-spacing: 2px; }
  .footer-bottom { flex-direction: column; }
}

/* ============ 页脚（仅版权 + 备案栏） ============ */
.site-footer { background: var(--ink-900); color: #94A3B8; padding: 22px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; }

/* ============ 按钮（404 页复用） ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--white); box-shadow: var(--sh-brand); }
