/* ============================================================
   PF3 STUDIO v3 · 样式
   深色影调界面 · 佳能红点缀
   ============================================================ */

:root {
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #14171c;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ebef;
  --muted: #8b929c;
  --dim: #5f6670;
  --faint: #4c525b;
  --accent: #e6002d;
  --accent-2: #ff4d63;
  --accent-soft: rgba(230, 0, 45, 0.13);
  --ok: #3ddc97;
  --warn: #ffb020;
  --web: #5b9dff;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 620px at 6% -12%, rgba(230, 0, 45, 0.10), transparent 62%),
    radial-gradient(1000px 700px at 104% -4%, rgba(70, 110, 255, 0.07), transparent 62%),
    radial-gradient(900px 520px at 50% 122%, rgba(255, 255, 255, 0.035), transparent 62%);
}

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; }

.app { position: relative; z-index: 1; height: 100vh; }

/* ============================================================
   启动页 · 选择机型
   ============================================================ */

.model-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 40px 20px;
  position: relative;
  overflow: auto;
  background:
    radial-gradient(1400px 820px at 50% -10%, rgba(150, 165, 190, 0.10), transparent 70%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.26) 100%),
    linear-gradient(180deg, #171b21 0%, #14181e 55%, #12161b 100%);
}

.model-glow {
  position: absolute;
  left: 50%;
  top: -220px;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(230, 0, 45, 0.08), transparent 65%);
  pointer-events: none;
  filter: blur(30px);
}

.model-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 9px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), #6d0016);
  box-shadow: 0 0 18px rgba(230, 0, 45, 0.55);
}

.brand-name { font-size: 15px; letter-spacing: 0.2em; font-weight: 600; }
.brand-name em { font-style: normal; color: var(--muted); font-weight: 400; }
.brand-ver { font-size: 10.5px; color: var(--faint); letter-spacing: 0.16em; }

.model-inner {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 0 30px;
}

.model-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.model-brand::before {
  content: "";
  position: absolute;
  inset: -26px -44px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 72%);
  filter: blur(10px);
}
/* 品牌字标：使用设计稿透明字标图片 */
.model-wordmark {
  display: block;
  height: clamp(72px, 13vh, 150px);
  width: auto;
  max-width: min(84vw, 1100px);
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
  user-select: none;
  pointer-events: none;
}

/* 左上角品牌 logo：与主页面保持一致，不加描边 */
.brand-logo {
  display: block;
  height: 24px;
  width: auto;
}

.model-title { font-size: 42px; font-weight: 600; letter-spacing: 0.02em; }

.model-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

/* 机型选择：左侧类型 · 右侧机型 */
.model-select {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-tabs { display: flex; gap: 8px; width: 100%; }
.cat-tabs .cat-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: 0.2s;
}
.cat-tabs .cat-item:hover { border-color: rgba(255, 255, 255, 0.22); }
.cat-tabs .cat-item.active {
  border-color: rgba(230, 0, 45, 0.6);
  background: linear-gradient(180deg, rgba(230, 0, 45, 0.16), rgba(230, 0, 45, 0.05));
  box-shadow: 0 10px 24px -14px rgba(230, 0, 45, 0.8);
}
.cat-tabs .cat-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  color: var(--muted);
  transition: color 0.2s;
}
.cat-tabs .cat-item.active .cat-icon { color: var(--accent-2); }
.cat-tabs .cat-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  text-align: left;
}
.cat-tabs .cat-item-text strong { font-size: 13px; font-weight: 600; }

.cat-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016));
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.cat-item:hover { border-color: rgba(255, 255, 255, 0.22); }
.cat-item.active {
  border-color: rgba(230, 0, 45, 0.4);
  background: linear-gradient(120deg, rgba(230, 0, 45, 0.11), rgba(255, 255, 255, 0.02) 72%);
  box-shadow: 0 18px 40px -30px rgba(230, 0, 45, 0.5), inset 0 0 0 1px rgba(230, 0, 45, 0.05);
}

.cat-item .cat-icon { flex: none; width: 34px; height: 34px; color: #cbd1da; transition: color 0.25s; }
.cat-item .cat-icon svg { width: 100%; height: 100%; }
.cat-item.active .cat-icon { color: var(--accent-2); }

.cat-item-text { display: flex; flex-direction: column; line-height: 1.32; min-width: 0; }
.cat-item-text strong { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.cat-item-text em { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }

.cat-item-count { margin-left: auto; flex: none; font-size: 10px; color: var(--faint); letter-spacing: 0.08em; }
.cat-item.active .cat-item-count { color: var(--accent-2); }

/* 右侧机型面板 */
.model-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow: 0 24px 60px -46px rgba(0, 0, 0, 0.85);
}

.model-panel-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.model-panel-title { display: flex; flex-direction: column; line-height: 1.3; }
.model-panel-title strong { font-size: 15px; font-weight: 600; }
.model-panel-title span { font-size: 9.5px; color: var(--faint); letter-spacing: 0.08em; }
.model-panel-count { margin-left: auto; font-size: 9.5px; color: var(--accent-2); letter-spacing: 0.1em; }

.model-panel.swap .model-chips { animation: chipIn 0.3s ease both; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.model-chips {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 24px 16px;
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 0;
  padding: 6px 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s ease, background-color 0.18s ease;
  will-change: transform;
}
.model-card.hot {
  border-color: rgba(230, 0, 45, 0.35);
}

.model-pic {
  flex: 0 0 64px;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  transition: color 0.2s;
}
.model-pic img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.5));
}
.model-pic svg { width: 36px; height: 36px; }
.model-card:hover .model-pic { color: var(--accent-2); }

