/* 闪信·彩运来 官网 — 跟随软件默认的浅色皮肤（claude-light）：暖米色底、赤陶橙主色、暖灰边框，与 src/styles/theme.ts 同一套色值。 */
:root {
  --bg: #f7f3ea;
  --bg-soft: #efe6d8;
  --card: #fffdf8;
  --surface: rgba(91, 64, 39, 0.035);
  --surface-2: rgba(91, 64, 39, 0.06);
  --line: #e7dcce;
  --line-2: #ded2c1;
  --text: #2b261f;
  --text-2: #6b6258;
  --muted: #9a8f82;
  --cyan: #d77757;
  --blue: #c15f3c;
  --violet: #a84f2f;
  --orange: #e07a3f;
  --rose: #ff4d6d;
  --amber: #b87503;
  --green: #2f7d32;
  --grad: linear-gradient(100deg, #a84f2f 0%, #c15f3c 40%, #d77757 70%, #e0a040 100%);
  --grad-btn: linear-gradient(180deg, #c86a45, #c15f3c 60%, #b5553a);
  --shadow-sm: 0 1px 2px rgba(91, 64, 39, .06), 0 2px 8px -2px rgba(91, 64, 39, .06);
  --shadow: 0 1px 2px rgba(91, 64, 39, .05), 0 12px 32px -12px rgba(91, 64, 39, .14);
  --shadow-lg: 0 2px 4px rgba(91, 64, 39, .04), 0 40px 80px -30px rgba(91, 64, 39, .30);
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --r-lg: 22px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(193, 95, 60, .2); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 8px 20px -8px rgba(193, 95, 60, .65); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.25), transparent 55%); pointer-events: none; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 14px 30px -10px rgba(193, 95, 60, .8); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow-sm); }
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(193,95,60,.35) inset, var(--shadow); }
.btn.is-disabled { background: var(--surface-2); color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset; cursor: not-allowed; transform: none; }
.btn.is-disabled::after { display: none; }

.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px;
  border-radius: 5px; font: 600 11px/1 var(--mono); color: var(--text-2);
  background: var(--card); box-shadow: 0 0 0 1px var(--line-2) inset, 0 1px 0 var(--line-2);
}

