/* ============================================================
   数智展厅 · 序厅 (Home) 样式
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 70% 30%, rgba(155, 123, 255, 0.12), transparent 60%),
    linear-gradient(180deg, transparent 40%, var(--bg-1) 96%);
}
.hero .wrap-wide { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--sp-5); align-items: center; padding-block: var(--sp-6); }
.hero-inner { max-width: 38rem; }
.hero-media { position: relative; }

.award-line {
  display: inline-flex; align-items: center; gap: 0.7em; flex-wrap: wrap;
  padding: 0.5em 1.05em; border-radius: var(--r-pill);
  background: rgba(47, 230, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  font-size: var(--fs-sm); color: var(--cyan-soft); font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px -6px rgba(47, 230, 255, 0.4);
}
.award-line .sep { width: 1px; height: 14px; background: var(--line-strong); }
.award-line .cat { color: var(--text-2); }

.hero h1 {
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.16;
  margin: var(--sp-3) 0 var(--sp-3);
  text-wrap: balance;
}
.hero h1 .accent { display: block; }
.hero-keywords {
  display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4);
}
.hero-keywords .kw {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em;
  color: var(--text-3); text-transform: uppercase;
}
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--text-2);
  line-height: 1.85; max-width: 46ch; margin-bottom: var(--sp-4);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-bottom: var(--sp-5); color: var(--text-3); font-size: var(--fs-sm); }
.hero-meta b { color: var(--text-2); font-weight: 600; }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* hero 内视频 */
.hero-media .video-shell { aspect-ratio: 16 / 9; }
.hero-media .video-caption { margin-top: var(--sp-2); }

.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-3); font-size: var(--fs-xs); letter-spacing: 0.18em;
  display: flex; flex-direction: column; align-items: center; gap: 0.5em;
}
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(40px); opacity: 0; } }

/* ---------- 视频 ---------- */
.video-section { padding-block: var(--sp-6); }
.video-shell {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(47, 230, 255, 0.06), 0 0 80px -30px rgba(47, 230, 255, 0.5);
  aspect-ratio: 16 / 9;
}
.video-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  cursor: pointer; z-index: 3;
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(11, 17, 32, 0.4), rgba(4, 6, 13, 0.82)),
    linear-gradient(135deg, #0a1428, #0b0f1f);
  transition: opacity var(--dur) var(--ease);
}
.video-poster.hidden { opacity: 0; pointer-events: none; }
.video-poster .play-btn {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(47, 230, 255, 0.12);
  border: 1px solid rgba(47, 230, 255, 0.5);
  box-shadow: 0 0 0 0 rgba(47, 230, 255, 0.4);
  animation: pulse 2.6s ease-out infinite;
}
.video-poster .play-btn svg { width: 34px; height: 34px; margin-left: 5px; fill: var(--cyan-soft); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 230, 255, 0.35); } 70% { box-shadow: 0 0 0 26px rgba(47, 230, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 230, 255, 0); } }
.video-poster .v-label { position: absolute; bottom: 1.4rem; left: 1.6rem; }
.video-poster .v-label .t { font-size: var(--fs-h3); font-weight: 800; }
.video-poster .v-label .s { color: var(--text-3); font-size: var(--fs-sm); }
.video-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.stat { background: var(--bg-2); padding: var(--sp-4) var(--sp-3); text-align: center; transition: background var(--dur) var(--ease); }
.stat:hover { background: var(--surface-1); }
.stat .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--fs-stat); line-height: 1;
  background: linear-gradient(120deg, var(--cyan-soft), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .num .suffix, .stat .num .prefix { font-size: 0.5em; }
.stat:nth-child(2) .num { background: linear-gradient(120deg, var(--violet-soft), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(3) .num { background: linear-gradient(120deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(4) .num { background: linear-gradient(120deg, var(--green), #8af5c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(5) .num { background: linear-gradient(120deg, var(--cyan-soft), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(6) .num { background: linear-gradient(120deg, var(--gold-soft), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lab { margin-top: 0.5em; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- 三矩阵 portal ---------- */
.matrices { position: relative; }
.matrices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }

.portal {
  position: relative; display: flex; flex-direction: column;
  min-height: 460px; padding: var(--sp-5) var(--sp-4) var(--sp-4);
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  --c: var(--cyan); --c-soft: var(--cyan-soft);
}
.portal[data-m="data"] { --c: var(--m-data); --c-soft: var(--m-data-soft); }
.portal[data-m="cult"] { --c: var(--m-cult); --c-soft: var(--m-cult-soft); }
.portal[data-m="digi"] { --c: var(--m-digi); --c-soft: var(--m-digi-soft); }
.portal::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur) var(--ease);
  background: radial-gradient(420px 280px at 50% -10%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
}
.portal:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: var(--shadow-card), 0 0 50px -16px color-mix(in srgb, var(--c) 75%, transparent);
}
.portal:hover::before { opacity: 1; }

.portal-idx { font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--c); letter-spacing: 0.1em; }
.portal-glyph {
  position: relative; width: 100%; height: 150px; margin: var(--sp-3) 0 var(--sp-4);
  display: grid; place-items: center;
}
.portal-glyph svg { width: 132px; height: 132px; overflow: visible; }
.portal-glyph .gnode { fill: var(--c); }
.portal-glyph .gline { stroke: color-mix(in srgb, var(--c) 60%, transparent); stroke-width: 1.2; fill: none; }
.portal h3 { font-size: var(--fs-h2); margin-bottom: 0.3em; }
.portal .role { color: var(--c-soft); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-2); }
.portal p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.8; margin-bottom: var(--sp-3); }
.portal .chips { display: flex; flex-wrap: wrap; gap: 0.45em; margin-bottom: var(--sp-4); }
.portal .chips span { font-size: var(--fs-xs); color: var(--text-3); padding: 0.25em 0.6em; border: 1px solid var(--line); border-radius: var(--r-pill); }
.portal .enter {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--c-soft); font-weight: 700; font-size: var(--fs-sm);
}
.portal .enter .arrow { transition: transform var(--dur) var(--ease); }
.portal:hover .enter .arrow { transform: translateX(5px); }

/* 三矩阵关系链 */
.flow-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); }
.flow-strip .node { text-align: center; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.flow-strip .node .k { font-weight: 800; font-size: 1.02rem; }
.flow-strip .node .v { color: var(--text-3); font-size: var(--fs-xs); margin-top: 0.3em; }
.flow-strip .node[data-m="data"] .k { color: var(--cyan-soft); }
.flow-strip .node[data-m="cult"] .k { color: var(--violet-soft); }
.flow-strip .node[data-m="digi"] .k { color: var(--gold-soft); }
.flow-strip .arrow-x { color: var(--text-3); font-size: 1.4rem; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); padding-block: var(--sp-5); }
  .hero-inner { max-width: 100%; }
  .hero-media { order: -1; }
  .scroll-hint { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .matrices-grid { grid-template-columns: 1fr; }
  .flow-strip { grid-template-columns: 1fr; gap: var(--sp-2); }
  .flow-strip .arrow-x { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding-block: var(--sp-5); }
}
