/* =========================================================
   首页头条：核心卖点（左侧功能列表 + 进度条，右侧毛玻璃演示窗口）
   约定：元素的「基础样式」就是动画的最终画面；动画只描述从哪里来。
   这样「减弱动态效果」时直接关掉动画即可看到完整结果。
   每个动画元素用行内 --at 指定在本条演示里的出场时刻。
   ========================================================= */

.fx {
  position: relative;
  min-height: clamp(660px, 90vh, 960px);
  padding: calc(var(--top-h) + 30px) var(--gutter) 176px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, #121218 0%, var(--bg) 62%);
}
.fx::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 18%, transparent);
}

/* ---------- 背景：缓慢漂移的极光、透视网格地面、颗粒 ---------- */
.fx-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx-aura i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.9; will-change: transform; }
.fx-aura i:nth-child(1) { width: 52vw; height: 52vw; right: -8vw; top: -18vw; background: radial-gradient(closest-side, rgba(232, 176, 75, 0.26), transparent); animation: auraA 22s ease-in-out infinite alternate; }
.fx-aura i:nth-child(2) { width: 40vw; height: 40vw; left: -12vw; bottom: -14vw; background: radial-gradient(closest-side, rgba(96, 128, 176, 0.18), transparent); animation: auraB 26s ease-in-out infinite alternate; }
.fx-aura i:nth-child(3) { width: 26vw; height: 26vw; right: 22vw; top: 38%; background: radial-gradient(closest-side, rgba(255, 214, 150, 0.12), transparent); animation: auraA 18s ease-in-out -6s infinite alternate-reverse; }
.fx-aura::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes auraA { to { transform: translate(-6vw, 5vw) scale(1.12); } }
@keyframes auraB { to { transform: translate(7vw, -4vw) scale(0.92); } }
.fx-floor {
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  bottom: -6%;
  height: 62%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 198, 114, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 198, 114, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(60% 70% at 62% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(60% 70% at 62% 30%, #000 10%, transparent 72%);
  animation: floorRun 9s linear infinite;
}
@keyframes floorRun { to { background-position: 0 64px, 0 0; } }

.fx-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 4.4vw, 84px);
}

