/* ==========================================================================
   胶情局 — 核心设计系统样式表
   设计规范：Tactical Cyber-Mech Operations (机能机甲战术大屏)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌与深浅主题 (Tokens & Theming)
   -------------------------------------------------------------------------- */
:root {
  --accent-orange: #FF5500;
  --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Figma 品牌与业务语义色（主题无关，浅深色通用） */
  --color-brand-pink: #FF6698;
  --color-brand-pink-light: #FFECF3;
  --color-brand-pink-text: #E782A8;
  --color-brand-pink-glow: rgba(255, 102, 152, 0.2);
  --color-brand-blue: #43AEF7;
  --color-brand-blue-bg: #F2F8FF;
  --color-brand-blue-light: #6FB8E3;
  --color-brand-blue-glow: rgba(67, 174, 247, 0.18);
  --color-tag-green: #35D49A;
  --color-tag-green-bg: #E6FAF3;
  --color-tag-yellow: #EDBE3E;
  --color-tag-yellow-bg: #FFFBD6;
  --color-tag-orange: #FFAF19;
  --color-tag-orange-bg: #FFF5E6;
  --color-tag-red: #FF5F62;
  --color-tag-red-bg: #FFECEC;
  --color-tag-purple: #B76DDF;
  --color-tag-purple-bg: #F4EFFF;
  --color-tag-cyan: #687E8B;
  --color-tag-cyan-bg: #ECFAFD;
}

/* ==========================================================================
   主题系统 (Theme System) — 基于 Figma 设计规范
   ========================================================================== */

/* 浅色主题 (Light) — 基于 Figma 设计规范 */
[data-theme="light"] {
  --accent-cyan: #0099CC;
  --bg-base: #F6F7F8;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F2F3F5;
  --bg-surface-hover: #EBEDF0;
  --border-color: #E5E6EB;
  --border-color-strong: #C9CDD4;

  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-muted: #86909C;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
  --header-blur: rgba(246, 247, 248, 0.92);
}

/* 深色主题 (Dark) — 由浅色主题反转推导 */
[data-theme="dark"] {
  --accent-cyan: #00F0FF;
  --bg-base: #0E1016;
  --bg-surface: #161A22;
  --bg-surface-elevated: #1E232D;
  --bg-surface-hover: #262C38;
  /* 品牌底色双模适配: 浅色态为实色淡底, 暗色态改为同色系半透明, 供通报条/标签/选中态等统一消费 */
  --color-brand-pink-light: rgba(255, 102, 152, 0.16);
  --color-brand-blue-bg: rgba(67, 174, 247, 0.14);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-strong: rgba(255, 255, 255, 0.15);

  --text-primary: #F0F2F5;
  --text-secondary: #8B95A5;
  --text-muted: #5A6375;

  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.5);
  --header-blur: rgba(14, 16, 22, 0.9);
}

/* 内部预览标记：固定在页面角落，避免与具体功能模块产生布局耦合 */
.internal-preview-badge {
  position: fixed;
  top: 68px;
  right: 16px;
  z-index: 120;
  padding: 6px 10px;
  border: 1px solid var(--color-tag-orange);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--color-tag-orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--shadow-card);
}

.internal-preview-badge[hidden] {
  display: none;
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  user-select: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --------------------------------------------------------------------------
   2. 顶部战术指挥导航条 (Header)
   -------------------------------------------------------------------------- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-blur);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

/* 徽标双主题版本切换：浅色主题用原版黑字，深色主题切换为白字版 */
.brand-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  max-width: 820px;
  margin: 0 20px;
  /* 断点切换衔接：搜索区宽度随断点平滑伸缩，消除突变 */
  transition: max-width 0.4s ease, margin 0.4s ease, gap 0.4s ease;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  min-width: 200px;
  flex: 1;
}

.search-box-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--color-brand-blue);
  border-radius: 4px 0 0 4px;
  z-index: 2;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 68px 0 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 2px var(--color-brand-blue-glow);
}

.search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-brand-pink);
  pointer-events: none;
  z-index: 2;
}

.search-version-notice {
  position: absolute;
  top: calc(100% + 3px);
  left: 8px;
  z-index: 5;
  max-width: calc(100% - 16px);
  padding: 3px 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.search-version-notice[hidden] {
  display: none;
}

.search-shortcut-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-strong);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  z-index: 2;
}

.search-clear-btn:hover {
  background: rgba(255, 102, 152, 0.15);
  border-color: var(--color-brand-pink);
  color: var(--color-brand-pink);
  transform: translateY(-50%) scale(1.1);
}

/* 全局智能检索与自动补全浮层 (Spotlight Popover) */
.search-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 1020;
  max-height: 420px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: popoverFadeIn 0.18s ease-out;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popover-section {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.popover-section:last-child {
  border-bottom: none;
}

.popover-sec-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popover-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.popover-clear-btn:hover {
  color: var(--color-brand-pink);
  text-decoration: underline;
}

.popover-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popover-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.popover-tag:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  background: var(--bg-surface-hover);
}

.popover-tag.hot {
  border-color: rgba(255, 102, 152, 0.25);
  background: rgba(255, 102, 152, 0.04);
}

.popover-tag.hot:hover {
  border-color: var(--color-brand-pink);
  color: var(--color-brand-pink);
}

.popover-tag-del {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.popover-tag-del:hover {
  color: var(--color-brand-pink);
}

.popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.popover-item:last-child {
  border-bottom: none;
}

.popover-item:hover,
.popover-item.active {
  background: var(--bg-surface-hover);
}

.popover-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.popover-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-base);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.popover-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color-strong) transparent;
}

.notif-rail-scroll::-webkit-scrollbar {
  width: 6px;
}

.notif-rail-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--border-color-strong);
}

.popover-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.popover-item-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.popover-price {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-brand-pink);
}

.popover-conv4 {
  font-size: 10.5px;
  color: var(--color-tag-green);
  font-family: var(--font-mono);
}

.popover-footer {
  padding: 8px 14px;
  background: var(--bg-base);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--color-brand-pink-glow);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-tag-green);
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-color-strong);
}

.btn-icon .badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-brand-pink);
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.btn-lang-toggle {
  height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.btn-lang-toggle:hover {
  border-color: var(--color-brand-pink);
}

/* 用户中心入口 (1:1 严格对齐 Figma 规范，实线粉光，内嵌 LV.0 蓝标签) */
.btn-user-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-surface);
  border: 1px solid var(--color-brand-pink-glow);
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
}

.btn-user-entry:hover {
  border-color: var(--color-brand-pink);
  box-shadow: 0 0 8px var(--color-brand-pink-glow);
}

.btn-user-entry.unlogged {
  border-style: solid;
  border-color: var(--color-brand-pink-glow);
  background: var(--bg-surface);
}

.btn-user-entry .user-lv-tag {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--color-brand-blue-bg);
  color: var(--color-brand-blue);
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.btn-user-entry .user-name-text {
  color: var(--color-brand-pink);
  font-weight: 600;
  font-size: 13px;
}

/* 「身份 · 等级」单行分隔符 */
.btn-user-entry .user-identity-sep {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.user-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  min-width: 0;
  max-width: 120px;
}

