/* ============ 首屏 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--announce-h) + 40px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(31, 143, 255, 0.10), transparent 65%),
    radial-gradient(ellipse at center, transparent 35%, var(--bg) 92%),
    linear-gradient(180deg, transparent 70%, var(--bg));
}
html[data-theme="light"] .hero-vignette {
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(31, 143, 255, 0.10), transparent 65%),
    radial-gradient(ellipse at center, transparent 40%, var(--bg) 92%),
    linear-gradient(180deg, transparent 70%, var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text-2);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2.2s infinite; }

.hero-title {
  margin-top: 28px;
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line-in { display: inline-block; }
.js .hero-title .line-in { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.js body.ready .hero-title .line-in { transform: none; }
.js body.ready .hero-title .line:nth-child(2) .line-in { transition-delay: 0.12s; }

.hero-desc {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--text-2);
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 44px; }
.hero-tags li {
  position: relative;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.hero-tags li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 8px; height: 1.5px;
  background: var(--blue);
  transform: rotate(-45deg);
}
.js .hero .reveal { transition-delay: 0.35s; }
.js .hero .hero-cta.reveal { transition-delay: 0.45s; }
.js .hero .hero-tags.reveal { transition-delay: 0.55s; }

/* ============ 首屏视觉：会动的 Logo ============ */
/* 横条与箭头路径直接取自 assets/img/logo-mark.svg（100×100 网格），改 Logo 时两处同步。
   横条 1：x 37.6→87.3，y 17.5→32.9；横条 2：x 25.4→78.7，y 39.2→54.7；横条 3：x 12.7→66.7，y 61→76.4。 */
.hero-visual {
  --s: min(440px, 36vw);
  position: relative;
  display: grid; place-items: center;
  min-height: calc(var(--s) * 1.35);
}
.stack {
  --px: 0; --py: 0; --scroll: 0;
  position: relative;
  width: var(--s); height: var(--s);
  perspective: 1400px;
  transform: translateY(calc(var(--scroll) * 70px));
  opacity: calc(1 - var(--scroll) * 0.6);
}
.stack-glow {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 60%, rgba(0, 160, 233, 0.5), rgba(31, 143, 255, 0) 62%);
  filter: blur(40px);
  opacity: 0.55;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.85; transform: scale(1.06); } }