/* ---------- 左侧：标题 + 功能列表 ---------- */
.fx-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.fx-copy .kick-no { font-family: var(--font-display); letter-spacing: 0.14em; font-size: 10.5px; }
.fx-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(36px, 3.6vw, 60px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fffaf0 30%, #ecd3a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.55));
  animation: rise 900ms var(--ease) both;
}
.fx-title b { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.03em; background: linear-gradient(180deg, #ffe7b0, #e0a23a); -webkit-background-clip: text; background-clip: text; color: transparent; }

.fx-tabs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; width: 100%; max-width: 600px; }
.fx-item { position: relative; padding: 0 0 0 26px; animation: rise 800ms var(--ease) both; }
.fx-item:nth-child(1) { animation-delay: 120ms; }
.fx-item:nth-child(2) { animation-delay: 190ms; }
.fx-item:nth-child(3) { animation-delay: 260ms; }
.fx-item:nth-child(4) { animation-delay: 330ms; }
.fx-rail { position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.fx-rail i { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: inherit; background: linear-gradient(180deg, #f8d58a, #e0a23a); box-shadow: 0 0 12px rgba(232, 176, 75, 0.7); }
.fx-item.is-active .fx-rail i { height: 100%; animation: fxProg var(--dur) linear both; }
@keyframes fxProg { from { height: 0; } to { height: 100%; } }
.fx.is-paused .fx-rail i { animation-play-state: paused; }

.fx-tab {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 13px 0;
  text-align: left;
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
  transition: color var(--t) var(--ease);
}
.fx-tab:hover { color: rgba(255, 255, 255, 0.72); }
.fx-item.is-active .fx-tab { color: #fbf7ef; }
.fx-no { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.3); transition: color var(--t); }
.fx-item.is-active .fx-no { color: #f3c672; }
.fx-t { text-wrap: balance; }

.fx-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms var(--ease-sheet); }
.fx-more > div { overflow: hidden; min-height: 0; padding-left: 34px; }
.fx-item.is-active .fx-more { grid-template-rows: 1fr; }
.fx-d { margin: -2px 0 12px; max-width: 520px; font-size: 13.5px; line-height: 1.75; color: rgba(255, 250, 240, 0.62); opacity: 0; transform: translateY(-4px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.fx-item.is-active .fx-d { opacity: 1; transform: none; transition-delay: 120ms; }
.fx-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  margin-bottom: 14px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1206;
  background: linear-gradient(160deg, #f8d58a, #d99a2f);
  box-shadow: 0 10px 26px -10px rgba(232, 176, 75, 0.7);
  opacity: 0;
  transition: opacity 400ms var(--ease), transform var(--t-fast) var(--ease), filter var(--t-fast);
}
.fx-item.is-active .fx-cta { opacity: 1; transition-delay: 200ms, 0s, 0s; }
.fx-cta:hover { transform: translateX(2px); filter: brightness(1.06); }
.fx-cta .i { width: 14px; height: 14px; stroke-width: 2.2; }

/* ---------- 右侧：演示窗口 ---------- */
.fx-stage { --tx: 0deg; --ty: 0deg; position: relative; perspective: 1800px; animation: fxStageIn 1200ms var(--ease-sheet) 150ms both; }
@keyframes fxStageIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } }
.fx-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 176, 75, 0.28), transparent);
  filter: blur(40px);
}
.fx-win {
  position: relative;
  height: 566px;
  border-radius: 22px;
  overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(180deg, rgba(30, 30, 38, 0.78), rgba(14, 14, 19, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotateY(calc(-7deg + var(--tx))) rotateX(calc(3deg + var(--ty)));
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-sheet);
}
.fx-stage:hover .fx-win { transform: rotateY(var(--tx)) rotateX(var(--ty)); transition-duration: 400ms; }
/* 玻璃上的一道斜高光 */
.fx-win::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%, transparent 72%, rgba(255, 220, 160, 0.05) 100%);
}
.fx-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.025); }
.fx-lights { display: flex; gap: 7px; }
.fx-lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.fx-lights i:first-child { background: rgba(232, 176, 75, 0.75); }
.fx-wtitle { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.62); }
.fx-wcta { display: none; align-items: center; gap: 2px; height: 26px; padding: 0 8px 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: #1a1206; background: linear-gradient(160deg, #f8d58a, #d99a2f); white-space: nowrap; }
.fx-wcta .i { width: 12px; height: 12px; stroke-width: 2.2; }
.fx-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.fx-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px rgba(92, 201, 138, 0.18); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(92, 201, 138, 0); } }

.fx-panes { position: absolute; inset: 46px 0 0; }
.fx-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.99);
  filter: blur(6px);
  transition: opacity 420ms var(--ease), transform 520ms var(--ease), filter 420ms var(--ease), visibility 0s linear 420ms;
}
.fx-pane.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity 520ms var(--ease) 80ms, transform 620ms var(--ease) 80ms, filter 520ms var(--ease) 80ms, visibility 0s; }
.fx-pane > * { flex-shrink: 0; }
.fx-empty { margin: auto; color: var(--text-3); font-size: 13px; }

/* 通用出场：动画元素默认就是最终状态 */
.fx-pane.is-active .fx-in { animation: fxIn 560ms var(--ease) var(--at, 0s) both; }
.fx-pane.is-active .fx-pop { animation: fxPop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--at, 0s) both; }
.fx-out { opacity: 0; }
.fx-pane.is-active .fx-out { animation: fxOut 400ms var(--ease) var(--at, 0s) both; }
@keyframes fxIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes fxPop { from { opacity: 0; transform: scale(0.6); } }
@keyframes fxOut { from { opacity: 1; } to { opacity: 0; } }
.fx.is-paused .fx-pane *, .fx.is-paused .fx-pane *::before, .fx.is-paused .fx-pane *::after { animation-play-state: paused !important; }