.user-name-text {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

.user-rank-tag {
  font-size: 10.5px;
  color: var(--color-brand-pink);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. 主视口三栏架构 (Main 3-Column Layout)
   -------------------------------------------------------------------------- */
.main-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  min-height: calc(100vh - 60px);
  width: 100%;
  /* 断点切换衔接：网格列随断点翻转平滑伸缩（Chromium/Firefox 支持网格列插值） */
  transition: grid-template-columns 0.4s ease;
}

/* 三栏显式网格定位：两侧栏折叠为 fixed 后脱离网格流，
   中间内容必须显式锁定第 2 列，防止自动放置塌陷进第 1 列导致中栏空白 */
.left-sidebar {
  grid-column: 1;
  grid-row: 1;
}

/* .center-content 的栅格定位与内容盒样式已统一收敛至下方 [中栏：核心情报主视区] 章节 (单一事实来源) */

.right-sidebar {
  grid-column: 3;
  grid-row: 1;
}

/* 侧栏展开完成后的内容淡入 (延迟与宽度过渡 0.4s 对齐：等完全展开再展现详细内容) */
@keyframes sidebarContentFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- 左栏：战术过滤与导航 (Left Sidebar - Figma 220px 规范 1:1 还原) --- */
.left-sidebar {
  background-color: var(--bg-surface);
  background-image: url('img/mecha/sidebar-gundam-bg.png');
  background-repeat: no-repeat;
  background-position: left 0px bottom 210px;
  background-size: 450px auto;
  border-right: 1px solid var(--border-color);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  box-sizing: border-box;
  width: 220px;
  flex-shrink: 0;
  /* 断点切换衔接：fixed/sticky 视觉锚点同为视口左上，由窄变宽时宽度自左缘平滑展开 */
  transition: width 0.4s ease, box-shadow 0.4s ease;
}

.nav-group-title {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-filter-reset {
  cursor: pointer;
  color: var(--color-brand-blue);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(67, 174, 247, 0.08);
  border: 1px solid rgba(67, 174, 247, 0.25);
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-filter-reset:hover {
  background: var(--color-brand-blue);
  color: #000;
  box-shadow: 0 0 8px var(--color-brand-blue-glow);
}

.nav-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 56px;
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 16.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* 激活态：100% 直角 + 4 角天蓝色 HUD 直角准星 (1:1 像素级复刻截图原型) */
.nav-item.active {
  border-radius: 0;
  border: none;
  background:
    linear-gradient(to right, #2F9DF4, #2F9DF4) 0 0 / 10px 2.5px no-repeat,
    linear-gradient(to bottom, #2F9DF4, #2F9DF4) 0 0 / 2.5px 10px no-repeat,
    linear-gradient(to left, #2F9DF4, #2F9DF4) 100% 0 / 10px 2.5px no-repeat,
    linear-gradient(to bottom, #2F9DF4, #2F9DF4) 100% 0 / 2.5px 10px no-repeat,
    linear-gradient(to right, #2F9DF4, #2F9DF4) 0 100% / 10px 2.5px no-repeat,
    linear-gradient(to top, #2F9DF4, #2F9DF4) 0 100% / 2.5px 10px no-repeat,
    linear-gradient(to left, #2F9DF4, #2F9DF4) 100% 100% / 10px 2.5px no-repeat,
    linear-gradient(to top, #2F9DF4, #2F9DF4) 100% 100% / 2.5px 10px no-repeat,
    linear-gradient(90deg, rgba(255, 102, 152, 0.08) 0%, rgba(67, 174, 247, 0.05) 100%);
  box-shadow: none;
  color: var(--color-brand-pink);
  font-weight: 600;
}

.nav-item.active .item-left span {
  color: var(--color-brand-pink);
  font-weight: 600;
}

.nav-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: color var(--transition-fast);
}

.nav-item .item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-badge-live {
  font-size: 13.5px;
  padding: 3px 10px;
  background: #FFECF3;
  color: #FF6698;
  border-radius: 4px;
  transform: skew(-8deg);
  display: inline-block;
  font-weight: 600;
  line-height: 1.25;
}

.nav-badge-count {
  font-size: 13.5px;
  padding: 3px 10px;
  background: #F5F6F8;
  color: #86909C;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
  line-height: 1.25;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.filter-item-check span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-item-check:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.filter-item-check.active {
  color: var(--color-brand-pink);
  font-weight: 600;
}

.filter-item-check input[type="checkbox"] {
  accent-color: var(--color-brand-pink);
  cursor: pointer;
}

.filter-badge-count {
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg-base);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* 比价公理指南卡 (Figma 5:3357 侧边栏贴底卡片: 100% 自适应, 8px 圆角, 虚线边框) */
.axiom-card {
  width: 100%;
  min-height: 171px;
  padding: 16px 14px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  align-self: center;
  margin-top: auto;
  margin-bottom: 8px;
}

.axiom-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.axiom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.axiom-list li {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.axiom-dot {
  color: var(--color-brand-blue);
}

.axiom-highlight {
  color: var(--color-brand-blue);
  font-weight: 500;
}

/* 左栏文字/徽章/公理卡入场淡入：与右栏内容块同源同参 (sidebarContentFadeIn)，
   页面加载即播一次、窄视口悬停展开 display 翻转即重放——左右两侧栏文字动画完全统一 */
.left-sidebar .nav-item .item-left span:last-child,
.left-sidebar .nav-badge-live,
.left-sidebar .nav-badge-count,
.left-sidebar .axiom-card,
.left-sidebar .global-icp-footer {
  animation: sidebarContentFadeIn 0.25s ease 0.4s both;
}

/* 首页 Masthead 品牌区与今日胶情样式统一收敛至下方 [视图 1: 首页专属样式] */


/* --- 中栏：核心情报主视区 (Center Content Area) --- */
.center-content {
  grid-column: 2;
  grid-row: 1;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 行动建议五态横幅 (Action Five States) */
.action-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.action-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3.5px solid var(--border-color-strong);
}

.action-status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.action-status-card.selected {
  background: var(--bg-surface-elevated);
  border-color: var(--color-brand-blue);
}

.action-status-card.status-go {
  border-left-color: var(--color-tag-green);
}

.action-status-card.status-watch {
  border-left-color: var(--color-brand-blue);
}

.action-status-card.status-normal {
  border-left-color: var(--text-secondary);
}

.action-status-card.status-premium {
  border-left-color: var(--color-brand-pink);
}

.status-meta h4 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.status-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
}

/* 中栏主工具栏 */
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.view-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-dropdown {
  height: 36px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.btn-view-mode {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-mode.active {
  color: var(--color-brand-pink);
  border-color: var(--color-brand-pink);
  background: var(--bg-surface-elevated);
}

/* 视图 A: 画廊卡片网格 (Cards Grid) - Figma 292px 单元基准 */
.cards-grid {
  display: grid;
  /* min(292px, 100%) 防溢出：中列再窄网格轨道也不会撑破容器 */
  grid-template-columns: repeat(auto-fill, minmax(min(292px, 100%), 1fr));
  gap: 20px 16px;
  justify-items: center;
}

/* 卡片物理固定插槽 (锁定 363px 基准高度，保证卡片悬浮展开时不挤压下方布局) */
.card-slot {
  position: relative;
  width: 100%;
  max-width: 292px;
  height: 363px;
  box-sizing: border-box;
}

.intel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
  cursor: pointer;
  box-sizing: border-box;
  z-index: 1;
}

/* 核心悬浮态：浮在网格槽位上方，深度投影，完全不挤压下方布局 */
.card-slot:hover .intel-card,
.intel-card:hover,
.intel-card.selected {
  transform: translateY(-4px);
  border-color: var(--color-brand-blue);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  z-index: 30;
}

[data-theme="dark"] .card-slot:hover .intel-card,
[data-theme="dark"] .intel-card:hover,
[data-theme="dark"] .intel-card.selected {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  border-color: var(--color-brand-blue);
}

.intel-card.focused {
  outline: 2px solid var(--color-brand-blue);
}

/* 1. 封绘展示窗 (292×180px) */
.card-banner {
  width: 100%;
  height: 180px;
  background: #1D2129;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-banner img.model-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform var(--transition-normal);
}

.card-slot:hover .card-banner img.model-thumb,
.intel-card:hover .card-banner img.model-thumb {
  transform: scale(1.05);
}

.card-banner svg.model-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 封绘底部高达机甲战术平行四边形斜切双标签 (比例 + 纪元) */
.card-banner-series-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 28px;
  z-index: 2;
}

.banner-scale-tag {
  height: 28px;
  padding: 0 14px 0 10px;
  background: rgba(79, 141, 255, 0.9);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  /* 封绘左下角蓝色标签：左上角8px斜切，右上角垂直下落2/3(66.6%)后再斜切到底部 */
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% 66.6%, calc(100% - 10px) 100%, 0 100%);
  filter: drop-shadow(3px 0 4px rgba(0, 0, 0, 0.4));
  z-index: 2;
}

.banner-universe-tag {
  height: 28px;
  padding: 0 14px 0 14px;
  background: rgba(183, 109, 223, 0.85);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 紫色世界观标签：左右两边缘完全平行同构（皆为先竖直下落 2/3 再向左下斜切），严丝合缝 */
  clip-path: polygon(10px 0, 100% 0, 100% 66.6%, calc(100% - 10px) 100%, 0 100%, 10px 66.6%);
  margin-left: -10px;
  z-index: 1;
}

/* 封绘右上角价格状态胶囊 (右上和左下是圆角 12px，左上和右下是直角 0 · 1:1 物理对齐 Figma) */
.card-badge-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 68px;
  height: 26px;
  border-radius: 0 12px 0 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 1px 1px 1px rgba(255, 255, 255, 0.25);
  z-index: 2;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  box-sizing: border-box;
}

.badge-go {
  background: #35D49A;
}

.badge-watch {
  background: #EDBE3E;
}

.badge-normal {
  background: #FFAF19;
}

.badge-premium {
  background: #FF5F61;
}

/* 2. 卡片内容区 */
.card-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

/* 标题行: 分类 Tag (32×20px) + 标题 (15px) 水平横排 */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 21px;
}

.card-category-tag {
  min-width: 32px;
  width: auto;
  height: 20px;
  padding: 0 5px;
  white-space: nowrap;
  border-radius: 2px;
  border: 1px solid #E782A8;
  background: #FFFFFF;
  color: #E782A8;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

[data-theme="dark"] .card-category-tag {
  background: rgba(231, 130, 168, 0.15);
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 价格与推荐指引行: 24px 粉色价格 + 右侧推荐指引 */
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 8px;
}

.current-price {
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-brand-pink);
  display: inline-flex;
  align-items: baseline;
}

.current-price .price-symbol {
  font-size: 14px;
  font-weight: 600;
  margin-right: 2px;
}

.card-recommend-pill {
  font-size: 12px;
  color: var(--color-brand-pink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3. Figma 核心三列比价舱 (260×54px 浅底, 带 2 根 31px 垂直分割线) */
.card-price-compare-box {
  width: 100%;
  max-width: 260px;
  height: 54px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  margin: 0 auto;
  box-sizing: border-box;
}

.compare-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: center;
}

.compare-col.col-standard {
  flex: 1.15;
}

.compare-divider {
  width: 1px;
  height: 31px;
  background: var(--border-color);
  flex-shrink: 0;
}

.compare-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.compare-val {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-val-4 {
  color: var(--color-tag-green);
  font-weight: 600;
}

.compare-val-5 {
  color: var(--color-tag-red);
  font-weight: 600;
}

/* 4. 属性标牌行 (评分、再版、渠道) */
.card-tags-row {
  width: 100%;
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px auto 0;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.tag-star {
  color: #FFAE19;
  font-weight: 500;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tag-reprint {
  height: 20px;
  padding: 0 6px;
  background: #F4EFFF;
  color: #7C748F;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .tag-reprint {
  background: rgba(183, 109, 223, 0.2);
  color: #D6A8F5;
}

.tag-retail {
  height: 20px;
  padding: 0 6px;
  background: #ECFAFD;
  color: #687E8B;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .tag-retail {
  background: rgba(104, 126, 139, 0.2);
  color: #A0B3BF;
}

/* 排序沉底标注徽章 (价格位「未收录价格」/ 属性行「日期未定」，仅对应排序模式显示；颜色走主题变量自适应双模) */
.card-sink-badge {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 400;
}

.card-sink-badge--price {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.card-sink-badge--date {
  height: 20px;
  padding: 0 6px;
  background: var(--bg-surface-hover);
  border-radius: 2px;
  font-size: 12px;
}

/* 5. 分割线与底部双对称操作大按钮 (核心交互：未选中不显示，选中/hover上浮出现) */
.card-divider-line {
  display: none;
  width: 100%;
  max-width: 260px;
  height: 1px;
  background: var(--border-color);
  margin: 12px auto 8px;
  flex-shrink: 0;
}

.card-action-dual-bar {
  display: none;
  width: 100%;
  max-width: 260px;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 选中或鼠标悬停态：卡片上浮同时展示底部按钮行 (悬浮在上方，绝不挤压下方布局) */
.card-slot:hover .card-divider-line,
.intel-card:hover .card-divider-line,
.intel-card.selected .card-divider-line {
  display: block;
}

.card-slot:hover .card-action-dual-bar,
.intel-card:hover .card-action-dual-bar,
.intel-card.selected .card-action-dual-bar {
  display: flex;
  animation: cardActionSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardActionSlideIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左按钮：收藏 (Figma 126×34px 浅底微框) */
.btn-card-fav {
  flex: 1;
  max-width: 126px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.btn-card-fav:hover {
  background: rgba(67, 174, 247, 0.12);
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.btn-card-fav.active {
  background: var(--color-brand-blue);
  color: #FFFFFF;
  border-color: var(--color-brand-blue);
}

[data-theme="dark"] .btn-card-fav {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-card-fav:hover {
  background: rgba(67, 174, 247, 0.18);
  border-color: var(--color-brand-blue);
  color: #FFFFFF;
}

/* 右按钮：去查价 (Figma 126×34px 天蓝渐变白字) */
.btn-card-check-price,
.btn-card-pdd {
  flex: 1;
  max-width: 126px;
  height: 34px;
  border-radius: 4px;
  border: none;
  background: linear-gradient(135deg, #0099FF, #0077EE);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 119, 238, 0.3);
}

.btn-card-check-price:hover,
.btn-card-pdd:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 238, 0.4);
}

.btn-card-action {
  flex: 1;
  padding: 7px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  min-width: 0;
  line-height: 1;
  user-select: none;
}

.btn-card-action span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-card-action.btn-watch:hover,
.btn-card-action.btn-compare:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.btn-card-action.btn-pdd {
  flex: 1.5;
  background: linear-gradient(135deg, rgba(255, 102, 152, 0.12), rgba(255, 133, 176, 0.16));
  border-color: rgba(255, 102, 152, 0.45);
  color: var(--color-brand-pink);
  font-weight: 700;
}

.btn-card-action.btn-pdd:hover {
  background: linear-gradient(135deg, #FF6698, #FF85B0);
  border-color: #FF6698;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 102, 152, 0.35);
}


/* 视图 B: 极客高密表格模式 (Dense Table) */
.dense-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dense-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.dense-table th {
  background: var(--bg-surface-elevated);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  letter-spacing: 0.3px;
}

.dense-table th:nth-child(1),
.dense-table th:nth-child(2),
.dense-table th:nth-child(5),
.dense-table th:nth-child(6),
.dense-table th:nth-child(7),
.dense-table th:nth-child(8),
.dense-table th:nth-child(9),
.dense-table th:nth-child(10),
.dense-table th:nth-child(11) {
  text-align: center;
}

.dense-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  vertical-align: middle;
}

.dense-table td.td-name {
  white-space: normal;
  min-width: 220px;
  max-width: 320px;
  line-height: 1.45;
}

.table-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.table-thumb:hover {
  transform: scale(1.08);
}

.dense-table tr:hover {
  background: var(--bg-surface-hover);
}

.dense-table tr.focused {
  background: var(--bg-surface-elevated);
  outline: 1px solid var(--color-brand-blue);
}

/* 表格操作按钮组件组 (战术终端风格) */
.table-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.btn-table {
  height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.btn-table-watch {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-table-watch:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn-table-watch.active {
  background: rgba(53, 212, 154, 0.12);
  border-color: var(--color-tag-green);
  color: var(--color-tag-green);
  font-weight: 700;
}

.btn-table-pdd {
  background: rgba(255, 102, 152, 0.1);
  border: 1px solid rgba(255, 102, 152, 0.35);
  color: var(--color-brand-pink);
  font-weight: 600;
}

.btn-table-pdd:hover {
  background: rgba(255, 102, 152, 0.2);
  transform: translateY(-1px);
}

.btn-table-compare {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-table-compare:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.btn-table-compare.active {
  background: rgba(67, 174, 247, 0.15);
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  font-weight: 600;
}

.btn-table-detail {
  background: linear-gradient(135deg, #FF557F, #FF758C);
  border: none;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(255, 85, 127, 0.25);
}

.btn-table-detail:hover {
  box-shadow: 0 2px 8px rgba(255, 85, 127, 0.4);
  transform: translateY(-1px);
}

/* 表格内联状态药丸徽章 (彻底告别绝对定位漂移) */
.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.badge-status-pill.badge-go {
  background: rgba(53, 212, 154, 0.12);
  color: var(--color-tag-green);
  border: 1px solid rgba(53, 212, 154, 0.3);
}

.badge-status-pill.badge-watch {
  background: rgba(67, 174, 247, 0.12);
  color: var(--color-brand-blue);
  border: 1px solid rgba(67, 174, 247, 0.3);
}

.badge-status-pill.badge-normal {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-status-pill.badge-premium {
  background: rgba(255, 102, 152, 0.12);
  color: var(--color-brand-pink);
  border: 1px solid rgba(255, 102, 152, 0.3);
}

/* 官方日历看板视图 (Release Calendar View) */
.calendar-view-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-month-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.calendar-month-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-blue);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.calendar-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cal-event-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-event-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}

.cal-event-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
}

/* --- 右栏：实时雷达 & 走势折线图 & 监控池 (Right Sidebar - Figma 272px 规范) --- */
.right-sidebar {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  width: 280px;
  box-sizing: border-box;
  flex-shrink: 0;
  /* 右缘锚定 + 断点切换衔接：由窄变宽时面板自视口右缘向左平滑展开 */
  justify-self: end;
  transition: width 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

/* 右栏展开/收起开关：脱离侧栏 DOM 的独立常驻翻板，fixed 贴附视口右缘垂直居中 (页面中部)。
   平铺态吸附侧栏左缘 (right 随侧栏宽度联动)，侧栏完全折叠后独占视口右缘 */
.right-sidebar-toggle {
  position: fixed;
  right: 280px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 64px;
  border: 1px solid var(--border-color-strong);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
  /* right 与面板宽度同节奏过渡：折叠/展开时按钮贴边平滑滑动 */
  transition: right 0.4s ease, color var(--transition-fast), border-color var(--transition-fast);
}

.right-sidebar .sidebar-section-block {
  animation: sidebarContentFadeIn 0.25s ease 0.4s both;
}

.right-sidebar-toggle:hover {
  color: var(--color-brand-blue, #43AEF7);
  border-color: var(--color-brand-blue, #43AEF7);
}

.right-sidebar-toggle .chevron-expand {
  display: none;
}

/* 宽视口手动收起：右栏完全折叠 (宽度归零)，网格列同步归零，中间内容区变宽，仅留开关在外部 */
.main-workspace.right-collapsed {
  grid-template-columns: 220px minmax(0, 1fr) 0px;
}

.main-workspace.right-collapsed .right-sidebar {
  width: 0;
  padding: 0;
  border-left: none;
  overflow: hidden;
}

.main-workspace.right-collapsed .right-sidebar-toggle {
  right: 0;
}

.main-workspace.right-collapsed .right-sidebar .sidebar-section-block {
  display: none;
}

.main-workspace.right-collapsed .right-sidebar-toggle .chevron-expand {
  display: inline-block;
}

.main-workspace.right-collapsed .right-sidebar-toggle .chevron-collapse {
  display: none;
}

/* 模块容器与分割线 */
.sidebar-section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
  min-width: 0;
}

.sidebar-section-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.sidebar-title-icon {
  flex-shrink: 0;
}

.btn-sidebar-action {
  background: transparent;
  border: 1px solid var(--color-brand-blue);
  color: var(--color-brand-blue);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sidebar-action:hover {
  background: rgba(67, 174, 247, 0.1);
}

/* --- 模块 1 专属：走势图与基准线 --- */

/* 选中机体横条卡片 */
.chart-selected-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-selected-item-card:hover {
  border-color: var(--color-brand-blue);
  box-shadow: 0 2px 8px rgba(67, 174, 247, 0.1);
}

.chart-model-thumb {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  background: #0B0D11;
  flex-shrink: 0;
}

.chart-model-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.chart-btn-pick {
  background: transparent;
  border: none;
  color: var(--color-brand-blue);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}

.chart-btn-pick:hover {
  text-decoration: underline;
}

/* 当前判断与近1日差分行 */
.chart-status-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2px 4px;
}

.chart-status-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-status-col.text-right {
  align-items: flex-end;
}

.chart-status-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.chart-status-val {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.color-pink {
  color: var(--color-brand-pink);
}

.color-green {
  color: var(--color-tag-green);
}

.color-primary {
  color: var(--text-primary);
}

/* SVG 走势图容器 */
.chart-container {
  height: 110px;
  width: 100%;
  position: relative;
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.chart-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
  min-width: 0;
  box-sizing: border-box;
  color: var(--text-secondary);
  background: var(--bg-surface);
  font-size: 14px;
  text-align: center;
}

.chart-empty-state[hidden] { display: none; }
.legend-orange { background: var(--accent-orange); }

.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  padding: 4px 8px;
  background: rgba(11, 13, 17, 0.9);
  color: #FFF;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  pointer-events: none;
  display: none;
  z-index: 10;
  border: 1px solid var(--border-color);
}

/* 横坐标使用实际记录日期 */
.chart-x-axis-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 4px;
}

/* 图例行 */
.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 0 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 14px;
  height: 2px;
  border-radius: 1px;
}

.legend-pink {
  background: var(--color-brand-pink);
}

.legend-blue-dashed {
  background: repeating-linear-gradient(to right, var(--accent-cyan) 0, var(--accent-cyan) 3px, transparent 3px, transparent 5px);
}

/* 底部 3 列指标卡 */
.chart-metrics-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

.metric-block-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

.metric-val {
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 模块 2 专属：实时雷达与官方情报卡片 --- */
.radar-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-intel-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.radar-intel-card:hover {
  transform: translateY(-1px);
  border-color: var(--color-brand-blue);
  box-shadow: 0 2px 8px rgba(67, 174, 247, 0.08);
}

.radar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.radar-card-series {
  font-weight: 600;
}

.radar-card-date {
  font-family: var(--font-mono);
}

.radar-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- 模块 3 专属：我的常驻监控池 --- */
.watchlist-sync-tip-card {
  background: rgba(67, 174, 247, 0.08);
  border: 1px solid rgba(67, 174, 247, 0.18);
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sync-tip-text {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.sync-tip-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-brand-blue);
  text-decoration: none;
}

.sync-tip-link:hover {
  text-decoration: underline;
}

.watchlist-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.watch-model-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.watch-model-card:hover {
  border-color: var(--border-color-strong);
}

.watch-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.watch-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.watch-card-del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.watch-card-del-btn:hover {
  color: var(--color-brand-pink);
}

.watch-card-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.watch-target-val {
  color: var(--text-muted);
}

.watch-current-val {
  color: var(--color-brand-pink);
  font-weight: 700;
}

.btn-delete-watch:hover {
  color: var(--color-tag-red);
}

.watchlist-lock-card {
  text-align: center;
  padding: 16px 10px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lock-icon {
  font-size: 20px;
}

.lock-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.lock-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-lock-login {
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-pink);
  border: none;
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. 模态窗与抽屉系统 (Modals & Drawers)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 680px;
  max-height: 88vh;
  box-shadow: var(--shadow-card);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog.detail-modal-dialog {
  width: 920px;
  max-width: min(920px, 95vw);
  max-height: 90vh;
}

.detail-header-title {
  max-width: 760px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 详情弹窗大屏双栏战术 HUD 排版 */
.detail-two-col-layout {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .detail-two-col-layout {
    grid-template-columns: 1fr;
  }
}

.detail-left-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-left-col .detail-poster-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 240px;
  max-height: 420px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 封绘大图按比例完整渲染：不裁切、不按原始尺寸撑破容器 */
.detail-left-col .detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.detail-panel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-panel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stash-badge-status {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.detail-profile-panel {
  gap: 10px;
  padding: 16px 18px;
  border-top: 3px solid var(--color-brand-blue);
}

.detail-profile-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-spec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--border-color);
}

.detail-series-badge,
.detail-work-badge,
.detail-reissue-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.detail-series-badge {
  color: #fff;
  background: var(--color-brand-blue);
  font-family: var(--font-mono);
}

.detail-work-badge {
  color: var(--color-brand-pink);
  background: color-mix(in srgb, var(--color-brand-pink) 10%, transparent);
}

.detail-reissue-badge {
  margin-left: auto;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
}

.detail-model-name {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1.16;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.detail-model-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-primary-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 4px;
}

.detail-primary-price-label {
  color: var(--text-muted);
  font-size: 12px;
}

.detail-primary-price-value {
  color: var(--color-brand-pink);
  font-family: var(--font-mono);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}

.detail-fact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-color);
}

.detail-fact-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.3fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.35;
}

.detail-fact-row-split {
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr) minmax(108px, auto) minmax(0, 1.6fr);
  gap: 8px 10px;
}

.detail-fact-row span {
  color: var(--text-muted);
}

.detail-fact-row strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-legacy-meta {
  display: none;
}

.detail-spec-meta {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

.detail-price-hud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-primary-price + .detail-fact-list {
  margin-top: 2px;
}

@media (max-width: 600px) {
  .detail-price-hud-grid {
    grid-template-columns: 1fr;
  }
}

.price-hud-card {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-hud-card.hud-card-highlight {
  border-color: rgba(53, 212, 154, 0.35);
  background: rgba(53, 212, 154, 0.04);
}

.hud-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.hud-val {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.hud-val-price {
  font-size: 18px;
  color: var(--color-brand-pink);
}

.detail-review-panel {
  gap: 8px;
  padding: 14px 18px;
  border-left: 4px solid var(--color-brand-blue);
}

.detail-review-panel .detail-panel-header {
  justify-content: flex-start;
}

.detail-rating-summary {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.rating-badge-highlight {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #FFB800;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rating-badge-highlight:empty,
.rating-badge-highlight[data-empty="true"] {
  color: var(--text-muted);
}

.detail-review-desc {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

.detail-tags-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.review-tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.community-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.detail-section-mark {
  color: var(--color-brand-blue);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.detail-community-panel {
  gap: 12px;
  padding: 16px 18px;
  border-left: 4px solid var(--color-brand-blue);
}

.community-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.community-input-row .form-input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 42px;
}

.community-input-row .btn-primary {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 42px;
  padding: 8px 18px;
}

.community-reviews-box {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 80px;
  overflow-y: auto;
}

.community-empty-state {
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0 2px;
}

@media (max-width: 520px) {
  .community-input-row {
    flex-direction: column;
  }

  .community-input-row .btn-primary {
    width: 100%;
  }
}

.detail-links-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.detail-link-pill {
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-brand-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .detail-links-card {
    grid-template-columns: 1fr;
  }
}

.detail-link-pill:hover {
  border-color: var(--color-brand-blue);
  color: #FFF;
  background: var(--color-brand-blue);
}

.detail-link-share {
  color: var(--color-brand-pink);
}

.detail-link-share:hover {
  border-color: var(--color-brand-pink);
  color: #FFF;
  background: var(--color-brand-pink);
}

.detail-modal-footer {
  padding: 14px 20px;
  background: var(--bg-surface-elevated);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.detail-modal-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.modal-footer.detail-modal-footer {
  justify-content: space-between;
}

.detail-footer-feedback,
.detail-footer-watch,
.detail-footer-search {
  min-height: 42px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.detail-footer-feedback {
  color: var(--text-muted);
  border-color: var(--border-color);
}

.detail-footer-watch {
  color: var(--color-brand-blue);
  border-color: rgba(67, 174, 247, 0.35);
  background: rgba(67, 174, 247, 0.08);
}

.detail-footer-watch.active {
  color: var(--text-primary);
  border-color: var(--color-brand-blue);
  background: rgba(67, 174, 247, 0.16);
}

.detail-footer-search {
  border: 0;
  color: #fff;
  background: var(--color-brand-blue);
  box-shadow: 0 4px 12px rgba(67, 174, 247, 0.22);
}

.detail-footer-search:hover {
  color: #fff;
  background: var(--color-brand-blue);
  filter: brightness(1.06);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-surface-elevated);
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-color-strong);
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
}

.btn-primary {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: var(--color-brand-pink);
  border: none;
  color: #FFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-brand-pink-glow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input {
  height: 40px;
  padding: 0 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-brand-pink);
}

/* 下拉特报通知中心 */
.dropdown-menu {
  position: absolute;
  top: 54px;
  right: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 360px;
  padding: 0;
  display: none;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}

.dropdown-menu.active {
  display: flex;
}

/* 双模主题切换图标动效 */
.theme-icon-svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

#themeToggleBtn:hover .theme-icon-svg {
  transform: rotate(25deg);
  color: var(--color-brand-blue);
}

/* 情报通知: 顶栏直达入口与下拉面板 (未读角标全站唯一出口) */
.notif-panel-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  max-height: min(78vh, 540px);
  overflow: hidden;
  text-align: left;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  z-index: 1200;
}

.notif-panel-wrap.active .notif-panel {
  display: flex;
}

.notif-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.btn-notif-action {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-brand-pink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-notif-action:hover {
  color: var(--color-brand-blue);
}

.notif-header {
  padding: 12px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
}

.notif-list-container {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 10px;
  display: flex;
  flex-direction: column;
}

/* 通知统一行封装: 「系统通知」与「我的通知」共用同一封装, 参数控制是否附带行内操作按钮 */
.notif-row {
  position: relative;
  width: 100%;
}

/* 通知时间戳: 与栏目标签同级的小号等宽辅助文本 */
.notif-time {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* 已读态统一降级: 标题转灰, 标签降透明度 (未读态由 .notif-channel-row.unread 统一处理) */
.notif-channel-row.read .notif-channel-title {
  color: var(--text-muted);
  font-weight: 400;
}

.notif-channel-row.read .notif-channel-tag {
  opacity: 0.6;
}

/* 带行内操作按钮的行: 预留右侧空间, 操作按钮绝对定位垂直居中 */
.notif-row-action .notif-channel-row {
  padding-right: 36px;
}

/* 行内「标记为已读 / 标为未读」图标按钮 (三处入口同源) */
.notif-read-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.notif-read-btn:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.notif-row-action .notif-read-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}

.notif-row.unread .notif-read-btn {
  border-color: var(--color-brand-pink-light);
  background: var(--color-brand-pink-light);
  color: var(--color-brand-pink-text);
}

/* 系统通知栏目入口: 顶栏下拉 / 个人中心抽屉 / 通知中心左栏三处同源消费 */
.notif-channels-block {
  flex: 0 0 auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.notif-channels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* 静音回执: 下拉 / 抽屉「系统通知」区块头的铃铛关闭标记 (由 syncAnnounceMute 统一开关) */
.notif-mute-mark {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  color: var(--text-muted);
}

.notif-mute-mark[hidden] {
  display: none;
}

/* 「我的通知」区块头: 复用系统通知区块头组件, 仅补上下分隔线 (下拉 / 抽屉) */
.notif-list-head {
  flex: 0 0 auto;
  border-top: 1px solid var(--border-color);
}

.notif-channel-list {
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding: 0 8px 10px;
}

.notif-channel-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.notif-channel-row:hover {
  background: var(--bg-surface-hover);
}

.notif-channel-tag {
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-pink-light);
  color: var(--color-brand-pink-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.notif-channel-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 13px;
}

.notif-channel-row.unread .notif-channel-title {
  color: var(--text-primary);
  font-weight: 700;
}

.notif-pin-mark {
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-blue-bg);
  color: var(--color-brand-blue);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.notif-channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-pink);
  box-shadow: 0 0 6px var(--color-brand-pink-glow);
}

/* 通知中心模态框: 左栏上下两段独立滚动 + 右栏时间线/单条正文 */
.notif-center-backdrop {
  z-index: 1600;
}

.notif-center-dialog {
  height: min(760px, 88vh);
  width: min(1000px, 94vw);
  max-width: 1000px;
  max-height: 88vh;
  overflow: hidden;
}

.notif-center-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.notif-center-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.notif-rail-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.notif-rail-channels {
  flex: 0 0 auto;
  max-height: 34%;
  border-bottom: 1px solid var(--border-color);
}

.notif-rail-alerts {
  flex: 1 1 auto;
  min-height: 0;
}

.notif-rail-heading {
  padding: 12px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.notif-rail-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-rail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-rail-alert-list {
  flex: 1 1 auto;
}

.notif-rail-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.notif-rail-channel:hover {
  background: var(--bg-surface-hover);
}

.notif-rail-channel.active {
  background: var(--color-brand-blue-bg);
}

.notif-rail-channel-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.notif-rail-channel.unread .notif-rail-channel-name {
  color: var(--text-primary);
  font-weight: 700;
}

.notif-rail-channel.read .notif-rail-channel-name {
  color: var(--text-muted);
  font-weight: 400;
}

.notif-rail-badge {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-brand-pink);
  color: #FFF;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 18px;
}

.notif-center-content {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 26px 28px;
  background: var(--bg-surface-elevated);
}

.notif-center-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.notif-content-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.notif-content-sub {
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.notif-rail-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
}

/* 右栏时间线 (系统公告 / 纸飞机说 各自独立成线) */
.notif-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid var(--border-color);
  padding-left: 18px;
}

/* 单篇长文 (channel.display = article): 去掉时间轴竖线与节点圆点, 改用单篇长文排版 */
.notif-timeline.is-article .notif-timeline-list {
  border-left: none;
  padding-left: 0;
}

/* 单篇长文排版: 阅读版心 + 段落呼吸感 (article 频道专用, 无卡片无折叠) */
.notif-article {
  max-width: 760px;
}

.notif-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.notif-article-stamp {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.notif-article-body {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.85;
}

.notif-article-body p {
  margin: 0 0 14px;
}

.notif-article-body p:last-child {
  margin-bottom: 0;
}

.notif-article-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* 条目卡: 完整加粗标题 + 正文 8 行截断 + 就地展开/收起 */
.timeline-item {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.timeline-item:hover {
  border-color: var(--color-brand-blue);
}

.timeline-item-dot {
  position: absolute;
  left: -27px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface-elevated);
  background: var(--border-color-strong);
  box-sizing: border-box;
}

.timeline-item.unread .timeline-item-dot {
  background: var(--color-brand-pink);
  box-shadow: 0 0 6px var(--color-brand-pink-glow);
}

.timeline-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.timeline-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-item-stamp {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.timeline-item-status {
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

.timeline-item-status.is-unread {
  background: var(--color-brand-pink-light);
  color: var(--color-brand-pink-text);
}

.timeline-item-status.is-read {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
}

.timeline-item-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.timeline-item-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
}

.timeline-item-content.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

.timeline-item-content p {
  margin: 0 0 12px;
}

.timeline-item-content p:last-child {
  margin-bottom: 0;
}

.timeline-item-content strong {
  color: var(--text-primary);
}

/* 正文内图片统一限宽限高: 避免长图/大图撑破阅读区并带出横向滚动 */
.timeline-item-content img,
.notif-article-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 360px);
  max-height: 360px;
  margin: 12px 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* 展开全文: 仅在内容真实溢出时显示, 展开后文案切换为收起 */
.timeline-toggle {
  display: none;
  color: var(--color-brand-blue);
  font-size: 12.5px;
  font-weight: 600;
}

.timeline-item.has-overflow .timeline-toggle {
  display: inline;
}

/* 右栏单条正文 */
.notif-entry-toolbar {
  margin-bottom: 14px;
}

.notif-back-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.notif-back-btn:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.notif-entry-tag {
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-blue-bg);
  color: var(--color-brand-blue);
  font-size: 11.5px;
  font-weight: 700;
}

.notif-entry-title {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.notif-entry-meta {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.notif-entry-body p {
  margin: 0 0 15px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.85;
  word-break: break-word;
}

.notif-entry-body strong {
  color: var(--text-primary);
}

.notif-center-footer {
  justify-content: flex-end;
}

/* 个人中心抽屉 */
.user-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1400;
  display: none;
}

.user-drawer-backdrop.active {
  display: block;
}

.user-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 420px;
  max-width: 94vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color-strong);
  z-index: 1450;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.user-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 16px 20px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

/* 抽屉顶部功能双 Tab 导航 */
.drawer-nav-tabs {
  display: flex;
  padding: 0 16px 10px 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-notification-count {
  display: none;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  padding: 0 4px;
  color: #fff;
  background: var(--color-brand-pink);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
}

.drawer-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.drawer-section-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.drawer-section-caption {
  color: var(--text-muted);
  font-size: 11px;
}

.drawer-notif-list {
  min-height: 120px;
  max-height: none;
  overflow-y: visible;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.drawer-notif-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.drawer-nav-tab {
  flex: 1;
  padding: 8px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.drawer-nav-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-strong);
}

.drawer-nav-tab.active {
  background: rgba(255, 102, 152, 0.12);
  border-color: var(--color-brand-pink);
  color: var(--color-brand-pink);
  font-weight: 700;
}

.drawer-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 紧凑型特工身份微卡片 */
.commander-compact-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.commander-avatar-compact {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
  background: linear-gradient(135deg, #0099FF, #00CCFF);
  flex-shrink: 0;
}

.btn-compact-upgrade {
  background: linear-gradient(135deg, rgba(255, 102, 152, 0.15), rgba(255, 133, 176, 0.25));
  border: 1px solid var(--color-brand-pink);
  color: var(--color-brand-pink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-compact-upgrade:hover {
  background: var(--color-brand-pink);
  color: #FFF;
}

/* 极客级模玩财务大盘 (清爽极简无杂色卡片) */
.stash-portfolio-hero {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-val-num {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--color-tag-green);
  line-height: 1.1;
  margin-top: 2px;
}

.portfolio-count-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.portfolio-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.portfolio-sub-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portfolio-sub-item .sub-label {
  font-size: 10px;
  color: var(--text-muted);
}

.portfolio-sub-item .sub-val {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* 胶仓清单区域 (去掉截断半截的内层强制限高，与整页顺滑共滚) */
.stash-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-stash-scroll-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.commander-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.commander-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.commander-avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #FFF;
  border: 2px solid var(--color-brand-pink);
}

.commander-badges-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tactical-badge {
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(67, 174, 247, 0.1);
  color: var(--color-brand-blue);
  border: 1px solid rgba(67, 174, 247, 0.25);
}

/* -------------------------------------------------------------------------
   特工成长档案卡 (Growth Profile Card - 统一用户基础模型个人中心首期展示)
   全部走 CSS 变量, 浅色/深色双模自适应; 组件样式全局仅此一处定义
   ------------------------------------------------------------------------- */
.growth-profile-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.growth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.growth-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.growth-type-badge {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.growth-badge-blue {
  background: rgba(67, 174, 247, 0.12);
  color: var(--color-brand-blue);
  border: 1px solid rgba(67, 174, 247, 0.3);
}

.growth-badge-pink {
  background: var(--color-brand-pink-glow);
  color: var(--color-brand-pink);
  border: 1px solid var(--color-brand-pink);
}

.growth-level-line {
  font-size: 12.5px;
  color: var(--text-secondary);
  min-width: 0;
}

.growth-level-line b {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-brand-pink);
}

.growth-track {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.growth-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.growth-step.reached {
  border-color: var(--color-brand-pink);
  background: var(--color-brand-pink-glow);
}

.growth-step.locked {
  opacity: 0.55;
}

.growth-step-dot {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-height: 13px;
  color: var(--color-brand-pink);
}

.growth-step-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.growth-step.reached .growth-step-name {
  color: var(--text-primary);
}

.growth-next {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 0;
}

.growth-next b {
  color: var(--color-brand-pink);
}

.growth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.growth-feature-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(53, 212, 154, 0.12);
  color: var(--color-tag-green, #35D49A);
  border: 1px solid rgba(53, 212, 154, 0.3);
  white-space: nowrap;
}

.growth-muted {
  font-size: 11px;
  color: var(--text-muted);
}

.growth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.growth-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  min-width: 0;
  box-sizing: border-box;
}

.growth-stat b {
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.growth-stat span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.growth-empty {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 5态胶仓快速标记按钮与Tab样式 */
.detail-stash-panel {
  gap: 12px;
  padding: 14px 16px;
}

.detail-stash-panel .detail-panel-header {
  justify-content: flex-start;
}

.detail-stash-panel .detail-panel-title {
  font-size: 16px;
  color: var(--text-primary);
}

.stash-status-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.btn-stash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-weight: 500;
}

.stash-radio-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-color-strong);
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
}

.btn-stash-pill:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  background: var(--bg-surface-hover);
}

.btn-stash-pill.active {
  background: rgba(67, 174, 247, 0.15);
  border-color: transparent;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: none;
}

.btn-stash-pill.active .stash-radio-dot {
  border-color: var(--color-brand-blue);
  background: var(--color-brand-blue);
  box-shadow: inset 0 0 0 3px var(--bg-base);
}

.btn-stash-tab {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-stash-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-strong);
}

.btn-stash-tab.active {
  background: var(--color-brand-pink);
  color: #FFF;
  border-color: var(--color-brand-pink);
  font-weight: 700;
}

/* 藏品单项卡片：高密度整齐结构化排版 */
.drawer-stash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer-stash-item:hover {
  border-color: var(--color-brand-pink);
  background: var(--bg-surface-hover);
}

.stash-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.stash-item-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stash-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stash-item-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.stash-status-chip {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.stash-item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.stash-item-current-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-brand-pink);
}

.stash-item-diff-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.btn-stash-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.btn-stash-remove:hover {
  color: var(--color-brand-pink);
}

/* 常驻盯盘监控中心卡片 (Watchlist Hub Modal Cards) */
.watch-modal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.watch-modal-card:hover {
  border-color: var(--color-brand-blue);
  background: var(--bg-surface-hover);
}

/* 萌新指南快捷按钮 */
.btn-guide-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(53, 212, 154, 0.12);
  border: 1px solid rgba(53, 212, 154, 0.35);
  color: var(--color-tag-green);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-guide-header:hover {
  background: rgba(53, 212, 154, 0.22);
  border-color: var(--color-tag-green);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(53, 212, 154, 0.3);
}

/* 渠道属性角标 (PB限定 / 一般通贩 / 基地限定) */
.badge-channel {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.badge-channel.badge-pbandai {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-channel.badge-base {
  background: rgba(67, 174, 247, 0.12);
  color: var(--color-brand-blue);
  border: 1px solid rgba(67, 174, 247, 0.3);
}

.badge-channel.badge-retail {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-channel.badge-event {
  background: rgba(255, 133, 176, 0.12);
  color: var(--color-brand-pink);
  border: 1px solid rgba(255, 133, 176, 0.3);
}

/* 新手作战教程指示圆点 */
.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color-strong);
  transition: all var(--transition-fast);
}

.tour-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-brand-blue);
  box-shadow: 0 0 8px var(--color-brand-blue-glow);
}

/* 推送通道卡与战术开关 */
.channel-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.tactical-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.tactical-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color-strong);
  transition: .25s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked+.switch-slider {
  background-color: var(--color-tag-green);
}

input:checked+.switch-slider:before {
  transform: translateX(20px);
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.btn-logout {
  width: 100%;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 95, 98, 0.12);
  border: 1px solid rgba(255, 95, 98, 0.35);
  color: var(--color-tag-red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast-message {
  padding: 10px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-brand-pink);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 全局智能回到顶部悬浮动作按钮 */
.btn-back-to-top {
  position: fixed;
  bottom: 84px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
  border-color: var(--color-brand-pink);
  color: var(--color-brand-pink);
  box-shadow: 0 0 16px var(--color-brand-pink-glow);
  transform: translateY(-2px) scale(1.04);
}

.btn-back-to-top:active {
  transform: scale(0.92);
}

/* 移动端底部常驻导航 Tab */
.mobile-tabbar {
  display: none;
}

/* --------------------------------------------------------------------------
   5. 响应式断点适配 (Responsive Breakpoints)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  /* 三栏断点统一收编至 1240px/992px 块编排：右栏比价窗在中段视口压缩宽度常驻，不再直接隐藏；
     顶部日元汇率随视口收窄仅做紧凑化，不再隐藏 */
  .action-summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   全新 6 大系统模块专用样式系统 (System Views System)
   ========================================================================== */

/* 视图容器无缝平滑展示 */
.system-view-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  animation: fadeInPanel 0.2s ease-in-out;
}

@keyframes fadeInPanel {
  from {
    opacity: 0.7;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 页面顶部标题卡片通用 */
.page-head-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.page-eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-brand-blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.view-under-construction {
  min-height: min(520px, 62vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.view-under-construction[hidden] {
  display: none;
}

.system-view-panel.is-under-construction > :not(.view-under-construction) {
  display: none;
}

.view-under-construction-icon {
  font-size: 42px;
  line-height: 1;
}

.view-under-construction-eyebrow {
  color: var(--color-brand-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
}

.view-under-construction h2 {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 800;
}

.view-under-construction p {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.view-under-construction-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* --- 视图 1: 首页专属样式 (1:1 严格对齐特写规范 · 舒展通透 · 严格防溢出) --- */
#view-home {
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.masthead-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px 22px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* 左侧圆角天蓝指示竖条 */
.masthead-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4.5px;
  background: var(--color-brand-blue);
  border-radius: 0 4px 4px 0;
}

.masthead-eyebrow-pink {
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-brand-pink);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.masthead-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.masthead-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 8px 0;
}

.masthead-mission {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 18px 0;
  line-height: 1.5;
}

.masthead-divider {
  height: 1px;
  border-top: 1px dashed var(--border-color);
  margin: 18px 0 16px 0;
}

.masthead-meta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.masthead-meta-row .count-pink {
  color: var(--color-brand-pink);
  font-weight: 800;
  font-size: 14.5px;
  font-family: var(--font-mono);
}

/* 今日胶情 HUD 战术看板大卡片 */
.home-today-hud-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

/* 顶部标题栏 */
.today-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* 今日胶情 4 角准星外壳 */
.today-title-hud-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
}

.today-title-text {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.today-hud-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  margin-left: 10px;
}

/* 4 个天蓝准星角 (10px 长, 2.5px 粗, 直角无圆角) */
.today-title-hud-box .hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-brand-blue);
  border-style: solid;
  pointer-events: none;
}

.today-title-hud-box .hud-corner.top-left {
  top: 0;
  left: 0;
  border-width: 2.5px 0 0 2.5px;
}

.today-title-hud-box .hud-corner.top-right {
  top: 0;
  right: 0;
  border-width: 2.5px 2.5px 0 0;
}

.today-title-hud-box .hud-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 2.5px 2.5px;
}

.today-title-hud-box .hud-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 2.5px 2.5px 0;
}

/* 查看完整决策清单链接 */
.today-hud-header .btn-link-action {
  background: transparent;
  border: none;
  color: var(--color-brand-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.today-hud-header .btn-link-action:hover {
  color: var(--color-brand-pink);
  transform: translateX(2px);
}

/* 大盘整体通报横幅 (粉底粉边 + 右侧双蓝块) */
.today-ticker-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--color-brand-pink-light);
  border: 1.5px solid var(--color-brand-pink);
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-brand-pink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.today-ticker-banner .ticker-text {
  font-weight: 700;
  line-height: 1.45;
  min-width: 0;
}

.today-ticker-banner .ticker-signal-blocks {
  font-family: var(--font-mono);
  color: var(--color-brand-blue);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 900;
  flex-shrink: 0;
  margin-left: 10px;
}

/* 三列情报阵列网格 (强制 minmax(0, 1fr) 防被内容撑大) */
.intel-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.intel-col-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.intel-col-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.intel-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  min-width: 0;
}

.intel-col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.intel-col-title .col-slash {
  color: var(--color-brand-pink);
  font-family: var(--font-mono);
  font-weight: 900;
}

.intel-col-header .col-accent-line {
  width: 28px;
  height: 2px;
  background: var(--color-brand-pink);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 列表容器 */
.intel-list-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.intel-row-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast);
  text-decoration: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.intel-row-item:hover {
  background: var(--bg-surface-elevated);
}

.intel-item-rank {
  width: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-brand-blue);
  text-align: center;
  flex-shrink: 0;
}

.intel-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  background: var(--bg-surface-elevated);
  flex-shrink: 0;
}

.intel-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.intel-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-brand-pink);
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

.intel-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast);
  text-decoration: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.intel-event-row:hover {
  background: var(--bg-surface-elevated);
}

.intel-event-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.intel-event-arrow {
  color: var(--color-brand-pink);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.intel-col-footer-blocks {
  margin-top: 10px;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-brand-blue);
  letter-spacing: 2.5px;
  line-height: 1;
}

/* 底部注脚 */
.today-card-footnote {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 8px;
}

/* ==========================================================================
   首页下半段专属样式系统 (1:1 严格对齐特写规范 · 今日榜单 5 列 + 作战中心双栏)
   ========================================================================== */

/* 通用 HUD 标题条 */
.hud-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* 标题右上方的粉色装饰横线 */
.hud-header-line {
  display: inline-block;
  width: 44px;
  height: 2.5px;
  background: var(--color-brand-pink);
  border-radius: 2px;
  margin-left: 14px;
  margin-right: auto;
}

/* 1. 今日榜单 5 列卡片网格 */
.home-leaderboards-hud-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.home-boards-5col-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.board-5col-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 3.5px solid var(--color-brand-blue);
  border-radius: 8px;
  padding: 14px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.board-5col-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-blue);
  box-shadow: 0 4px 12px rgba(67, 174, 247, 0.12);
}

.board-5col-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
  position: relative;
  min-width: 0;
}

.board-5col-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.board-5col-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 卡片右上角蓝色指示小横线 */
.board-5col-blue-dash {
  position: absolute;
  top: 48px;
  right: 0;
  width: 20px;
  height: 2.5px;
  background: var(--color-brand-blue);
  border-radius: 1px;
}

/* 列表容器与行项 */
.board-5col-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.board-row-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.board-row-item:hover {
  background: var(--bg-surface-elevated);
}

.board-row-item:hover .board-item-name {
  color: var(--color-brand-pink);
}

/* 天蓝方框包裹序号 [ 1 ] */
.board-rank-box {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-brand-blue-light);
  border-radius: 3px;
  color: var(--color-brand-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.board-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.board-item-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--color-brand-pink);
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

/* ==========================================================================
   2. 统一榜单页 (独立于资料库筛选与搜索)
   ========================================================================== */
.leaderboard-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--color-brand-blue);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  min-width: 0;
}

.leaderboard-banner-copy { min-width: 0; }
.leaderboard-banner h2 {
  margin: 4px 0 6px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
}
.leaderboard-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.leaderboard-banner-meta {
  min-width: 110px;
  padding-left: 24px;
  border-left: 1px solid var(--border-color);
}
.leaderboard-total-label {
  color: var(--text-muted);
  font-size: 12px;
}
.leaderboard-total {
  margin-top: 4px;
  color: var(--color-brand-pink);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
}
.leaderboard-exit-btn { white-space: nowrap; }
.leaderboard-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.leaderboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 32px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: var(--text-primary);
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}
.leaderboard-row:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--color-brand-blue);
  transform: translateY(-1px);
}
.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-brand-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--color-brand-blue-light);
  border-radius: 4px;
}
.leaderboard-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}
.leaderboard-row-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.leaderboard-row-main strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-row-main small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-row-secondary {
  color: var(--color-brand-pink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.leaderboard-empty {
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}
.leaderboard-load-more {
  align-self: center;
  min-width: 132px;
}

/* ==========================================================================
   3. 底层双栏作战中心 (左侧 62% 作战入口 + 右侧 38% 精选档案)
   ========================================================================== */
.home-bottom-workspace-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin-top: 6px;
}

.home-bottom-left-col,
.home-bottom-right-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 官方发售与再版日历大卡片 */
.entry-calendar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.entry-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.calendar-subcards-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.cal-subcard {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 72px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 0;
  box-sizing: border-box;
}

.cal-subcard:hover {
  border-color: var(--color-brand-blue);
  background: var(--bg-surface-elevated);
}

.cal-subcard.cal-subcard-hot {
  border-top: 2.5px solid var(--color-brand-blue);
}

.cal-subcard-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.cal-subcard-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
}

.cal-item-name {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cal-item-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-brand-pink);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 全部发售与再版日历跳转卡 */
.cal-subcard.cal-subcard-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--color-brand-blue);
}