.model-name {
  max-width: 100%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.model-card:hover .model-name { color: #fff; }

/* ============================================================
   主界面 · 顶栏
   ============================================================ */

.workspace {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 18px 14px;
}

/* 右上角纯白柔光：溢出页面右侧自然消失，用遮罩向下渐隐，不进入预设区 */
.workspace::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 780px;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(52% 58% at 68% 34%, rgba(255, 255, 255, 0.05), transparent 74%),
    radial-gradient(40% 46% at 82% 26%, rgba(255, 255, 255, 0.032), transparent 76%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 34%, transparent 58%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 34%, transparent 58%);
}
.workspace > * { position: relative; z-index: 1; }



.topbar {
  position: relative;
  flex: 0 0 96px;
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.model-box {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 14px;
}

.model-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  max-width: 340px;
  padding: 0;
  border: none;
  background: none;
  transition: 0.2s;
}
.model-chip:hover .chip-name { color: var(--accent-2); }

.chip-icon {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-icon svg { width: 48px; height: 48px; }
.chip-icon.has-photo { background: transparent; }
.chip-photo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.chip-name {
  margin-top: -15px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-change {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(230, 0, 45, 0.38);
  background: linear-gradient(180deg, rgba(230, 0, 45, 0.18), rgba(230, 0, 45, 0.05) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ff8b9b;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  transition: 0.2s;
}
.chip-change:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(230, 0, 45, 0.9);
}

.tabs {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(28, 28, 31, 0.96), rgba(14, 14, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px -22px rgba(0, 0, 0, 1);
  font-family: -apple-system, "SF Pro Text", "Noto Sans SC", "Segoe UI Variable Text",
    "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
}

.tab {
  position: relative;
  z-index: 1;
  padding: 9px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #cfd2d9;
  transition: color 0.2s;
}
.tab:hover { color: #ffffff; }
.tab.active { color: #ffffff; font-weight: 700; }

.tab-ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  height: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff2f4e 0%, #d40025 100%);
  opacity: 1;
  box-shadow:
    0 8px 18px -10px rgba(230, 0, 45, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: left 0.32s cubic-bezier(0.22, 0.9, 0.24, 1), width 0.32s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* 主界面左上角品牌 logo */
.top-logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  display: flex;
  align-items: center;
  padding-left: 0;
  margin-top: 18px;
  margin-left: 8px;
}
.top-logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* 样片竖向列表（预览区左侧） */
.sample-rail {
  grid-column: 1;
  grid-row: 2 / 4;
  margin: 4px 0 10px;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 5px;
  min-height: 0;
  padding: 6px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

/* 缩略图滚动区：两列整体上下滚动，一个滚动条 */
.rail-scroll {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 5px;
  padding: 2px 2px 2px 1px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.rail-scroll::-webkit-scrollbar { width: 7px; }
.rail-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 4px;
  margin: 2px 0;
}
.rail-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 4px;
}
.rail-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.58); }

.rail-label {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #aeb6c1;
  text-align: center;
  margin-top: 6px;
}

/* 对比 / 全局预览切换 */
.rail-view {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.rail-view-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #b7bec8;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rail-view-btn:hover { color: #f2f4f7; background: rgba(255, 255, 255, 0.06); }
.rail-view-btn.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(230, 0, 45, 0.92), rgba(190, 0, 37, 0.92));
  box-shadow: 0 2px 10px -4px rgba(230, 0, 45, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sample-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: 0.2s;
}
.sample-item:hover { background: rgba(255, 255, 255, 0.04); }

.sample-thumb {
  width: var(--sample-thumb, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  opacity: 0.62;
  transform-origin: center center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s, box-shadow 0.2s;
}
.sample-item:hover .sample-thumb {
  transform: scale(1.09);
  opacity: 1;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.9);
}
.sample-item.active .sample-thumb {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(230, 0, 45, 0.16);
}

.sample-scene {
  max-width: 100%;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.25;
  color: #b9c0ca;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-item.active .sample-scene { color: var(--accent-2); }

/* ============================================================
   预设 Cover Flow
   ============================================================ */

.preset-deck {
  position: relative;
  flex: 0 0 166px;
  height: 166px;
}

/* 预设图标区两个角标：排序切换在左上，提示词在左下 */
.deck-tools {
  position: absolute;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.deck-hint {
  position: absolute;
  left: 26px;
  bottom: -15px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #eef1f5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

/* 预设数量 / 机内位置注释：位于预设框右下角外侧 */
.deck-note {
  position: absolute;
  right: 26px;
  bottom: -15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(238, 241, 245, 0.82);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  pointer-events: none;
}

/* 排序方式切换 */
.sort-toggle {
  position: absolute;
  top: -16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: auto;
}

.sort-btn {
  padding: 3px 20px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c3c9d3;
  transition: color 0.18s, background 0.18s;
}
.sort-btn:hover { color: #fff; }
.sort-btn.active {
  color: #fff;
  background: rgba(230, 0, 45, 0.55);
}

/* 排序切换右侧的说明：排名方向 */
.sort-toggle::after {
  content: "排名顺序从左往右";
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(200, 206, 216, 0.75);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.cf-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 26px;
  perspective: 1500px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.cf-stage.dragging { cursor: grabbing; }

.cf-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 640px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  pointer-events: none;
}

.cf-track { position: absolute; inset: 0; transform-style: preserve-3d; }

.cf-item {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.cf-stage.dragging .cf-item { transition: opacity 0.2s; }

.cf-card {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cf-item:not(.active) .cf-card { filter: brightness(0.78) saturate(0.85); }
.cf-item.active .cf-card {
  border-color: rgba(255, 77, 99, 0.85);
  box-shadow: 0 24px 46px -18px rgba(0, 0, 0, 1), 0 0 28px rgba(230, 0, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cf-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s; }
.cf-thumb.loaded { opacity: 1; }

.cf-label {
  max-width: 128px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px #000;
  transition: color 0.3s;
}
.cf-item.active .cf-label { color: #fff; font-weight: 600; }

.cf-nav {
  position: absolute;
  top: 77px;
  z-index: 60;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 16, 20, 0.82);
  color: #cfd4dc;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: 0.2s;
}
.cf-nav:hover {
  color: #fff;
  border-color: rgba(230, 0, 45, 0.6);
  box-shadow: 0 0 18px rgba(230, 0, 45, 0.22);
}
.cf-nav.prev { left: max(10px, calc(50% - 372px)); }
.cf-nav.next { right: max(10px, calc(50% - 372px)); }


/* ============================================================
   预设程序坞（仿 macOS Dock）
   ============================================================ */

.dock {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: visible;
  user-select: none;
  touch-action: pan-y;
}

/* 程序坞玻璃底板（同时包住图标与下方名称） */
.dock::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: calc(var(--dock-icon, 60px) * 1.48 + 58px);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 50px -26px #000, inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.dock-track { position: absolute; inset: 0; }

.dock-item {
  position: absolute;
  left: 0;
  bottom: 52px;
  width: var(--dock-icon, 60px);
  height: var(--dock-icon, 60px);
  padding: 0;
  background: none;
  display: block;
  cursor: pointer;
  will-change: transform;
}

/* 已收藏的预设：图标右上角的金色星形徽章（发光，跟随图标缩放移动） */
.dock-item.is-fav::after {
  content: "★";
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 6;
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: #5a3400;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffbe0 0%, #ffe073 34%, #ffc22e 64%, #e79a10 100%);
  border: 1px solid rgba(52, 32, 0, 0.72);
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.3),
    0 0 7px rgba(255, 206, 80, 0.95),
    0 0 15px rgba(255, 176, 40, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.65);
  transform: translate(var(--fav-dx, 0px), var(--fav-dy, 0px));
  scale: 1;
  transition: scale 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.18s;
  pointer-events: none;
}
/* 悬停到该预设：星标随图标放大轻轻“点亮”一下 */
.dock-item.is-fav.hot::after {
  scale: 1.16;
}

.dock-card {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--dock-icon, 60px) * 0.23);
  overflow: hidden;
  background: #15171b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-origin: 50% 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dock-item.hot .dock-card {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 18px 30px -16px rgba(0, 0, 0, 0.95);
}
.dock-item.active .dock-card {
  border-color: rgba(255, 64, 88, 0.98);
  box-shadow: 0 0 0 1.5px rgba(255, 64, 88, 0.55), 0 0 20px rgba(230, 0, 45, 0.5),
    0 18px 32px -14px #000;
}

/* 未选中的图标压暗，选中的保持全亮，视线一眼能落到当前预设 */
.dock-item:not(.active) .dock-card { opacity: 0.52; transition: opacity 0.2s; }
.dock-item:not(.active).hot .dock-card { opacity: 1; }

/* 胶片盒图标：不套外框，直接展示 3D 卡片本身 */
.dock-item.is-art .dock-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}
.dock-item.is-art .dock-thumb { object-fit: contain; }
.dock-item.is-art.hot .dock-card,
.dock-item.is-art.active .dock-card {
  border-color: transparent;
  box-shadow: none;
}
.dock-item.is-art.hot .dock-thumb {
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.4));
}
.dock-item.is-art.active .dock-thumb {
  filter: drop-shadow(0 0 5px rgba(255, 60, 88, 0.95)) drop-shadow(0 0 16px rgba(230, 0, 45, 0.7)) brightness(1.04);
}

.dock-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.dock-thumb.loaded { opacity: 1; }

/* 每个预设图标下方的常驻名称 */
.dock-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: var(--dock-slot, 100%);
  transform: translateX(-50%);
  transform-origin: 50% 0;
  text-align: center;
  font-family: "PingFang SC", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0;
  color: #c2c9d3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  pointer-events: none;
  transition: color 0.2s;
}
.dock-item.active .dock-label {
  color: #ff5a6e;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(230, 0, 45, 0.5);
}

/* ============================================================
   预览区
   ============================================================ */

.preview-view {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) minmax(0, 1fr) 264px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 6px;
  padding-bottom: 8px;
  overflow-x: visible;
}

/* 底部 · 版权与正版提醒 */
.app-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  /* 抵消工作区左右/底部内边距，让页脚铺满整个界面底部 */
  margin: 8px -18px -14px;
  padding: 8px 18px 10px;
}
.foot-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 导入页底部版权：与预览页页脚同样的两行居中 */
.imp-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

/* 页脚：版权在上放大，其余注释在下，整体底部居中 */
.foot-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.foot-copy {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c9d0da;
}
.foot-tips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 9px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #8f98a4;
}
.foot-sep { color: rgba(255, 255, 255, 0.24); }

/* 右侧列：预设介绍 + 预设文件获取，整体上移并随内容收缩 */
.side-col {
  grid-column: 4;
  grid-row: 2 / 4;
  position: relative;
  top: 14px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

/* 预设介绍面板正下方的获取预设入口 · 主行动按钮 */
/* 介绍面板下方：收藏 / 文件获取 两个等宽按钮 */
.side-actions {
  display: flex;
  gap: 10px;
  align-self: stretch;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.side-actions > button {
  flex: 1 1 0;
  min-width: 0;
}

/* 预设介绍下方两个入口：经典纯红胶囊（无渐变、无玻璃效果） */
.side-get,
.side-fav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: -apple-system, "SF Pro Text", "SF Pro Display", "Noto Sans SC",
    "PingFang SC", "Segoe UI Variable Text", "Microsoft YaHei UI", system-ui, sans-serif;
  transition: background-color 0.18s ease, transform 0.34s cubic-bezier(0.22, 1.3, 0.36, 1), box-shadow 0.3s ease;
  box-shadow: 0 8px 18px -14px rgba(230, 0, 45, 0.65);
  -webkit-tap-highlight-color: transparent;
}
/* 悬停：整个按钮像顶部预设图标一样放大并轻微上浮 */
.side-get:hover,
.side-fav:hover {
  background: #f2113b;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 30px -16px rgba(230, 0, 45, 0.8);
}
.side-get:active,
.side-fav:active {
  background: #c60027;
  transform: translateY(0) scale(0.96);
  transition-duration: 0.1s;
}

/* 图标：直接平铺在按钮内，不再套圆框 */
.side-get .foot-get-icon,
.side-fav .side-fav-icon {
  flex: none;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  background: none;
  color: #ffffff;
}
.side-get .foot-get-icon svg,
.side-fav .side-fav-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}
/* 预设文件获取：线形文件夹 + 内部线形下载箭头 */
.side-get .foot-get-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}
.side-get .foot-get-icon svg { fill: none; }
/* 收藏：星号为线性，收藏后由 .on 规则填充成黄色 */
.side-fav .side-fav-icon svg { fill: none; }