/* 演示里通用的书目行 */
.fx-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); }
.fx-row .cover { flex: none; width: 36px; }
.fx-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.fx-row-main b { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row-main span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row-main em { font-style: normal; color: var(--text-2); }
.fx-row-kv { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.fx-row-kv span { font-size: 10.5px; color: var(--text-3); }
.fx-row-kv b { font-size: 15px; font-weight: 650; color: var(--text); }

/* ---------- 演示 1：组合筛选漏斗 ---------- */
.d1-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 44px; }
.d1-steps { position: relative; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 6px; min-width: 0; flex: 1; }
.d1-step { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #f3c672; background: rgba(232, 176, 75, 0.12); border: 1px solid rgba(232, 176, 75, 0.38); white-space: nowrap; }
.d1-step.is-exc { color: #f59a92; background: rgba(240, 113, 103, 0.1); border-color: rgba(240, 113, 103, 0.36); }
.d1-step-hint { position: absolute; left: 0; bottom: 4px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); pointer-events: none; }
.d1-step-hint .i { width: 14px; height: 14px; color: #f3c672; }
.d1-count { display: flex; align-items: baseline; gap: 8px; flex: none; }
.d1-k, .d1-u { font-size: 12px; color: var(--text-3); }
.d1-nums { display: inline-grid; text-align: right; }
.d1-nums span {
  grid-area: 1 / 1;
  justify-self: end;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, #e8cf9c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}
.d1-nums span.last { opacity: 1; }
.fx-pane.is-active .d1-nums span { animation: numStep var(--len) var(--ease) var(--at) both; }
.fx-pane.is-active .d1-nums span.last { animation: numIn 620ms var(--ease) var(--at) both; }
@keyframes numStep {
  0% { opacity: 0; transform: translateY(45%); filter: blur(5px); }
  16%, 84% { opacity: 1; transform: none; filter: none; }
  100% { opacity: 0; transform: translateY(-45%); filter: blur(5px); }
}
@keyframes numIn { from { opacity: 0; transform: translateY(45%); filter: blur(5px); } }

.d1-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: radial-gradient(70% 90% at 50% 50%, rgba(232, 176, 75, 0.06), transparent 70%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 112px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.tg { position: relative; display: inline-flex; align-items: center; gap: 5px; height: calc(var(--fs) + 14px); padding: 0 calc(var(--fs) * 0.7); border-radius: 999px; font-size: var(--fs); color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.07); isolation: isolate; }
.fx-pane.is-active .tg { animation: fxPop 480ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 32ms) both; }
.tg b { font-weight: 500; }
.tg em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.tg::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; }
.tg.inc { color: #1a1206; border-color: transparent; }
.tg.inc::before { opacity: 1; background: linear-gradient(160deg, #f8d58a, #d99a2f); box-shadow: 0 0 24px rgba(232, 176, 75, 0.55); }
.tg.inc b { font-weight: 700; }
.tg.exc { color: #f59a92; border-color: rgba(240, 113, 103, 0.45); }
.tg.exc::before { opacity: 1; background: rgba(240, 113, 103, 0.1); }
.tg.exc b { text-decoration: line-through; text-decoration-thickness: 2px; }
.fx-pane.is-active .tg.inc::before, .fx-pane.is-active .tg.exc::before { animation: fxShowBg 420ms var(--ease) var(--at) both; }
.fx-pane.is-active .tg.inc, .fx-pane.is-active .tg.exc { animation: fxPop 480ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 32ms) both, tgHit 520ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--at) both; }
.fx-pane.is-active .tg.inc em, .fx-pane.is-active .tg.exc em { animation: fxPop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--at) both; }
@keyframes fxShowBg { from { opacity: 0; } }
@keyframes tgHit { from { color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.07); } 50% { transform: scale(1.14); } }

.d1-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.d1-rk { flex: none; width: 30px; font-size: 11.5px; color: var(--text-3); }
.d1-pills { display: flex; gap: 6px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.d1-pill { position: relative; flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); }
.d1-pill.on { color: #f7d692; background: rgba(232, 176, 75, 0.16); border-color: rgba(232, 176, 75, 0.5); box-shadow: 0 0 18px -4px rgba(232, 176, 75, 0.5); }
.fx-pane.is-active .d1-pill.on { animation: pillOn 460ms var(--ease) var(--at) both; }
@keyframes pillOn { from { color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.07); box-shadow: none; } }
.d1-and { flex: none; margin-left: auto; font-size: 11px; font-weight: 700; color: #1a1206; padding: 3px 9px; border-radius: 6px; background: linear-gradient(160deg, #f8d58a, #d99a2f); }
.d1-res { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* ---------- 演示 2：竞争度 ---------- */
.d2-list { display: flex; flex-direction: column; gap: 9px; }
.d2-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); isolation: isolate; }
.d2-row::after { content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; pointer-events: none; }
.d2-row.is-hot::after { background: rgba(10, 10, 13, 0.5); }
.d2-row.is-blue { border-color: rgba(232, 176, 75, 0.55); background: linear-gradient(90deg, rgba(232, 176, 75, 0.12), rgba(232, 176, 75, 0.03)); box-shadow: 0 0 34px -10px rgba(232, 176, 75, 0.55); }
.fx-pane.is-active .d2-row.is-hot::after { animation: fxShowBg 600ms var(--ease) 3.4s both; }
.fx-pane.is-active .d2-row.is-blue { animation: fxIn 560ms var(--ease) var(--at) both, blueOn 700ms var(--ease) 3.4s both; }
@keyframes blueOn { from { border-color: rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.035); box-shadow: none; } }
.d2-row .cover { width: 36px; }
.d2-stats { display: flex; gap: 6px; }
.d2-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 5px 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.d2-stat i { font-style: normal; font-size: 10px; color: var(--text-3); white-space: nowrap; }
.d2-stat b { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
.d2-stat.zero b { color: #f3c672; }
.d2-verdict {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: -9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #f59a92;
  background: #2a1716;
  border: 1px solid rgba(240, 113, 103, 0.4);
}
.d2-verdict .i { width: 12px; height: 12px; }
.is-blue .d2-verdict { color: #1a1206; background: linear-gradient(160deg, #f8d58a, #d99a2f); border-color: transparent; box-shadow: 0 6px 18px -6px rgba(232, 176, 75, 0.8); }
.fx-pane.is-active .d2-verdict { animation: stamp 560ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--at) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } }
.d2-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12.5px; color: var(--text-2); }
.d2-foot .i { width: 15px; height: 15px; color: #f3c672; flex: none; }

/* ---------- 演示 3：AI 批量精读 ---------- */
.d3-top { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.d3-basket { display: flex; padding: 5px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.14); }
.d3-fly { display: block; margin-left: -8px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.d3-fly:first-child { margin-left: 0; }
.d3-fly .cover { width: 26px; }
.fx-pane.is-active .d3-fly { animation: fly 700ms var(--ease-sheet) var(--at) both; }
@keyframes fly { from { opacity: 0; transform: translate(-30px, -36px) rotate(-18deg) scale(0.6); } }
.d3-mode { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #f3c672; background: rgba(232, 176, 75, 0.12); border: 1px solid rgba(232, 176, 75, 0.32); white-space: nowrap; }
.d3-mode .i { width: 14px; height: 14px; }
.d3-status { position: relative; display: grid; margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.d3-status > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.d3-status .i { width: 14px; height: 14px; }
.d3-status .a { opacity: 0; }
.d3-status .a .i { color: #f3c672; }
.d3-status .b .i { color: var(--pos); }
.fx-pane.is-active .d3-status .a { animation: numStep var(--len) var(--ease) var(--at) both; }
.fx-pane.is-active .d3-status .a .i { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.d3-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 14px; flex: 1; min-height: 0; }
.d3-table { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.d3-th, .d3-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 178px; align-items: center; gap: 10px; }
.d3-th { padding: 0 10px 4px; white-space: nowrap; overflow: hidden; font-size: 10.5px; color: var(--text-3); letter-spacing: 0.04em; }
.d3-row { height: 56px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.055); }
.d3-row:first-of-type { border-color: rgba(232, 176, 75, 0.4); background: rgba(232, 176, 75, 0.07); }
.d3-no { font-size: 12px; font-weight: 700; color: var(--text-3); }
.d3-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.d3-name b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d3-res { position: relative; display: grid; align-items: center; height: 100%; }
.d3-res > span { grid-area: 1 / 1; }
.d3-bar { display: flex; flex-direction: column; gap: 4px; opacity: 0; }
.fx-pane.is-active .d3-bar { animation: fxOut 260ms var(--ease) var(--at2) both; }
.d3-bar i { display: block; height: 4px; width: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(232, 176, 75, 0.35), #f3c672); box-shadow: 0 0 10px rgba(232, 176, 75, 0.5); transform-origin: left; }
.fx-pane.is-active .d3-bar i { animation: barFill 1200ms cubic-bezier(0.4, 0, 0.2, 1) var(--at) both; }
@keyframes barFill { from { transform: scaleX(0); } }
.d3-bar em { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.d3-out { display: flex; align-items: center; gap: 10px; }
.d3-out b { font-size: 16px; font-weight: 700; }
.d3-out small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.d3-fmt { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 6px; color: var(--text-2); background: rgba(255, 255, 255, 0.06); white-space: nowrap; }

.d3-card { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(232, 176, 75, 0.1), rgba(255, 255, 255, 0.03) 50%); border: 1px solid rgba(232, 176, 75, 0.3); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9); }
.fx-pane.is-active .d3-card { animation: cardIn 700ms var(--ease-sheet) var(--at) both; }
@keyframes cardIn { from { opacity: 0; transform: translateX(28px) scale(0.96); } }
.d3-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.d3-card-head b { font-family: var(--font-serif); font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d3-radar { display: grid; place-items: center; margin: -6px -10px -10px; }
.d3-radar .radar { width: 92%; max-width: 250px; height: auto; }
.d3-radar .radar .lbl { font-size: 12.5px; }
.fx-pane .d3-radar .radar .shape, .fx-pane .d3-radar .radar .pt { animation: none; }
.fx-pane.is-active .d3-radar .radar .shape { animation: radarIn 900ms var(--ease-sheet) var(--at) both; }
.fx-pane.is-active .d3-radar .radar .pt { animation: fxShowBg 400ms var(--ease) calc(var(--at) + 0.5s) both; }
.d3-line { font-family: var(--font-serif); font-size: 12.5px; line-height: 1.65; color: rgba(255, 250, 240, 0.84); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.d3-export { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-top: auto; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: #1a1206; background: linear-gradient(160deg, #f8d58a, #d99a2f); box-shadow: 0 0 0 0 rgba(232, 176, 75, 0.5); }
.d3-export .i { width: 13px; height: 13px; }
.fx-pane.is-active .d3-export { animation: fxPop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--at) both, glowRing 1.6s ease-out calc(var(--at) + 0.4s) 2; }
@keyframes glowRing { from { box-shadow: 0 0 0 0 rgba(232, 176, 75, 0.55); } to { box-shadow: 0 0 0 12px rgba(232, 176, 75, 0); } }

/* ---------- 演示 4：一句话找书 ---------- */
.d4-box { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 18px; border-radius: 999px; background: rgba(8, 8, 11, 0.6); border: 1px solid rgba(232, 176, 75, 0.45); box-shadow: 0 0 0 5px rgba(232, 176, 75, 0.08), 0 20px 50px -24px rgba(232, 176, 75, 0.4); }
.d4-ic { width: 19px; height: 19px; color: #f3c672; flex: none; }
.d4-text { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 17px; color: #f5f3ee; white-space: nowrap; overflow: hidden; }
.d4-c { display: inline-block; max-width: 2em; overflow: hidden; vertical-align: bottom; }
.fx-pane.is-active .d4-c { animation: typeIn 1ms linear var(--at) both; }
@keyframes typeIn { from { max-width: 0; } }
.d4-hl { display: inline-flex; border-radius: 4px; color: #f7d692; background: linear-gradient(0deg, rgba(232, 176, 75, 0.28), rgba(232, 176, 75, 0.28)) no-repeat 0 100% / 100% 2px; }
.fx-pane.is-active .d4-hl { animation: hlOn 380ms var(--ease) var(--at) both; }
@keyframes hlOn { from { color: #f5f3ee; background-size: 0 2px; } }
.d4-caret { width: 2px; height: 22px; margin-left: 3px; border-radius: 1px; background: #f3c672; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.d4-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; color: #1a1206; background: linear-gradient(160deg, #f8d58a, #d99a2f); }
.d4-go .i { width: 17px; height: 17px; }
.d4-parse { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 30px; }
.d4-k { font-size: 12px; color: var(--text-3); margin-right: 2px; }
.d4-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #f7d692; background: rgba(232, 176, 75, 0.14); border: 1px solid rgba(232, 176, 75, 0.42); }
.d4-chip .i { width: 12px; height: 12px; opacity: 0.6; }
.d4-sum { font-size: 13px; color: var(--text-2); }
.d4-sum b { font-size: 26px; font-weight: 700; margin: 0 3px; color: #fff; letter-spacing: -0.03em; }
.d4-sum span { color: var(--text-3); font-size: 12px; }
.d4-res { display: flex; flex-direction: column; gap: 8px; }
.d4-note { display: flex; align-items: center; gap: 7px; margin-top: auto; font-size: 12px; color: var(--text-3); }
.d4-note .i { width: 13px; height: 13px; color: #f3c672; }

/* ---------- 窗口变窄时 ---------- */
@container (max-width: 660px) {
  .d3-body { grid-template-columns: minmax(0, 1fr) 216px; }
  .d3-th, .d3-row { grid-template-columns: 16px minmax(0, 1fr) 92px; gap: 8px; }
  .d3-fmt { display: none; }
  .d3-th span:last-child { font-size: 0; }
  .d3-th span:last-child::after { content: "评级 · 综合分"; font-size: 10.5px; }
}
@container (max-width: 540px) {
  .d2-stat { min-width: 42px; }
  .d2-stat:nth-child(3) { display: none; }
  .d3-body { grid-template-columns: 1fr; }
  .d3-card { position: absolute; left: 22%; right: 0; bottom: 0; top: 46px; z-index: 2; background: linear-gradient(180deg, rgba(48, 38, 22, 0.97), rgba(20, 20, 26, 0.97)); }
  .d3-th, .d3-row { grid-template-columns: 16px minmax(0, 1fr) 92px; }
  .d1-nums span { font-size: 34px; }
  .d4-text { font-size: 15px; }
}
@container (max-width: 440px) {
  .fx-pane { padding: 16px 14px; gap: 11px; }
  .d1-steps { display: none; }
  .d1-head { justify-content: flex-end; min-height: 44px; }
  .d1-cloud { max-height: 112px; padding: 10px 8px; }
  .d2-stat:nth-child(2) { display: none; }
  .d2-list { gap: 8px; }
  .d2-row { padding: 7px 10px 7px 7px; }
  .d2-foot { font-size: 11.5px; align-items: flex-start; }
  .d3-mode { display: none; }
  .d3-th, .d3-row { grid-template-columns: 14px minmax(0, 1fr) 116px; gap: 8px; }
  .d3-fmt { display: none; }
  .d3-card { left: 8%; gap: 6px; }
  .d3-radar .radar { width: 58%; }
  .tg { font-size: calc(var(--fs) - 1.5px); }
  .tg:nth-child(-n+4), .tg:nth-last-child(-n+4) { display: none; }
  .d1-res .fx-row:nth-child(n+3) { display: none; }
  .d3-row { height: 50px; }
  .fx-row-kv span { display: none; }
}

@media (max-width: 1280px) {
  .fx-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
@media (max-width: 1100px) {
  .fx { padding-bottom: 160px; }
  .fx-inner { grid-template-columns: 1fr; gap: 30px; }
  .fx-copy { align-items: stretch; }
  .fx-tabs { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
  .fx-more { display: none; }
  .fx-wcta { display: inline-flex; }
  .fx-win { transform: none; height: 540px; }
  .fx-stage:hover .fx-win { transform: none; }
}
@media (max-width: 760px) {
  .fx { min-height: 0; padding: calc(var(--top-h) + 18px) var(--gutter) 130px; }
  .fx-title { font-size: 30px; }
  .fx-copy { gap: 14px; }
  .fx-tabs { grid-template-columns: 1fr; }
  .fx-tab { padding: 9px 0; font-size: 14.5px; }
  .fx-item:not(.is-active) .fx-tab { font-size: 13.5px; }
  .fx-win { height: 500px; border-radius: 18px; }
  .fx-bar { height: 40px; padding: 0 14px; }
  .fx-panes { inset: 40px 0 0; }
  .fx-live { display: none; }
  .fx-floor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-aura i, .fx-floor, .fx-title, .fx-item, .fx-stage, .fx-live i, .d4-caret { animation: none !important; }
  .fx-pane *, .fx-pane *::before, .fx-pane *::after { animation: none !important; }
  .fx-item.is-active .fx-rail i { animation: none; height: 100%; }
  .fx-win, .fx-stage:hover .fx-win { transform: none; }
}