.cal-link-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.cal-link-text {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.cal-link-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand-blue);
  transition: transform var(--transition-fast);
}

.cal-subcard-link:hover .cal-link-arrow {
  transform: translateX(4px);
}

/* 并排双行动卡 (看行情好价观测 + 大盘行情) */
.action-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.action-big-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}

.action-big-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.action-card-left-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-brand-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.action-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.action-card-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.sparkline-preview {
  margin: 2px 0;
}

.action-card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 400;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.action-big-card:hover .action-card-arrow {
  color: var(--color-brand-blue);
  transform: translateX(4px);
}

/* 右栏: 查看所有档案胶囊按钮 */
.btn-outline-blue {
  background: transparent;
  border: 1.5px solid var(--color-brand-blue);
  color: var(--color-brand-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-outline-blue:hover {
  background: var(--color-brand-blue);
  color: #FFF;
}

/* 3 款精选模型大卡片 */
.featured-archives-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.archive-big-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.archive-big-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-pink);
  box-shadow: 0 4px 14px rgba(255, 102, 152, 0.12);
}

.archive-tag-watermark {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--color-brand-pink);
  letter-spacing: 0.5px;
  opacity: 0.8;
  pointer-events: none;
}

.archive-cover-img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  background: #0B0D11;
  flex-shrink: 0;
}

