/* 首页专用：深色首屏、产品分类、动态小预览、交互效果 */
body.home { background: #fff; }
.home .nav { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: #fff; transition: background .25s, border-color .25s, color .25s; }
.home .nav .nav-links { color: #a9b0bc; }
.home .nav .nav-links a:hover { color: #fff; }
.home .nav .btn { background: #fff; color: var(--ink); }
.home .nav .btn.ghost { background: transparent; color: #fff; border-color: #333a45; }
.home .nav .btn.ghost:hover { background: #1b2028; }
.home .nav .pill { background: #1b2028; color: #fff; }
.home .nav.solid { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom-color: var(--line); color: var(--ink); }
.home .nav.solid .nav-links { color: var(--muted); }
.home .nav.solid .nav-links a:hover { color: var(--ink); }
.home .nav.solid .btn { background: var(--ink); color: #fff; }
.home .nav.solid .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.home .nav.solid .pill { background: var(--surface); color: var(--ink); }

/* ---------- 首屏 ---------- */
.stage { position: relative; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%); }
.stage .glow { position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%; left: var(--gx, 70%); top: var(--gy, 30%);
  transform: translate(-50%, -50%); background: radial-gradient(circle, #f2470d47 0%, #f2470d14 40%, transparent 68%); pointer-events: none; transition: left .5s ease-out, top .5s ease-out; }
.stage .hero { padding: 152px 0 72px; }
.stage .eyebrow { color: #ff8a5c; }
.stage .eyebrow::before { background: #ff8a5c; }
.stage h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 900; line-height: 1.14; letter-spacing: -1px; margin: 24px 0; }
.rotor { display: block; height: 1.14em; overflow: hidden; color: var(--accent); }
.rotor span { display: block; height: 1.14em; transition: transform .6s cubic-bezier(.7, 0, .2, 1); white-space: nowrap; }
.stage .lead { color: #a9b0bc; font-size: 18px; line-height: 1.7; max-width: 540px; }
.stage .btn.ghost { color: #fff; border-color: #333a45; }
.stage .btn.ghost:hover { background: #1b2028; }
.stage .btn.accent { box-shadow: 0 10px 30px -10px #f2470dcc; transition: transform .2s, box-shadow .2s; }
.stage .btn.accent:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 16px 36px -10px #f2470d; }
.facts { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.facts div { font-size: 13px; color: #8b93a1; }
.facts b { display: block; font-family: var(--num); font-size: 30px; color: #fff; line-height: 1.2; }

.stage .panel { background: #141920; border: 1px solid #262b33; box-shadow: 0 40px 80px -30px #000; transform: perspective(1200px) rotateY(var(--ry, -4deg)) rotateX(var(--rx, 2deg)); transition: transform .3s ease-out; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ed598; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 #3ed59880; } 50% { box-shadow: 0 0 0 6px #3ed59800; } }
.stage .feed { height: 292px; overflow: hidden; align-content: start; }
.stage .feed li { animation: slideIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-18px) scale(.97); } }
.stage .feed li.new { background: #1f2630; }

/* 能力跑马灯 */
.marquee { border-top: 1px solid #1f242c; padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { padding: 7px 14px; border: 1px solid #262b33; border-radius: 999px; font-size: 13px; color: #c9cfd8; white-space: nowrap; }
.marquee span i { font-style: normal; color: #6b7482; margin-left: 6px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 产品 ---------- */
.catalog { padding: 88px 0 72px; }
.catalog h2, .flowsec h2, .pillars h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; letter-spacing: -.5px; }
.catalog .sub { color: var(--muted); margin-top: 8px; max-width: 560px; }
.tabs-wrap { position: sticky; top: 68px; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); margin: 28px 0 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; transition: color .2s; }
.tabs button.on { color: #fff; }
.tabs button .num { font-size: 12px; opacity: .65; }
.tabs .slider { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 9px; background: var(--ink); transition: transform .35s cubic-bezier(.3, 1.2, .4, 1), width .35s cubic-bezier(.3, 1.2, .4, 1); }
.group { padding-top: 40px; }
.group[hidden] { display: none; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.group-head h3 { font-size: 22px; font-weight: 800; }
.group-head span { color: var(--muted); font-size: 14px; }
.group-head .n { margin-left: auto; font-family: var(--num); color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; animation: cardIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(360px circle at var(--mx) var(--my), #f2470d1c, transparent 60%); }
.card:hover { transform: translateY(-5px); border-color: #f2470d66; box-shadow: 0 24px 48px -24px #0e111640; }
.card:hover::after { opacity: 1; }
.card.wide { grid-column: span 2; }
.mini { height: 148px; background: var(--dark); position: relative; overflow: hidden; display: grid; place-items: center; }
.card.wide .mini { height: 190px; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .title { display: flex; align-items: center; gap: 10px; }
.card .title .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; transition: background .25s; }
.card:hover .title .ic { background: var(--accent); }
.card h4 { margin: 0; font-size: 19px; font-weight: 800; }
.card .title .badge { margin-left: auto; }
.card .tag { font-weight: 600; }
.card p { color: var(--muted); font-size: 14px; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; }
.feats span { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--surface); color: #3b4350; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.card .go { color: var(--accent); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.card .go svg { transition: transform .25s; }
.card:hover .go svg { transform: translateX(4px); }

/* 小预览：平时静止，鼠标移上去（或触屏设备上一直）才动 */
.mini * { animation-play-state: paused; }
.card:hover .mini * { animation-play-state: running; }
@media (hover: none) { .mini * { animation-play-state: running; } }
.m-tiles { display: grid; grid-template-columns: repeat(4, 54px); gap: 8px; }
.m-tiles i { height: 72px; border-radius: 8px; background: linear-gradient(160deg, var(--a), var(--b)); position: relative; overflow: hidden; animation: tile 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * .18s); }
.m-tiles i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff66 50%, transparent 65%); transform: translateX(-100%); animation: sweep 2.4s infinite; animation-delay: calc(var(--k) * .18s); }
@keyframes tile { 50% { transform: translateY(-6px); } }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.m-bars { display: flex; align-items: center; gap: 5px; height: 84px; }
.m-bars i { width: 6px; border-radius: 3px; background: #fff; height: calc(18px + var(--h) * 1px); animation: bar 1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.13s); }
.m-bars i:nth-child(3n) { background: var(--accent); }
@keyframes bar { to { height: 12px; } }
.m-panels { display: flex; gap: 10px; }
.m-panels i { width: 62px; height: 86px; border-radius: 6px; border: 2px solid #fff; background: linear-gradient(170deg, #2a313c, #171b22); position: relative; animation: panel 3s ease-in-out infinite; animation-delay: calc(var(--k) * .5s); }
.m-panels i::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px; height: 4px; border-radius: 2px; background: #ffffff55; box-shadow: 0 -8px 0 #ffffff33; }
.m-panels i:nth-child(2) { transform: rotate(-3deg); border-color: var(--accent); }
@keyframes panel { 12% { transform: translateY(-8px) rotate(2deg); } 24% { transform: none; } }
.m-clip { width: 78%; }
.m-clip .bar { position: relative; height: 38px; border-radius: 8px; background: #232933; overflow: hidden; }
.m-clip .bar b { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .9; }
.m-clip .bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; left: 0; animation: head 3.2s linear infinite; }
@keyframes head { to { left: 100%; } }
.m-clip .out { display: flex; gap: 8px; margin-top: 12px; }
.m-clip .out i { flex: 1; height: 22px; border-radius: 5px; background: #2a313c; animation: pop 3.2s infinite; animation-delay: calc(var(--k) * .9s); }
@keyframes pop { 10% { background: var(--accent); transform: scale(1.06); } 30% { background: #2a313c; transform: none; } }
.m-sell { width: 82%; display: grid; gap: 12px; }
.m-sell .ask { background: #232933; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #e6e9ee; white-space: nowrap; overflow: hidden; width: 0; animation: typing 4.5s steps(18) infinite; border-right: 2px solid var(--accent); }
@keyframes typing { 0% { width: 0; } 35%, 100% { width: 100%; } }
.m-sell .outs { display: flex; gap: 8px; }
.m-sell .outs i { font-style: normal; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 7px; background: var(--accent); color: #fff; opacity: 0; animation: chip 4.5s infinite; animation-delay: calc(var(--k) * .35s); }
@keyframes chip { 0%, 38% { opacity: 0; transform: translateY(8px); } 48%, 100% { opacity: 1; transform: none; } }
.m-pub { position: relative; width: 220px; height: 110px; }
.m-pub .src { position: absolute; left: 0; top: 37px; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); }
.m-pub i { position: absolute; right: 0; width: 26px; height: 26px; border-radius: 50%; background: #2a313c; top: calc(var(--k) * 28px - 2px); animation: land 2.6s infinite; animation-delay: calc(var(--k) * .28s + .4s); }
.m-pub u { position: absolute; left: 40px; top: 53px; height: 2px; width: 150px; transform-origin: left center; transform: rotate(calc((var(--k) - 1.5) * 13deg)); background: linear-gradient(90deg, #f2470d, transparent); background-size: 200% 100%; animation: beam 2.6s linear infinite; animation-delay: calc(var(--k) * .28s); opacity: .7; }
@keyframes beam { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes land { 20% { background: #3ed598; transform: scale(1.2); } 55% { background: #2a313c; transform: none; } }
.m-rank { display: flex; align-items: end; gap: 14px; height: 96px; }
.m-rank div { display: grid; justify-items: center; gap: 8px; }
.m-rank b { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, #ffb49a, #f2470d); }
.m-rank div:nth-child(even) b { background: linear-gradient(140deg, #e6e9ee, #8b93a1); }
.m-rank i { width: 30px; border-radius: 5px 5px 0 0; background: #2a313c; height: calc(var(--h) * 1px); transform-origin: bottom; animation: grow 2.8s ease-in-out infinite; animation-delay: calc(var(--k) * .2s); }
@keyframes grow { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); background: var(--accent); } }
.m-sub { width: 80%; display: grid; gap: 9px; font-size: 13px; }
.m-sub div { padding: 7px 12px; border-radius: 8px; color: #6b7482; animation: line 4.8s infinite; animation-delay: calc(var(--k) * 1.6s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes line { 0%, 30% { background: #232933; color: #fff; } 34%, 100% { background: transparent; color: #6b7482; } }

/* ---------- 串起来 ---------- */
.flowsec { background: var(--surface); padding: 88px 0; }
.flowbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; margin-top: 36px; }
.steps { display: grid; gap: 10px; align-content: start; }
.steps button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.steps button:hover { transform: translateX(4px); }
.steps button small { color: var(--accent); font-family: var(--num); font-weight: 700; }
.steps button b { font-size: 17px; }
.steps button span { color: var(--muted); font-size: 14px; }
.steps button.on { border-color: var(--ink); }
.steps button .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.steps button.on .prog { animation: prog 4.5s linear forwards; }
@keyframes prog { to { width: 100%; } }
.screen { background: var(--dark); color: #fff; border-radius: 20px; padding: 28px; min-height: 340px; display: grid; align-content: space-between; gap: 20px; position: relative; overflow: hidden; }
.screen .where { font-size: 13px; color: #8b93a1; display: flex; justify-content: space-between; }
.screen .view { animation: viewIn .45s cubic-bezier(.2, .8, .2, 1); display: grid; gap: 16px; }
@keyframes viewIn { from { opacity: 0; transform: translateX(24px); } }
.screen h4 { margin: 0; font-size: 24px; font-weight: 800; }
.screen p { color: #a9b0bc; max-width: 520px; }
.shelf { display: flex; gap: 10px; flex-wrap: wrap; }
.shelf div { width: 92px; height: 68px; border-radius: 10px; background: #232933; display: grid; place-items: center; font-size: 20px; color: #8b93a1; position: relative; }
.shelf div.hot { background: linear-gradient(150deg, #ffb49a, #f2470d); color: #fff; animation: drop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.shelf div.hot::after { content: attr(data-from); position: absolute; left: 6px; bottom: 5px; font-size: 10px; font-weight: 600; background: #0e1116b8; padding: 1px 5px; border-radius: 4px; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) scale(.8); } }
.screen .ledger-line { display: flex; justify-content: space-between; border-top: 1px solid #262b33; padding-top: 14px; font-size: 14px; color: #a9b0bc; }
.screen .ledger-line b { color: #ff8a5c; font-family: var(--num); }

/* ---------- 三样互通 ---------- */
.pillars { padding: 88px 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pillar { padding: 32px; border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--dark); color: #fff; }
.pillar .big { font-family: var(--num); font-size: 56px; font-weight: 700; line-height: 1; color: var(--accent); }
.pillar h3 { font-size: 22px; font-weight: 800; margin: 18px 0 8px; }
.pillar p { color: var(--muted); transition: color .25s; }
.pillar:hover p { color: #a9b0bc; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .stage .hero { padding: 120px 0 48px; }
  .stage .panel { transform: none; }
  .flowbox { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .card.wide { grid-column: auto; }
  .card.wide .mini { height: 148px; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .facts { gap: 24px; }
  .tabs-wrap { top: 68px; }
  .catalog, .flowsec, .pillars { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .marquee .track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .m-sell .ask { width: 100%; }
  .m-sell .outs i { opacity: 1; }
}

/* 分类分组的排布：全部视图里小分类并排，单分类视图里铺满 */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.groups .group { grid-column: span var(--n, 4); min-width: 0; }
.groups .cards { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.groups.solo .group { grid-column: 1 / -1; }
.groups.solo .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 1100px) {
  .groups .group { grid-column: 1 / -1; }
  .groups .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

.steps.still button.on .prog { animation: none; }
.m-sell .outs { flex-wrap: wrap; gap: 6px; }
.m-sell .outs i { white-space: nowrap; padding: 5px 8px; }
.groups .group { display: flex; flex-direction: column; }
.groups .cards { flex: 1; }
.group-head span:not(.n) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.group-head h3, .group-head .n { flex: none; }

/* 首屏功能入口（代替数字） */
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid #2a313c; background: #171b22; color: #e6e9ee; font-weight: 600; font-size: 14px; transition: transform .2s, border-color .2s, background .2s; }
.quick a svg { color: #ff8a5c; font-size: 16px; }
.quick a:hover { transform: translateY(-3px); border-color: var(--accent); background: #1f2630; }

/* 产品卡片顶部：真实界面截图，套一个浏览器外框 */
.shot { position: relative; height: 196px; background: var(--dark); overflow: hidden; padding-top: 26px; }
.shot .bar { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #1b2028; z-index: 1; }
.shot .bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a424f; }
.shot .bar em { font-style: normal; font-size: 11px; color: #8b93a1; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .shot img { transform: scale(1.07); }
.mini { height: 196px; }

/* 功能点是卡片的主角 */
.card .feats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card .feats li { font-size: 13px; font-weight: 600; padding: 5px 10px 5px 9px; border-radius: 8px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.card .feats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.card:hover .feats li { background: var(--accent-soft); }
.card p { font-size: 13px; }