.side-get .foot-get-text,
.side-fav .foot-get-text { align-items: center; }
.side-get .foot-get-text strong,
.side-fav .foot-get-text strong {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #ffffff;
}

/* 已收藏：底板与未收藏保持一致，只把星号点亮成黄色实心 */
.side-fav.on .side-fav-icon { color: #f0a800; }
.side-fav.on .side-fav-icon svg { fill: currentColor; }

.foot-get-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(230, 0, 45, 0.2);
  color: #ff9aa8;
}
.foot-get-icon svg { width: 14px; height: 14px; }
.foot-get-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}
.foot-get-text strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.foot-get-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* 微信获取预设弹窗 */
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.wx-card {
  position: relative;
  width: 360px;
  padding: 26px 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #171a20, #101216);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  text-align: center;
  animation: wxIn 0.2s ease-out;
}
.wx-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfd5dd;
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.18s, background 0.18s;
}
.wx-close:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.wx-close svg { width: 13px; height: 13px; }
.wx-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(7, 193, 96, 0.4);
  background: rgba(7, 193, 96, 0.1);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #5fe3a1;
}
.wx-card h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.wx-sub { margin-top: 8px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
/* 有收藏预设时：弹窗向左扩出一栏 */
.wx-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wx-card.with-favs {
  width: 664px;
  height: 512px;
  max-height: 88vh;
  padding: 24px;
  display: flex;
  gap: 22px;
  align-items: stretch;
  text-align: left;
}
.wx-favs-panel { display: none; }
.wx-card.with-favs .wx-favs-panel {
  display: flex;
  flex-direction: column;
  width: 236px;
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.wx-favs-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.wx-favs-head strong { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.wx-favs-count { font-size: 9.5px; letter-spacing: 0.06em; color: var(--faint); }
.wx-favs-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px 8px 2px;
  scroll-behavior: smooth;
}
.wx-favs-list::-webkit-scrollbar { width: 6px; }
.wx-favs-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 3px; }
.wx-favs-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 3px; }
.wx-favs-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.38); }
.wx-favs-placeholder {
  height: 42px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}
.wx-fav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 5px 7px;
  border-radius: 9px;
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.18s, border-color 0.18s;
}
.wx-fav-item:hover { background: rgba(255, 255, 255, 0.05); }
.wx-fav-item.active {
  background: rgba(230, 0, 45, 0.12);
  border-color: rgba(230, 0, 45, 0.4);
}
.wx-fav-item img {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 2px;
  border-radius: 7px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.38s cubic-bezier(0.22, 1.3, 0.36, 1);
  will-change: transform;
}
.wx-fav-item.active img { transform: scale(1.12); }
.wx-fav-item:hover img { transform: translateY(-1px) scale(1.5); }
.wx-fav-item span {
  font-size: 11px;
  color: #c2c9d3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.22, 1.3, 0.36, 1), color 0.25s ease;
}
.wx-fav-item:hover span { transform: translateY(-1px) scale(1.06); color: #fff; }
.wx-fav-item.active span { color: #fff; }
.wx-qr {
  width: 168px;
  height: 168px;
  margin: 16px auto 0;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wx-qr img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.wx-qr-ph { font-size: 10.5px; line-height: 1.7; letter-spacing: 0.06em; color: #7d8792; }
.wx-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.wx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}
.wx-label { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: 0.06em; color: #8b94a0; }
.wx-no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 9.5px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  color: #b6bfca;
}
.wx-row strong { flex: 1; text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: #eef1f5; }
.wx-copy {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: #d7dde5;
  transform-origin: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.wx-copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.15);
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.9);
}
.wx-copy:active { transform: scale(0.95); }

/* 未安装软件时的下载提示弹窗 */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
.dl-card {
  position: relative;
  width: 430px;
  height: 400px;
  padding: 40px 32px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #171a20, #101216);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: wxIn 0.2s ease-out;
}
.dl-card h3 {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.dl-card h3.is-compact {
  font-size: 15px;
  line-height: 1.4;
}
.dl-sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #9aa3ae;
}
.dl-sub-tip {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #6f7883;
}
.dl-back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f5f9;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.7);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.dl-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.46);
}
.dl-back svg { width: 15px; height: 15px; }
.dl-note {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8b94a0;
}
.dl-os-list {
  display: flex;
  gap: 14px;
  width: 100%;
  margin: auto 0;
}
.dl-os-list .btn {
  flex: 1;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px 10px;
  border-radius: 18px;
  font-size: 15px;
}
.dl-os-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.dl-fallback {
  margin-top: 14px;
  font-size: 11.5px;
  color: #8b94a0;
}
.dl-fallback button {
  padding: 0 2px;
  border: 0;
  background: none;
  color: #ffbe1a;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.dl-os-list .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* 预设名称 · 居中在两幅预览图上方 */
.preview-head {
  grid-column: 2 / 4;
  grid-row: 1;
  text-align: center;
  padding: 8px 0 18px;
}
.preview-head h2 {
  font-family: -apple-system, "SF Pro Display", "SF Pro SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-indent: 0.05em;
  color: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}

.preview-view .shot-panel:nth-of-type(1) { grid-column: 2; grid-row: 2; }
.preview-view .shot-panel:nth-of-type(2) { grid-column: 3; grid-row: 2; }

/* 全局预览：当前样片 × 20 套预设 */
.grid-view {
  grid-column: 2 / 4;
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 6px 10px 16px 8px;
  position: relative;
  z-index: 3;
}

/* 悬停即浮现的小提示：点击放大查看 */
.grid-cell::before {
  content: "点击放大查看";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -58%);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(10, 12, 16, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease 0s, transform 0.18s ease 0s;
}
.grid-cell.is-hint::before {
  opacity: 1;
  transform: translate(-50%, -50%);
}
/* 当前选中的预设：红色边框 + 柔和外发光，保证在深底上足够醒目又不刺眼 */
.grid-cell.active {
  border-color: #ff2444;
  background: rgba(230, 0, 45, 0.07);
  box-shadow:
    0 0 0 1px rgba(255, 40, 70, 0.7),
    0 0 10px rgba(255, 30, 60, 0.5),
    0 0 22px rgba(255, 20, 50, 0.4),
    0 0 38px -2px rgba(230, 0, 45, 0.45),
    inset 0 0 12px rgba(255, 30, 60, 0.16);
}
.grid-cell.hot { border-color: rgba(230, 0, 45, 0.35); }

/* 全局预览里已收藏的预设：名称后面跟一颗金色小星 */
.grid-cell.is-fav > span::after {
  content: "★";
  display: inline-block;
  margin-left: 4px;
  font-size: 13px;
  line-height: 1;
  vertical-align: -1px;
  color: #ffdc5c;
  text-shadow:
    0 0 3px rgba(255, 220, 100, 1),
    0 0 8px rgba(255, 196, 60, 0.9),
    0 0 16px rgba(255, 170, 30, 0.6);
}
.grid-cell canvas {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0a0c0e;
}
.grid-cell span {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: break-all;
  overflow: visible;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.grid-cell.active span { color: var(--accent-2); }
.grid-view::-webkit-scrollbar { width: 8px; }
.grid-view::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 4px;
  margin: 2px 0;
}
.grid-view::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 4px;
}
.grid-view::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.58); }