/* ---------- 顶栏 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2));
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; }
.brand small { font-size: 17px; color: var(--text-2); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.kbd-hint { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; color: var(--muted); font-size: 13px; transition: color .2s, box-shadow .2s; }
.kbd-hint span { margin-right: 6px; }
.kbd-hint:hover { color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow-sm); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 148px 20px 40px; isolation: isolate; overflow-x: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%); }
.hero-bg::before {
  content: ""; position: absolute; left: 50%; top: -220px; width: 1400px; height: 980px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 40%, rgba(215,119,87,.14), transparent 70%),
    radial-gradient(closest-side at 22% 55%, rgba(224,160,64,.12), transparent 70%),
    radial-gradient(closest-side at 80% 50%, rgba(193,95,60,.10), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); }
.hero-arcs { position: absolute; left: 50%; top: 40px; width: 1600px; height: 900px; transform: translateX(-50%); }
.hero-arcs g { opacity: .2; }
.arc { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.4s var(--ease) forwards; }
.arc-2 { animation-delay: .25s; }
.arc-3 { animation-delay: .5s; stroke-width: 8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.release-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; margin-bottom: 28px;
  border-radius: 999px; font-size: 13px; color: var(--text);
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow-sm);
  backdrop-filter: blur(8px); transition: box-shadow .2s, transform .2s var(--ease);
}
.release-pill:hover { box-shadow: 0 0 0 1px rgba(193,95,60,.4) inset, var(--shadow); transform: translateY(-1px); }
.release-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.release-pill .sep { width: 1px; height: 14px; background: var(--line-2); }
.release-pill .muted { color: var(--muted); }
.release-pill .arrow { color: var(--muted); transition: transform .2s var(--ease); }
.release-pill:hover .arrow { transform: translateX(3px); color: var(--text); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,125,50,.5); } 70% { box-shadow: 0 0 0 8px rgba(47,125,50,0); } 100% { box-shadow: 0 0 0 0 rgba(47,125,50,0); } }
.hero h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 .grad { background-size: 200% 100%; animation: sheen 8s linear infinite; }
@keyframes sheen { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.lede { max-width: 660px; margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--blue) 0 2.5px, transparent 3px), rgba(193,95,60,.12); }

/* 演示窗口舞台 */
.stage { position: relative; max-width: var(--wrap); margin: 72px auto 0; perspective: 1800px; --tilt: 1; }
.stage::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -50px; height: 140px; z-index: -1;
  background: radial-gradient(closest-side, rgba(224,122,63,.22), rgba(168,79,47,.12) 60%, transparent);
  filter: blur(28px);
}
.stage-scale { width: 1180px; transform-origin: top left; transform: scale(var(--s, 1)); }
.app {
  position: relative; width: 1180px; overflow: hidden;
  border-radius: 14px;
  background: #f3eee4;
  box-shadow: 0 0 0 1px rgba(91,64,39,.10), var(--shadow-lg);
  transform: rotateX(calc(var(--tilt) * 14deg)) translateY(calc(var(--tilt) * 10px));
  transform-origin: 50% 0;
  transition: transform .12s linear;
  font-size: 12px; line-height: 1.4; color: var(--text);
}
.app-title { display: flex; align-items: center; height: 38px; padding: 0 12px; background: #fffdf8; border-bottom: 1px solid var(--line); }
.app-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.app-brand img { width: 20px; height: 20px; }
.app-title-mid { flex: 1; display: flex; justify-content: center; }
.chip-demo { color: #b87503; background: #fbefd8; box-shadow: 0 0 0 1px #ebcf96 inset; }
.app-title-end { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.app-title-end i { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--muted) inset; }
.app-title-end i:first-of-type { height: 1.5px; box-shadow: none; background: var(--muted); }
.app-title-end i.x { background: linear-gradient(45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%); box-shadow: none; }
.app-ribbon { display: flex; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fffdf8; }
.app-ribbon span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; padding: 6px 0; border-radius: 8px; color: var(--text-2); font-size: 11.5px; }
.app-ribbon span i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--bg-soft); color: var(--text-2); font-size: 13px; }
.app-ribbon span.on { background: #f8e9e1; color: var(--blue); font-weight: 600; box-shadow: 0 0 0 1px rgba(193,95,60,.25) inset; }
.app-ribbon span.on i { background: var(--grad-btn); color: #fff; }
.app-body { display: grid; grid-template-columns: 1fr 236px 216px; gap: 10px; padding: 10px; height: 470px; }
.col-main { display: grid; grid-template-rows: 1.25fr 1fr auto; gap: 10px; min-height: 0; }
.col-side { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; min-height: 0; }
.col-players { min-height: 0; display: grid; }
.pane { position: relative; border-radius: 10px; background: #fffdf8; box-shadow: 0 0 0 1px var(--line) inset, 0 1px 2px rgba(91,64,39,.04); overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.pane > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.pane > header b { font-size: 12.5px; font-weight: 600; }
.pane > header b::before { content: ""; display: inline-block; width: 3px; height: 11px; margin-right: 7px; border-radius: 2px; background: var(--grad); vertical-align: -1px; }
.pane-tools { display: flex; gap: 6px; }
.pane-tools em { font-style: normal; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-size: 11px; }
.pane-tools em.search { width: 90px; }
.tbl { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tbl .tr { display: grid; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-bottom: 1px solid rgba(91,64,39,.05); white-space: nowrap; }
.tbl .th { color: var(--muted); font-size: 11px; height: 26px; background: #f4ebdd; }
.tbl-bets .tr { grid-template-columns: 1.2fr .9fr .9fr 1.3fr .7fr .9fr; }
.tbl-draw .tr { grid-template-columns: .7fr .9fr .6fr 1.7fr .5fr .5fr .5fr; }
.tbody { flex: 1; overflow: hidden; }
.tr.enter { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: rgba(193,95,60,.14); } to { opacity: 1; transform: none; background: transparent; } }
.tr.flash { animation: rowFlash 1.6s var(--ease); }
@keyframes rowFlash { 0% { background: #fbebc8; } 100% { background: transparent; } }
.who { display: flex; align-items: center; gap: 6px; }
.av { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; color: #fff; background: linear-gradient(135deg, #d77757, var(--violet)); flex: none; }
.st { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; transition: background .3s, color .3s; }
.st-open { color: #b87503; background: #fbefd8; }
.st-win { color: #2f7d32; background: #e5f1e3; }
.st-lose { color: var(--muted); background: var(--bg-soft); }
.balls { display: flex; gap: 4px; }
.balls i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font: 600 11px var(--mono); font-style: normal; color: #fff; background: radial-gradient(circle at 35% 30%, #ff9a6b, var(--orange) 55%, #d4471c); box-shadow: 0 2px 5px -2px rgba(224,122,63,.6); }
.tr.flash .balls i { animation: ballIn .5s var(--ease) backwards; }
.tr.flash .balls i:nth-child(2) { animation-delay: .08s; } .tr.flash .balls i:nth-child(3) { animation-delay: .16s; }
.tr.flash .balls i:nth-child(4) { animation-delay: .24s; } .tr.flash .balls i:nth-child(5) { animation-delay: .32s; }
@keyframes ballIn { from { transform: scale(.2) rotate(-90deg); opacity: 0; } }
.pane-ctrl { display: grid; grid-template-columns: 1fr 86px 1.25fr; align-items: center; gap: 14px; padding: 12px 14px; }
.ctrl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ctrl-stats p { display: flex; flex-direction: column; }
.ctrl-stats span { color: var(--muted); font-size: 11px; }
.ctrl-stats b { font-size: 14px; font-weight: 600; }
.ctrl-stats b.ok { color: var(--green); }
.ctrl-stats b.warn { color: var(--amber); }
.ctrl-ring { position: relative; width: 80px; height: 80px; }
.ctrl-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.ctrl-ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--bg-soft); }
.ring-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ctrl-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.ctrl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ctrl-actions span { width: 100%; color: var(--muted); font-size: 11px; }
.ctrl-actions em { font-style: normal; padding: 4px 9px; border-radius: 7px; background: #fffdf8; box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--text-2); font-size: 11.5px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 12px; border-bottom: 1px solid rgba(91,64,39,.05); }
.kv span { color: var(--muted); font-size: 11.5px; }
.kv b { font-size: 16px; font-weight: 700; }
.host { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.host i { width: 7px; height: 7px; border-radius: 50%; background: #cfc3b2; }
.host i.on { background: var(--green); box-shadow: 0 0 0 3px rgba(47,125,50,.15); }
.host span { flex: 1; }
.host em { font-style: normal; color: var(--green); font-size: 11px; }
.host em.dim { color: var(--muted); }
.audit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; padding: 7px 12px; }
.audit em { font-style: normal; color: var(--text-2); }
.audit b { font-weight: 500; font-size: 11px; color: var(--blue); padding: 1px 7px; border-radius: 999px; background: #f8e9e1; }
.players { padding: 4px 0; }
.pl { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(91,64,39,.05); }
.pl b { font-weight: 600; }
.app-status { display: flex; align-items: center; gap: 22px; height: 30px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; background: #fffdf8; }
.app-status b { color: var(--text-2); font-weight: 500; }
.app-status .live { display: flex; align-items: center; gap: 6px; color: var(--green); margin-right: auto; }
.app-status .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.toast {
  position: absolute; right: 18px; bottom: 44px; z-index: 4;
  padding: 10px 14px 10px 36px; border-radius: 10px; font-size: 12.5px; color: var(--text);
  background: #fffdf8; box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px -12px rgba(91,64,39,.35);
  opacity: 0; transform: translateY(8px);
}
.toast::before { content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; background: var(--green); color: #fff; }
.toast.show { animation: toast 3.2s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

/* ---------- 平台条 ---------- */
.platforms { max-width: var(--wrap); margin: 96px auto 0; padding: 0 20px; text-align: center; }
.platforms p { color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.platforms ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.platforms li {
  min-width: 96px; padding: 10px 20px; border-radius: 12px;
  font-weight: 700; font-size: 17px; color: var(--text-2);
  background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-sm);
  transition: color .25s, box-shadow .25s, transform .25s var(--ease);
}
.platforms li:hover { color: var(--blue); box-shadow: 0 0 0 1px rgba(193,95,60,.35) inset, var(--shadow); transform: translateY(-2px); }

/* ---------- 通用 section ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 140px 20px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.kicker span { font: 600 12px var(--mono); color: var(--blue); padding: 2px 8px; border-radius: 6px; background: #f8e9e1; box-shadow: 0 0 0 1px rgba(193,95,60,.2) inset; letter-spacing: 0; }
.section-head h2, .dl-copy h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.section-head > p:last-child { margin-top: 18px; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.br-md { display: none; }
@media (min-width: 760px) { .br-md { display: inline; } }

/* 进入视口 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .card.reveal:nth-child(2) { transition-delay: .06s; } .bento .card.reveal:nth-child(3) { transition-delay: .12s; }
.bento .card.reveal:nth-child(4) { transition-delay: .06s; } .bento .card.reveal:nth-child(5) { transition-delay: .12s; }
.bento .card.reveal:nth-child(6) { transition-delay: .06s; } .bento .card.reveal:nth-child(7) { transition-delay: .12s; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 300px; padding: 28px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.card:hover { box-shadow: 0 0 0 1px var(--line-2) inset, 0 2px 4px rgba(91,64,39,.04), 0 24px 48px -20px rgba(91,64,39,.25); transform: translateY(-2px); }
.card-wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
.card-wide .card-copy { flex: 0 0 38%; align-self: flex-end; }
.card-wide .viz { flex: 1; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(193,95,60,.07), transparent 60%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  padding: 1px; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(193,95,60,.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.005em; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.viz { position: relative; min-height: 120px; display: flex; align-items: center; justify-content: center; }

.viz-panes { display: grid; grid-template-columns: 1.6fr 1fr .9fr; grid-template-rows: 1fr 1fr .6fr; align-items: stretch; justify-items: stretch; gap: 8px; padding: 6px 0 6px 18px; }
.viz-panes i { border-radius: 10px; background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; position: relative; overflow: hidden; }
.viz-panes i::after { content: ""; position: absolute; left: 10px; right: 30%; top: 12px; height: 6px; border-radius: 3px; background: rgba(91,64,39,.12); box-shadow: 0 14px 0 rgba(91,64,39,.07), 0 28px 0 rgba(91,64,39,.07), 0 42px 0 rgba(91,64,39,.05); }
.viz-panes .p1 { grid-row: span 2; background: linear-gradient(160deg, #f6e3d9, #f7f3ea); }
.viz-panes .p3 { grid-row: span 3; }
.viz-panes .p5 { grid-column: span 2; background: linear-gradient(90deg, #f8e4d8, #f7f3ea); }
.viz-panes .p5::after { display: none; }

.viz-ledger { flex-direction: column; gap: 10px; align-items: stretch; }
.viz-ledger p { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; margin: 0; }
.viz-ledger span { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(91,64,39,.16), rgba(91,64,39,.04)); }
.viz-ledger p:nth-child(2) span { margin-right: 18%; } .viz-ledger p:nth-child(3) span { margin-right: 34%; }
.viz-ledger b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: #fff; background: var(--green); box-shadow: 0 4px 10px -3px rgba(47,125,50,.6); }

.viz-parse { gap: 12px; flex-wrap: wrap; }
.viz-parse .bubble { position: relative; padding: 9px 14px; border-radius: 14px 14px 14px 4px; background: #f1eadf; font-size: 14px; }
.viz-parse .arrow { color: var(--muted); font-family: var(--mono); }
.viz-parse .parsed { display: flex; gap: 6px; }
.viz-parse .parsed em { font-style: normal; padding: 6px 10px; border-radius: 8px; font: 600 13px var(--mono); background: #f8e9e1; box-shadow: 0 0 0 1px rgba(193,95,60,.3) inset; color: var(--blue); }
.viz-parse .parsed em:nth-child(3) { background: #fbeee2; box-shadow: 0 0 0 1px rgba(224,122,63,.3) inset; color: #a84f2f; }

.viz-balls { gap: 10px; }
.viz-balls i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 18px var(--mono); font-style: normal; color: #fff; background: radial-gradient(circle at 35% 30%, #ffa57d, var(--orange) 55%, #c63e17); box-shadow: 0 10px 20px -8px rgba(224,122,63,.6), inset 0 -3px 6px rgba(0,0,0,.18); }
.card:hover .viz-balls i { animation: bob 1.2s var(--ease) infinite; }
.viz-balls i:nth-child(2) { animation-delay: .1s !important; } .viz-balls i:nth-child(3) { animation-delay: .2s !important; }
.viz-balls i:nth-child(4) { animation-delay: .3s !important; } .viz-balls i:nth-child(5) { animation-delay: .4s !important; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }

.viz-bars { gap: 12px; align-items: flex-end; height: 120px; }
.viz-bars i { width: 30px; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--violet), #e9c3b0); transition: height .6s var(--ease); }
.card:hover .viz-bars i:nth-child(odd) { height: calc(var(--h) + 12%); }

.viz-update { gap: 14px; padding-left: 18px; }
.viz-update .v { font: 600 14px var(--mono); padding: 8px 12px; border-radius: 10px; background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; color: var(--muted); }
.viz-update .v-new { color: #2f7d32; background: #e5f1e3; box-shadow: 0 0 0 1px rgba(47,125,50,.35) inset; }
.viz-update .track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.viz-update .track i { position: absolute; inset: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--cyan), var(--green)); animation: flow 2.4s var(--ease) infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.viz-log { flex-direction: column; align-items: stretch; gap: 8px; }
.viz-log p { display: flex; gap: 12px; margin: 0; padding: 9px 12px; border-radius: 10px; background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; font-size: 13px; color: var(--text-2); }
.viz-log b { font: 500 12px var(--mono); color: var(--blue); }

/* ---------- 界面导览 ---------- */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 6px; }
.tour-tabs button {
  position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px 18px; border-radius: 14px; overflow: hidden;
  color: var(--muted); transition: background .25s, color .25s, box-shadow .25s;
}
.tour-tabs button:hover { background: rgba(255,255,255,.7); color: var(--text-2); }
.tour-tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.tour-tabs b { font: 600 12px var(--mono); padding-top: 3px; color: inherit; opacity: .8; }
.tour-tabs button[aria-selected="true"] b { color: var(--blue); opacity: 1; }
.tour-tabs span { display: flex; flex-direction: column; gap: 2px; }
.tour-tabs strong { font-size: 16px; font-weight: 700; }
.tour-tabs em { font-style: normal; font-size: 13px; opacity: .85; }
.tour-tabs .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--grad); }
.tour-tabs button.run .bar { animation: progress 6s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.tour-panels { min-width: 0; }
.win { border-radius: 16px; overflow: hidden; background: #f3eee4; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.tp:not([hidden]) { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.win-bar { display: flex; align-items: center; gap: 16px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fffdf8; }
.win-bar span { order: -1; margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.win-bar span::before { content: ""; width: 16px; height: 16px; background: url(./assets/shanxin-caiyunlai-titlebar.png) center / contain no-repeat; }
.win-bar i { width: 10px; height: 10px; }
.win-bar i:nth-child(1) { height: 1.5px; background: var(--muted); }
.win-bar i:nth-child(2) { border-radius: 2px; box-shadow: 0 0 0 1.5px var(--muted) inset; }
.win-bar i:nth-child(3) { background: linear-gradient(45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%); }
.tp-grid { display: grid; gap: 12px; padding: 14px; min-height: 380px; align-content: start; }
.g-work { grid-template-columns: 1.6fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-msg { grid-template-columns: 1.2fr 1fr; }
.span2 { grid-column: span 2; }
.mini { padding: 14px; border-radius: 12px; background: #fffdf8; box-shadow: 0 0 0 1px var(--line) inset, 0 1px 2px rgba(91,64,39,.04); font-size: 13px; min-width: 0; }
.mini h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.mini h4::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--grad); }
.mt { display: grid; gap: 0; font-size: 12.5px; overflow-x: auto; }
.mt.c6 { grid-template-columns: repeat(6, minmax(56px, auto)); }
.mt.c7 { grid-template-columns: repeat(7, minmax(44px, auto)); }
.mt span, .mt i { font-style: normal; padding: 7px 8px; border-bottom: 1px solid rgba(91,64,39,.06); white-space: nowrap; }
.mt span { color: var(--muted); font-size: 11.5px; background: #f4ebdd; }
.t-warn { color: var(--amber); }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(91,64,39,.06); }
.row span { color: var(--muted); }
.row b { font-weight: 500; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i { font-style: normal; padding: 4px 10px; border-radius: 8px; background: #f8e9e1; box-shadow: 0 0 0 1px rgba(193,95,60,.2) inset; color: var(--blue); font-size: 12.5px; }
.sw { position: relative; padding: 7px 0 7px 42px; color: var(--text-2); }
.sw::before { content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 17px; margin-top: -8.5px; border-radius: 999px; background: #ded2c1; transition: background .2s; }
.sw::after { content: ""; position: absolute; left: 2px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: #fffdf8; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.sw.on::before { background: var(--blue); }
.sw.on::after { transform: translateX(13px); }
.code { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; font: 12.5px/1.7 var(--mono); color: #6f4b35; white-space: pre-wrap; }

/* ---------- 架构 ---------- */
.flow { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr 64px 1fr; align-items: center; }
.node {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 14px; border-radius: 18px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow);
}
.node strong { font-size: 16px; }
.node em { font-style: normal; color: var(--muted); font-size: 13px; }
.node-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 14px; font-size: 22px; background: #f3eee4; box-shadow: 0 0 0 1px var(--line) inset; }
.node-logo img { width: 30px; height: 30px; }
.node-core { background: linear-gradient(180deg, #fbf0e8, #fff); box-shadow: 0 0 0 1px rgba(193,95,60,.35) inset, 0 20px 44px -20px rgba(193,95,60,.45); }
.node-core .node-ico { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px -8px rgba(193,95,60,.8); }
.link { position: relative; height: 2px; background: var(--line-2); }
.link i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(215,119,87,.18); animation: packet 2.2s linear infinite; }
.flow .link:nth-of-type(4) i { animation-delay: .7s; background: var(--violet); box-shadow: 0 0 0 3px rgba(168,79,47,.18); }
.flow .link:nth-of-type(6) i { animation-delay: 1.4s; background: var(--orange); box-shadow: 0 0 0 3px rgba(224,122,63,.18); }
@keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.facts div { padding: 22px 24px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-sm); }
.facts b { display: block; font-size: 16px; margin-bottom: 6px; }
.facts span { color: var(--text-2); font-size: 14.5px; }

/* ---------- 更新日志 ---------- */
.log { position: relative; max-width: 820px; padding-left: 28px; }
.log::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--line-2) 40%); border-radius: 1px; }
.log > li { position: relative; padding-bottom: 38px; }
.log > li::before { content: ""; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--line-2) inset; }
.log > li.latest::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(193,95,60,.18); }
.log-ver { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.log-ver b { font: 700 18px var(--mono); }
.log-ver time { color: var(--muted); font: 13px var(--mono); }
.chip-new { color: #fff; background: var(--green); }
.log ul li { position: relative; padding: 4px 0 4px 18px; color: var(--text-2); }
.log ul li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 1.5px; background: var(--muted); }

/* ---------- 下载 ---------- */
.download { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 140px 20px 120px; isolation: isolate; overflow-x: clip; }
.dl-glow { position: absolute; left: 50%; top: 60%; width: 900px; height: 500px; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(closest-side, rgba(193,95,60,.16), rgba(224,122,63,.08) 55%, transparent); filter: blur(20px); pointer-events: none; }
.dl-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
  padding: 52px 56px; border-radius: 28px;
  background: linear-gradient(160deg, #ffffff, #fbf8f1 60%, #f8efe4);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-lg);
}
.dl-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); opacity: .35; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.dl-logo { position: relative; width: 188px; height: 188px; display: grid; place-items: center; border-radius: 44px; background: radial-gradient(circle at 50% 35%, #ffffff, #f3eadc); box-shadow: 0 0 0 1px var(--line) inset, 0 24px 50px -20px rgba(193,95,60,.45); }
.dl-logo img { width: 132px; height: 132px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dl-ver { margin-top: 10px; color: var(--text-2); }
.dl-ver .mono { color: var(--blue); }
.dl-req { display: grid; gap: 8px; margin: 24px 0 30px; }
.dl-req li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.dl-req li::before { content: "✓"; position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; color: #fff; background: var(--green); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dl-note { color: var(--muted); font-size: 13px; }

/* ---------- 页脚 ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.footer-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,125,50,.15); }

/* ---------- 快速跳转 ---------- */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 0; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(43, 38, 31, .22); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .16s; }
.palette-box { position: relative; width: min(560px, 100%); border-radius: 16px; overflow: hidden; background: #fffdf8; box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -20px rgba(91,64,39,.45); opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .16s, transform .16s var(--ease); }
.palette.on .palette-backdrop, .palette.on .palette-box { opacity: 1; transform: none; }
.palette-input { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.palette-list li strong { font-weight: 600; }
.palette-list li em { font-style: normal; color: var(--muted); font-size: 13px; flex: 1; }
.palette-list li kbd { opacity: 0; }
.palette-list li[aria-selected="true"] { background: #f8e9e1; box-shadow: 0 0 0 1px rgba(193,95,60,.25) inset; }
.palette-list li[aria-selected="true"] kbd { opacity: 1; }
.palette-list li.empty { color: var(--muted); cursor: default; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: 0 0 auto; padding: 12px 16px; }
  .tour-tabs em { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .kbd-hint { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 360px; margin: 0 auto; }
  .link { width: 2px; height: 36px; margin: 0 auto; }
  .link i { left: 50% !important; margin-left: -4px; animation-name: packetY; }
  @keyframes packetY { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .facts { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 40px 24px; gap: 28px; }
  .dl-req { justify-items: center; }
  .dl-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding-top: 116px; }
  .release-pill .sep, .release-pill .muted { display: none; }
  .hero-meta { gap: 6px 16px; }
  .stage { margin-top: 48px; }
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; flex-direction: column; }
  .card-wide .card-copy { flex: none; align-self: auto; }
  .card { min-height: 0; padding: 24px; }
  .viz-panes { padding-left: 0; min-height: 150px; }
  .viz-update { padding-left: 0; }
  .viz-balls i { width: 38px; height: 38px; font-size: 16px; }
  .g-work, .g-3, .g-msg { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .section { padding-top: 104px; }
  .download { padding: 104px 20px 88px; }
  .dl-logo { width: 150px; height: 150px; border-radius: 36px; }
  .dl-logo img { width: 104px; height: 104px; }
  .footer-status { margin-left: 0; }
  .btn-lg { height: 48px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .arc { stroke-dashoffset: 0; }
  .app { transform: none; }
}

/* ================= 产品切换（彩运来 / 彩运来·28） ================= */
.product-switch { display: inline-flex; padding: 3px; margin-left: 4px; border-radius: 10px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; }
.product-switch a { padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.product-switch a:hover { color: var(--text); }
.product-switch a[aria-current="page"] { background: var(--card); color: var(--blue); box-shadow: 0 1px 2px rgba(91,64,39,.12), 0 0 0 1px var(--line) inset; }
@media (max-width: 640px) { .nav { gap: 10px; } .product-switch { margin-left: 0; } .product-switch a { padding: 4px 9px; font-size: 12px; } .brand > span { display: none; } .nav-end .btn { display: none; } }

/* ================= 彩运来·28 ================= */
.brand-28 { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 6px; font: 800 12px var(--mono); color: #fff; background: var(--grad-btn); vertical-align: 2px; }
.b28 { display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-weight: 700; color: #fff; background: radial-gradient(circle at 35% 30%, #ffa57d, var(--orange) 55%, #b9441b); box-shadow: 0 6px 14px -6px rgba(224,122,63,.7), inset 0 -2px 4px rgba(0,0,0,.18); }
.b28.sum { background: radial-gradient(circle at 35% 30%, #d98a6a, #a84f2f 60%, #7c3720); }
.r-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: #f3eee4; color: var(--text-2); }
.r-big { color: #b42318; background: #fbe4df; }
.r-small { color: #2f5fb3; background: #e3ecfa; }
.r-red { color: #fff; background: #d64545; }
.r-blue { color: #fff; background: #3c6fd1; }
.r-green { color: #fff; background: #2f8f4e; }
.r-shape { color: #7a3fb0; background: #efe4fa; }
.r-ext { color: #a84f2f; background: #f8e4d8; }

/* 演示窗口：照彩运来·28 工作台真实布局（E:\AI\QIJIAN src/App.tsx + styles.css）。
   配色用 28 软件两套皮肤的色值，切皮肤只换变量。 */
.p28app {
  --q-bg: #ebe3d5; --q-surface: #f8f3ea; --q-surface2: #fffefb; --q-surface3: #f4ede2;
  --q-border: #d9ccb9; --q-border-soft: #ebe2d4;
  --q-text: #2b261f; --q-muted: #6b6258; --q-dim: #9a8f82;
  --q-accent: #c15f3c; --q-accent-soft: #c15f3c14; --q-accent-text: #6f4b35;
  --q-title: #ffffff; --q-success: #2f7d32; --q-danger: #b42318; --q-warn: #b8860b; --q-shadow: #462d1414;
  background: var(--q-bg); color: var(--q-text); font-size: 12px;
  box-shadow: 0 0 0 1px rgba(91,64,39,.16), var(--shadow-lg);
  display: flex; flex-direction: column; height: 660px;
}
.p28app.skin-night {
  --q-bg: #0b0b1b; --q-surface: #15152a; --q-surface2: #1b1b33; --q-surface3: #23233f;
  --q-border: #2e2e52; --q-border-soft: #262643;
  --q-text: #d8d8e5; --q-muted: #8888a0; --q-dim: #686880;
  --q-accent: #d77757; --q-accent-soft: #d777571a; --q-accent-text: #f0d3c6;
  --q-title: #050505; --q-success: #73d13d; --q-danger: #ff7875; --q-warn: #f0ad4e; --q-shadow: #00000059;
  box-shadow: 0 0 0 1px #2e2e52, var(--shadow-lg);
}
.p28app, .p28app * { transition: background-color .3s, color .3s, border-color .3s; }
.p28app .anim, .p28app .anim * { transition: none; }
.q-title { flex: none; display: flex; align-items: center; height: 32px; padding-left: 12px; background: var(--q-title); border-bottom: 1px solid var(--q-border-soft); }
.q-title-brand { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.q-title-brand img { width: 16px; height: 16px; }
.q-title-brand .chip-demo { margin-left: 6px; }
.q-promo { flex: 1; display: flex; justify-content: center; gap: 10px; color: var(--q-accent-text); font-size: 12px; }
.q-promo b { font-weight: 600; }
.q-promo small { font-size: 11px; color: var(--q-muted); }
.q-ctrl { display: flex; height: 100%; }
.q-ctrl > * { display: grid; place-items: center; width: 40px; height: 100%; color: var(--q-muted); }
.q-ctrl .q-skin { cursor: pointer; }
.q-ctrl .q-skin:hover { background: var(--q-accent-soft); color: var(--q-accent); }
.q-ctrl svg { width: 15px; height: 15px; }
.q-ctrl i { position: relative; width: 40px; }
.q-ctrl i::before { content: ""; position: absolute; left: 15px; top: 50%; width: 10px; height: 10px; margin-top: -5px; }
.q-ctrl i.min::before { height: 1.5px; margin-top: 0; background: var(--q-muted); }
.q-ctrl i.max::before { border: 1.5px solid var(--q-muted); border-radius: 1px; }
.q-ctrl i.x::before { background: linear-gradient(45deg, transparent 43%, var(--q-muted) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--q-muted) 43% 57%, transparent 57%); }

.q-topbar { flex: none; display: flex; align-items: center; gap: 6px; height: 64px; padding: 4px 10px; background: var(--q-surface2); box-shadow: 0 1px 6px var(--q-shadow); position: relative; z-index: 1; }
.q-tool { display: flex; align-items: center; gap: 8px; height: 50px; min-width: 128px; padding: 0 12px 0 8px; border: 1px solid var(--q-border-soft); border-radius: 10px; background: var(--q-surface); box-shadow: 0 1px 2px var(--q-shadow); }
.q-tool .ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--q-surface3); color: var(--q-accent); font-size: 14px; }
.q-tool b { display: block; font-size: 12.5px; font-weight: 600; }
.q-tool em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 10.5px; color: var(--q-muted); }
.q-tool em::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--q-dim); }
.q-tool em.ok::before { background: var(--q-success); }
.q-tool.run { background: var(--q-accent-soft); border-color: color-mix(in srgb, var(--q-accent) 45%, transparent); }
.q-tool.run .ico { background: var(--q-accent); color: #fff; }
.q-tool.run em { color: var(--q-accent); }
.q-tool.run em::before { display: none; }
.q-lockup { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.q-lockup img { width: 22px; height: 22px; }
.q-lockup .names { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.q-lockup .main { display: flex; align-items: center; gap: 6px; }
.q-lockup .name { font-size: 19px; font-weight: 700; letter-spacing: 3px; }
.q-lockup .num { display: inline-block; padding: 2px 7px 2px 6px; border-radius: 5px; transform: skewX(-8deg); background: linear-gradient(135deg, #ff8a4c, #e2553a); color: #fff; font: 800 14px var(--mono); }
.q-lockup .sub { font-size: 8.5px; letter-spacing: 2px; color: var(--q-muted); }
.q-top-end { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--q-muted); }
.q-acct { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-left: 1px solid var(--q-border); font-size: 12px; color: var(--q-text); }
.q-acct::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--q-success); }

.q-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 250px; gap: 8px; padding: 8px 8px 6px; }
.q-center { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--q-border-soft); border-radius: 8px; background: var(--q-surface2); overflow: hidden; }
.q-tabs { flex: none; display: flex; gap: 20px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--q-border-soft); }
.q-tabs span { position: relative; display: flex; align-items: center; color: var(--q-muted); font-size: 12.5px; }
.q-tabs span.on { color: var(--q-text); font-weight: 600; }
.q-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--q-accent); }
.q-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.q-head b { font-size: 13px; }
.q-head span { color: var(--q-muted); }
.q-search { margin-left: auto; width: 170px; padding: 4px 9px; border: 1px solid var(--q-border); border-radius: 6px; color: var(--q-dim); font-size: 11.5px; background: var(--q-surface); }
.q-table { flex: 1; min-height: 0; margin: 0 10px; border: 1px solid var(--q-border-soft); border-radius: 6px; overflow: hidden; background: var(--q-surface2); background-image: repeating-linear-gradient(transparent 0 33px, var(--q-border-soft) 33px 34px); background-position: 0 28px; }
.q-tr { display: grid; grid-template-columns: 34px 62px 94px 1fr 66px 62px 70px 62px 40px; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border-bottom: 1px solid var(--q-border-soft); background: var(--q-surface2); white-space: nowrap; }
.q-tr.th { height: 28px; background: var(--q-surface3); color: var(--q-muted); font-size: 11.5px; }
.q-tr .r { text-align: right; }
.q-tr .who b { display: block; font-weight: 700; }
.q-tr .nick { display: flex; flex-direction: column; line-height: 1.15; }
.q-tr .nick small { color: var(--q-dim); font-size: 10px; }
.q-tr .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.q-tr .pos { color: var(--q-success); font-weight: 600; }
.q-tr .neg { color: var(--q-danger); font-weight: 600; }
.q-tr .wait { color: var(--q-muted); }
.q-tr .op { color: var(--q-accent); }
.q-tr.sel { background: var(--q-accent-soft); }
.q-tr.enter { animation: rowIn .6s var(--ease); }
.chip28 { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 4px; line-height: 20px; font-size: 12px; background: var(--q-surface3); color: var(--q-text); }
.chip28.won { background: color-mix(in srgb, var(--q-success) 14%, transparent); color: var(--q-success); }
.chip28.lost { color: var(--q-dim); text-decoration: line-through; background: transparent; }
.q-pager { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 6px 14px; color: var(--q-muted); font-size: 11.5px; }
.q-pager b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--q-accent); border-radius: 5px; color: var(--q-accent); font-weight: 500; }
.q-service { flex: none; margin: 0 10px 6px; padding: 0 8px 6px; border: 1px solid var(--q-border-soft); border-radius: 6px; background: var(--q-surface); }
.q-service legend { padding: 0 5px; font-size: 11.5px; font-weight: 600; color: var(--q-accent-text); }
.q-srow { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; white-space: nowrap; }
.q-srow .in { min-width: 76px; padding: 3px 7px; border: 1px solid var(--q-border); border-radius: 5px; background: var(--q-surface2); font-size: 11.5px; }
.q-srow .in.wide { flex: 1; }
.q-srow .btn28 { padding: 3px 9px; border: 1px solid var(--q-border); border-radius: 5px; background: var(--q-surface2); font-size: 11px; }
.q-srow .btn28.danger { color: var(--q-danger); border-color: color-mix(in srgb, var(--q-danger) 55%, transparent); }
.q-srow .gap { margin-left: auto; }
.q-kind { padding: 0 6px; border-radius: 4px; line-height: 18px; font-size: 10.5px; color: var(--q-success); background: color-mix(in srgb, var(--q-success) 12%, transparent); }
.q-actions { flex: none; display: flex; align-items: center; gap: 5px; margin: 0 10px 8px; padding: 6px 8px; border: 1px solid var(--q-border-soft); border-radius: 6px; background: var(--q-surface); }
.q-actions .btn28 { padding: 4px 10px; border: 1px solid var(--q-border); border-radius: 5px; background: var(--q-surface2); font-size: 11.5px; }
.q-actions .btn28.accent { color: var(--q-accent); border-color: var(--q-accent); }
.q-actions .gap { margin-left: auto; }
.q-check { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.q-check::before { content: "✓"; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; font-size: 10px; color: #fff; background: var(--q-accent); }

.q-side { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--q-border-soft); border-radius: 8px; background: var(--q-surface2); overflow: hidden; }
.q-side-tabs { flex: none; display: flex; border-bottom: 1px solid var(--q-border-soft); }
.q-side-tabs button { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; font-size: 12.5px; color: var(--q-muted); cursor: pointer; }
.q-side-tabs button[aria-selected="true"] { color: var(--q-text); font-weight: 600; }
.q-side-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--q-accent); }
.q-side-tabs .cnt { min-width: 18px; padding: 0 5px; border-radius: 9px; font: 600 10.5px/16px var(--mono); color: var(--q-accent); background: var(--q-accent-soft); }
.q-side-body { flex: 1; min-height: 0; overflow: hidden; }
.q-batch { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--q-border-soft); color: var(--q-muted); font-size: 11.5px; }
.q-batch .btn28 { padding: 2px 8px; border: 1px solid var(--q-border); border-radius: 5px; font-size: 11px; background: var(--q-surface); color: var(--q-text); }
.q-batch .gap { margin-left: auto; }
.q-req { margin: 8px; padding: 9px 10px; border: 1px solid var(--q-border-soft); border-radius: 8px; background: var(--q-surface); }
.q-req .l1 { display: flex; align-items: center; gap: 6px; }
.q-req .l1 b { font-weight: 700; }
.q-req .kind { padding: 0 5px; border-radius: 4px; font-size: 10.5px; line-height: 16px; border: 1px solid; }
.q-req .kind.up { color: var(--q-success); border-color: color-mix(in srgb, var(--q-success) 45%, transparent); }
.q-req .kind.down { color: var(--q-warn); border-color: color-mix(in srgb, var(--q-warn) 45%, transparent); }
.q-req .amt { margin-left: auto; font: 700 15px var(--mono); }
.q-req .l2 { margin-top: 4px; color: var(--q-dim); font-size: 10.5px; }
.q-req .l3 { display: flex; gap: 6px; margin-top: 7px; }
.q-req .l3 span { flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; font-size: 11.5px; border: 1px solid var(--q-border); background: var(--q-surface2); }
.q-req .l3 span.ok { color: #fff; background: var(--q-accent); border-color: var(--q-accent); }
.q-req.done { opacity: .55; }
.q-plist .q-search { width: auto; margin: 8px; }
.q-pl { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid var(--q-border-soft); }
.q-pl b { display: block; font-weight: 700; }
.q-pl small { color: var(--q-dim); font-size: 10.5px; }
.q-pl .num { font: 600 13px var(--mono); }
.q-side-note { flex: none; padding: 8px 12px; border-top: 1px solid var(--q-border-soft); color: var(--q-muted); font-size: 10.5px; line-height: 1.5; }

.q-strip { flex: none; display: grid; grid-template-columns: .85fr 1fr 2.55fr .95fr .65fr .85fr; margin: 0 8px 6px; background: var(--q-surface2); border: 1px solid var(--q-border); border-radius: 8px; box-shadow: 0 1px 4px var(--q-shadow); white-space: nowrap; overflow: hidden; }
.q-strip > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 5px 12px 6px; border-left: 1px solid var(--q-border-soft); }
.q-strip > div:first-child { border-left: 3px solid var(--q-accent); }
.q-strip span { font-size: 10.5px; color: var(--q-muted); }
.q-strip b { display: flex; align-items: center; gap: 5px; font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-strip b.live { color: var(--q-accent); }
.q-strip b small { font-size: 10.5px; font-weight: 400; color: var(--q-muted); }
.q-strip .pos { color: var(--q-success); }
.q-strip .neg { color: var(--q-danger); }
.dball { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 14px; font-weight: 800; color: #fff; background: radial-gradient(circle at 35% 30%, #f0a07c, var(--q-accent) 72%); box-shadow: 0 2px 6px color-mix(in srgb, var(--q-accent) 35%, transparent); }
.dop { font-style: normal; font-size: 13px; font-weight: 700; color: var(--q-muted); }
.dtag { margin-left: 2px; padding: 1px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 18px; color: var(--q-text); background: var(--q-surface3); border: 1px solid var(--q-border-soft); }
.dtag.big { color: #c4402d; background: #c4402d14; border-color: #c4402d40; }
.dtag.small { color: #2f6fb5; background: #2f6fb514; border-color: #2f6fb540; }
.p28app.skin-night .dtag.big { color: #ff8a73; }
.p28app.skin-night .dtag.small { color: #7fb2ee; }
.q-strip .flash .dball { animation: ballIn .5s var(--ease) backwards; }
.q-strip .flash .dball:nth-of-type(2) { animation-delay: .1s; }
.q-strip .flash .dball:nth-of-type(3) { animation-delay: .2s; }

.q-status { flex: none; display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 14px; border-top: 1px solid var(--q-border); background: var(--q-surface); color: var(--q-muted); font-size: 11px; }
.q-status > div { display: flex; align-items: center; gap: 14px; }
.q-status strong { color: var(--q-text); font-weight: 500; }
.q-status b { color: var(--q-text); font-weight: 500; padding-left: 3px; }
.q-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--q-dim); display: inline-block; }
.q-dot.live { background: var(--q-success); }
.p28app .toast { bottom: 108px; }
.p28app.skin-night .toast { background: #1b1b33; color: #d8d8e5; box-shadow: 0 0 0 1px #2e2e52, 0 16px 40px -12px rgba(0,0,0,.6); }
.p28app.skin-night .chip-demo { background: rgba(240,173,78,.14); color: #f0ad4e; box-shadow: 0 0 0 1px rgba(240,173,78,.35) inset; }

/* 玩法与赔率 + 开奖试算 */
.odds-lab { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.lab-draw { position: sticky; top: 84px; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.lab-draw h3 { font-size: 18px; }
.lab-draw > p { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.lab-balls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0 18px; }
.lab-ball { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lab-ball button { width: 30px; height: 24px; border-radius: 6px; color: var(--muted); background: var(--surface-2); font-size: 12px; line-height: 1; }
.lab-ball button:hover { color: var(--blue); background: #f8e9e1; }
.lab-ball .b28 { width: 52px; height: 52px; font-size: 24px; }
.lab-balls .eq { font: 700 22px var(--mono); color: var(--muted); }
.lab-balls .b28.sum { width: 60px; height: 60px; font-size: 26px; }
.lab-result { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 48px; }
.lab-actions { display: flex; gap: 10px; margin-top: 18px; }
.lab-actions .btn { flex: 1; }
.odds-board { display: grid; gap: 16px; }
.odds-group { padding: 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-sm); }
.odds-group h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.odds-group h4 small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.odds-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.odds-cells.nums { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.oc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.oc b { font-size: 14px; }
.oc span { font: 600 12px var(--mono); color: var(--muted); }
.oc.hit { background: #fbeee2; box-shadow: 0 0 0 1.5px var(--blue) inset, 0 6px 16px -8px rgba(193,95,60,.6); transform: translateY(-2px); }
.oc.hit span { color: var(--blue); }
.odds-note { margin-top: 4px; color: var(--muted); font-size: 13px; }

/* 两套皮肤 */
.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skin-card { overflow: hidden; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.skin-shot { height: 190px; padding: 14px; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 8px; }
.skin-shot i { border-radius: 8px; }
.skin-shot i:first-child { grid-column: span 2; height: 22px; }
.skin-day .skin-shot { background: #ebe3d5; }
.skin-day .skin-shot i { background: #f8f3ea; box-shadow: 0 0 0 1px #d9ccb9 inset; }
.skin-day .skin-shot i:first-child { background: #fff; }
.skin-dark .skin-shot { background: #0b0b1b; }
.skin-dark .skin-shot i { background: #1b1b33; box-shadow: 0 0 0 1px #2e2e52 inset; }
.skin-dark .skin-shot i:first-child { background: #050505; }
.skin-shot i.accent { background: linear-gradient(135deg, #c15f3c, #d77757); box-shadow: none; opacity: .85; }
.skin-copy { padding: 18px 22px 22px; }
.skin-copy h3 { font-size: 18px; }
.skin-copy p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }

@media (max-width: 900px) {
  .odds-lab { grid-template-columns: 1fr; }
  .lab-draw { position: static; }
  .skins { grid-template-columns: 1fr; }
}

/* 28 页：特性卡片小图、下载区角标 */
.viz-b28 { gap: 8px; align-items: center; }
.viz-b28 .eq { font: 700 20px var(--mono); color: var(--muted); }
.viz-b28 i.sum { background: radial-gradient(circle at 35% 30%, #d98a6a, #a84f2f 60%, #7c3720); }
.viz-tabs { flex-wrap: wrap; gap: 8px; padding-left: 18px; align-content: center; }
.viz-tabs span { padding: 8px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); background: #f7f3ea; box-shadow: 0 0 0 1px var(--line) inset; }
.viz-tabs span.on { color: #fff; background: var(--grad-btn); box-shadow: none; }
.dl-logo-28 .brand-28 { position: absolute; right: 18px; bottom: 18px; min-width: 40px; height: 30px; font-size: 17px; border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(193,95,60,.7); }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--blue); }
@media (max-width: 640px) { .viz-tabs { padding-left: 0; } }

/* ================= 彩运来·云雀 ================= */
.brand-yq { display: inline-grid; place-items: center; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 6px; font: 800 12px var(--sans); color: #fff; background: var(--grad-btn); vertical-align: 2px; }
.dl-logo-yq .brand-yq { position: absolute; right: 18px; bottom: 18px; height: 30px; padding: 0 9px; font-size: 16px; border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(193,95,60,.7); }

/* 演示窗口：彩运来·云雀账务主界面。配色用两套主题（米白暖阳 / 深夜靛蓝）的色值，切换主题只换变量。 */
.yqapp {
  --y-bg: #ebe3d5; --y-surface: #f8f3ea; --y-surface2: #fffefb; --y-surface3: #f4ede2;
  --y-border: #d9ccb9; --y-border-soft: #ebe2d4;
  --y-text: #2b261f; --y-muted: #6b6258; --y-dim: #9a8f82;
  --y-accent: #c15f3c; --y-accent2: #d97752; --y-accent-soft: #c15f3c14; --y-accent-text: #6f4b35;
  --y-title: #ffffff; --y-success: #2f7d32; --y-danger: #b42318; --y-warn: #b8860b; --y-balance: #3f5a8a;
  --k-dingwei: #0369a1; --k-danhao: #4338ca; --k-lianma: #7e22ce; --k-liangmian: #15803d; --k-zonghe: #0f766e;
  --k-longhu: #b91c1c; --k-zuhe: #be185d; --k-sanxing: #a16207; --k-other: #57534e;
  --ball-a: #e9763e; --ball-b: #c2412a;
  background: var(--y-bg); color: var(--y-text); font-size: 12px;
  box-shadow: 0 0 0 1px rgba(91,64,39,.16), var(--shadow-lg);
  display: flex; flex-direction: column; height: 660px;
}
.yqapp.skin-night {
  --y-bg: #0b0b1b; --y-surface: #15152a; --y-surface2: #1b1b33; --y-surface3: #23233f;
  --y-border: #2e2e52; --y-border-soft: #262643;
  --y-text: #d8d8e5; --y-muted: #8888a0; --y-dim: #686880;
  --y-accent: #d77757; --y-accent2: #e89260; --y-accent-soft: #d777571a; --y-accent-text: #f0d3c6;
  --y-title: #050505; --y-success: #73d13d; --y-danger: #ff7875; --y-warn: #f0ad4e; --y-balance: #a9bde6;
  --k-dingwei: #7cc7f0; --k-danhao: #a5b4fc; --k-lianma: #d8b4fe; --k-liangmian: #86efac; --k-zonghe: #5eead4;
  --k-longhu: #fca5a5; --k-zuhe: #f9a8d4; --k-sanxing: #fcd34d; --k-other: #d6d3d1;
  --ball-a: #f08a5d; --ball-b: #c8462b;
  box-shadow: 0 0 0 1px #2e2e52, var(--shadow-lg);
}
.yqapp, .yqapp * { transition: background-color .3s, color .3s, border-color .3s; }
.y-title { flex: none; display: flex; align-items: center; gap: 10px; height: 32px; padding-left: 12px; background: var(--y-title); border-bottom: 1px solid var(--y-border-soft); }
.y-title img { width: 16px; height: 16px; }
.y-title .t-name { font-size: 12.5px; }
.y-title .t-date { padding-left: 10px; border-left: 1px solid var(--y-border-soft); color: var(--y-muted); }
.y-title .t-gap { flex: 1; }
.y-title .y-skin { padding: 3px 10px; border-radius: 6px; color: var(--y-muted); font-size: 11.5px; cursor: pointer; }
.y-title .y-skin:hover { background: var(--y-accent-soft); color: var(--y-accent); }
.y-title .t-ctrl { display: flex; height: 100%; }
.y-title .t-ctrl i { display: grid; place-items: center; width: 40px; height: 100%; color: var(--y-muted); font-style: normal; }
.y-toolbar { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: var(--y-surface); border-bottom: 1px solid var(--y-border-soft); }
.y-mod { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 58px; padding: 5px 0 4px; border-radius: 8px; color: var(--y-muted); font-size: 11px; }
.y-mod b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; color: var(--y-accent); background: var(--y-accent-soft); box-shadow: 0 0 0 1px color-mix(in srgb, var(--y-accent) 25%, transparent) inset; }
.y-mod.on { background: var(--y-accent-soft); color: var(--y-text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--y-accent) 30%, transparent) inset; }
.y-mod.on b { color: #fff; background: linear-gradient(160deg, var(--y-accent2), var(--y-accent)); }
.y-big { margin-left: 4px; padding: 6px 12px; border-radius: 8px; font-weight: 700; color: var(--y-text); background: var(--y-surface3); box-shadow: 0 0 0 1px var(--y-border) inset; line-height: 1.3; text-align: center; }
.y-acct { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: var(--y-surface2); box-shadow: 0 0 0 1px var(--y-border-soft) inset; }
.y-acct img { width: 30px; height: 30px; border-radius: 50%; }
.y-acct b { display: block; font-size: 12px; }
.y-acct small { color: var(--y-muted); }
.y-acct small em { font-style: normal; color: var(--y-accent); text-decoration: underline dotted; }
.y-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 230px; }
.y-left { min-width: 0; display: flex; flex-direction: column; }
.y-top { flex: none; display: grid; grid-template-columns: 300px minmax(0, 1fr) 150px; gap: 8px; padding: 8px; }
.y-card { border-radius: 10px; background: var(--y-surface2); box-shadow: 0 0 0 1px var(--y-border-soft) inset; }
.y-draw { padding: 9px 12px; display: flex; flex-direction: column; gap: 6px; }
.y-draw-head { display: flex; align-items: center; gap: 6px; color: var(--y-muted); }
.y-draw-head b { color: var(--y-text); font-family: var(--mono); }
.y-draw-head .tags { margin-left: auto; display: flex; gap: 4px; }
.y-draw-head .tags i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; }
.y-draw-head .tags i.big { color: #b42318; background: #fbe4df; }
.y-draw-head .tags i.small { color: #2f5fb3; background: #e3ecfa; }
.y-draw-head .tags i.oe { color: #7a3fb0; background: #efe4fa; }
.y-draw-head .tags i.lh { color: #0f766e; background: #d9f2ec; }
.y-balls { display: flex; align-items: center; gap: 6px; }
.y-balls i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 15px var(--mono); font-style: normal; color: #fff; background: radial-gradient(circle at 35% 30%, var(--ball-a), var(--ball-b)); box-shadow: 0 5px 10px -5px var(--ball-b); }
.y-balls i.pop { animation: yPop .5s var(--ease); }
@keyframes yPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: none; opacity: 1; } }
.y-balls em { margin-left: 4px; font-style: normal; color: var(--y-muted); }
.y-next { display: flex; gap: 8px; color: var(--y-muted); }
.y-next b { color: var(--y-text); font-family: var(--mono); }
.y-count { display: flex; align-items: baseline; gap: 6px; }
.y-count span { color: var(--y-muted); }
.y-count b { font: 800 30px/1 var(--mono); color: var(--y-accent); }
.y-count b.urgent { color: var(--y-danger); }
.y-count small { color: var(--y-muted); }
.y-count .seal { margin-left: auto; align-self: center; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; color: var(--y-success); background: color-mix(in srgb, var(--y-success) 12%, transparent); }
.y-count .seal.closed { color: var(--y-danger); background: color-mix(in srgb, var(--y-danger) 12%, transparent); }
.y-center { padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
.y-checks { display: flex; flex-direction: column; gap: 4px; color: var(--y-text); }
.y-checks span::before { content: "✓"; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-right: 5px; border-radius: 3px; font-size: 9px; color: #fff; background: var(--y-accent); }
.y-checks span.off::before { content: ""; background: transparent; box-shadow: 0 0 0 1px var(--y-border) inset; }
.y-clock { display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.y-clock div { padding: 5px 9px; border-radius: 6px; background: var(--y-accent-soft); color: var(--y-accent-text); }
.y-clock b { font-family: var(--mono); font-size: 13px; }
.y-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.y-actions span { padding: 6px 0; border-radius: 7px; text-align: center; font-weight: 600; background: var(--y-surface3); box-shadow: 0 0 0 1px var(--y-border) inset; }
.y-run { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.y-start { flex: 1; display: grid; place-items: center; border-radius: 8px; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #d8654f, var(--y-danger)); }
.y-run span:not(.y-start) { padding: 7px 0; border-radius: 7px; text-align: center; font-weight: 600; background: var(--y-surface3); box-shadow: 0 0 0 1px var(--y-border) inset; }
.y-table { flex: 1; min-height: 0; margin: 0 8px 8px; overflow: hidden; border-radius: 8px; background: var(--y-surface2); box-shadow: 0 0 0 1px var(--y-border-soft) inset; }
.y-tr { display: grid; grid-template-columns: 80px 62px 52px 72px 84px minmax(0, 1fr) 70px 62px; align-items: center; min-height: 30px; padding: 3px 8px; border-bottom: 1px solid var(--y-border-soft); }
.y-tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.y-tr .r { text-align: right; }
.y-tr.th { min-height: 28px; color: var(--y-muted); background: var(--y-surface3); }
.y-tr.th .issue { color: var(--y-accent); font-weight: 700; }
.y-tr .acc { font-family: var(--mono); color: var(--y-text); }
.y-tr .bill { font-weight: 700; }
.y-tr .bal { font-family: var(--mono); font-weight: 700; color: var(--y-balance); }
.y-tr .amt { font-family: var(--mono); font-weight: 700; color: var(--y-accent); }
.y-tr .muted { color: var(--y-dim); }
.y-tr .pos { color: var(--y-success); font-family: var(--mono); font-weight: 600; }
.y-tr .neg { color: var(--y-danger); font-family: var(--mono); font-weight: 600; }
.y-tr .kind { justify-self: center; padding: 0 7px; border-radius: 5px; font-size: 11px; line-height: 18px; color: var(--y-muted); box-shadow: 0 0 0 1px var(--y-border) inset; }
.y-tr.virtual > span { color: #a99f95; opacity: .75; }
.y-tr.virtual .tag { --k: #a99f95; }
.y-tr.enter { animation: yEnter .6s var(--ease); }
@keyframes yEnter { from { background: var(--y-accent-soft); } to { background: transparent; } }
.y-tags { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.yqapp .tag { flex: none; padding: 0 6px; border-radius: 4px; font-size: 11.5px; line-height: 19px; font-family: var(--mono); color: var(--k); background: color-mix(in srgb, var(--k) 13%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent) inset; }
.tag.k-dingwei { --k: var(--k-dingwei); } .tag.k-danhao { --k: var(--k-danhao); } .tag.k-lianma { --k: var(--k-lianma); }
.tag.k-liangmian { --k: var(--k-liangmian); } .tag.k-zonghe { --k: var(--k-zonghe); } .tag.k-longhu { --k: var(--k-longhu); }
.tag.k-zuhe { --k: var(--k-zuhe); } .tag.k-sanxing { --k: var(--k-sanxing); } .tag.k-other { --k: var(--k-other); }
.y-side { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 8px 0; min-height: 0; }
.y-side-head { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; font-weight: 700; background: var(--y-surface2); box-shadow: 0 0 0 1px var(--y-border-soft) inset; }
.y-side-head small { color: var(--y-muted); font-weight: 400; }
.y-review { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px 8px 8px; border-radius: 8px; background: var(--y-surface2); box-shadow: 0 0 0 1px var(--y-border-soft) inset; overflow: hidden; }
.y-review h5 { margin: 0; font-size: 12px; color: var(--y-success); }
.y-review h5.down { color: var(--y-warn); }
.y-review .cap { color: var(--y-muted); text-align: center; }
.y-review .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.y-review .btns.two { grid-template-columns: repeat(2, 1fr); }
.y-review .btns span { padding: 4px 0; white-space: nowrap; font-size: 11px; border-radius: 6px; text-align: center; background: var(--y-surface3); box-shadow: 0 0 0 1px var(--y-border) inset; }
.y-review .btns span.p { color: #fff; background: var(--y-accent); box-shadow: none; }
.y-req { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; box-shadow: 0 0 0 1px var(--y-border-soft) inset; }
.y-req i { width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 0 1px var(--y-border) inset; }
.y-req i.on { background: var(--y-accent); box-shadow: none; }
.y-req b { font-family: var(--mono); }
.y-status { flex: none; display: flex; align-items: center; height: 28px; background: var(--y-surface); border-top: 1px solid var(--y-border-soft); color: var(--y-muted); }
.y-status span { padding: 0 12px; border-right: 1px solid var(--y-border-soft); white-space: nowrap; }
.y-status span b { color: var(--y-text); font-family: var(--mono); }
.y-status .end { margin-left: auto; border-right: 0; border-left: 1px solid var(--y-border-soft); }
.yqapp .toast { bottom: 44px; }
.yqapp.skin-night .toast { background: #1b1b33; color: #d8d8e5; box-shadow: 0 0 0 1px #2e2e52, 0 16px 40px -12px rgba(0,0,0,.6); }
.yqapp.skin-night .chip-demo { background: rgba(240,173,78,.14); color: #f0ad4e; box-shadow: 0 0 0 1px rgba(240,173,78,.35) inset; }
.yqapp.skin-night .y-draw-head .tags i { background: #23233f; }

/* 云雀页：特性卡片小图 */
.viz-balls5 { gap: 6px; align-items: center; }
.viz-balls5 i { width: 34px; height: 34px; font-size: 15px; }
.viz-balls5 .eq { font: 700 18px var(--mono); color: var(--muted); }
.viz-balls5 i.sum { background: radial-gradient(circle at 35% 30%, #d98a6a, #a84f2f 60%, #7c3720); }
.yq-plays .card { min-height: 220px; }
.viz-yq-tags { flex-wrap: wrap; gap: 6px; align-content: center; padding-left: 18px; }
.viz-yq-tags span { padding: 3px 9px; border-radius: 6px; font: 600 13px var(--mono); color: var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent) inset; }
.viz-yq-tags .k1 { --k: #0369a1; } .viz-yq-tags .k2 { --k: #0f766e; } .viz-yq-tags .k3 { --k: #a16207; } .viz-yq-tags .k4 { --k: #b91c1c; } .viz-yq-tags .k5 { --k: #15803d; } .viz-yq-tags .k6 { --k: #be185d; }
.viz-rebate { flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; padding: 0 18px; }
.viz-rebate p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.viz-rebate p b { min-width: 48px; text-align: right; font: 600 13px var(--mono); color: var(--text); }
.viz-rebate .bar { flex: 1; height: 8px; border-radius: 4px; background: #efe6d8; overflow: hidden; display: flex; }
.viz-rebate .bar i { display: block; height: 100%; background: #d6c7b2; }
.viz-rebate .bar i.new { background: var(--grad-btn); }
@media (max-width: 640px) { .viz-yq-tags { padding-left: 0; } }
