/* ============================================================
   SeimiRender 官网 — 首页样式
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(52% 42% at 18% 8%, rgba(56, 130, 255, .16), transparent 70%),
    radial-gradient(40% 36% at 85% 20%, rgba(38, 208, 245, .1), transparent 70%),
    radial-gradient(46% 40% at 60% 96%, rgba(143, 123, 255, .09), transparent 70%);
}
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 62% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 62% at 50% 30%, #000 20%, transparent 78%);
}
.hero-bg .glow-orb {
  position: absolute; border-radius: 50%; filter: blur(110px);
  opacity: .5;
}
.hero-bg .glow-orb.o1 { width: 480px; height: 480px; left: -160px; top: -120px; background: rgba(43, 104, 232, .22); }
.hero-bg .glow-orb.o2 { width: 380px; height: 380px; right: -120px; top: 10%; background: rgba(30, 190, 230, .13); }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(148, 178, 255, .07);
  border: 1px solid var(--border-strong);
  font-size: 13px; color: var(--text-2);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero-badge b { color: var(--text-1); font-weight: 600; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.16; letter-spacing: -.018em; font-weight: 700;
  margin-bottom: 24px;
}
.hero-desc {
  color: var(--text-2); font-size: 17.5px; line-height: 1.85;
  max-width: 560px; margin-bottom: 38px;
}
.hero-desc b { color: var(--text-1); font-weight: 600; }
.hero-cta { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13.5px; flex-wrap: wrap; }
.hero-meta a { color: var(--text-2); border-bottom: 1px dashed rgba(148, 178, 255, .3); }
.hero-meta a:hover { color: var(--text-1); }

/* Hero 右侧：终端 + 浮动状态卡 */
.hero-visual { position: relative; }
.terminal {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(13, 20, 36, .92), rgba(7, 11, 20, .94));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow:
    0 40px 100px -30px rgba(2, 8, 20, .9),
    0 0 0 1px rgba(255, 255, 255, .02) inset,
    0 24px 70px -28px rgba(56, 149, 255, .28);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 178, 255, .1);
  background: rgba(148, 178, 255, .035);
}
.terminal-bar .tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.terminal-bar .ttitle {
  margin-left: 8px; font-family: var(--font-mono);
  font-size: 12px; color: var(--text-3); letter-spacing: .04em;
}
.terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8;
  overflow-x: auto;
}
.terminal-body .cmt { color: #586a8c; }
.terminal-body .pn { color: #7e93b8; }
.terminal-body .k { color: #6cb2ff; }
.terminal-body .s { color: #7fe0c0; }
.terminal-body .p { color: #55688a; }
.terminal-body .b { color: #ffd479; }
.terminal-caret {
  display: inline-block; width: 8px; height: 17px; vertical-align: -3px;
  background: var(--brand-2); margin-left: 2px;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 13px;
  background: rgba(10, 16, 30, .88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px -14px rgba(2, 8, 20, .85);
  font-size: 13px;
  animation: floaty 6.5s ease-in-out infinite;
}
.float-chip .fi {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.float-chip .fi svg { width: 16px; height: 16px; }
.float-chip .ft { display: flex; flex-direction: column; line-height: 1.35; }
.float-chip .ft b { font-size: 13px; font-weight: 600; }
.float-chip .ft span { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); }
.float-chip.fc1 { top: -26px; right: -14px; animation-delay: .8s; }
.float-chip.fc2 { bottom: -24px; left: -22px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Hero 底部数据条 */
.hero-stats {
  margin-top: 84px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(148, 178, 255, .045), rgba(148, 178, 255, .015));
  overflow: hidden;
}
.hero-stats .stat {
  padding: 26px 30px;
  border-right: 1px solid var(--border);
}
.hero-stats .stat:last-child { border-right: 0; }
.stat .num {
  font-size: 30px; font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .num small { font-size: 16px; font-weight: 600; margin-left: 2px; }
.stat .lb { color: var(--text-3); font-size: 13.5px; margin-top: 5px; }

/* ---------- 对比区：为什么需要独立浏览器 ---------- */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.compare-card { padding: 34px 34px 30px; position: relative; }
.compare-card .cc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  margin-bottom: 20px;
}
.compare-card.bad .cc-tag { color: var(--bad); }
.compare-card.good .cc-tag { color: var(--ok); }
.compare-card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -.01em; }
.compare-card .cc-desc { color: var(--text-2); font-size: 14.5px; margin-bottom: 22px; }
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-card ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; }
.compare-card ul li .mk {
  flex: none; width: 19px; height: 19px; border-radius: 50%; margin-top: 2.5px;
  display: flex; align-items: center; justify-content: center;
}
.compare-card ul li .mk svg { width: 11px; height: 11px; }
.compare-card.bad ul li .mk { background: rgba(248, 113, 113, .12); color: var(--bad); }
.compare-card.good ul li .mk { background: rgba(52, 211, 153, .13); color: var(--ok); }
.compare-card.good {
  border-color: rgba(52, 211, 153, .28);
  background: linear-gradient(180deg, rgba(52, 211, 153, .055), rgba(148, 178, 255, .028));
}
.compare-card.good:hover { border-color: rgba(52, 211, 153, .45); }

/* ---------- Bento 特性矩阵 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.bcell { padding: 28px 28px 26px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.bcell .bico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, .18), rgba(38, 208, 245, .1));
  border: 1px solid rgba(79, 140, 255, .28);
  margin-bottom: 18px;
}
.bcell .bico svg { width: 21px; height: 21px; stroke: #7db4ff; }
.bcell h3 { font-size: 17.5px; margin-bottom: 9px; letter-spacing: -.005em; }
.bcell p { color: var(--text-2); font-size: 14px; line-height: 1.75; }
.bcell .btools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.bcell .btools .chip { font-size: 11.5px; padding: 3.5px 10px; }

/* 大卡：渲染管线可视化 */
.bcell.wide { grid-column: span 7; }
.bcell.tall { grid-column: span 5; }
.bcell.s4 { grid-column: span 4; }
.bcell.s5 { grid-column: span 5; }
.bcell.s6 { grid-column: span 6; }
.bcell.s7 { grid-column: span 7; }
.bcell.s3 { grid-column: span 3; }

.pipeline {
  margin-top: 22px;
  display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap;
}
.pipeline .pnode {
  flex: 1; min-width: 92px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, .6);
  border-radius: 11px;
  padding: 12px 8px 11px;
  text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.pipeline .pnode b { color: var(--text-1); font-size: 12.5px; font-weight: 600; }
.pipeline .pnode.core {
  border-color: rgba(79, 140, 255, .5);
  background: linear-gradient(180deg, rgba(79, 140, 255, .13), rgba(38, 208, 245, .05));
  box-shadow: 0 0 26px -6px rgba(56, 149, 255, .35) inset;
}
.pipeline .pnode.core b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pipeline .parr { align-self: center; color: var(--text-3); flex: none; }
.pipeline .parr svg { width: 15px; height: 15px; }

/* ---------- 场景 ---------- */
.scenario-list { display: flex; flex-direction: column; gap: 18px; }
.scenario {
  display: grid; grid-template-columns: 130px 1fr; gap: 34px;
  padding: 38px 40px;
  position: relative;
}
.scenario .sn {
  font-family: var(--font-mono);
  font-size: 52px; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 178, 255, .3);
  letter-spacing: -.02em;
  padding-top: 4px;
}
.scenario:hover .sn { -webkit-text-stroke-color: rgba(120, 190, 255, .75); transition: -webkit-text-stroke-color .3s; }
.scenario h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.scenario p { color: var(--text-2); font-size: 15px; max-width: 720px; }
.scenario .stags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* 数据方向三卡 */
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.domain-card { padding: 26px; }
.domain-card .dico { font-size: 26px; margin-bottom: 14px; }
.domain-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.domain-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }

/* ---------- 演示截图 ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { overflow: hidden; cursor: zoom-in; display: flex; flex-direction: column; }
.shot .shot-img {
  height: 320px; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border);
  background: #f4f7f9;
}
.shot .shot-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .5s cubic-bezier(.2, .65, .3, 1);
}
.shot:hover .shot-img img { transform: scale(1.035); }
.shot .shot-cap { padding: 18px 20px 20px; }
.shot .shot-cap h4 { font-size: 15.5px; margin-bottom: 6px; }
.shot .shot-cap p { color: var(--text-2); font-size: 13px; line-height: 1.65; }
.shot .shot-cap .zoom-hint {
  margin-top: 12px; font-size: 12px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.shot .shot-cap .zoom-hint svg { width: 12px; height: 12px; }

/* ---------- 管理后台 ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 架构 ---------- */
.arch-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.arch-frame {
  background: linear-gradient(180deg, #ffffff, #f2f6fa);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 30px 80px -30px rgba(2, 8, 20, .85), 0 0 60px -30px rgba(56, 149, 255, .4);
}
.arch-frame .af-bar {
  display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px;
}
.arch-frame .af-bar .tdot { width: 10px; height: 10px; border-radius: 50%; }
.arch-frame img { border-radius: 9px; width: 100%; }
.arch-points { display: flex; flex-direction: column; gap: 14px; }
.arch-point { padding: 20px 22px; display: flex; gap: 15px; align-items: flex-start; }
.arch-point .api-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--brand-2);
  background: rgba(38, 208, 245, .09);
  border: 1px solid rgba(38, 208, 245, .25);
  border-radius: 8px; padding: 3px 9px; flex: none; margin-top: 2px;
}
.arch-point h4 { font-size: 15.5px; margin-bottom: 5px; }
.arch-point p { color: var(--text-2); font-size: 13.5px; line-height: 1.65; }

/* ---------- 快速开始 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.step .st-no {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: #03101d;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px -6px rgba(56, 149, 255, .55);
}
.step h3 { font-size: 17.5px; }
.step .st-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.step .code-block { margin-top: auto; }
.step .code-block pre { font-size: 12.5px; padding: 14px 16px; }
.step .st-links { display: flex; flex-direction: column; gap: 9px; }
.step .st-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.5px;
  transition: border-color .18s, color .18s, background .18s;
}
.step .st-links a:hover { border-color: var(--border-strong); color: var(--text-1); background: rgba(148, 178, 255, .05); }
.step .st-links a .ico { width: 14px; height: 14px; opacity: .6; }

.qs-curl { margin-top: 26px; }
.qs-curl .code-block pre { font-size: 13px; }

/* ---------- CTA ---------- */
.cta-band { padding: 40px 0 120px; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 88px 40px;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(56, 130, 255, .16), transparent 65%),
    radial-gradient(50% 100% at 80% 100%, rgba(143, 123, 255, .1), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--border-strong);
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%);
}
.cta-card > * { position: relative; }
.cta-card h2 {
  font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.015em;
  line-height: 1.3; margin-bottom: 18px;
}
.cta-card p { color: var(--text-2); font-size: 16.5px; max-width: 560px; margin: 0 auto 36px; }
.cta-card .cta-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { max-width: 640px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(2) { border-right: 0; }
  .hero-stats .stat:nth-child(1), .hero-stats .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .bcell.wide, .bcell.tall, .bcell.s7, .bcell.s6, .bcell.s5, .bcell.s4, .bcell.s3 { grid-column: span 6; }
  .demo-grid, .admin-grid, .steps { grid-template-columns: 1fr 1fr; }
  .arch-wrap { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .hero-stats .stat:last-child { border-bottom: 0; }
  .bcell.wide, .bcell.tall, .bcell.s7, .bcell.s6, .bcell.s5, .bcell.s4, .bcell.s3 { grid-column: span 12; }
  .compare-grid { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 1fr; gap: 14px; padding: 28px 24px; }
  .scenario .sn { font-size: 38px; }
  .demo-grid, .admin-grid, .steps { grid-template-columns: 1fr; }
  .float-chip.fc1 { right: 0; top: -18px; }
  .float-chip.fc2 { left: 0; bottom: -18px; }
  .cta-card { padding: 64px 24px; }
}