/* 全局详情：靠近左侧图片参考区的返回按钮 */
.grid-back-btn {
  position: absolute;
  left: 8px;
  top: 6px;
  z-index: 8;
  width: auto;
  min-width: 34px;
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 14, 17, 0.55);
  backdrop-filter: blur(10px) saturate(1.1);
  color: #fff;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.grid-back-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.grid-back-btn:hover {
  background: rgba(24, 27, 32, 0.72);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.grid-back-btn:active {
  transform: scale(0.97);
}

.shot-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
}

.shot-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 6px 0 16px;
}

.shot-frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
/* 放大查看：让左右切换按钮能落在图片外侧 */
.shot-frame.is-detail { overflow: visible; }

/* 图片层：单独裁剪，翻页时不会溢出到按钮区 */
.shot-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 4;
}

/* 滑动切换时的旧图快照 */
.shot-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

/* 侧图滑正到主图的过渡层 */
.shot-fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* 放大查看：其余预设沿圆柱向后排开，越往后越透明 */
.shot-ring {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  perspective: 1100px;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.22, .9, .24, 1);
}
.shot-frame.is-detail .shot-ring { display: block; }
.shot-frame .shot-ring img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.22, .9, .24, 1), opacity 0.4s ease;
  will-change: transform, opacity;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.shot-frame .shot-ring img.is-fading { opacity: 0 !important; }

/* 放大查看时，已收藏预设的成片右上角金色星形徽章 */
.shot-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  color: #5a3400;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffbe0 0%, #ffe073 34%, #ffc22e 64%, #e79a10 100%);
  border: 1px solid rgba(52, 32, 0, 0.72);
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(255, 206, 80, 0.95),
    0 0 18px rgba(255, 176, 40, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* 放大查看时左右切换预设的半透明按钮（无边框圆环） */
.shot-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(8, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0.96;
  transition: opacity 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.shot-nav svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke-width: 2.8;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.shot-nav.prev { left: -78px; }
.shot-nav.next { right: -78px; }
.shot-nav:hover {
  opacity: 1;
  background: rgba(230, 0, 45, 0.52);
  transform: scale(1.08);
}
.shot-nav:active { transform: scale(0.94); }

.shot-frame img,
.shot-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.shot-frame img { object-fit: cover; }

/* 防止误触拖拽时把图片/画布"选中"，Chromium 会给选中的图片盖一层蓝色遮罩 */
.shot-frame,
.grid-cell {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cmp-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.97);
  z-index: 5;
  cursor: ew-resize;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.5),
    0 0 16px rgba(255, 255, 255, 0.22),
    0 0 14px rgba(0, 0, 0, 0.55);
  touch-action: none;
}
.cmp-divider:focus { outline: none; }
.cmp-divider::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.cmp-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(5, 6, 9, 0.94) 55%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
/* 扩大拖拽热区，视觉上仍然很小 */
.cmp-grip::after {
  content: "";
  position: absolute;
  inset: -12px -10px;
  border-radius: 16px;
}
.cmp-grip::before {
  content: "‹ ›";
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  transform: translateY(-0.5px);
}
.cmp-divider:hover .cmp-grip,
.cmp-divider:focus-visible .cmp-grip {
  background: rgba(5, 6, 9, 0.97);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%) scale(1.08);
}
.cmp-divider:active .cmp-grip { transform: translate(-50%, -50%) scale(0.98); }