.archive-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.archive-model-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.archive-price-now {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-brand-pink);
  margin-bottom: 2px;
}

.archive-price-benchmark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- 视图 2: 今日胶情专属样式 --- */
.today-overview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.today-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--color-brand-blue);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.today-action-strip .btn-secondary {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.calendar-scope-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--color-brand-pink);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.calendar-scope-strip label {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.calendar-scope-strip select {
  height: 30px;
  padding: 0 8px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.ov-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}

.ov-tag {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.tag-judge {
  background: rgba(67, 174, 247, 0.15);
  color: var(--color-brand-blue);
  border: 1px solid rgba(67, 174, 247, 0.3);
}

.tag-price {
  background: rgba(0, 255, 102, 0.15);
  color: var(--color-tag-green);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.tag-intel {
  background: rgba(255, 102, 152, 0.15);
  color: var(--color-brand-pink);
  border: 1px solid rgba(255, 102, 152, 0.3);
}

.ov-desc {
  color: var(--text-primary);
  line-height: 1.45;
}

.price-changes-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.change-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.change-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dot-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-status.green {
  background: var(--color-tag-green);
  box-shadow: 0 0 6px var(--color-tag-green);
}

.dot-status.red {
  background: var(--color-brand-pink);
  box-shadow: 0 0 6px var(--color-brand-pink);
}

.dot-status.cyan {
  background: var(--color-brand-blue);
  box-shadow: 0 0 6px var(--color-brand-blue);
}

.dot-status.blue {
  background: #3B82F6;
  box-shadow: 0 0 6px #3B82F6;
}

.dot-status.gold {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

.change-col-header.with-tabs {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.board-tabs-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.board-tab-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.board-tab-pill:hover {
  color: var(--text-primary);
  background: rgba(128, 128, 128, 0.1);
}

.board-tab-pill.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.board-badge-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.price-history-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.price-history-source-badge.real {
  background: rgba(53, 212, 154, 0.12);
  color: var(--color-tag-green);
  border: 1px solid rgba(53, 212, 154, 0.3);
}

.price-history-source-badge.fallback {
  background: rgba(255, 102, 152, 0.12);
  color: var(--color-brand-pink);
  border: 1px solid rgba(255, 102, 152, 0.3);
}

.change-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.change-card-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.change-card-item:hover {
  border-color: var(--color-brand-blue);
}

.events-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}

.event-feed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition-fast);
}

.event-feed-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-blue);
}

