/* =========================================================
   煜码软件 · 案例 Demo 样式
   01 浏览器官网  02 小程序  03 管理后台  04 AI 客服  05 视觉检测
   ========================================================= */

/* ======================= 01 · 浏览器 ======================= */
.browser {
  position: relative;
  width: min(860px, 100%); height: min(620px, 74vh);
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: #f4efe7;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 60px 140px -30px rgba(0, 0, 0, .85),
    0 0 110px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.scene-web .browser {
  transform-origin: 30% 50%;
  transform:
    translate3d(calc((1 - var(--in)) * -62vw - var(--out) * 10vw), calc(var(--out) * -12vh), 0)
    rotateY(calc((1 - var(--in)) * 38deg - var(--out) * 18deg))
    rotateX(calc(var(--out) * 12deg))
    scale(calc(.8 + var(--in) * .2 - var(--out) * .3));
  opacity: calc(var(--inr) * 2.4 - var(--out) * 1.3);
  filter: blur(calc(var(--out) * 16px));
}
.br-bar {
  position: relative; z-index: 2; flex: none;
  height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: #1a1d25; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.tl { display: flex; gap: 7px; }
.tl i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.tl i:nth-child(2) { background: #febc2e; }
.tl i:nth-child(3) { background: #28c840; }
.br-url {
  flex: 1; max-width: 380px; height: 27px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 8px; background: rgba(255, 255, 255, .07);
  font-size: 12px; color: rgba(255, 255, 255, .62); letter-spacing: .02em;
}
.br-bar::after { content: ""; width: 54px; }
.br-view {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(43, 38, 32, .3) transparent;
  container: qm / inline-size;
  background: #f4efe7;
}
.br-view::-webkit-scrollbar { width: 6px; }
.br-view::-webkit-scrollbar-thumb { background: rgba(43, 38, 32, .25); border-radius: 3px; }
.scroll-tip {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 99px;
  font-size: 12px; color: #fff;
  background: rgba(24, 22, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none; transition: opacity .5s, transform .5s var(--ease);
}
.scroll-tip i { position: relative; width: 12px; height: 18px; border: 1.5px solid #fff; border-radius: 7px; }
.scroll-tip i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 4px; margin-left: -1px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
.browser.is-scrolled .scroll-tip { opacity: 0; transform: translateY(8px); }

.expand-btn {
  place-items: center; width: 30px; height: 30px; border-radius: 8px;
  color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08);
}
.expand-btn svg { width: 14px; height: 14px; }
.br-bar .expand-btn { position: absolute; right: 10px; top: 6px; }

/* ---- 栖木 QIMU 演示站 ---- */
.qm {
  --qm-ink: #2a251f; --qm-mute: #82786c; --qm-line: rgba(42, 37, 31, .1);
  --qm-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  color: var(--qm-ink); background: #f4efe7;
  font-family: var(--f-sans);
}
.qm a { cursor: pointer; }
.qm-k { font: 500 11px var(--f-mono); letter-spacing: .22em; color: #a08f78; text-transform: uppercase; }
.qm-nav {
  position: sticky; top: 0; z-index: 5;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5cqw;
  background: rgba(244, 239, 231, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qm-line);
}
.qm-logo { font: 700 19px var(--qm-serif); letter-spacing: .14em; display: flex; align-items: baseline; }
.qm-logo em { margin-left: 8px; font: 500 9.5px var(--f-mono); font-style: normal; letter-spacing: .34em; color: var(--qm-mute); }
.qm-nav nav { display: flex; gap: 3.4cqw; font-size: 13px; color: var(--qm-mute); }
.qm-nav nav a:hover { color: var(--qm-ink); }
.qm-btn-s { padding: 7px 15px; border: 1px solid var(--qm-ink); border-radius: 99px; font-size: 12px; transition: all .3s; }
.qm-btn-s:hover { background: var(--qm-ink); color: #f4efe7; }
.qm-hero {
  position: relative; height: 60cqw; min-height: 360px; max-height: 620px;
  display: flex; align-items: center; padding: 0 6cqw;
  background-size: cover; background-position: 60% center;
}
.qm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 239, 231, .9) 0%, rgba(244, 239, 231, .45) 38%, rgba(244, 239, 231, 0) 62%); }
.qm-hero-txt { position: relative; max-width: 48%; }
.qm-hero h3 { margin: 18px 0 16px; font: 600 clamp(32px, 6.6cqw, 66px)/1.2 var(--qm-serif); letter-spacing: .06em; }
.qm-s { font-size: 14px; line-height: 1.9; color: #6e655a; }
.qm-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 12px 22px; border-radius: 99px;
  font-size: 13px; letter-spacing: .08em;
  background: var(--qm-ink); color: #f4efe7; transition: transform .3s var(--ease);
}
.qm-btn i { font-style: normal; transition: transform .3s var(--ease); }
.qm-btn:hover i { transform: translateX(4px); }
.qm-scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font: 500 9.5px var(--f-mono); letter-spacing: .5em; color: rgba(42, 37, 31, .45); }
.qm-marquee { overflow: hidden; white-space: nowrap; padding: 15px 0; background: #2a251f; color: #e8dccb; }
.qm-marquee div { display: inline-flex; animation: qm-marquee 26s linear infinite; }
.qm-marquee span { font-size: 13px; letter-spacing: .24em; }
.qm-marquee span::after { content: "✦"; margin: 0 2.4em; color: #c49a62; }
@keyframes qm-marquee { to { transform: translateX(-50%); } }
.qm-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px 6cqw; padding: 10cqw 6cqw 9cqw; }
.qm-intro .qm-k { grid-column: 1 / -1; }
.qm-intro h4 { font: 600 clamp(22px, 3.6cqw, 36px)/1.45 var(--qm-serif); letter-spacing: .04em; }
.qm-intro > p:last-child { font-size: 14px; line-height: 2.1; color: var(--qm-mute); }
.qm-products { padding: 0 6cqw 10cqw; }
.qm-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.qm-sec-h h4 { font: 600 clamp(20px, 3cqw, 28px) var(--qm-serif); letter-spacing: .06em; }
.qm-sec-h a { font-size: 12px; color: var(--qm-mute); }
.qm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; }
.qm-img { aspect-ratio: 3 / 4; border-radius: 3px; background-size: 100%; background-position: center; background-color: #e9e1d4; transition: background-size 1s var(--ease); }
.qm-card:hover .qm-img { background-size: 108%; }
.qm-name { margin-top: 14px; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.qm-meta { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; color: var(--qm-mute); }
.qm-meta b { color: var(--qm-ink); font-weight: 600; }
.qm-story { position: relative; height: 52cqw; min-height: 300px; display: flex; align-items: flex-end; padding: 6cqw; background-size: cover; background-position: center; color: #fff; }
.qm-story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 14, 8, .72), rgba(20, 14, 8, 0) 60%); }
.qm-story-txt { position: relative; }
.qm-story-txt .qm-k { color: #e3c497; }
.qm-story h4 { margin-top: 14px; font: 600 clamp(24px, 4cqw, 40px)/1.4 var(--qm-serif); letter-spacing: .05em; }
.qm-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8cqw 6cqw; text-align: center; border-bottom: 1px solid var(--qm-line); }
.qm-stats b { display: block; font: 200 clamp(40px, 7cqw, 70px)/1 var(--f-display); letter-spacing: -.02em; }
.qm-stats span { display: block; margin-top: 10px; font-size: 12px; color: var(--qm-mute); letter-spacing: .1em; }
.qm-cta { padding: 11cqw 6cqw; text-align: center; }
.qm-cta h4 { font: 600 clamp(24px, 4cqw, 40px) var(--qm-serif); letter-spacing: .08em; }
.qm-foot { display: flex; justify-content: space-between; padding: 22px 6cqw; font-size: 11px; color: var(--qm-mute); background: #ebe3d6; letter-spacing: .08em; }
.qm-r { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.qm-r.in { opacity: 1; transform: none; }
.qm-grid .qm-r:nth-child(2) { transition-delay: .12s; }
.qm-grid .qm-r:nth-child(3) { transition-delay: .24s; }
.qm-stats .qm-r:nth-child(2) { transition-delay: .1s; }
.qm-stats .qm-r:nth-child(3) { transition-delay: .2s; }

@container qm (max-width: 560px) {
  .qm-nav { height: 50px; }
  .qm-nav nav { display: none; }
  .qm-hero { height: 128cqw; max-height: none; min-height: 0; align-items: flex-end; padding-bottom: 12cqw; background-position: 72% center; }
  .qm-hero::before { background: linear-gradient(0deg, rgba(244, 239, 231, .96) 18%, rgba(244, 239, 231, .2) 62%, rgba(244, 239, 231, 0)); }
  .qm-hero-txt { max-width: none; }
  .qm-hero h3 { font-size: 10.5cqw; margin: 12px 0; }
  .qm-s { font-size: 13px; }
  .qm-btn { margin-top: 18px; }
  .qm-scroll { display: none; }
  .qm-intro { grid-template-columns: 1fr; padding: 14cqw 6cqw; gap: 16px; }
  .qm-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .qm-card:nth-child(3) { display: none; }
  .qm-name { font-size: 13px; }
  .qm-meta { flex-direction: column; gap: 2px; }
  .qm-story { height: 96cqw; }
  .qm-stats { padding: 12cqw 4cqw; }
  .qm-stats b { font-size: 11cqw; }
}

/* ======================= 02 · 小程序 ======================= */
.mini-wrap {
  position: relative; width: 100%; height: 100%;
  container-type: size;
  --ph-h: min(700px, 94cqh);
  --ph-w: calc(var(--ph-h) * .47);
  display: flex; align-items: center; justify-content: center;
}
.phone { position: relative; z-index: 2; height: var(--ph-h); width: var(--ph-w); }
.scene-mini .phone {
  transform:
    translate3d(calc(var(--out) * 10vw), calc((1 - var(--in)) * 90vh - var(--out) * 8vh), 0)
    rotateZ(calc((1 - var(--in)) * 16deg + var(--out) * 8deg))
    rotateX(calc((1 - var(--in)) * 34deg))
    scale(calc(1 - var(--out) * .32));
  opacity: calc(var(--inr) * 2.2 - var(--out) * 1.3);
  filter: blur(calc(var(--out) * 14px));
}
.ph-frame {
  position: absolute; inset: 0;
  padding: calc(var(--ph-h) * .014);
  border-radius: calc(var(--ph-h) * .082);
  background: linear-gradient(150deg, #474c59 0%, #16181e 35%, #23262f 70%, #4a4f5c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 70px 130px -30px rgba(0, 0, 0, .9),
    0 0 100px -20px color-mix(in srgb, var(--accent) 50%, transparent);
}
.ph-island { position: absolute; z-index: 20; top: calc(var(--ph-h) * .026); left: 50%; width: 31%; height: calc(var(--ph-h) * .038); transform: translateX(-50%); border-radius: 99px; background: #000; }
.ph-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--ph-h) * .07);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #f6f7f5; color: #1d1f1e;
  font-size: calc(var(--ph-h) * .0182);
  user-select: none; -webkit-user-select: none;
}
.mp-status { flex: none; height: 4.3em; display: flex; align-items: center; justify-content: space-between; padding: .9em 2.4em 0; }
.mp-status b { font-size: 1.08em; font-weight: 600; }
.mp-sig { display: flex; align-items: flex-end; gap: .18em; height: .9em; }
.mp-sig i { width: .28em; background: #1d1f1e; border-radius: 1px; }
.mp-sig i:nth-child(1) { height: 35%; } .mp-sig i:nth-child(2) { height: 55%; } .mp-sig i:nth-child(3) { height: 78%; } .mp-sig i:nth-child(4) { height: 100%; }
.mp-head { position: relative; flex: none; height: 3.4em; display: flex; align-items: center; justify-content: center; }
.mp-title { font-size: 1.18em; font-weight: 600; letter-spacing: .04em; }
.mp-capsule { position: absolute; right: .9em; height: 2.35em; width: 6.6em; display: flex; align-items: center; justify-content: space-evenly; border-radius: 99px; border: 1px solid rgba(0, 0, 0, .1); background: rgba(255, 255, 255, .8); }
.mp-capsule i { font-style: normal; font-weight: 700; letter-spacing: .05em; line-height: 1; margin-top: -.3em; }
.mp-capsule em { width: 1px; height: 1.2em; background: rgba(0, 0, 0, .12); }
.mp-capsule i.o { width: 1.1em; height: 1.1em; margin: 0; border: .2em solid #1d1f1e; border-radius: 50%; position: relative; }
.mp-capsule i.o::after { content: ""; position: absolute; inset: .18em; border-radius: 50%; background: #1d1f1e; }
.mp-banner { position: relative; flex: none; height: 8.6em; margin: .2em 1em 0; display: flex; align-items: center; padding-left: 1.3em; border-radius: 1em; overflow: hidden; background-size: cover; background-position: center; }
.mp-banner p { position: relative; display: flex; flex-direction: column; gap: .35em; color: #17452c; }
.mp-banner b { font-size: 1.55em; font-weight: 800; letter-spacing: .04em; }
.mp-banner span { align-self: flex-start; padding: .2em .7em; border-radius: 99px; font-size: .8em; color: #fff; background: #ff6a3d; }
.mp-store { flex: none; display: flex; align-items: center; justify-content: space-between; margin: .9em 1em .5em; }
.mp-store b { font-size: 1.1em; }
.mp-store span { display: block; margin-top: .2em; font-size: .8em; color: #8a8f8c; }
.mp-seg { display: flex; padding: .22em; border-radius: 99px; background: #eaedea; }
.mp-seg i { font-style: normal; padding: .35em .85em; border-radius: 99px; font-size: .85em; color: #777; }
.mp-seg i.on { background: #17452c; color: #fff; }
.mp-menu { flex: 1; min-height: 0; display: flex; border-top: 1px solid #eceeec; }
.mp-cats { flex: none; width: 5.8em; background: #eff1ef; overflow: hidden; }
.mp-cats button { position: relative; display: block; width: 100%; padding: 1.25em .3em; font-size: .88em; color: #7b807d; transition: all .25s; }
.mp-cats button.on { background: #f6f7f5; color: #1d1f1e; font-weight: 600; }
.mp-cats button.on::before { content: ""; position: absolute; left: 0; top: 50%; width: .28em; height: 1.3em; transform: translateY(-50%); border-radius: 0 3px 3px 0; background: #2fbf71; }
.mp-list { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 .9em 7.5em; scrollbar-width: none; }
.mp-list::-webkit-scrollbar { display: none; }
.mp-sec-t { position: sticky; top: 0; z-index: 1; padding: .9em 0 .45em; font-size: .82em; color: #8a8f8c; background: #f6f7f5; }
.mp-item { display: flex; gap: .85em; padding: .55em 0; }
.mp-thumb { flex: none; width: 6.2em; height: 6.2em; border-radius: .8em; background-size: cover; background-position: center; background-color: #ececec; }
.mp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-name { font-size: 1.04em; font-weight: 600; }
.mp-desc { margin-top: .2em; font-size: .76em; color: #9a9e9b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-tag { align-self: flex-start; margin-top: .35em; padding: 0 .45em; border-radius: .3em; font-size: .7em; line-height: 1.6; color: #ff6a3d; border: 1px solid rgba(255, 106, 61, .45); }
.mp-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.mp-price { font-size: 1.12em; font-weight: 700; color: #ff4d2d; }
.mp-price small { font-size: .7em; margin-right: .1em; }
.mp-add { width: 1.95em; height: 1.95em; border-radius: 50%; display: grid; place-items: center; font-size: 1.15em; line-height: 1; background: #17452c; color: #fff; transition: transform .2s; }
.mp-add:active, .mp-add.press { transform: scale(.82); }
.mp-cart {
  position: absolute; left: 1em; right: 1em; bottom: 1.7em; z-index: 4;
  height: 4.1em; display: flex; align-items: center; gap: .9em; padding: 0 .45em 0 1.2em;
  border-radius: 99px; background: #1c201e; color: #fff;
  box-shadow: 0 .8em 2em rgba(0, 0, 0, .28);
}
.mp-bag { position: relative; width: 2.3em; height: 2.3em; color: #2fe08a; }
.mp-bag svg { width: 100%; height: 100%; }
.mp-bag.bump { animation: bag-bump .45s var(--ease); }
@keyframes bag-bump { 40% { transform: scale(1.3) rotate(-8deg); } }
.mp-badge { position: absolute; top: -.35em; right: -.55em; min-width: 1.55em; height: 1.55em; padding: 0 .3em; display: grid; place-items: center; border-radius: 99px; font-size: .74em; font-style: normal; font-weight: 700; background: #ff4d2d; color: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.mp-cart.has .mp-badge { transform: scale(1); }
.mp-sum { flex: 1; min-width: 0; }
.mp-sum b { font-size: 1.28em; }
.mp-sum span { display: block; font-size: .74em; color: rgba(255, 255, 255, .5); }
.mp-pay { height: 3.1em; padding: 0 1.4em; border-radius: 99px; font-size: .95em; font-weight: 700; background: #3a3f3c; color: rgba(255, 255, 255, .5); transition: all .3s; }
.mp-cart.has .mp-pay { background: #2fe08a; color: #0b2a19; }
.mp-pay.press, .mp-wxpay.press { transform: scale(.94); }
.fly-dot { position: absolute; z-index: 9; width: 1.3em; height: 1.3em; margin: -.65em 0 0 -.65em; border-radius: 50%; background: #2fe08a; box-shadow: 0 0 .8em rgba(47, 224, 138, .8); pointer-events: none; }
.mp-sheet { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .38); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.mp-sheet.on { opacity: 1; visibility: visible; }
.mp-sheet-in { width: 100%; padding: 1.6em 1.4em 2.6em; border-radius: 1.5em 1.5em 0 0; background: #fff; transform: translateY(100%); transition: transform .5s var(--ease); }
.mp-sheet.on .mp-sheet-in { transform: none; }
.mp-sheet-t { margin-bottom: .9em; font-size: 1.15em; font-weight: 700; }
.mp-sheet-items div { display: flex; justify-content: space-between; padding: .45em 0; font-size: .92em; color: #555; }
.mp-sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6em; padding-top: .9em; border-top: 1px dashed #e3e3e3; }
.mp-sheet-total b { font-size: 1.4em; color: #ff4d2d; }
.mp-wxpay { width: 100%; height: 3.5em; margin-top: 1.2em; display: flex; align-items: center; justify-content: center; gap: .5em; border-radius: .8em; font-weight: 600; font-size: 1em; background: #07c160; color: #fff; transition: transform .2s; }
.mp-success { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; background: #fff; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.mp-success.on { opacity: 1; visibility: visible; }
.mp-check { width: 5.2em; height: 5.2em; color: #07c160; }
.mp-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.mp-check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.mp-success.on .mp-check circle { transition: stroke-dashoffset .7s var(--ease); stroke-dashoffset: 0; }
.mp-success.on .mp-check path { transition: stroke-dashoffset .4s .5s var(--ease); stroke-dashoffset: 0; }
.mp-success p { margin-top: .4em; font-size: 1.35em; font-weight: 700; }
.mp-success span { font-size: .9em; color: #888; }
.mp-success span b { color: #1d1f1e; font-size: 1.2em; }
.tap-finger {
  position: absolute; z-index: 12; left: 50%; top: 60%;
  width: 3.2em; height: 3.2em; margin: -1.6em 0 0 -1.6em;
  border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 .3em 1.2em rgba(0, 0, 0, .25);
  opacity: 0; transition: left .7s var(--ease), top .7s var(--ease), opacity .3s;
}
.tap-finger.on { opacity: 1; }
.tap-finger.press { animation: finger-press .4s var(--ease); }
@keyframes finger-press { 50% { transform: scale(.72); background: rgba(47, 224, 138, .55); } }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 14px; border-radius: 16px;
  background: rgba(16, 22, 36, .62); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.fc-a { right: calc(50% + var(--ph-w) / 2 - 30px); top: 20%; }
.fc-b { left: calc(50% + var(--ph-w) / 2 - 30px); bottom: 18%; }
.fc-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-weight: 700; background: rgba(255, 181, 71, .16); color: var(--amber); }
.fc-ico.g { background: rgba(47, 224, 138, .16); color: #2fe08a; }
.float-card p { font-size: 11px; color: var(--dim); }
.float-card b { font: 600 19px var(--f-display); font-variant-numeric: tabular-nums; }
.toast-stack { position: absolute; z-index: 4; left: calc(50% + var(--ph-w) / 2 + 22px); top: 14%; width: 240px; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(14, 24, 22, .78); border: 1px solid rgba(47, 224, 138, .32);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  animation: toast-in .6s var(--ease) both;
}
.toast.out { animation: toast-out .5s var(--ease) forwards; }
.toast i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-style: normal; background: rgba(47, 224, 138, .18); color: #2fe08a; }
.toast small { display: block; font-size: 11px; color: var(--dim); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-24px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); } }

/* ======================= 03 · 管理后台 ======================= */
.dash {
  position: relative;
  width: min(980px, 100%); height: min(620px, 74vh);
  display: flex; overflow: hidden;
  border-radius: 16px;
  background: #0b0f1e; color: #dfe5f5;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 70px 150px -30px rgba(0, 0, 0, .95), 0 0 120px -20px color-mix(in srgb, var(--accent) 50%, transparent);
  container: dash / inline-size;
}
.scene-dash .dash {
  transform-origin: 50% 100%;
  transform:
    translate3d(0, calc((1 - var(--in)) * 26vh - var(--out) * 16vh), 0)
    rotateX(calc((1 - var(--in)) * 64deg - var(--out) * 24deg))
    scale(calc(.76 + var(--in) * .24 - var(--out) * .36));
  opacity: calc(var(--inr) * 2.2 - var(--out) * 1.3);
  filter: blur(calc(var(--out) * 16px));
}
.dash > .expand-btn { position: absolute; top: 12px; right: 12px; z-index: 5; }
.db-side { flex: none; width: 196px; display: flex; flex-direction: column; padding: 20px 14px; background: #090c18; border-right: 1px solid rgba(255, 255, 255, .06); }
.db-logo { display: flex; align-items: center; gap: 9px; margin: 2px 8px 28px; font: 700 14px var(--f-display); letter-spacing: .14em; }
.db-logo i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #8b7bff, #3ec5ff); box-shadow: 0 0 16px rgba(139, 123, 255, .6); }
.db-logo em { font-style: normal; font-size: 9.5px; font-weight: 500; color: var(--dim); margin-left: -4px; }
.db-nav a { display: flex; align-items: center; gap: 11px; margin-bottom: 3px; padding: 10px 12px; border-radius: 9px; font-size: 13px; color: rgba(223, 229, 245, .52); transition: all .25s; }
.db-nav a i { width: 16px; font-style: normal; text-align: center; opacity: .85; }
.db-nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.db-nav a.on { color: #fff; background: linear-gradient(90deg, rgba(139, 123, 255, .26), rgba(139, 123, 255, .03)); box-shadow: inset 2px 0 0 #8b7bff; }
.db-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.db-ava { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ffb547, #ff6b6b); }
.db-user b { font-size: 13px; font-weight: 600; }
.db-user small { display: block; font-size: 11px; color: var(--dim); }
.db-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; overflow: hidden; }
.db-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding-right: 0; }
.db-head h5 { font-size: 18px; font-weight: 600; }
.db-date { font-size: 11.5px; color: var(--dim); }
.db-range { display: flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.db-range button { padding: 6px 14px; border-radius: 7px; font-size: 12px; color: var(--dim); transition: all .3s; }
.db-range button.on { background: #8b7bff; color: #fff; box-shadow: 0 4px 14px rgba(139, 123, 255, .5); }
.db-kpis { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.db-kpi { position: relative; overflow: hidden; padding: 14px 14px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.dash.is-drawn .db-kpi { opacity: 1; transform: none; }
.dash.is-drawn .db-kpi[data-k="1"] { transition-delay: .08s; }
.dash.is-drawn .db-kpi[data-k="2"] { transition-delay: .16s; }
.dash.is-drawn .db-kpi[data-k="3"] { transition-delay: .24s; }
.db-kpi small { font-size: 11.5px; color: var(--dim); }
.db-kpi b { display: block; margin: 6px 0 2px; font: 600 clamp(16px, 2.3cqw, 22px) var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.db-kpi em { font-style: normal; font-size: 11px; color: #33e39a; }
.db-kpi .spark { position: absolute; right: 10px; top: 14px; width: 32px; height: 13px; overflow: visible; opacity: .8; }
.db-kpi .spark path { fill: none; stroke: #8b7bff; stroke-width: 1.6; stroke-linecap: round; }
.db-kpi.flash b { animation: kpi-flash .8s; }
@keyframes kpi-flash { 30% { color: #b9afff; text-shadow: 0 0 14px rgba(139, 123, 255, .9); } }
.db-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1.2fr 1fr; gap: 12px; }
.db-card { position: relative; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.db-card-h { flex: none; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; }
.db-card-h b { font-weight: 600; }
.db-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.db-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: #8b7bff; }
.db-legend i.l2 { margin-left: 8px; background: rgba(255, 255, 255, .35); }
.db-chart { flex: 1; min-height: 0; width: 100%; overflow: visible; clip-path: inset(0 100% 0 0); }
.dash.is-drawn .db-chart { clip-path: inset(0 0 0 0); transition: clip-path 1.8s cubic-bezier(.6, 0, .2, 1) .2s; }
.db-gridlines line { stroke: rgba(255, 255, 255, .06); stroke-dasharray: 3 5; }
.db-line { fill: none; stroke: #a99dff; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 8px rgba(139, 123, 255, .7)); }
.db-line2 { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.4; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.db-dot { position: absolute; z-index: 2; width: 0; height: 0; opacity: 0; transition: opacity .5s 1.8s; }
.dash.is-drawn .db-dot { opacity: 1; }
.db-dot i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #8b7bff; box-shadow: 0 0 0 6px rgba(139, 123, 255, .25); animation: dot-pulse 2s infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 11px rgba(139, 123, 255, 0); } }
.db-tip { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; font: 600 11.5px var(--f-display); background: #fff; color: #1a1d33; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.db-donut-in { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.db-donut-in svg { height: 100%; max-height: 120px; min-height: 60px; width: auto; aspect-ratio: 1; overflow: visible; }
.db-donut-in circle { fill: none; stroke-width: 13; transition: stroke-dasharray 1.4s var(--ease), stroke-dashoffset 1.4s var(--ease); }
.db-donut-c { position: absolute; text-align: center; }
.db-donut-c b { display: block; font: 600 22px/1 var(--f-display); }
.db-donut-c small { font-size: 10px; color: var(--dim); }
.db-donut-l { flex: none; display: grid; grid-template-columns: 1fr; gap: 3px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.db-donut-l li { white-space: nowrap; }
.db-donut-l li { display: flex; align-items: center; gap: 6px; }
.db-donut-l i { width: 7px; height: 7px; border-radius: 2px; }
.db-donut-l b { margin-left: auto; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.db-live { display: flex; align-items: center; gap: 6px; font: 600 10px var(--f-mono); letter-spacing: .1em; color: #ff5d6c; }
.db-live i { width: 6px; height: 6px; border-radius: 50%; background: #ff5d6c; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.db-rows { flex: 1; min-height: 0; overflow: hidden; }
.db-row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 12px; animation: row-in .7s var(--ease) both; }
.db-row .av { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 600; color: #fff; }
.db-row p { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-row p small { display: block; font-size: 10.5px; color: var(--dim); }
.db-row .amt { font: 600 12.5px var(--f-display); font-variant-numeric: tabular-nums; }
.db-row .st { padding: 2px 8px; border-radius: 99px; font-size: 10.5px; background: rgba(51, 227, 154, .14); color: #33e39a; }
.db-row .st.w { background: rgba(255, 181, 71, .14); color: var(--amber); }
.db-row.new { background: linear-gradient(90deg, rgba(139, 123, 255, .16), transparent); }
@keyframes row-in { from { opacity: 0; transform: translateY(-14px); } }
.db-bar-wrap { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 18px; }
.db-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.db-bar i { display: block; width: 100%; height: 0; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #a99dff, rgba(139, 123, 255, .2)); transition: height 1.2s var(--ease); }
.db-bar:nth-child(1) i { background: linear-gradient(180deg, #3ec5ff, rgba(62, 197, 255, .2)); }
.db-bar span { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 10.5px; color: var(--dim); white-space: nowrap; }

@container dash (max-width: 640px) {
  .db-side { display: none; }
  .db-main { padding: 14px; gap: 10px; }
  .db-head h5 { font-size: 15px; }
  .db-date { display: none; }
  .db-head { padding-right: 38px; }
  .db-range button { padding: 5px 10px; font-size: 11px; }
  .db-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .db-kpi { padding: 10px 12px; }
  .db-kpi b { font-size: 17px; }
  .db-kpi .spark { width: 44px; }
  .db-grid { grid-template-columns: 1fr; grid-template-rows: minmax(130px, 1fr) minmax(0, 1fr); gap: 10px; }
  .db-donut, .db-bars { display: none; }
}

/* ======================= 04 · AI 客服 ======================= */
.ai-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.ai-orb {
  position: absolute; left: 56%; top: 50%;
  width: min(680px, 80vh); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(.2 + var(--in) * .8 + var(--out) * 1.4));
  opacity: calc(var(--inr) - var(--out));
  pointer-events: none;
}
.ai-orb i { position: absolute; inset: 0; border-radius: 50%; filter: blur(60px); opacity: .5; animation: spin 14s linear infinite; }
.ai-orb i:nth-child(1) { background: radial-gradient(circle at 30% 32%, #b05cff, transparent 58%); }
.ai-orb i:nth-child(2) { background: radial-gradient(circle at 72% 42%, #3ec5ff, transparent 52%); animation-duration: 19s; animation-direction: reverse; }
.ai-orb i:nth-child(3) { background: radial-gradient(circle at 48% 76%, #ff5fb0, transparent 52%); animation-duration: 24s; }
.chat {
  position: relative; z-index: 2;
  width: min(450px, 100%); height: min(640px, 76vh);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px;
  background: rgba(14, 15, 30, .74);
  border: 1px solid rgba(255, 255, 255, .11);
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: 0 60px 130px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.scene-ai .chat {
  transform:
    translate3d(0, calc((1 - var(--in)) * 14vh - var(--out) * 8vh), 0)
    scale(calc(.68 + var(--in) * .32 + var(--out) * .12));
  opacity: calc(var(--inr) * 2 - var(--out) * 1.3);
  filter: blur(calc((1 - var(--inr)) * 18px + var(--out) * 16px));
}
.ct-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ct-ava { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 0deg, #c86bff, #3ec5ff, #ff6bb5, #c86bff); animation: spin 5s linear infinite; }
.ct-ava i { position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a2a66, #120f24); }
.ct-ava i::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; animation: spin 5s linear infinite reverse; }
.ct-head b { font-size: 14.5px; font-weight: 600; }
.ct-head small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.ct-head small i { width: 6px; height: 6px; border-radius: 50%; background: #33e39a; box-shadow: 0 0 8px #33e39a; }
.ct-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 16px 10px; overflow: hidden; mask-image: linear-gradient(transparent, #000 18%); -webkit-mask-image: linear-gradient(transparent, #000 18%); }
.ct-body.fade { transition: opacity .6s; opacity: 0; }
.msg { flex: none; max-width: 86%; padding: 11px 14px; border-radius: 17px; font-size: 13.5px; line-height: 1.72; animation: msg-in .5s var(--ease) both; }
.msg.u { align-self: flex-end; border-bottom-right-radius: 5px; color: #fff; background: linear-gradient(135deg, #8a6bff, #4f86ff); box-shadow: 0 8px 24px rgba(90, 110, 255, .35); }
.msg.a { align-self: flex-start; border-bottom-left-radius: 5px; color: #e8eaf6; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .07); }
.msg.a b { color: #f0c8ff; font-weight: 600; }
.msg .cite { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 9px; border-radius: 6px; font-size: 11px; color: #e5bfff; background: rgba(200, 107, 255, .16); border: 1px solid rgba(200, 107, 255, .25); animation: msg-in .4s var(--ease) both; }
.msg .caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #c86bff; animation: blink .8s infinite; }
.typing { flex: none; align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 17px 17px 17px 5px; background: rgba(255, 255, 255, .07); animation: msg-in .4s var(--ease) both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9b6ff; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.tool { flex: none; align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 8px; font: 11px var(--f-mono); color: #9fdcff; background: rgba(62, 197, 255, .08); border: 1px dashed rgba(62, 197, 255, .3); animation: msg-in .4s var(--ease) both; }
.tool i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #3ec5ff; border-top-color: transparent; animation: spin .8s linear infinite; }
.tool.done i { border-color: #33e39a; animation: none; }
.tool.done i::after { content: ""; }
.order-card { flex: none; align-self: flex-start; width: 86%; padding: 14px 15px; border-radius: 16px; color: #1c1e2c; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: msg-in .55s var(--ease) both; }
.order-card .oc-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #0ea66b; }
.order-card .oc-h i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-style: normal; color: #fff; background: #0ea66b; }
.order-card .oc-b { display: flex; gap: 12px; margin: 12px 0; padding: 10px; border-radius: 10px; background: #f4f5f9; }
.order-card .oc-img { flex: none; width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(145deg, #e9ecf5, #cfd6e8); position: relative; }
.order-card .oc-img::after { content: ""; position: absolute; inset: 12px 15px; border-radius: 4px; background: repeating-linear-gradient(90deg, #9aa6c4 0 2px, transparent 2px 5px); }
.order-card p { font-size: 12.5px; font-weight: 600; }
.order-card small { display: block; font-size: 11px; color: #8a8fa3; margin-top: 2px; }
.order-card .oc-f { display: flex; gap: 8px; }
.order-card .oc-f span { flex: 1; padding: 8px 0; border-radius: 9px; text-align: center; font-size: 12px; font-weight: 600; background: #eef0f6; }
.order-card .oc-f span.pri { color: #fff; background: linear-gradient(135deg, #8a6bff, #4f86ff); }
@keyframes msg-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.ct-input { flex: none; display: flex; align-items: center; justify-content: space-between; height: 46px; margin: 4px 14px 14px; padding: 0 6px 0 16px; border-radius: 99px; font-size: 13px; color: var(--dim); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.ct-input.live .ct-ph { color: #fff; }
.ct-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, #c86bff, #5a8bff); transition: transform .2s; }
.ct-send.press { transform: scale(.82); }

.kb-panel {
  position: absolute; z-index: 3; right: calc(min(450px, 100%) - 30px); top: 24%;
  width: 250px; padding: 16px;
  border-radius: 18px;
  background: rgba(18, 16, 34, .7); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.kb-h { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font: 600 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.kb-pulse { width: 8px; height: 8px; border-radius: 50%; background: #c86bff; box-shadow: 0 0 0 0 rgba(200, 107, 255, .6); }
.kb-panel.busy .kb-pulse { animation: kb-pulse 1s infinite; }
@keyframes kb-pulse { 70% { box-shadow: 0 0 0 9px rgba(200, 107, 255, 0); } }
.kb-list li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; border: 1px solid transparent; transition: all .4s; }
.kb-list li + li { margin-top: 4px; }
.kb-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font: 700 8.5px var(--f-mono); }
.kb-ico.pdf { background: rgba(255, 92, 92, .16); color: #ff8080; }
.kb-ico.xls { background: rgba(51, 227, 154, .14); color: #4fe8a6; }
.kb-ico.doc { background: rgba(62, 160, 255, .16); color: #6fb8ff; }
.kb-ico.api { background: rgba(255, 181, 71, .16); color: #ffc46b; }
.kb-list div { flex: 1; min-width: 0; }
.kb-list p { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-list div > i { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.kb-list div > i em { display: block; height: 100%; width: var(--w, 0%); border-radius: 2px; background: linear-gradient(90deg, #6f6bff, #c86bff); transition: width .9s var(--ease); }
.kb-list li > b { width: 32px; text-align: right; font: 600 11px var(--f-mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.kb-list li.hit { border-color: rgba(200, 107, 255, .4); background: rgba(200, 107, 255, .08); }
.kb-list li.hit p { color: #fff; }
.kb-list li.hit > b { color: #e3b5ff; }
.ai-metrics { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin-top: 34px; }
.ai-metrics b { display: block; font: 600 30px/1 var(--f-display); letter-spacing: -.01em; background: linear-gradient(120deg, #fff, #d7a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-metrics span { display: block; margin-top: 8px; font-size: 12px; color: var(--dim); }

/* ======================= 05 · 视觉检测 ======================= */
.vision-layout {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--nav-h);
  max-width: 1760px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, .58fr) minmax(0, 1.7fr);
  align-items: center; gap: clamp(30px, 3.6vw, 70px);
  padding: 0 clamp(36px, 4vw, 80px) 4vh clamp(150px, 12vw, 210px);
}
.scene-vision .ch-title { font-size: clamp(30px, 2.9vw, 52px); white-space: nowrap; }
.vc {
  --side: 250px;
  width: min(100%, calc(66vh * 1.792 + var(--side) + 14px));
  justify-self: center;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 14px;
}
.vc-view {
  position: relative; overflow: hidden;
  aspect-ratio: 1600 / 893;
  border-radius: 14px;
  background: #06080d;
  border: 1px solid rgba(255, 181, 71, .2);
  box-shadow: 0 60px 130px -30px rgba(0, 0, 0, .95), 0 0 90px -20px rgba(255, 181, 71, .28);
}
.scene-vision .vc-view { transform: perspective(1600px) rotateY(calc((1 - var(--in)) * -26deg)) scale(calc(.86 + var(--in) * .14)); transform-origin: 0 50%; }
.vc-view::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .55)); }
.vc-track { position: absolute; inset: 0; }
.vc-frame { position: absolute; inset: 0; will-change: transform; }
.vc-frame img { width: 100%; height: 100%; object-fit: fill; filter: saturate(.92) contrast(1.06) brightness(.96); }
.vc-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .55; background-image: linear-gradient(rgba(255, 181, 71, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 181, 71, .07) 1px, transparent 1px); background-size: 6.25% 11.2%; }
.vc-scan { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 18%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 181, 71, .05) 50%, rgba(255, 181, 71, .32) 96%, #ffd98f 100%); }
.vc-scan::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: #ffe2a8; box-shadow: 0 0 16px 3px rgba(255, 181, 71, .9); }
.vc-c { position: absolute; z-index: 6; width: 22px; height: 22px; border: 2px solid var(--amber); pointer-events: none; }
.vc-c.tl { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.vc-c.tr { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.vc-c.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.vc-c.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.vc-o { position: absolute; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 4px; font: 500 10.5px var(--f-mono); letter-spacing: .06em; color: #ffe2b0; background: rgba(6, 8, 13, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vc-o-tl { left: 42px; top: 16px; }
.vc-o-tr { right: 42px; top: 16px; }
.vc-o-bl { left: 42px; bottom: 16px; }
.vc-o-br { right: 42px; bottom: 16px; font-weight: 700; }
.vc-o-br:empty { display: none; }
.vc-o-br .ok { color: var(--ok); } .vc-o-br .ng { color: var(--ng); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--ng); animation: blink 1s infinite; }
.vc-boot { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #06080d; font: 600 12px var(--f-mono); letter-spacing: .4em; color: var(--amber); transition: opacity .6s .2s; }
.vc-boot i { width: 160px; height: 2px; background: rgba(255, 181, 71, .15); position: relative; overflow: hidden; }
.vc-boot i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; }
.vc.booting .vc-boot i::after { transition: transform .9s cubic-bezier(.6, 0, .2, 1); transform: scaleX(1); }
.vc.booted .vc-boot { opacity: 0; pointer-events: none; }

.vbox { position: absolute; z-index: 2; --c: #ffd27a; border: 1.5px dashed var(--c); border-radius: 3px; opacity: 0; transform: scale(1.18); transition: opacity .3s, transform .5s var(--ease), border-color .3s, background .3s; box-shadow: 0 0 22px -4px var(--c); }
.vbox.show { opacity: 1; transform: none; }
.vbox.ok, .vbox.ng { border-style: solid; }
.vbox.ok { --c: var(--ok); background: rgba(51, 227, 154, .06); }
.vbox.ng { --c: var(--ng); background: rgba(255, 77, 94, .12); animation: ng-pulse 1.1s ease-in-out infinite; }
@keyframes ng-pulse { 50% { background: rgba(255, 77, 94, .24); box-shadow: 0 0 34px -2px var(--c); } }
.vbox > i { position: absolute; width: 12px; height: 12px; border: 3px solid var(--c); transition: border-color .3s; }
.vbox > i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.vbox > i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; }
.vbox > i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; }
.vbox > i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.vtag { position: absolute; left: -1.5px; bottom: calc(100% + 4px); display: flex; align-items: center; gap: 6px; padding: 3px 8px; white-space: nowrap; border-radius: 3px; font: 700 11px/1.3 var(--f-mono); letter-spacing: .02em; color: #08110d; background: var(--c); }
.vtag em { font-style: normal; font-weight: 500; opacity: .75; }
.vbox.ng .vtag { color: #fff; }
.vbox.flip .vtag { bottom: auto; top: calc(100% + 4px); }
.vlens { position: absolute; z-index: 4; width: 19%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background-repeat: no-repeat; border: 2px solid var(--ng); box-shadow: 0 0 0 5px rgba(255, 77, 94, .18), 0 24px 50px rgba(0, 0, 0, .7); opacity: 0; transform: scale(.3); transition: opacity .4s, transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.vlens.show { opacity: 1; transform: none; }
.vlens span { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); padding: 2px 7px; border-radius: 3px; white-space: nowrap; font: 700 9.5px var(--f-mono); color: #fff; background: var(--ng); }
.vlink { position: absolute; z-index: 3; height: 1.5px; transform-origin: 0 50%; background: var(--ng); box-shadow: 0 0 8px var(--ng); opacity: 0; transition: opacity .4s; }
.vlink.show { opacity: 1; }

.vc-side { min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: hidden; border-radius: 14px; font-size: 12px; background: rgba(14, 17, 26, .72); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.vc-scene small { font: 600 9.5px var(--f-mono); letter-spacing: .2em; color: var(--amber); }
.vc-scene b { display: block; margin-top: 5px; font-size: 18px; font-weight: 600; }
.vc-pipe { display: flex; gap: 4px; }
.vc-pipe li { flex: 1; padding: 7px 0; border-radius: 6px; text-align: center; font-size: 11px; color: var(--dim); background: rgba(255, 255, 255, .04); transition: all .3s; }
.vc-pipe li.done { color: var(--muted); background: rgba(255, 181, 71, .06); }
.vc-pipe li.on { color: #ffd98f; background: rgba(255, 181, 71, .18); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .45); }
.vc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vc-stats div { padding: 9px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.vc-stats small { font-size: 10.5px; color: var(--dim); }
.vc-stats b { display: block; font: 600 22px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.vc-stats .ok b { color: var(--ok); }
.vc-stats .ng b { color: var(--ng); }
.vc-log { flex: 1; min-height: 60px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; font: 10.5px/1.8 var(--f-mono); color: var(--dim); mask-image: linear-gradient(transparent, #000 45%); -webkit-mask-image: linear-gradient(transparent, #000 45%); }
.vc-log div { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: log-in .3s both; }
.vc-log .ok { color: var(--ok); } .vc-log .ng { color: var(--ng); } .vc-log .hl { color: #ffd98f; }
@keyframes log-in { from { opacity: 0; transform: translateX(-6px); } }
.vc-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vc-total small { font-size: 11px; color: var(--dim); }
.vc-total b { font: 600 16px var(--f-display); font-variant-numeric: tabular-nums; }
.vc-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vc-tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; overflow: hidden; text-align: left; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); transition: all .3s; }
.vc-tab:hover { background: rgba(255, 255, 255, .06); }
.vc-tab img { flex: none; width: 56px; height: 32px; object-fit: cover; border-radius: 5px; opacity: .55; transition: opacity .3s; }
.vc-tab span { min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-tab small { display: block; font: 500 9px var(--f-mono); letter-spacing: .12em; color: var(--dim); }
.vc-tab > i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); }
.vc-tab.on { background: rgba(255, 181, 71, .08); border-color: rgba(255, 181, 71, .45); }
.vc-tab.on img { opacity: 1; }
.vc-tab.on span { color: #fff; }
.vc-tab.on > i { animation: tab-prog var(--dur, 7s) linear forwards; }
@keyframes tab-prog { to { width: 100%; } }

/* ======================= 手机端 ======================= */
@media (max-width: 1280px) and (min-width: 901px) {
  .kb-panel { width: 210px; }
  .vc { --side: 210px; }
  .vc-log { display: none; }
}

@media (max-width: 900px) {
  /* 浏览器 */
  .browser { width: 100%; height: 100%; border-radius: 12px; }
  .br-bar { height: 36px; padding: 0 10px; }
  .tl i { width: 9px; height: 9px; }
  .br-url { height: 23px; font-size: 11px; max-width: 220px; }
  .br-bar .expand-btn { top: 3px; right: 6px; }
  .br-view { overflow: hidden; }
  .scroll-tip { display: none; }
  .scene-web .browser { transform: translate3d(calc((1 - var(--in)) * -110vw), calc(var(--out) * -8vh), 0) rotateY(calc((1 - var(--in)) * 30deg)) scale(calc(.9 + var(--in) * .1 - var(--out) * .2)); filter: none; }

  /* 小程序 */
  .mini-wrap { --ph-h: min(600px, 100cqh); }
  .float-card, .toast-stack { display: none; }
  .scene-mini .phone { filter: none; }
  .mp-list { overflow: hidden; }

  /* 后台 */
  .dash { width: 100%; height: 100%; border-radius: 12px; }
  .scene-dash .dash { filter: none; }

  /* AI 客服 */
  .chat { width: 100%; height: 100%; margin: 0; border-radius: 18px; }
  .scene-ai .chat { filter: none; }
  .kb-panel { display: none; }
  .ai-orb { left: 50%; width: 120vw; }
  .ai-metrics { display: none; }
  .msg { font-size: 13px; }
  .ct-body { padding: 14px 12px 8px; gap: 10px; }

  /* 视觉 */
  .vision-layout { display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; top: 0; padding: calc(var(--nav-h) + 16px) 14px calc(16px + env(safe-area-inset-bottom)); }
  .vision-layout .text-col { padding: 0 4px; }
  .scene-vision .ch-title { font-size: clamp(25px, 7.4vw, 34px); }
  .vc { --side: 100%; width: 100%; grid-template-columns: 1fr; gap: 10px; }
  .scene-vision .vc-view { transform: none; border-radius: 10px; }
  .vc-o { font-size: 8.5px; padding: 2px 6px; }
  .vc-o-tl, .vc-o-bl { left: 10px; } .vc-o-tr, .vc-o-br { right: 10px; }
  .vc-o-tl, .vc-o-tr { top: 8px; } .vc-o-bl, .vc-o-br { bottom: 8px; }
  .vc-c { display: none; }
  .vtag { font-size: 8.5px; padding: 2px 5px; }
  .vbox > i { width: 8px; height: 8px; border-width: 2px; }
  .vc-side { flex-direction: row; flex-wrap: wrap; gap: 10px; padding: 12px; }
  .vc-scene { flex: 1 1 100%; display: flex; align-items: baseline; justify-content: space-between; }
  .vc-scene b { font-size: 15px; margin: 0; order: -1; }
  .vc-pipe { flex: 1 1 100%; }
  .vc-stats { flex: 1 1 100%; }
  .vc-stats b { font-size: 18px; }
  .vc-log, .vc-total { display: none; }
  .vc-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .vc-tab { flex-direction: column; align-items: stretch; gap: 5px; padding: 5px; }
  .vc-tab img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .vc-tab span { font-size: 10px; text-align: center; }
  .vc-tab small { display: none; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .vc-pipe { display: none; }
}