/* 预设介绍 */
.info-panel {
  flex: none;
  height: 358px;
  margin: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.info-panel::-webkit-scrollbar { width: 6px; }
.info-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.info-panel::-webkit-scrollbar-track { background: transparent; }

.info-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 0, 45, 0.35);
  background: rgba(230, 0, 45, 0.1);
  color: var(--accent-2);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.info-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.info-icon {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
}
.info-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: -6px;
}
.info-head h2 { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; color: #fff; }
/* 英文名较长时按长度收缩，避免被面板裁切（如港风尼康原彩） */
.info-title.is-long h2 { font-size: 18px; }
.info-title.is-xlong h2 { font-size: 16px; }
.info-ext { margin-left: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: #fff; }
.info-author {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #b3bcc7;
}
.info-author svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: translateY(0.5px);
}
.info-desc {
  margin-bottom: 0;
  height: 112px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.75;
  color: #b9c0c9;
}

.info-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.info-tags span {
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  color: #d3d9e0;
}

.info-spec { border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.spec-row span { color: var(--faint); white-space: nowrap; }
.spec-row b { min-width: 0; font-weight: 500; color: #d5dae1; text-align: right; word-break: break-all; }
.mono { font-family: Consolas, "SF Mono", monospace; font-size: 10.5px; color: #c8cdd5; }

.info-block { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.info-desc + .info-block { margin-top: 4px; }
.block-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 0.1em; color: #c9cfd7; }
.block-head span:first-child { border-left: 2px solid var(--accent); padding-left: 7px; }
.block-hint { font-size: 9px; color: #41474f; }

.bar-row { display: grid; grid-template-columns: 42px 1fr 26px; align-items: center; gap: 8px; }
.bar-label { font-size: 10px; color: var(--muted); }
.bar-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 3px; }
.b1 { background: linear-gradient(90deg, #6f7bff, #b7c0ff); }
.b2 { background: linear-gradient(90deg, #ff5f7a, #ffb1a0); }
.b3 { background: linear-gradient(90deg, #ffb020, #ffe08a); }
.b4 { background: linear-gradient(90deg, #7d8792, #c9d2dc); }
.bar-val { font-size: 9.5px; color: var(--faint); text-align: right; }

.swatch-row { display: flex; gap: 10px; }
.swatch { flex: 1; display: flex; flex-direction: column; align-items: center; }
.swatch i {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0.66;
  transition: opacity 0.2s ease;
}
.swatch:hover i { opacity: 0.92; }

.info-note { padding-top: 10px; border-top: 1px solid var(--line); font-size: 9.5px; line-height: 1.6; color: var(--faint); }

/* ============================================================
   导入至机内
   ============================================================ */

.import-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 12px;
}
.import-view::-webkit-scrollbar { width: 7px; }
.import-view::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.imp-loading {
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 三块布局：左上是打开软件，左下是已收藏预设，右侧整列是导入教程 */
.imp-layout {
  flex: 1;
  min-height: 584px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  grid-template-rows: auto minmax(190px, 1fr);
  gap: 18px;
  align-items: stretch;
}
/* 上方留足高度，方便后续在「开始导入」卡片里继续放内容 */
.status-card { grid-column: 1; grid-row: 1; min-height: 215px; }
.fav-card { grid-column: 1; grid-row: 2; min-height: 320px; padding: 20px 22px 18px; }
.tut-card { grid-column: 2; grid-row: 1 / span 2; min-height: 0; }

/* 已收藏预设：左侧列表，右侧预设介绍（与预设预览页同一套介绍结构） */
.fav-card { display: flex; gap: 16px; }
.fav-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fav-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.fav-head h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.fav-count {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
/* 一行 5 个、固定 4 行：20 个收藏正好铺满整块 */
.fav-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  justify-items: center;
  gap: 5px;
  /* 顶部留 4px：悬停上浮与描边/光晕不会被网格边缘裁掉 */
  padding: 4px 4px 2px;
  overflow: visible;
  container-type: size;
}
.fav-preset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  min-width: 0;
}
.fav-preset:hover { z-index: 3; }
.fav-preset-thumb {
  /* 宽度取「列宽」与「行高减去名称」的较小值，窗口变大时图标跟着变大 */
  width: 100%;
  max-width: min(100%, calc((100cqh - 10px) / 4 - 15px));
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.24, 1), border-color 0.2s ease, box-shadow 0.28s ease;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.fav-preset-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fav-preset:hover .fav-preset-thumb {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 12px 22px -14px #000;
  transform: translateY(-2px) scale(1.12);
}
.fav-preset.active .fav-preset-thumb {
  border-color: rgba(255, 64, 88, 0.95);
  box-shadow: 0 0 0 1.5px rgba(255, 64, 88, 0.5), 0 0 16px rgba(230, 0, 45, 0.4);
}
.fav-preset-name {
  width: 100%;
  font-size: 8.5px;
  line-height: 1.3;
  color: #c2c9d3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-preset.active .fav-preset-name { color: #fff; }
.fav-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px;
}
.fav-empty-ico { font-size: 20px; color: rgba(255, 206, 80, 0.85); }
.fav-empty p { font-size: 12px; font-weight: 600; color: #cfd4dc; }
.fav-empty > span:last-child { max-width: 320px; font-size: 10.5px; line-height: 1.6; color: #aab2be; }

/* 左侧预设介绍 */
.fav-intro {
  flex: 0 0 210px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.fav-intro .info-head { gap: 9px; }
.fav-intro .info-icon { width: 46px; height: 46px; }
.fav-intro .info-icon img { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.fav-intro .info-head h2 { font-size: 15px; }
.fav-intro .info-title.is-long h2 { font-size: 14px; }
.fav-intro .info-title.is-xlong h2 { font-size: 13px; }
.fav-intro .info-ext { font-size: 9.5px; }
.fav-intro .info-author { font-size: 9.5px; gap: 2px; }
.fav-intro .info-author svg { width: 10px; height: 10px; }
/* 简介固定 4 行高度：不论文案长短，「适用场景 / 色调取样」始终在同一位置 */
.fav-intro .info-desc {
  height: 61px;
  max-height: 61px;
  font-size: 9.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-intro .info-block { margin-top: 2px; gap: 5px; }
.fav-intro .info-desc + .info-block { margin-top: 2px; }
.fav-intro .block-head { font-size: 9px; }
.fav-intro .info-tags { gap: 5px; height: 41px; align-content: flex-start; overflow: hidden; }
.fav-intro .info-tags span { padding: 2px 7px; border-radius: 6px; font-size: 9px; }
.fav-intro .swatch-row { gap: 7px; height: 24px; }
.fav-intro .swatch i { height: 24px; }

/* 介绍底部：与预设预览页一致的「取消收藏 / 预设文件获取」 */
.fav-intro .side-actions { margin-top: auto; padding-top: 9px; gap: 7px; }
.fav-intro .side-get,
.fav-intro .side-fav { height: 30px; padding: 0 8px; gap: 4px; }
.fav-intro .side-get .foot-get-icon svg { width: 17px; height: 17px; }
.fav-intro .side-fav .side-fav-icon svg { width: 13px; height: 13px; }
.fav-intro .side-get .foot-get-text strong,
.fav-intro .side-fav .foot-get-text strong { font-size: 9px; }


.imp-card {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.status-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.status-orb {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 0, 45, 0.18), transparent 66%);
  pointer-events: none;
}
.status-card.warn .status-orb { background: none; }

/* 左上角卡片顶部：引导标题 + 状态徽标 */
.status-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #d4dae3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-badge.ok {
  color: #5fe3a1;
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.07);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.12), 0 0 15px rgba(61, 220, 151, 0.3);
}
.status-badge.ok::before { animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 左上角卡片的引导标题 */
.status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.status-kicker::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff2b52, rgba(230, 0, 45, 0.25));
}
.status-card.web .status-orb { background: radial-gradient(circle, rgba(91, 157, 255, 0.15), transparent 66%); }

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.status-pill.web { color: var(--web); border-color: rgba(91, 157, 255, 0.35); background: rgba(91, 157, 255, 0.08); }

.status-card h2 { margin-top: 4px; font-size: 24px; font-weight: 600; }
.status-desc { max-width: 480px; font-size: 12.5px; line-height: 1.75; color: #a7aeb8; }

.status-path {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-family: Consolas, monospace;
  font-size: 10px;
  color: var(--faint);
  word-break: break-all;
}

.status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.status-card .status-actions .btn { padding: 12px 24px; font-size: 13px; border-radius: 12px; }
.status-hint { font-size: 10px; line-height: 1.6; color: var(--faint); }

/* 网页版下载卡片：系统按钮 + 补充说明 */
.dl-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dl-links .dl-btn {
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  border-radius: 12px;
}
.dl-btn em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--faint);
}
.dl-links .btn.primary em { color: rgba(255, 255, 255, 0.72); }
.dl-alt {
  margin-top: 12px;
  max-width: 460px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--faint);
}
.dl-alt-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--web);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-alt-link:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 12px;
  text-decoration: none;
  transition: 0.2s;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(230, 0, 45, 0.95);
}
.btn.primary:hover { background: #ff1237; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.03); color: #c6cbd3; }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.24); color: #fff; }

.steps-card { display: flex; flex-direction: column; }
.steps-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.steps-head h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.steps-head span { font-size: 9.5px; color: var(--faint); letter-spacing: 0.06em; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 13px; }
/* 导入教程：标题 + 三步导航 + 内容区 */
.tut-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 14px;
}
/* 竖排步骤导航：贴在教程卡左侧，四个步骤等分列高 */
.tut-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--tut-gap, 8px);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 12px 26px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  overflow: hidden;
  --tut-gap: 8px;
}
.tut-ink {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: 8px;
  width: auto;
  height: calc((100% - 16px - var(--tut-gap) * 3) / 4);
  border-radius: 10px;
  border: 1px solid rgba(230, 0, 45, 0.8);
  background: linear-gradient(180deg, rgba(230, 0, 45, 0.36), rgba(230, 0, 45, 0.12));
  box-shadow: 0 10px 24px -14px rgba(230, 0, 45, 1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}
.tut-glow {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: 8px;
  width: auto;
  height: calc((100% - 16px - var(--tut-gap) * 3) / 4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.tut-glow.show { opacity: 1; }
.tut-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: none;
  color: #e3e9f0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.24s cubic-bezier(0.22, 0.9, 0.24, 1);
}
.tut-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
.tut-tab.active {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-color: transparent;
  background: none;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}
.tut-tab-no {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #f2f6fa;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tut-tab.active .tut-tab-no {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.tut-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 0; scrollbar-gutter: stable; }
/* 按住空白处拖动的状态：抓手光标，拖动时不选中文字 */
.tut-body.is-dragging,
.tut-body.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
/* 滚动条：视觉保持纤细，但热区加宽到 16px，方便点中拖动 */
.tut-body::-webkit-scrollbar { width: 16px; }
.tut-body::-webkit-scrollbar-track { background: transparent; }
.tut-body::-webkit-scrollbar-thumb {
  min-height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 5px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
  transition: background-color 0.18s;
}
.tut-body::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.4); }
.tut-pane { display: none; }
.tut-pane.active { display: block; animation: tutPaneIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes tutPaneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tut-subbody { margin-top: 14px; }
.tut-substep + .tut-substep { margin-top: 13px; }
/* 单步教程页：多个小步骤从左往右横排，减少上下滚动 */
.tut-step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px;
}
.tut-step-row > .tut-substep {
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 430px;
  margin-top: 0;
}
.tut-step-row > .tut-substep + .tut-substep { margin-top: 0; }
/* 隐藏横排步骤的横向滚动条，仍可拖动/滚轮查看 */
.tut-step-row { scrollbar-width: none; -ms-overflow-style: none; }
.tut-step-row::-webkit-scrollbar { display: none; }
/* 横排小步骤里的配图与连接方式按列宽收缩，避免横向撑开 */
.tut-step-row .tut-figure-raw img { max-width: 92.5%; }
/* GX 安装三步：加大列间距，让两张满宽配图之间留出呼吸感 */
.tut-step-row.is-gx-install { gap: 26px; }
.tut-step-row.is-gx-install > .tut-substep { min-width: 0; }
/* GX 软件安装第二列整体左移一点，第三列位置不变 */
.tut-step-row.is-gx-install > .tut-substep:nth-child(2) { margin-left: -10px; margin-right: 10px; }
/* GX 安装第 2/3 步配图：与上方文字同宽，左右对齐 */
.tut-step-row .tut-figure-gxstep img { width: 100%; max-width: 100%; max-height: none; }
/* 横排区域会隐藏溢出：悬停时不再放大，否则图片四边会被容器裁掉 */
.tut-step-row .tut-figure img:hover { transform: none; }
.tut-step-row .tut-cable-row {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
}
/* 数据线示意整体上移，型号表紧随其后 */
.tut-step-row .tut-branch-panes { margin-top: 6px; }
/* 横排窄栏里的「方式一 / 方式二」切换：图标在上、文字换行，避免文字溢出 */
.tut-step-row .tut-branch .tut-branch-tab {
  flex-direction: column;
  gap: 3px;
  padding: 6px 4px;
  font-size: 9.5px;
  line-height: 1.25;
  white-space: normal;
}
.tut-step-row .tut-branch .tut-branch-tab svg { width: 15px; height: 15px; }
.tut-step-row .tut-branch .tut-branch-tab span {
  white-space: normal;
  text-align: center;
  word-break: break-word;
}
.tut-step-row .tut-cable-row .tut-figure { padding: 0 0 2px; }
.tut-step-row .tut-cable-left { gap: 3px; }
.tut-step-row .tut-cable-row .tut-figure img { max-width: 100%; max-height: 200px; }
.tut-step-row .tut-cable-table { flex: 1 1 auto; width: 100%; gap: 6px; }
/* 横排窄栏里的线材对照：压缩缩略图与字号，尽量在较少高度内展开全部型号 */
.tut-step-row .tut-cable-item { padding: 6px 8px; gap: 8px; align-items: flex-start; }
.tut-step-row .tut-cable-item > .cable-thumb { width: 46px; height: 30px; }
.tut-step-row .tut-cable-info strong { font-size: 11px; margin-bottom: 1px; }
.tut-step-row .tut-cable-info p { font-size: 9.5px; line-height: 1.5; }
.tut-divider {
  height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
}
.tut-note {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(230, 0, 45, 0.7);
  background: linear-gradient(90deg, rgba(230, 0, 45, 0.07), rgba(255, 255, 255, 0.03) 62%);
}
.tut-note strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #f0f2f5;
}
.tut-note p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.75;
  color: #98a1ac;
}
.tut-go {
  margin: 18px 0 48px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(230, 0, 45, 0.3);
  background: linear-gradient(90deg, rgba(230, 0, 45, 0.14), rgba(255, 255, 255, 0.03) 70%);
  color: #fff;
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.tut-go:hover {
  border-color: rgba(230, 0, 45, 0.55);
  background: linear-gradient(90deg, rgba(230, 0, 45, 0.2), rgba(255, 255, 255, 0.04) 70%);
  transform: translateY(-1px);
}
.tut-go strong { flex: 1; text-align: left; font-size: 12.5px; font-weight: 600; }
.tut-go svg { width: 16px; height: 16px; color: #ff8a99; transition: transform 0.22s; }
.tut-go:hover svg { transform: translateX(3px); }
/* 软件安装页页脚：商标声明小字 */
.tut-legal {
  margin: -34px 0 28px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #6b7480;
}
.tut-substep strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}
.tut-substep strong::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}
.tut-substep p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #9aa3ae;
}
/* 第一步「需要准备什么」：五项清单收进一个整体面板，行间细分隔线，与注意事项明显区分 */
/* 第一步：整页高度铺满，左侧准备面板跟着撑满 */
.tut-pane[data-pane="0"] { height: 100%; }
.tut-pane[data-pane="0"] .tut-subbody {
  height: 100%;
  margin-top: 0;
  padding-top: 10px;
  box-sizing: border-box;
}
.tut-pane[data-pane="0"] .tut-col {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tut-pane[data-pane="0"] .tut-col-title { flex: none; }
/* 第一步内容始终一屏放下，不出现竖向滚动条 */
.tut-body:has(.tut-pane[data-pane="0"].active) { overflow-y: hidden; }
.tut-pane[data-pane="0"] .tut-notes { gap: 8px; }
.tut-pane[data-pane="0"] .tut-prep {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 16px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.tut-pane[data-pane="0"] .tut-prep > .tut-substep {
  flex: 0 0 auto;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.tut-pane[data-pane="0"] .tut-prep > .tut-substep {
  margin-top: 0;
  padding: 8px 0;
}
.tut-pane[data-pane="0"] .tut-prep > .tut-substep + .tut-substep {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tut-pane[data-pane="0"] .tut-substep strong { font-size: 14px; }
.tut-pane[data-pane="0"] .tut-substep p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #b9c3ce;
}
.tut-pane[data-pane="0"] .tut-divider {
  margin: 8px 0 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
}
.tut-pane[data-pane="0"] .tut-note { margin-top: 0; padding: 10px 12px; }
.tut-pane[data-pane="0"] .tut-note + .tut-note { margin-top: 0; }
/* 第一步双栏：左侧「需要准备什么」，右侧「注意事项」 */
.tut-two-col {
  display: grid;
  /* 左「需要准备什么」放大铺满，右「注意事项」收窄 */
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.65fr);
  gap: 16px;
  align-items: stretch;
  height: 100%;
}
.tut-col { min-width: 0; }
.tut-col-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.tut-col-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.tut-notes { display: flex; flex-direction: column; gap: 10px; }
/* 数据线名称右侧：查看机型数据线对照的入口按钮 */
.tut-cable-tip {
  flex: none;
  width: 27px;
  height: 27px;
  margin-left: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(230, 0, 45, 0.85);
  background: rgba(230, 0, 45, 0.28);
  color: #ffd2d8;
  box-shadow: 0 0 10px rgba(230, 0, 45, 0.35);
  transition: color 0.18s, border-color 0.18s, background-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.tut-cable-tip svg { width: 19px; height: 19px; }
.tut-cable-tip:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(230, 0, 45, 0.6);
  transform: scale(1.08);
}
/* 机型数据线对照弹窗：复用方式一的对照内容 */
.tut-cable-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(6, 7, 9, 0.74);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.tut-cable-dialog {
  width: min(560px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101216;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.92);
}
.tut-cable-dialog::-webkit-scrollbar { width: 12px; }
.tut-cable-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border: 4px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
}
.tut-cable-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 18, 22, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tut-cable-dialog-head strong { font-size: 14px; letter-spacing: 0.03em; color: #f2f4f8; }
.tut-cable-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #b9c0ca;
  transition: color 0.18s, background-color 0.18s;
}
.tut-cable-close svg { width: 16px; height: 16px; }
.tut-cable-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.tut-cable-dialog-body { padding: 12px 18px 18px; }
/* 子步骤：数字序号（1、2、3 自动递增） */
.tut-pane .tut-subbody { counter-reset: tut-substep; }
.tut-pane .tut-substep { counter-increment: tut-substep; }
.tut-step-no {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff2f4a, #c4001f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 10px -3px rgba(230, 0, 45, 0.8);
}
.tut-step-no::before { content: counter(tut-substep); }
/* 教程内的方式分流：数据线 / Wi-Fi 分段切换 */
.tut-branch {
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
}
.tut-branch-tabs {
  display: flex;
  gap: 5px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}
.tut-branch-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #b6bec9;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tut-branch-tab svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  opacity: 1;
  transition: opacity 0.2s, transform 0.2s;
}
.tut-branch-tab:hover { color: #e3e8ee; }
.tut-branch-tab:hover svg { opacity: 1; }
.tut-branch-tab.is-active {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(230, 0, 45, 0.24), rgba(230, 0, 45, 0.08));
  box-shadow: inset 0 0 0 1px rgba(230, 0, 45, 0.38), 0 6px 16px -12px rgba(230, 0, 45, 0.9);
}
.tut-branch-tab.is-active svg { opacity: 1; }
.tut-branch-panes { margin-top: 12px; }
/* 预设导入第一步的系统切换：紧贴步骤标题，注释词放在切换栏下方 */
.tut-os-tabs { margin-top: 9px; }
.tut-substep .tut-os-tabs + p { margin-top: 10px; }
.tut-branch-pane { display: none; }
.tut-branch-pane.is-active { display: block; animation: branchIn 0.24s ease; }
@keyframes branchIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
/* 每条子步骤的配图：按图片自身比例自适应，留出悬停放大的缓冲，避免压住注释 */
.tut-figure {
  margin: 0;
  padding: 16px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 教程配图：悬停轻微放大 */
.tut-figure img {
  display: block;
  max-width: 92.5%;
  max-height: 280px;
  width: auto;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.24, 1), filter 0.32s ease;
}
/* 尺寸偏小的配图 */
.tut-figure-sm img { max-height: 170px; }
/* 竖版长截图 */
.tut-figure-tall { padding: 24px 0; }
.tut-figure-tall img { max-height: 380px; }
/* 超长步骤图：控制在半屏宽内，不做悬停放大以免遮挡文字 */
.tut-figure-raw { padding: 16px 0; }
.tut-figure-raw img { max-height: none; max-width: 56%; }
/* 导入流程长图：放宽高度换取更清晰的宽度 */
.tut-figure-import img { max-height: 820px; max-width: 96%; }
/* 老机型（2.14）安装第一步：与 3.21 第一步同尺寸，悬停不放大，避免遮挡周围内容 */
.tut-figure-legacy img { max-height: 170px; max-width: 92.5%; }
.tut-figure.tut-figure-legacy img:hover {
  transform: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
/* 老机型安装第 2/3/4 步：竖长截图按宽度自适应，悬停不放大 */
.tut-figure-legacy.tut-figure-l2 img { width: 100%; max-width: 100%; max-height: none; }
.tut-figure-legacy.tut-figure-l3 img { width: 70%; max-width: 100%; max-height: none; }
.tut-figure-legacy.tut-figure-l4 img { width: 58%; max-width: 100%; max-height: none; }
/* 导入后寻找查看：自绘播放器，视频贴底铺满，不产生滚动 */
.tut-pane[data-pane="3"] { height: 100%; }
.tut-pane[data-pane="3"].active { display: flex; }
.tut-video-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* 第四步右侧小提示：更换预设说明 */
.tut-tip-card {
  flex: 0 0 228px;
  align-self: center;
  margin-right: clamp(24px, 4vw, 64px);
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(230, 0, 45, 0.7);
  background: linear-gradient(90deg, rgba(230, 0, 45, 0.07), rgba(255, 255, 255, 0.03) 62%);
}
.tut-tip-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #f0f2f5;
}
.tut-tip-card p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #98a1ac;
}
.tut-player {
  position: relative;
  height: 100%;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 26px 60px -34px rgba(0, 0, 0, 0.92);
  background: #000;
}
.tut-player video {
  display: block;
  height: 100%;
  width: auto;
  outline: none;
  background: #000;
}
/* 控件条：默认淡出，悬停 / 暂停时显示 */
.tp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72) 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.tut-player:hover .tp,
.tut-player:focus-within .tp,
.tut-player.is-paused .tp { opacity: 1; pointer-events: auto; }
.tp-row { display: flex; align-items: center; gap: 8px; }
.tp-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
  transition: background-color 0.18s;
}
.tp-btn svg { width: 22px; height: 22px; }
.tp-btn:hover { background: rgba(255, 255, 255, 0.14); }
.tp-ico { display: flex; align-items: center; justify-content: center; }
.tp-ico-pause,
.tp-ico-muted { display: none; }
.tut-player:not(.is-paused) .tp-ico-play { display: none; }
.tut-player:not(.is-paused) .tp-ico-pause { display: flex; }
.tut-player.is-muted .tp-ico-vol { display: none; }
.tut-player.is-muted .tp-ico-muted { display: flex; }
.tp-time {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.tp-vol {
  flex: none;
  width: 56px;
  height: 18px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.tp-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.34); }
.tp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.tp-seek {
  width: 100%;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.tp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.tp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
}
.tut-player.is-muted .tp-vol { opacity: 0.45; }

/* 放大：半透明遮罩 + 视频缩小居中 + 视频左侧返回 */
.tut-zoom-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 9, 0.84);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.tut-zoom-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-zoom-stage .tut-player { height: 88vh; max-width: 92vw; }
.tut-video-back {
  position: absolute;
  top: 0;
  right: calc(100% + 18px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eef1f6;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.tut-video-back svg { width: 16px; height: 16px; }
.tut-video-back:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateX(-2px);
}

/* WiFi 连接方式：三张竖版步骤图纵向排列 */
.tut-wifi-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 20px 0 10px;}
.tut-wifi-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 330px;
  padding: 14px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}