/* --- Figma 一体化顶级筛选卡片 (product-card-7 76px ↔ 150px 面板 · 左上 286px 蓝线 + 右下 96px 蓝线) --- */
.database-filter-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 20px;
  overflow: visible;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

/* 顶部左侧 286px 科技蓝线 */
.database-filter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 286px;
  height: 2.5px;
  background: #43AEF7;
  z-index: 3;
}

/* 底部右侧 96px 科技蓝线 */
.database-filter-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 96px;
  height: 2.5px;
  background: #43AEF7;
  z-index: 3;
}

.family-tab-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

/* 下方展开的两行子筛选 (舒展通透 · 杜绝小字挤压) */
.database-sub-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  padding-top: 0;
}

.filter-panel-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 32px;
}

.filter-row-title {
  font-size: 15px;
  color: #86909C;
  width: 88px;
  flex-shrink: 0;
  font-weight: 600;
}

.filter-pill-all {
  height: 28px;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(67, 174, 247, 0.12);
  color: var(--color-brand-blue, #43AEF7);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.filter-pill-all:hover {
  background: rgba(67, 174, 247, 0.2);
}

.filter-options-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  color: var(--color-brand-blue, #43AEF7);
}

.filter-chip.active {
  color: var(--color-brand-blue, #43AEF7);
  font-weight: 600;
}

.chip-arrow {
  color: #C9CDD4;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.filter-chip:hover .chip-arrow,
.filter-chip.active .chip-arrow {
  color: var(--color-brand-blue, #43AEF7);
}

/* 三级标签徽章 (挂在所属二级 chip 旁，双主题跟随品牌蓝变量) */
.sub-option-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  margin-left: 2px;
  border-radius: 11px;
  background: rgba(67, 174, 247, 0.12);
  color: var(--color-brand-blue, #43AEF7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.sub-option-tag:hover {
  background: rgba(67, 174, 247, 0.2);
}

.sub-option-tag .sub-option-tag-text {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-option-tag .sub-option-tag-close {
  font-size: 14px;
  line-height: 1;
}

.filter-chip.chip-more {
  color: var(--color-brand-blue, #43AEF7);
  font-weight: 600;
}

.filter-chip.chip-more .chip-arrow {
  color: var(--color-brand-blue, #43AEF7);
}

.family-tab-btn {
  flex: 0 0 auto;
  min-width: 148px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 4px;
  border: none;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
  transform: skewX(-14deg);
}

.family-tab-btn>* {
  transform: skewX(14deg);
  display: inline-block;
}

.family-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.family-tab-btn.active {
  background: linear-gradient(135deg, #FF557F, #FF758C);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(255, 85, 127, 0.35);
}

[data-theme="dark"] .family-tab-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

[data-theme="dark"] .family-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

[data-theme="dark"] .family-tab-btn.active {
  background: linear-gradient(135deg, #FF557F, #FF758C);
  color: #FFFFFF;
  box-shadow: 0 3px 14px rgba(255, 85, 127, 0.45);
}

/* --------------------------------------------------------------------------
   Figma 1:1 二级子线级联悬浮机甲弹窗 (filter-dropdown-hg 等全系列规范)
   -------------------------------------------------------------------------- */
.filter-dropdown-popover {
  position: absolute;
  z-index: 999;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
}

/* 顶边科技蓝线 (长 160px，高 2.5px，贴顶，左边距 20px) */
.filter-dropdown-popover .dropdown-line-top {
  position: absolute;
  top: 0;
  left: 20px;
  width: 160px;
  height: 2.5px;
  background: #43AEF7;
  z-index: 4;
  border-radius: 1px;
}

/* 底边科技蓝线 (长 80px，高 2.5px，贴底，右边距 20px) */
.filter-dropdown-popover .dropdown-line-bottom {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 80px;
  height: 2.5px;
  background: #43AEF7;
  z-index: 4;
  border-radius: 1px;
}

/* 机甲六边形卡片主体 (右上角斜切 48px，左下角斜切 24px) */
/* 机甲六边形卡片主体 (右上角斜切 36px，左下角斜切 20px，充沛留白呼吸空间) */
.filter-dropdown-popover .dropdown-inner-card {
  background: #FFFFFF;
  clip-path: polygon(0 0,
      calc(100% - 36px) 0,
      100% 36px,
      100% 100%,
      20px 100%,
      0 calc(100% - 20px));
  padding: 22px 28px 24px 28px;
  box-sizing: border-box;
  min-width: 320px;
  max-width: min(960px, calc(100vw - 48px));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 弹窗标题 */
.filter-dropdown-popover .dropdown-header {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-dropdown-popover .dropdown-title {
  font-size: 15px;
  font-weight: 700;
  color: #1D2129;
  font-family: var(--font-main);
  letter-spacing: 0.3px;
}

/* 子选项多列自适应排版 (Flex 纵列流，彻底消灭横向扎堆) */
.filter-dropdown-popover .dropdown-columns-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  column-gap: 28px;
  row-gap: 12px;
  max-width: 100%;
}

.filter-dropdown-popover .dropdown-columns-grid.cols-1 {
  display: flex;
  flex-direction: column;
}

/* 每一列内部严格采用自上而下的纵向排列，各列最小宽度 140px */
.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  flex: 1;
  box-sizing: border-box;
}

/* 单个子选项按钮 (轻量科技胶囊，舒展留白与丝滑微交互) */
.dropdown-sub-item {
  font-size: 13px;
  font-weight: 500;
  color: #4E5969;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: all var(--transition-fast, 0.18s ease);
  display: flex;
  align-items: center;
  line-height: 1.4;
  box-sizing: border-box;
}

.dropdown-sub-item:hover {
  color: var(--accent-cyan, #0099CC);
  background: rgba(0, 153, 204, 0.08);
  transform: translateX(3px);
}

.dropdown-sub-item.active {
  color: #FFFFFF !important;
  background: var(--accent-cyan, #0099CC) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 153, 204, 0.35);
}

/* --- 深色模式自适应 (Dark Mode) --- */
[data-theme="dark"] .filter-dropdown-popover {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

[data-theme="dark"] .filter-dropdown-popover .dropdown-inner-card {
  background: var(--bg-card, #1A1F2C);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .filter-dropdown-popover .dropdown-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .filter-dropdown-popover .dropdown-title {
  color: #F2F3F5;
}

[data-theme="dark"] .dropdown-sub-item {
  color: #C9CDD4;
}

[data-theme="dark"] .dropdown-sub-item:hover {
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.12);
}

[data-theme="dark"] .dropdown-sub-item.active {
  color: #0B0E14 !important;
  background: #00F0FF !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Figma 1:1 点击“更多”全系高级子线悬浮机甲大弹窗 (filter-panel-advanced 800px)
   -------------------------------------------------------------------------- */
.filter-dropdown-more-popover {
  position: absolute;
  z-index: 999;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.14));
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
  width: 800px;
  max-width: calc(100% - 32px);
}

.filter-dropdown-more-popover .dropdown-line-top {
  position: absolute;
  top: 0;
  left: 20px;
  width: 160px;
  height: 2.5px;
  background: #43AEF7;
  z-index: 4;
  border-radius: 1px;
}

.filter-dropdown-more-popover .dropdown-line-bottom {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 80px;
  height: 2.5px;
  background: #43AEF7;
  z-index: 4;
  border-radius: 1px;
}

.filter-dropdown-more-popover .dropdown-inner-card-more {
  background: #FFFFFF;
  clip-path: polygon(0 0,
      calc(100% - 48px) 0,
      100% 48px,
      100% 100%,
      24px 100%,
      0 calc(100% - 24px));
  padding: 24px 28px 26px 28px;
  box-sizing: border-box;
  max-height: 520px;
  overflow-y: auto;
}

.filter-dropdown-more-popover .dropdown-inner-card-more::-webkit-scrollbar {
  width: 4px;
}

.filter-dropdown-more-popover .dropdown-inner-card-more::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.filter-dropdown-more-popover .dropdown-inner-card-more::-webkit-scrollbar-track {
  background: transparent;
}

.more-groups-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.more-group-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.more-group-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.more-group-title {
  width: 90px;
  flex-shrink: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary, #1D2129);
  line-height: 24px;
}

.more-group-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  flex: 1;
}

.more-sub-item {
  font-size: 13.5px;
  color: #4E5969;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.more-sub-item:hover {
  color: #165DFF;
  transform: translateX(1.5px);
}

.more-sub-item.active {
  color: #43AEF7;
  font-weight: 600;
}

/* 深色模式自适应 (Dark Mode) */
[data-theme="dark"] .filter-dropdown-more-popover {
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5));
}

[data-theme="dark"] .filter-dropdown-more-popover .dropdown-inner-card-more {
  background: var(--bg-card, #1A1F2C);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .filter-dropdown-more-popover .dropdown-inner-card-more::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .more-group-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .more-group-title {
  color: #F2F3F5;
}

[data-theme="dark"] .more-sub-item {
  color: #C9CDD4;
}

[data-theme="dark"] .more-sub-item:hover,
[data-theme="dark"] .more-sub-item.active {
  color: #43AEF7;
}

/* Figma 1:1 资料库标题与工具栏 */
.library-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px 0;
  flex-wrap: wrap;
}

.library-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.library-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  letter-spacing: 0.2px;
}

.library-section-title .title-slashes {
  color: var(--color-brand-blue);
  font-weight: 900;
  font-size: 22px;
}

/* 紧凑型状态分类胶囊 */
.category-tabs-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  padding: 3px 4px;
  border-radius: var(--radius-sm);
}

.tab-btn-compact {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn-compact:hover {
  color: var(--text-primary);
}

.tab-btn-compact.active {
  background: var(--bg-surface);
  color: var(--color-brand-blue);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.family-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.family-tab-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.family-tab-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.family-tab-btn.active .family-tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: transparent;
}

/* 卡片专属品类徽标 (战术机甲 HUD 风格) */
.card-family-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.card-family-tag.tag-gunpla {
  background: rgba(67, 174, 247, 0.12);
  color: var(--color-brand-blue);
  border: 1px solid rgba(67, 174, 247, 0.3);
}

.card-family-tag.tag-rider {
  background: rgba(53, 212, 154, 0.12);
  color: var(--color-tag-green);
  border: 1px solid rgba(53, 212, 154, 0.3);
}

.card-family-tag.tag-ultraman {
  background: rgba(255, 95, 98, 0.12);
  color: var(--color-tag-red);
  border: 1px solid rgba(255, 95, 98, 0.3);
}

.card-family-tag.tag-guomo {
  background: rgba(255, 102, 152, 0.12);
  color: var(--color-brand-pink);
  border: 1px solid rgba(255, 102, 152, 0.3);
}

/* --- 视图 6: 关于本站终端排版样式 --- */
.about-terminal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-article-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card-section {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.about-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-pink);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.about-card-section p:last-child {
  margin-bottom: 0;
}

.about-card-section.note-section {
  border-left: 4px solid var(--color-brand-blue);
}

/* --- 视图 7: 特工工具箱 (条目列表 ⇄ 卡片流 · 全数据驱动 · 浅深双模自适应) --- */
#toolboxIndexState,
#toolboxDetailState {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.toolbox-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.toolbox-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.toolbox-hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* 条目列表 (工具箱首页) */
/* 条目列表: 列宽控制在 300–420px 之间 —— 只填 1fr 会让单条目被拉成整行宽, 只有 1 项时尤其失衡 */
.toolbox-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 420px));
  gap: 20px;
  min-width: 0;
}

/* 条目卡: 竖向三段 (图标+标题 / 摘要 / 元信息+箭头)。
 * 早期版本用「图标 | 文字 | 元信息」横向三栏, 而元信息是 nowrap + 不可收缩,
 * 会把文字栏挤到只剩几个字宽, 标题与摘要被压成多行碎字 —— 故改为竖向, 让摘要吃满整行。
 */
.toolbox-entry-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.toolbox-entry-card:hover,
.toolbox-entry-card:focus-visible {
  border-color: var(--color-brand-pink);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  outline: none;
}

.toolbox-entry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.toolbox-entry-icon {
  flex: 0 0 auto;
  font-size: 26px;
  line-height: 1;
}

.toolbox-entry-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  overflow-wrap: anywhere;
}

.toolbox-entry-summary {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  overflow-wrap: anywhere;
  /* 摘要按整卡宽排版后可读性足够; 限 4 行保证同行卡片高度可比 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toolbox-entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-top: auto;
}

.toolbox-entry-meta {
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toolbox-entry-arrow {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--color-brand-pink);
}

/* 条目内容页头部 */
.toolbox-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.toolbox-detail-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.toolbox-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  box-sizing: border-box;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.toolbox-detail-icon {
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1.1;
}

.toolbox-detail-titlebox {
  flex: 1 1 auto;
  min-width: 0;
}

.toolbox-detail-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.toolbox-detail-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  overflow-wrap: anywhere;
}

/* 卡片流 */
/* 卡片流: Civitai 式响应式缩略图网格 (图为主角, 取代原整行大卡) */
.toolbox-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  min-width: 0;
}

.toolbox-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.toolbox-card:hover {
  border-color: var(--color-brand-pink);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* 封面容器: 尺寸统一固定, 图一律不裁切 (contain + 底色垫边), 加载前后零抖动 */
.toolbox-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.toolbox-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toolbox-card-media.is-placeholder {
  border-bottom-style: dashed;
}

.toolbox-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-full);
}

/* 一卡多图: 缩略轨点选即换主图, 不额外开浮层 */
.toolbox-cover-rail {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  overflow-x: auto;
  min-width: 0;
}

.toolbox-cover-thumb {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.toolbox-cover-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toolbox-cover-thumb.is-active {
  border-color: var(--color-brand-pink);
}

.toolbox-thumb-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  opacity: 0.6;
}

.toolbox-card-meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  padding: 10px 12px 12px;
  min-width: 0;
}