.stack-tile {
  position: absolute; inset: 0;
  border-radius: 23.08%;
  background:
    radial-gradient(120% 90% at 20% 0%, #1c1c20, transparent 55%),
    #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 50px 100px -30px rgba(0, 0, 0, 0.75),
    0 30px 80px -40px rgba(31, 143, 255, 0.55);
  transform: rotateX(calc(var(--py) * -9deg)) rotateY(calc(var(--px) * 11deg));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
  overflow: hidden;
}
/* 表面掠过的高光 */
.stack-tile::after {
  content: "";
  position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.07) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: sheen 7s var(--ease-io) 2.2s infinite;
  pointer-events: none;
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

.stack-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bar {
  fill: url(#bar-grad);
  transform-box: fill-box;
  transform-origin: left center;
  filter: drop-shadow(0 1.2px 2px rgba(0, 0, 0, 0.45));
}
.bar-label {
  position: absolute;
  transform: translateY(-50%);
  font-size: calc(var(--s) * 0.036);
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  white-space: nowrap;
  opacity: 0.8;
  pointer-events: none;
}
.bl-1 { left: 42.5%; top: 25.2%; }
.bl-2 { left: 30.3%; top: 46.95%; }
.bl-3 { left: 17.6%; top: 68.7%; }

.arrow {
  fill: var(--brand-cyan);
  transform-box: fill-box;
  transform-origin: 0 100%;
  filter: drop-shadow(0 0 1.6px rgba(0, 160, 233, 0.75));
}
.stack-arrow {
  animation: nudge 3.2s var(--ease-io) 2.4s infinite;
}
@keyframes nudge {
  0%, 60%, 100% { transform: translate(0, 0); }
  75% { transform: translate(1.6px, -1.6px); }
}

/* 入场：横条依次伸出 → 文字淡入 → 箭头弹出 */
.js .bar { transform: scaleX(0); }
.js .bar-label { opacity: 0; transition: opacity 0.6s var(--ease) 1.4s; }
.js .arrow { transform: translate(-6px, 6px) scale(0.4); opacity: 0; }
.js body.ready .bar { transform: scaleX(1); transition: transform 1s var(--ease); }
.js body.ready .bar-1 { transition-delay: 0.35s; }
.js body.ready .bar-2 { transition-delay: 0.5s; }
.js body.ready .bar-3 { transition-delay: 0.65s; }
.js body.ready .bar-label { opacity: 0.8; }
.js body.ready .arrow { transform: none; opacity: 1; transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s, opacity 0.3s 1.15s; }

/* 悬浮信息卡：不同景深的视差 */
.float-card {
  --depth: 30px;
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
  white-space: nowrap;
  translate: calc(var(--px) * var(--depth) * -1) calc(var(--py) * var(--depth) * -1);
  transition: translate 0.8s var(--ease), opacity 0.9s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.fc-1 { --depth: 46px; top: 4%; left: -22%; }
.fc-2 { --depth: 64px; top: 44%; right: -24%; animation-delay: -2s; }
.fc-3 { --depth: 36px; bottom: -4%; left: -10%; animation-delay: -4s; padding: 12px 16px; gap: 16px; }
@keyframes float { 50% { transform: translateY(-10px); } }

.js .float-card { opacity: 0; }
.js body.ready .float-card { opacity: 1; }
.js body.ready .fc-1 { transition-delay: 0s, 1.7s; }
.js body.ready .fc-2 { transition-delay: 0s, 1.9s; }
.js body.ready .fc-3 { transition-delay: 0s, 2.1s; }

.fc-ico {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; flex: none;
}
.fc-ico svg { width: 18px; height: 18px; }
.fc-ico.ok { background: rgba(34, 197, 94, 0.14); color: #22c55e; }
.fc-ico.blue { background: var(--blue-soft); color: var(--blue-ink); }
.fc-body { display: flex; flex-direction: column; line-height: 1.3; }
.fc-body b { font-size: 14px; font-weight: 650; color: var(--text); }
.fc-body small { font-size: 12px; color: var(--text-3); }
.fc-3 .fc-body b { font-size: 20px; color: var(--blue-ink); }
.fc-spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.fc-spark i {
  width: 5px; height: var(--h);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(31, 143, 255, 0.25));
  transform-origin: bottom;
  animation: grow 2.4s var(--ease) infinite alternate;
}
.fc-spark i:nth-child(2) { animation-delay: 0.15s; }
.fc-spark i:nth-child(3) { animation-delay: 0.3s; }
.fc-spark i:nth-child(4) { animation-delay: 0.45s; }
.fc-spark i:nth-child(5) { animation-delay: 0.6s; }
.fc-spark i:nth-child(6) { animation-delay: 0.75s; }
@keyframes grow { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

/* 下滑提示 */
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px;
  width: 24px; height: 38px;
  margin-left: -12px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text-2);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============ 首屏响应式 ============ */
@media (max-width: 1180px) {
  .fc-1 { left: -12%; }
  .fc-2 { right: -12%; }
}
@media (max-width: 960px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { --s: min(360px, 62vw); margin-top: 24px; }
  .fc-1 { left: -18%; }
  .fc-2 { right: -18%; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .hero-visual { --s: 58vw; min-height: calc(var(--s) * 1.5); }
  .float-card { padding: 9px 12px 9px 9px; border-radius: 13px; gap: 9px; }
  .fc-ico { width: 28px; height: 28px; border-radius: 8px; }
  .fc-body b { font-size: 12.5px; }
  .fc-body small { font-size: 11px; }
  .fc-1 { left: -20%; top: -6%; }
  .fc-2 { right: -22%; top: 46%; }
  .fc-3 { left: -14%; bottom: -10%; }
  .fc-3 .fc-body b { font-size: 16px; }
  .fc-spark { height: 26px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ============ C6 视觉修正（覆盖 base.css，不改 token） ============ */
/* 两栏布局下标题随列宽缩放：1440/1280/1024 中文两行各自不折行；其他语言均衡换行避免孤字 */
@media (min-width: 961px) {
  .hero-title { font-size: clamp(40px, 5.4vw, 72px); }
}
.hero-title .line-in { text-wrap: balance; }

/* 桌面窄屏：品牌名不被导航挤成三行 */
@media (min-width: 961px) and (max-width: 1180px) {
  .brand-name { font-size: 14px; letter-spacing: 0.03em; line-height: 1.2; }
  .brand { gap: 9px; }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
}

/* 手机：品牌名最多两行，缩小标识与间距，菜单按钮保持可点 */
@media (max-width: 480px) {
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 13.5px; letter-spacing: 0.02em; line-height: 1.2; }
  .nav-actions { gap: 6px; flex: none; }
  .nav-inner { gap: 10px; }
}