.tut-wifi-item img {
  align-self: center;
  max-height: 430px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1), box-shadow 0.35s ease;
  transform-origin: center top;
  position: relative;
  z-index: 1;
}
.tut-wifi-item img:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.tut-wifi-item span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #f2f4f8;
  letter-spacing: 0.01em;
  max-width: 100%;
  position: relative;
  z-index: 4;
}
.tut-wifi-item span::before {
  content: "";
  flex: none;
  width: 3px;
  height: 20px;
  margin-top: 1px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(230, 0, 45, 0.45));
  box-shadow: 0 0 10px rgba(230, 0, 45, 0.45);
}
.tut-figure.tut-figure-raw img:hover { transform: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
/* 导入长图尺寸已接近列宽，悬停不再放大，避免遮挡上下注释 */
.tut-figure.tut-figure-import img:hover { transform: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)); }
.tut-figure img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}
/* 数据线方式：左侧相机连线示意（黑底与页面融合），右侧线材对照图 */
.tut-cable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 6px;
}
.tut-cable-row .tut-figure {
  width: auto;
  padding: 0;
}
.tut-cable-row .tut-figure img {
  max-width: none;
  max-height: 250px;
}
.tut-cable-row .tut-figure img:hover {
  transform: scale(1.05);
}
.tut-cable-row .tut-cable-shot {
  filter: none;
}
.tut-cable-row .tut-cable-shot:hover {
  transform: scale(1.05);
  filter: none;
}
.tut-cable-left {
  flex-direction: column;
  gap: 8px;
}
.tut-cable-caption {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #9aa3ae;
}
/* 3.21 数据线示意图：抠底后再缩小一档，并整体上移 */
.tut-cable-left:not(.is-legacy):not(.is-gx) img { max-height: 108px; }
/* 老机型第三步：上下两屏拼接图，等比例放大便于看清 */
.tut-figure.tut-figure-register img { max-height: 560px; max-width: 96%; }
/* 仅支持数据线的机型：隐藏方式一/方式二分流栏，只保留数据线内容 */
.tut-substep.is-wired-only .tut-branch { display: none; }
/* 线材型号对照：左侧图标放大，右侧型号名称在上、机型在下 */
.tut-cable-table {
  flex: 0 1 372px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tut-cable-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.032);
}
.tut-cable-item > .cable-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-cable-item > .cable-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter:
    brightness(1.06)
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.42))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.tut-cable-item:hover > .cable-thumb img {
  transform: scale(1.14);
}
.tut-cable-info { min-width: 0; }
.tut-cable-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 3px;
}
.tut-cable-info p {
  font-size: 10.5px;
  line-height: 1.55;
  color: #9ea7b2;
}
.step-no {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(230, 0, 45, 0.32);
  background: rgba(230, 0, 45, 0.08);
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.steps strong { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; }
.steps p { font-size: 11px; line-height: 1.65; color: var(--muted); }

/* ============================================================
   提示
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 99;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 23, 28, 0.97);
  box-shadow: 0 20px 44px -14px #000;
  font-size: 11.5px;
  color: var(--text);
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   自适应
   ============================================================ */

@media (max-width: 1180px) {
  .preview-view { grid-template-columns: 172px minmax(0, 1fr) minmax(0, 1fr) 242px; }
  .model-select { grid-template-columns: 280px minmax(0, 1fr); }
  .model-title { font-size: 36px; }
}

@media (max-width: 980px) {
  .preview-view { grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .sample-rail { grid-row: 1 / -1; }
  .preview-head { grid-column: 2 / -1; grid-row: 1; }
  .preview-view .shot-panel:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  .preview-view .shot-panel:nth-of-type(2) { grid-column: 3; grid-row: 2; }
  .info-panel { max-height: 200px; }
  .side-col { grid-column: 2 / -1; grid-row: 3 / 5; }
  .imp-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .status-card, .fav-card, .tut-card { grid-column: 1; grid-row: auto; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .model-select { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-height: 840px) {
  .info-panel { padding: 2px 14px 10px; gap: 4px; }
  .info-head h2 { margin-top: 8px; font-size: 17px; }
  .info-desc { font-size: 11.5px; line-height: 1.65; }
  .info-tags span { padding: 2px 7px; font-size: 9.5px; }
  .spec-row { padding: 6px 0; font-size: 10.5px; }
  .bar-row { grid-template-columns: 40px 1fr 24px; }
  .swatch i { height: 26px; }
  .info-note { padding-top: 8px; font-size: 9px; }
  .cf-item { top: 41%; }
  .cf-nav { top: 68px; }
}

/* ============================================================
   启动页 · 深蓝黑液态玻璃主题
   深蓝底 + 蓝紫青光 + 半透明玻璃面板，与主界面液态风格一致
   ============================================================ */
.model-screen {
  background:
    radial-gradient(1800px 980px at 50% 112%, rgba(3, 122, 152, 0.95), rgba(3, 122, 152, 0) 70%),
    radial-gradient(1300px 820px at 30% 110%, rgba(2, 84, 110, 0.90), rgba(2, 84, 110, 0) 76%),
    radial-gradient(1300px 820px at 70% 108%, rgba(2, 96, 122, 0.90), rgba(2, 96, 122, 0) 78%),
    radial-gradient(1600px 760px at 50% 56%, rgba(1, 10, 16, 0.62), rgba(1, 10, 16, 0) 74%),
    linear-gradient(180deg, #010204 0%, #01060a 42%, #021018 100%);
  color: #e9eef7;
}
.model-screen::-webkit-scrollbar { width: 0; height: 0; display: none; }
.model-screen .brand-ver { display: none; }
.model-screen .model-title { color: #ffffff; }
.model-screen .model-sub { color: #c3ccd2; margin-top: 10px; margin-bottom: 24px; }
.model-screen .model-glow { display: none; }
.model-screen .model-glow {
  background: radial-gradient(circle, rgba(0, 170, 200, 0.26), transparent 66%);
  filter: blur(60px);
}
.model-screen .model-brand::before {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent 72%);
  filter: blur(18px);
  display: none;
}
/* 系列页签只保留文字（微单 / 单反 / M 系列 / GX 系列），去掉左侧图标 */
.model-screen .cat-tabs .cat-icon { display: none; }

/* 系列页签：加大尺寸，作为页面上的主要切换入口更醒目 */
.model-screen .cat-tabs { gap: 12px; }
.model-screen .cat-tabs .cat-item {
  padding: 18px 24px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.2);
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.model-screen .cat-tabs .cat-item:hover { border-color: rgba(255, 255, 255, 0.4); }
.model-screen .cat-tabs .cat-item-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.model-screen .cat-tabs .cat-item.active {
  box-shadow: 0 0 0 1px rgba(230, 0, 45, 0.25) inset;
}
.model-screen .cat-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.model-screen .cat-item:hover { border-color: rgba(255, 255, 255, 0.30); }
.model-screen .cat-item .cat-icon { color: #9aa7bb; }
.model-screen .cat-item.active {
  border-color: rgba(230, 0, 45, 0.65);
  background: transparent;
  box-shadow: none;
}
.model-screen .cat-item.active .cat-icon { color: #ff5d72; }
.model-screen .cat-item-text strong { color: #eaeff8; }
.model-screen .cat-item-text em { color: #94a2b6; }
.model-screen .model-panel {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* 系列标题只保留主标题一行：删掉下方的小字注释与分隔白线 */
.model-screen .model-panel-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 10px;
}
.model-screen .model-panel-title span { display: none; }
.model-screen .model-panel-title strong { color: #eaeff8; }
.model-screen .model-panel-title span { color: #94a2b6; }
.model-screen .model-card {
  background: none;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.22s, border-color 0.22s;
}
.model-screen .model-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.model-screen .model-card.hot {
  border-color: transparent;
  background: none;
  box-shadow: none;
}
.model-screen .model-card.hot:hover {
  border-color: rgba(255, 255, 255, 0.08);
}
.model-screen .model-pic { color: #8493a8; position: relative; }

/* 接触层：紧贴机身底部的一小圈暗影，只交代"落在地上"的那条边 */
.model-screen .model-pic::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 8, 14, 0.56), rgba(0, 8, 14, 0.22) 60%, rgba(0, 8, 14, 0) 100%);
  filter: blur(5px);
  pointer-events: none;
  z-index: 0;
}

/* 环境层：更宽、更虚、更淡的一圈，负责把阴影自然过渡到背景里 */
.model-screen .model-pic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 100%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 8, 14, 0.26), rgba(0, 8, 14, 0.1) 55%, rgba(0, 8, 14, 0) 100%);
  filter: blur(13px);
  pointer-events: none;
  z-index: 0;
}

.model-screen .model-card.hot .model-pic { color: var(--accent-2); }
.model-screen .model-pic img {
  position: relative;
  z-index: 1;
  opacity: 1;
  /* 只保留贴底的一点点轮廓暗边，不再向外扩成光晕 */
  filter: drop-shadow(0 2px 3px rgba(0, 10, 16, 0.34));
  transition: filter 0.22s ease, transform 0.22s ease;
}
.model-screen .model-card:hover .model-pic img {
  filter: drop-shadow(0 3px 5px rgba(0, 10, 16, 0.38)) brightness(1.06);
  transform: translateY(-1px);
}
.model-screen .model-card.hot .model-pic img {
  filter: drop-shadow(0 3px 5px rgba(0, 10, 16, 0.38)) brightness(1.04);
}
.model-screen .model-name { color: #eef3fa; }
.model-screen .model-card.hot .model-name { color: #fff; }
.model-screen .model-card:hover .model-name { color: #fff; }
/* 四个系列页头统一固定在同一高度：切换系列时页面不再上下移动 */
.model-screen .model-brand { margin-bottom: 16px; }
.model-screen .model-title { font-size: clamp(24px, 4vh, 36px); font-weight: 700; letter-spacing: 0.01em; margin-top: -1.45em; position: relative; z-index: 2; }
.model-screen .model-sub { margin-top: 6px; margin-bottom: 12px; }

/* 一屏布局：机型面板贴合内容，整组内容在剩余高度里垂直居中 */
.model-screen { --model-pic: clamp(42px, 6.4vh, 62px); }
.model-screen .model-inner { min-height: 0; justify-content: center; padding-bottom: 12px; }
.model-screen .model-select { flex: 0 0 auto; min-height: 0; }
.model-screen .model-panel { flex: 0 0 auto; min-height: 0; }
.model-screen .model-chips {
  flex: 0 0 auto;
  min-height: 0;
  align-content: start;
  gap: clamp(10px, 2vh, 24px) 16px;
}
.model-screen .model-pic { flex: 0 0 var(--model-pic); height: var(--model-pic); }
.model-screen .model-pic img { max-height: calc(var(--model-pic) - 2px); }
.model-screen .cat-tabs .cat-item { padding: clamp(10px, 2vh, 18px) 24px; }

/* 机型较多的系列（微单 / 单反）：整体收紧，保证一屏完整显示 */
.model-screen.dense { --model-pic: clamp(34px, 5vh, 50px); }
.model-screen.dense .model-inner { padding-bottom: 8px; }
.model-screen.dense .model-panel { padding: 8px 14px 8px; }
.model-screen.dense .model-panel-head { padding-bottom: 5px; margin-bottom: 6px; }
.model-screen.dense .model-chips { gap: clamp(7px, 1.3vh, 13px) 12px; }
.model-screen.dense .model-card { padding: 4px 4px 5px; }
.model-screen.dense .model-name { font-size: 11px; }

/* ============================================================
   液态玻璃主题：深色底 + 缓慢流动的色光 + 半透明玻璃面板
   （参考：底色透出、白色高光描边、大圆角、细内高光）
   ============================================================ */

body { background: #0e1115; }

/* 背景：四团缓慢漂移的色光，模拟玻璃底下被折射的光 */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 48% at 12% 6%, rgba(230, 0, 45, 0.32), transparent 70%),
    radial-gradient(48% 52% at 94% 2%, rgba(70, 120, 255, 0.28), transparent 70%),
    radial-gradient(46% 48% at 80% 92%, rgba(255, 140, 60, 0.17), transparent 72%),
    radial-gradient(42% 46% at 16% 94%, rgba(60, 220, 200, 0.15), transparent 72%),
    radial-gradient(60% 40% at 40% 0%, rgba(255, 255, 255, 0.05), transparent 72%);
  filter: blur(46px) saturate(130%);
  animation: liquidFlow 28s ease-in-out infinite alternate;
}
@keyframes liquidFlow {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.04) rotate(-2deg); }
  50%  { transform: translate3d(2%, 1.5%, 0) scale(1.10) rotate(1.5deg); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.06) rotate(-1deg); }
}

/* 玻璃面板：低透明白 + 背景模糊 + 顶部内高光 + 细亮边 */
.tabs,
.sample-rail,
.info-panel,
.rail-view,
.sort-toggle,
.imp-card,
.grid-cell,
.dock::after {
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}
.tabs {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.sample-rail {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 54px -38px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.info-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 54px -38px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.rail-view {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.sort-toggle {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.grid-cell {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
}
.grid-cell:hover { border-color: rgba(230, 0, 45, 0.45); }
.dock::after {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 56px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.imp-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.toast {
  background: rgba(22, 25, 31, 0.86);
  border-color: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