.toolbox-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 正文摘要两行截断: 网格高度整齐, 完整原文由「复制咒语」原样取用 */
.toolbox-card-excerpt {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 操作行钉在卡片底部: margin-top auto 吃掉卡片余高 ——
 * 否则摘要短的卡片会把按钮顶上来, 同一行的按钮不在一条基线上。 */
.toolbox-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.toolbox-card-order {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

/* 复制按钮: 实心品牌粉底 + 白字, 与 .btn-primary 同一处理 ——
 * 归属统一到站内交互主色, 不另立第二种交互色。
 * 成功/失败**不换色相**: 只用粉色光晕与虚线边框。法典 §5 把绿/红限定给价格判断语义
 * (好价 / 溢价), 挪用到复制反馈会污染那套语义; 且单靠颜色传达状态也不利于无障碍。
 */
.toolbox-copy-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFF;
  background: var(--color-brand-pink);
  border: 1px solid var(--color-brand-pink);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.toolbox-copy-btn:hover,
.toolbox-copy-btn:focus-visible {
  box-shadow: 0 4px 14px var(--color-brand-pink-glow);
}

.toolbox-copy-btn:active {
  transform: scale(0.96);
}

/* 反馈态: 不引入第二套语义色 */
.toolbox-copy-btn.is-copied {
  box-shadow: 0 0 0 3px var(--color-brand-pink-glow);
}

.toolbox-copy-btn.is-copy-failed {
  border-style: dashed;
  opacity: 0.65;
}

.toolbox-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
}

.toolbox-media-placeholder-icon {
  font-size: 20px;
  line-height: 1;
  opacity: 0.6;
}

.toolbox-media-placeholder-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.toolbox-media-placeholder-dim {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.toolbox-empty {
  padding: 40px 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color-strong);
  border-radius: var(--radius-lg);
}

/* 工具箱小屏收窄: 网格降为双列, 卡片同步紧凑, 复制按钮恒与标题同行且不压缩 */
@media (max-width: 768px) {
  .toolbox-hero-title {
    font-size: 24px;
  }

  .toolbox-entry-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .toolbox-entry-card {
    padding: 18px 20px;
  }

  .toolbox-detail-head {
    padding: 18px 20px;
  }

  .toolbox-detail-title {
    font-size: 20px;
  }

  .toolbox-detail-bar {
    flex-wrap: wrap;
  }

  .toolbox-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .toolbox-card-meta {
    padding: 8px 10px 10px;
  }

  .toolbox-card-title {
    font-size: 13px;
  }

  .toolbox-card-excerpt {
    font-size: 12px;
  }

  .toolbox-copy-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .toolbox-lightbox-stage {
    padding: 64px 10px 118px;
  }

  .toolbox-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .toolbox-lightbox-nav.is-prev {
    left: 8px;
  }

  .toolbox-lightbox-nav.is-next {
    right: 8px;
  }

  .toolbox-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .toolbox-lightbox-title {
    font-size: 13.5px;
  }

  .toolbox-lightbox-meta {
    font-size: 11.5px;
  }

  .toolbox-lightbox-thumb {
    width: 44px;
    height: 44px;
  }

  .toolbox-lightbox-info {
    padding: 14px 14px 16px;
    gap: 8px;
  }
}

/* 工具箱样图全屏预览 (灯箱)
 * 设计取舍: 该层在浅色与深色双模下都坐落在深色遮罩之上, 故控件配色刻意采用
 * 半透明黑白玻璃质感 (而非主题表面色), 两种主题下对比度表现一致, 不会出现
 * 浅色主题里白底按钮突兀、深色主题里控件与背景糊成一片。
 */
.toolbox-lightbox-backdrop {
  background: rgba(8, 10, 14, 0.9);
}

.toolbox-lightbox {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* 舞台铺满整层: 点空白处关闭, 点图片本身不关闭 */
.toolbox-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 8vh, 88px) clamp(56px, 9vw, 120px) clamp(104px, 15vh, 140px);
  box-sizing: border-box;
  overflow: hidden;
}

.toolbox-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.toolbox-lightbox-stage img.is-loaded {
  opacity: 1;
}

/* 加载态: 大图就位前给一个旋转骨架, 消除"点了没反应"的错觉 */
.toolbox-lightbox-stage.is-loading::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--color-brand-pink);
  border-radius: var(--radius-full);
  animation: toolboxLightboxSpin 0.8s linear infinite;
}

@keyframes toolboxLightboxSpin {
  to {
    transform: rotate(360deg);
  }
}

.toolbox-lightbox-stage .toolbox-media-placeholder,
.toolbox-lightbox-stage .toolbox-media-placeholder-text {
  color: rgba(255, 255, 255, 0.72);
}

/* 关闭与翻页: 浮在图片之上, 竖向居中贴边 */
.toolbox-lightbox-close,
.toolbox-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.toolbox-lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 16px;
}

.toolbox-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.toolbox-lightbox-nav.is-prev {
  left: 16px;
}

.toolbox-lightbox-nav.is-next {
  right: 16px;
}

.toolbox-lightbox-close:hover,
.toolbox-lightbox-nav:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}

.toolbox-lightbox-close:active {
  transform: scale(0.94);
}

.toolbox-lightbox-nav:active {
  transform: translateY(-50%) scale(0.94);
}

/* 单图时直接隐去箭头, 不留"点了没用"的死控件 */
.toolbox-lightbox-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

/* 底部信息层: 标题 + 计数 + 缩略图轨 + 键盘提示 */
.toolbox-lightbox-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  box-sizing: border-box;
  pointer-events: none;
}

.toolbox-lightbox-caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: min(100%, 760px);
  min-width: 0;
  pointer-events: auto;
}

.toolbox-lightbox-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbox-lightbox-meta {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

.toolbox-lightbox-thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 2px;
  overflow-x: auto;
  pointer-events: auto;
}

.toolbox-lightbox-thumbs:empty {
  display: none;
}

.toolbox-lightbox-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.62;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.toolbox-lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toolbox-lightbox-thumb:hover {
  opacity: 1;
}

.toolbox-lightbox-thumb.is-active {
  border-color: var(--color-brand-pink);
  opacity: 1;
}

.toolbox-lightbox-thumb .toolbox-thumb-blank {
  color: rgba(255, 255, 255, 0.6);
}

.toolbox-lightbox-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}

/* 触屏设备没有物理键盘, 隐去快捷键提示 */
@media (hover: none) {
  .toolbox-lightbox-hint {
    display: none;
  }
}

/* 灯箱展开时锁定背景滚动, 避免滑动穿透 */
body.toolbox-lightbox-open {
  overflow: hidden;
}

/* --- 响应式中等视口与过渡态适配体系 --- */
@media (max-width: 1440px) {
  .top-header {
    padding: 0 18px;
  }

  .header-center {
    margin: 0 14px;
    gap: 12px;
  }

  .search-box-wrapper {
    min-width: 180px;
  }

  .stat-pill {
    padding: 4px 8px;
    font-size: 12px;
  }

  .user-name-text {
    max-width: 80px;
  }
}

@media (max-width: 1240px) {
  .top-header {
    padding: 0 14px;
  }

  .brand-titles .slogan {
    display: none;
  }

  /* 顶部日元汇率紧凑常驻 */
  .header-stats {
    gap: 10px;
  }

  .header-center {
    margin: 0 10px;
    max-width: 420px;
  }

  .header-actions {
    gap: 6px;
  }

  .user-meta-wrap {
    max-width: 90px;
  }

  .user-name-text {
    max-width: 75px;
  }

  /* 中等视口 (993px ~ 1240px)：左栏收窄图标条，右栏默认完全折叠，中间内容最高优先级 */
  .main-workspace {
    grid-template-columns: 64px minmax(0, 1fr) 0px;
  }

  /* 右栏默认完全折叠 (仅留右缘中部翻板开关)；手动展开为浮层（fixed 贴附视口右上） */
  .right-sidebar {
    position: fixed;
    right: 0;
    top: 60px;
    width: 0;
    padding: 0;
    border-left: none;
    overflow: hidden;
    transition: width 0.4s ease, box-shadow 0.4s ease;
  }

  .right-sidebar .sidebar-section-block {
    display: none;
  }

  /* 折叠态：按钮独占视口右缘，箭头显示 ‹ (展开) */
  .right-sidebar-toggle {
    right: 0;
  }

  .right-sidebar-toggle .chevron-expand {
    display: inline-block;
  }

  .right-sidebar-toggle .chevron-collapse {
    display: none;
  }

  .right-sidebar.expanded {
    width: 240px;
    padding: 20px 16px;
    border-left: 1px solid var(--border-color);
    z-index: 1100;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
  }

  /* 展开浮层态：按钮吸附浮层左缘，箭头显示 › (收起)。开关与侧栏为兄弟节点，用相邻选择器联动 */
  .right-sidebar.expanded + .right-sidebar-toggle {
    right: 240px;
  }

  .right-sidebar.expanded + .right-sidebar-toggle .chevron-expand {
    display: none;
  }

  .right-sidebar.expanded + .right-sidebar-toggle .chevron-collapse {
    display: inline-block;
  }

  .right-sidebar.expanded .sidebar-section-block {
    display: flex;
    /* 恒定终宽：浮层过渡期间内容不随面板宽度重排 */
    width: 208px;
  }

  .left-sidebar {
    /* 悬停浮层与折叠态统一固定定位：任何滚动位置下窄条始终置顶贴附视口左上 */
    position: fixed;
    left: 0;
    padding: 20px 4px;
    overflow-x: hidden;
    /* 折叠态宽度使能修复：基础 220px 会在 64px 轨道上溢出盖住正文，窄条必须真正收窄 */
    width: 64px;
    transition: width 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  }

  /* 折叠态导航项 56x56 正方形：HUD 准星特效完整包络，图标恰居窄条中心；
     展开态恢复 220px 恒宽与标准内边距承载文字徽章 */
  .nav-item {
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    transition: all var(--transition-fast), width 0.4s ease;
  }

  .left-sidebar.expanded .nav-item {
    /* 与常态完全一致的排版：导航项随内容区伸展（196px），徽章内边距对齐常态，
       消除恒宽 220px 溢出内容区导致的"展开后窄一截"观感 */
    width: auto;
    padding: 0 14px;
    justify-content: space-between;
  }

  /* 折叠态详细内容 display:none 不占位（保障窄条图标居中）；
     展开态文字淡入与右栏同源同款：sidebarContentFadeIn 关键帧 0.4s 延时对齐面板宽度过渡，
     hover 自动展开与类驱动手动展开共用同一条动画，观感完全一致 */
  .nav-item .item-left span:last-child,
  .nav-badge-live,
  .nav-badge-count,
  .axiom-card,
  .global-icp-footer {
    display: none;
    opacity: 0;
  }

  .left-sidebar.expanded .nav-item .item-left span:last-child {
    display: inline-block;
  }

  .left-sidebar.expanded .nav-badge-live,
  .left-sidebar.expanded .nav-badge-count {
    display: inline-block;
  }

  .left-sidebar.expanded .axiom-card {
    display: block;
    /* 恒定终宽：展开过渡期间卡片不随面板宽度重排 */
    width: 196px;
  }

  .left-sidebar.expanded .global-icp-footer {
    display: flex;
  }

  .nav-item .item-left span:first-child {
    font-size: 20px;
    margin: 0;
  }

  /* 图标栏悬停展开：浮于内容层之上，图标与折叠前同位，仅宽度平滑过渡 (仅本断点内生效) */
  .left-sidebar.expanded {
    width: 220px;
    padding: 20px 12px;
    z-index: 1300;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  }

  .left-sidebar.expanded .axiom-card {
    /* 恒定终宽：展开过渡期间卡片不随面板宽度重排 */
    width: 196px;
  }
}

@media (max-width: 992px) {
  .user-rank-tag {
    display: none;
  }

  .btn-user-entry {
    padding: 5px 8px;
    gap: 6px;
  }

  .header-center {
    max-width: 300px;
  }

  .main-workspace {
    grid-template-columns: 60px minmax(0, 1fr) 0px;
  }

  .left-sidebar {
    width: 60px;
    padding: 20px 2px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 56px;
  }

  /* 顶栏防溢出适配 */
  .top-header {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .header-left {
    gap: 8px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-titles h1 {
    font-size: 16px;
  }

  .brand-titles .slogan {
    display: none;
  }

  .header-center {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin: 0;
  }

  .search-box-wrapper {
    min-width: 0 !important;
    width: 100%;
  }

  .search-shortcut-badge {
    display: none;
  }

  .search-popover {
    max-height: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .popover-thumb {
    width: 32px;
    height: 32px;
  }

  .main-workspace {
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .left-sidebar {
    display: none;
  }

  /* 移动端下右侧栏转化为底部常驻情报与监控卡片流，确保数据永不丢失 */
  .right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-left: none;
    /* 中和窄条/浮层规则：移动端固定恢复底部卡片流形态 */
    position: static;
    width: auto;
    height: auto;
    overflow-x: visible;
  }

  .right-sidebar .sidebar-section-block {
    display: flex;
    width: auto;
  }

  .right-sidebar-toggle {
    display: none;
  }

  .right-sidebar.expanded {
    width: auto;
    box-shadow: none;
  }

  .center-content {
    padding: 10px 10px 70px 10px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* 首页 (Home) 专属移动端呼吸感排版 */
  .masthead-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .masthead-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .masthead-desc {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .masthead-meta-row {
    gap: 10px;
    flex-direction: column;
    font-size: 11.5px;
    padding-top: 10px;
  }

  /* 四大任务入口：小屏下转为舒适单列，消除内部文字重叠 */
  .home-tasks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .task-entry-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .task-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .task-title {
    font-size: 14px;
  }

  .task-sub {
    font-size: 11.5px;
    line-height: 1.4;
  }

  /* 四大快捷榜单：在手机端自适应双列网格，紧凑且清晰 */
  .home-board-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .board-chip {
    padding: 10px 10px;
    gap: 8px;
  }

  .board-chip b {
    font-size: 12.5px;
  }

  .board-chip small {
    font-size: 10px;
  }

  .board-chip .chip-dot {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 6px;
  }

  .leaderboard-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px;
  }
  .leaderboard-banner h2 { font-size: 24px; }
  .leaderboard-banner-meta {
    min-width: 82px;
    padding-left: 14px;
  }
  .leaderboard-exit-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .leaderboard-list { grid-template-columns: 1fr; }
  .leaderboard-row {
    grid-template-columns: 30px 50px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .leaderboard-thumb { width: 50px; height: 50px; }
  .leaderboard-row-secondary {
    grid-column: 3;
    text-align: left;
  }

  /* 首页今日行动决策卡片网格：单列通栏卡片 */
  .home-summary-section {
    padding: 14px 12px;
    gap: 12px;
  }

  .action-grid-home {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .action-status-card {
    padding: 10px 12px;
  }

  .action-status-card .status-meta h4 {
    font-size: 13.5px;
  }

  .action-status-card .status-meta p {
    font-size: 11px;
  }

  .action-status-card .status-number {
    font-size: 18px;
  }

  /* 行动看板单列自适应 */
  .action-summary-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }


  /* 工具栏与分类 Tab：改为横向原生平滑滑动，文字永不挤压变形 */
  .content-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .category-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .view-toggles {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .sort-dropdown {
    flex: 1;
    font-size: 12.5px;
    height: 36px;
  }

  /* 卡片列表 */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-banner {
    height: 180px;
  }

  .card-body {
    padding: 12px;
    gap: 8px;
  }

  .card-title {
    font-size: 15px;
  }

  .current-price {
    font-size: 20px;
  }

  .card-actions {
    gap: 6px;
  }

  .btn-card-action {
    font-size: 12px;
    padding: 6px 4px;
    white-space: nowrap;
  }

  /* 弹窗响应式图文折叠排版 */
  .modal-dialog {
    width: 95%;
    max-height: 90vh;
  }

  .detail-two-col-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-left-col .detail-poster-wrapper {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .detail-model-name {
    font-size: 24px;
  }

  .detail-fact-row {
    grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
  }

  .detail-fact-row-split {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  }

  .detail-fact-row-split > :nth-child(3) {
    grid-column: 1;
  }

  .detail-fact-row-split > :nth-child(4) {
    grid-column: 2;
  }

  .detail-modal-footer {
    align-items: stretch;
  }

  .detail-modal-footer-actions {
    width: 100%;
    justify-content: stretch;
  }

  .detail-footer-feedback,
  .detail-footer-watch,
  .detail-footer-search {
    flex: 1 1 auto;
  }

  .spec-th,
  .spec-td {
    font-size: 12.5px;
  }

  /* 今日胶情视图移动端单列排版 */
  .price-changes-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .today-overview-box {
    padding: 12px 14px;
    gap: 8px;
  }

  .ov-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12.5px;
  }

  /* 行情模块移动端响应式：在手机小屏隐藏 11 列宽表格，切换为舒适纵向卡片流，绝不发生左右横向滑动 */
  .market-desktop-table {
    display: none !important;
  }

  .market-mobile-cards {
    display: flex !important;
  }

  .pagination-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch !important;
    text-align: center;
  }

  .pagination-bar>div:last-child {
    justify-content: center;
  }

  /* 移动端回到顶部按钮避让底部 Tab 栏与对比悬浮栏 */
  .btn-back-to-top {
    bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 40px;
    height: 40px;
  }

  /* 移动端底部常驻导航 (全兼容 iOS 底部安全区 Safe Area) */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10.5px;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
    padding: 4px 0;
  }

  .mobile-tab:active {
    transform: scale(0.92);
  }

  .mobile-tab.active {
    color: var(--color-brand-pink);
    font-weight: 700;
  }

  .mobile-tab .tab-emoji {
    font-size: 17px;
  }
}

/* 针对小屏手机 (< 420px) 极限微调 */
@media (max-width: 420px) {
  .brand-titles h1 {
    font-size: 14.5px;
  }

  .top-header {
    padding: 6px 8px;
  }

  .center-content {
    padding: 8px 8px 68px 8px;
  }

  .mobile-tab {
    font-size: 9.5px;
  }

  .mobile-tab .tab-emoji {
    font-size: 15px;
  }

  .view-under-construction {
    min-height: 420px;
    padding: 28px 16px;
  }

  .view-under-construction h2 {
    font-size: 24px;
  }

  .view-under-construction-actions {
    width: 100%;
  }

  .view-under-construction-actions button {
    width: 100%;
  }
}

/* =============================================================================
   7. 全局悬浮战术对比栏 (Floating Compare Dock) 样式
   ============================================================================= */
.compare-dock-wrapper {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
}

.compare-dock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--color-brand-pink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 12px var(--color-brand-pink-glow);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.compare-dock-pill:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--bg-surface-elevated);
}

.compare-dock-badge {
  background: var(--color-brand-pink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 12px;
  font-weight: 800;
}

.compare-dock-panel {
  display: none;
  width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  padding: 14px;
  margin-bottom: 10px;
  animation: slideUpFade 0.2s ease-out;
}

.compare-dock-panel.expanded {
  display: block;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.compare-dock-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.compare-dock-action-btn:hover {
  color: var(--color-brand-pink);
  background: rgba(255, 102, 152, 0.08);
}

.compare-dock-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.compare-dock-slot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  transition: border-color 0.15s ease;
}

.compare-dock-slot-item:hover {
  border-color: var(--color-brand-blue);
}

.compare-slot-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
}

.compare-slot-info {
  flex: 1;
  min-width: 0;
}

.compare-slot-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-slot-price {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--color-brand-pink);
  font-weight: 700;
}

.compare-slot-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
}

.compare-slot-remove-btn:hover {
  color: var(--color-tag-red);
  background: rgba(255, 95, 98, 0.12);
}

.compare-dock-empty {
  text-align: center;
  padding: 20px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.compare-dock-submit-btn {
  width: 100%;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

/* 卡片上的对比按钮样式 */
.btn-card-action.btn-compare.active {
  background: rgba(56, 139, 253, 0.15) !important;
  color: var(--color-brand-blue) !important;
  border-color: var(--color-brand-blue) !important;
}

/* =============================================================================
   8. 行情走势与多规格对决中枢 (Market Trend Hub) 样式
   ============================================================================= */
.market-presets-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.market-top-search-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
  user-select: none;
}

.market-top-search-hint:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.market-hot-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.preset-label {
  color: var(--text-muted);
  font-weight: 700;
}

.preset-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  border-color: var(--color-brand-pink);
  color: var(--color-brand-pink);
}

.preset-chip.active {
  background: rgba(255, 102, 152, 0.12);
  border-color: var(--color-brand-pink);
  color: var(--color-brand-pink);
  font-weight: 700;
}

/* 行情标题栏与视角切换器 */
.market-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.market-sec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-mode-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
}

.mode-btn {
  padding: 4px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.price-data-notice {
  padding: 16px 24px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.price-data-notice[hidden] { display: none; }

/* 行情现价卡片网格 */
.market-parallel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.parallel-compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.parallel-compare-card.highlight {
  border-color: var(--card-color, var(--color-brand-blue));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.parallel-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.parallel-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
}

.parallel-meta {
  flex: 1;
  min-width: 0;
}

.parallel-grade-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.parallel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parallel-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}

.parallel-current-price {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.parallel-price-evidence {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.parallel-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.parallel-diff-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.parallel-diff-tag.down {
  background: rgba(53, 212, 154, 0.12);
  color: var(--color-tag-green);
}

.parallel-diff-tag.up {
  background: rgba(255, 102, 152, 0.12);
  color: var(--color-brand-pink);
}

/* 微走势 Sparkline 容器 */
.parallel-sparkline-wrap {
  position: relative;
  height: 60px;
  width: 100%;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.parallel-sparkline-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sparkline-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text-primary);
  opacity: 0.7;
  pointer-events: none;
  display: none;
}

.sparkline-hover-val {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 4px;
  border-radius: 3px;
  display: none;
}

/* 多折线同轴对比大图 */
.market-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}

.market-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-mode-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  color: var(--color-brand-blue);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
}

.market-legend-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.market-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.market-legend-pill.active {
  border-color: var(--curve-color);
  color: var(--text-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
}

.market-legend-pill.inactive {
  opacity: 0.4;
  text-decoration: line-through;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--curve-color);
}

.market-canvas-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

#marketCompareCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.market-crosshair-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  border-left: 1px dashed rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.market-crosshair-tooltip {
  position: absolute;
  top: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(10px);
  min-width: 180px;
}

/* 战术对比看板 */
.market-tactical-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tactical-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tactical-board-card.highlight-drop {
  border-left: 4px solid var(--color-tag-green);
}

.tactical-board-card.highlight-steady {
  border-left: 4px solid var(--color-brand-blue);
}

.tactical-board-card.highlight-value {
  border-left: 4px solid var(--color-brand-pink);
}

.tactical-board-card.highlight-advice {
  border-left: 4px solid #a371f7;
}

.tactical-card-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tactical-card-model {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.tactical-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 移动端响应式微调 */
@media (max-width: 768px) {
  .home-today-banner {
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .home-today-copy h2 {
    font-size: 21px;
  }

  .home-today-signal {
    min-width: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-color);
    border-left: 0;
  }

  .home-leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .today-action-strip,
  .calendar-scope-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-scope-strip label,
  .calendar-scope-strip select {
    width: 100%;
  }

  .compare-dock-wrapper {
    bottom: 74px;
    right: 14px;
  }

  .compare-dock-panel {
    width: calc(100vw - 28px);
    max-width: 360px;
  }

  .market-parallel-grid {
    grid-template-columns: 1fr;
  }

  .market-canvas-container {
    height: 220px;
  }
}

/* ==========================================================================
   机动兵器 HUD 专属矢量资产与图标系统 (Mecha SVG Icons & Banners)
   ========================================================================== */

.axiom-title-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: inline-block;
}

.task-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.chip-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

.mecha-title-banner {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
}

.mecha-title-banner-lg {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
}

.section-title-icon-radar {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.section-title-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* =============================================================================
   首屏加载骨架 (App Boot Skeleton)
   全量数据集体积较大，在应用脚本解析就绪前提供即时视觉反馈，避免首屏长时间白屏。
   由 app.js 的 dismissBootSkeleton() 移除，并带 10 秒兜底超时。
   ============================================================================= */
.app-boot-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 24px;
  background: var(--bg-base);
  transition: opacity var(--transition-normal);
}

.app-boot-skeleton.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.app-boot-skeleton__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.app-boot-skeleton__brand {
  width: 180px;
  height: 34px;
  border-radius: var(--radius-md);
}

.app-boot-skeleton__search {
  flex: 1;
  max-width: 560px;
  height: 34px;
  border-radius: var(--radius-full);
}

.app-boot-skeleton__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  min-height: 0;
  overflow: hidden;
}

.app-boot-skeleton__card {
  height: 240px;
  border-radius: var(--radius-lg);
}

.app-boot-skeleton__brand,
.app-boot-skeleton__search,
.app-boot-skeleton__card {
  background: linear-gradient(90deg, var(--bg-surface-elevated) 25%, var(--bg-surface-hover) 37%, var(--bg-surface-elevated) 63%);
  background-size: 400% 100%;
  animation: boot-skeleton-shimmer 1.4s ease-in-out infinite;
}

.app-boot-skeleton__hint {
  flex-shrink: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

@keyframes boot-skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .app-boot-skeleton__brand,
  .app-boot-skeleton__search,
  .app-boot-skeleton__card {
    animation: none;
  }
}

/* =============================================================================
   键盘巡航焦点态 (J / K 上下巡航时高亮当前机体)
   ============================================================================= */
.card-slot.kb-focus .intel-card,
#denseTableBody tr.kb-focus {
  outline: 2px solid var(--color-brand-pink);
  outline-offset: 2px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 4px var(--color-brand-pink-glow);
}

#denseTableBody tr.kb-focus > td {
  background: var(--bg-surface-hover);
}

/* 通知中心移动端: 单栏切换 (左栏目录 ↔ 右栏正文), 全屏铺满, 双模主题变量自适应 */
@media (max-width: 768px) {
  .notif-center-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .notif-center-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .notif-center-rail {
    border-right: 0;
  }

  .notif-center-content {
    display: none;
    padding: 16px 16px 22px;
  }

  .notif-center-dialog.show-content .notif-center-rail {
    display: none;
  }

  .notif-center-dialog.show-content .notif-center-content {
    display: block;
  }

  .notif-rail-back-btn {
    display: inline-flex;
  }

  .notif-rail-channels {
    max-height: 50%;
  }

  .notif-entry-title {
    font-size: 19px;
  }
}
.notif-content-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-content-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.notif-content-action-text {
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.notif-content-action-text:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.notif-mute-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.notif-mute-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--color-brand-blue);
}

@media (max-width: 720px) {
  .notif-mute-toggle span {
    display: none;
  }
}
