/* ===== Dollog — 清爽白色 + 金色主题 ===== */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --card-hover: #FFFEF9;
  --txt: #1A1A1A;
  --muted: #6B7280;
  --accent: #C49B2C;
  --accent-light: #FDF8E8;
  --ok: #22c583;
  --ok-bg: #e6faf1;
  --warn: #f5a623;
  --warn-bg: #fff6e6;
  --bad: #f2566b;
  --bad-bg: #ffeaed;
  --border: #E5E7EB;
  --shadow: rgba(196, 155, 44, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  /* ── 新增设计 token ── */
  --shadow-sm: 0 1px 3px rgba(196, 155, 44, 0.04);
  --shadow-md: 0 4px 16px rgba(196, 155, 44, 0.08);
  --shadow-lg: 0 8px 32px rgba(196, 155, 44, 0.12);
  --shadow-xl: 0 16px 48px rgba(196, 155, 44, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: 12px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --content-max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 禁止移动端双指缩放和双击缩放 */
html {
  touch-action: manipulation;
}

body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* ── 双栏布局 ── */
.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 0;
}

.app-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding-top: 48px; /* 为顶部导航栏留出空间 */
}

.app-content.chat-app {
  overflow: hidden;
}

/* ── 左侧导航栏 ── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  z-index: 250;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  flex-shrink: 0;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sidebar-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sidebar-logo-text {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent, #C49B2C);
}

.sidebar-nav {
  list-style: none;
  padding: 8px 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #6B7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: none;
}

.sidebar-link:hover {
  background: #F3F4F6;
  color: #1A1A1A;
}

.sidebar-link.active {
  background: #F3F4F6;
  color: #1A1A1A;
  font-weight: 600;
  box-shadow: none;
}

.sidebar-user {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  display: block;
  color: #1A1A1A;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  display: block;
  color: #6B7280;
  font-size: 11px;
  font-weight: 600;
}

.btn-logout {
  padding: 5px 12px;
  background: #FDF8E8;
  color: #C49B2C;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.btn-logout:hover {
  background: rgba(242,86,107,.1);
  color: var(--bad);
  border-color: var(--bad);
}

.sidebar-footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 600;
  border-top: 1px solid #E5E7EB;
}

/* ── 侧栏：新建对话 + 搜索 ── */
.sidebar-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 6px;
}

.sidebar-chat-actions .btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sidebar-chat-actions .btn-new-chat:hover {
  background: #A37F1F;
  box-shadow: var(--shadow-md);
}

.sidebar-search-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sidebar-search-toggle:hover,
.sidebar-search-toggle.active {
  color: var(--accent);
  border-color: rgba(196, 155, 44, 0.35);
  background: rgba(196, 155, 44, 0.08);
}

.sidebar-chat-search-wrap {
  padding: 0 14px 12px;
  position: relative;
  z-index: 20;
}

.chat-search-box {
  position: relative;
  max-width: 520px;
}

.sidebar-chat-search-box {
  max-width: none;
}

.chat-search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--txt);
  box-shadow: var(--shadow-sm);
}

.chat-search-input:focus {
  outline: none;
  border-color: rgba(196, 155, 44, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 155, 44, 0.08);
}

.chat-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 24;
}

.chat-search-section-title {
  padding: 8px 10px 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.chat-search-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.chat-search-item:hover {
  background: var(--accent-light);
}

.chat-search-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt);
}

.chat-search-item-excerpt,
.chat-search-empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 侧栏：对话历史 ── */
.sidebar-conversations {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
  min-height: 0;
}

.sidebar-conversations.hidden {
  display: none;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 8px 6px;
}

.sidebar-conv-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  gap: 8px;
  border: 1px solid transparent;
  text-decoration: none;
}

.conv-item-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.conv-item:hover {
  background: #F3F4F6;
}

.conv-item.active {
  background: #F3F4F6;
  border-color: var(--border);
}

.conv-item-icon {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

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

.conv-item.active .conv-item-title {
  font-weight: 600;
}

.conv-item.pinned {
  background: rgba(196, 155, 44, 0.04);
}

.conv-item.pinned .conv-item-icon {
  opacity: 1;
}

.conv-item-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.conv-item:hover .conv-item-actions {
  opacity: 1;
}

.conv-action-btn {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.96);
  cursor: pointer;
  font-size: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
  color: var(--muted);
}

.conv-action-btn:hover {
  background: #E5E7EB;
}

.conv-item-more {
  font-size: 18px;
  font-weight: 700;
}

.conv-item-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 30;
}

.conv-item-menu-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--txt);
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.conv-item-menu-btn:hover {
  background: #F3F4F6;
}

.conv-item-menu-btn.danger {
  color: var(--bad);
}

.conv-item-delete:hover {
  background: var(--bad-bg);
}

.conv-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px 10px;
  opacity: 0.7;
}

/* ── 侧栏分割线 ── */
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}

/* ── 全局顶部导航栏 ── */
.global-topbar {
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  z-index: 200;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar-brand {
  display: none;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
}

.topbar-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: none;
}

.topbar-link:hover {
  background: #F3F4F6;
  color: var(--txt);
}

.topbar-link.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* ── 顶栏下拉菜单 ── */
.topbar-dropdown {
  position: relative;
}

.topbar-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.topbar-arrow {
  font-size: 10px;
  opacity: 0.6;
}

.topbar-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 140px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 300;
}

.topbar-dropdown:hover .topbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar-dropdown-item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}

.topbar-dropdown-item:hover {
  background: #F3F4F6;
  color: var(--txt);
}

.topbar-dropdown-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* ── 顶栏二级子菜单（知识库） ── */
.topbar-submenu {
  position: relative;
}
.topbar-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.topbar-submenu-menu {
  position: absolute;
  left: 100%;
  top: -4px;
  margin-left: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 120px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 310;
}
.topbar-submenu:hover .topbar-submenu-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.topbar-submenu-toggle:hover {
  background: #F3F4F6;
  color: var(--txt);
}
.topbar-submenu-toggle.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* 移动端：子菜单改为内嵌展开 */
@media (max-width: 768px) {
  .topbar-submenu-menu {
    position: static;
    margin-left: 0;
    padding-left: 12px;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .topbar-lang-submenu .topbar-lang-menu {
    display: none;
  }
  .topbar-lang-submenu.open .topbar-lang-menu {
    display: block;
  }
}

.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.topbar-user-dropdown {
  position: relative;
}

.topbar-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 20px;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-avatar-btn:hover {
  box-shadow: 0 0 0 3px rgba(196, 155, 44, 0.15);
}

.topbar-avatar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
}

.topbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}

.topbar-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px;
  padding: 8px 0;
  z-index: 999;
}

.topbar-user-menu.show {
  display: block;
}

.topbar-user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.topbar-credit-card {
  padding: 12px 16px;
  min-width: 240px;
}

.topbar-credit-head,
.topbar-credit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-credit-head {
  font-size: 13px;
  color: var(--txt);
  margin-bottom: 8px;
}

.topbar-credit-meta {
  font-size: 12px;
  color: var(--txt-muted, #6b7280);
}

.topbar-credit-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #eceff3;
  overflow: hidden;
  margin: 10px 0;
}

.topbar-credit-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c49b2c 0%, #e0b94d 100%);
}

.topbar-credit-period {
  margin-top: 8px;
  font-size: 11px;
  color: var(--txt-muted, #6b7280);
}

.topbar-user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--txt);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.topbar-user-menu-item:hover {
  background: #F3F4F6;
}

.topbar-user-menu-logout:hover {
  color: var(--bad);
  background: var(--bad-bg);
}

/* ── Language submenu (user menu) ── */
.topbar-lang-submenu {
  position: relative;
}
.topbar-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--txt);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.topbar-lang-toggle:hover {
  background: #F3F4F6;
}
.topbar-lang-toggle .topbar-arrow {
  transition: transform 0.2s;
}
.topbar-lang-submenu.open .topbar-lang-toggle .topbar-arrow {
  transform: rotate(90deg);
}
.topbar-lang-menu {
  display: none;
  position: relative;
  left: auto;
  top: auto;
  min-width: auto;
  background: #fff;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 4px 0 0 0;
  margin-top: 4px;
  z-index: 1000;
}
.topbar-lang-submenu.open .topbar-lang-menu {
  display: block;
}
.topbar-lang-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px 8px 24px;
  font-size: 13px;
  color: var(--txt);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.topbar-lang-item:hover {
  background: #F3F4F6;
}
.topbar-lang-item.active {
  color: var(--accent);
  font-weight: 700;
}

/* ── 管理后台内部导航 ── */
.admin-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: #F3F4F6;
  border-radius: 10px;
  width: fit-content;
}

.admin-nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.admin-nav-link:hover {
  color: var(--txt);
}

.admin-nav-link.active {
  background: #fff;
  color: var(--txt);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── 汉堡按钮（默认隐藏，移动端在顶栏显示） ── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #F3F4F6;
}

/* ── 遮罩层（默认隐藏） ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
  opacity: 0;
  transition: opacity .3s;
}

.sidebar-overlay.show,
.sidebar-overlay.active {
  opacity: 1;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── 头部横幅 ── */
.header-banner {
  background: linear-gradient(135deg, #C49B2C 0%, #D4A537 50%, #E8C547 100%);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle at 30% 60%, rgba(255,255,255,.12), transparent 60%);
  pointer-events: none;
}

.header-banner h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.1);
  position: relative;
}

.header-banner #meta {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
  position: relative;
}

/* ── 刷新按钮 ── */
.btn-refresh {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(255,255,255,.22);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .15s;
  z-index: 5;
}

.btn-refresh:hover {
  background: rgba(255,255,255,.38);
  transform: scale(1.05);
}

.btn-refresh:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-refresh.spinning {
  animation: spin .8s linear infinite;
}

/* ── 容器 ── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ── 卡片 ── */
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), #E8C547, var(--accent));
  background-size: 200% 100%;
  animation: shimmer 4s ease infinite;
  opacity: 0;
  transition: opacity .3s;
}

.card:hover::before {
  opacity: 1;
}

@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── 新增全局动画 Keyframes ── */
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes gradientBorder {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes floatGlow {
  0%,100% { box-shadow: 0 0 4px rgba(196,155,44,.3); }
  50% { box-shadow: 0 0 12px rgba(196,155,44,.6); }
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ── 卡片标题 ── */
h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2 .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-light);
  font-size: 15px;
  flex-shrink: 0;
}

/* ── 市场立场 ── */
#stance p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
}

#stance p strong {
  color: var(--accent);
}

#stance .note {
  color: var(--muted);
  font-size: 12px;
  background: var(--accent-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* ── KPI 网格 ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.kpi {
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: transform .2s, border-color .2s;
  position: relative;
}

.kpi:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.kpi .t {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.kpi .v {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 2px;
}

.kpi .change-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.up { color: var(--ok); }
.up.change-badge { background: var(--ok-bg); color: var(--ok); }
.down { color: var(--bad); }
.down.change-badge { background: var(--bad-bg); color: var(--bad); }
.flat { color: var(--warn); }
.flat.change-badge { background: var(--warn-bg); color: var(--warn); }

/* ── 表格 ── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}

thead {
  background: var(--accent-light);
}

th {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
}

td {
  padding: 11px 10px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

tbody tr {
  transition: background .15s;
}

tbody tr:hover {
  background: #FFFEF9;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ── 新闻 ── */
#news h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--txt);
  margin: 14px 0 6px;
  padding: 4px 10px;
  background: var(--accent-light);
  border-radius: 8px;
  display: inline-block;
}

#news ul {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}

#news li {
  padding: 7px 0;
  border-bottom: 1px dashed #E5E7EB;
  font-size: 13px;
}

#news li:last-child {
  border-bottom: none;
}

#news a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}

#news a:hover {
  color: #A07E22;
  text-decoration: underline;
}

/* ── 投资建议 ── */
#advice {
  list-style: none;
  padding: 0;
}

#advice li {
  position: relative;
  padding: 10px 12px 10px 32px;
  margin-bottom: 8px;
  background: #FAFAFA;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid var(--border);
  line-height: 1.6;
}

#advice li::before {
  content: '✦';
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--accent);
  font-size: 13px;
}

.risk {
  color: var(--warn);
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--warn-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warn);
  font-weight: 600;
}

/* ── 图表区域 ── */
.chart-wrap {
  background: #FAFAFA;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1.5px solid var(--border);
}

/* ── 页脚 ── */
.footer {
  text-align: center;
  padding: 20px 16px 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── 加载动画 ── */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity .4s;
}

.loading-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loader-text {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 淡入动画（仅日报页，由 app.js IntersectionObserver 驱动） ── */
.dashboard-grid .card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo), box-shadow .22s ease;
}

.dashboard-grid .card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-grid .card.revealed.slide-left {
  animation: slideInLeft .5s var(--ease-out-expo) forwards;
}

.dashboard-grid .card.revealed.slide-right {
  animation: slideInRight .5s var(--ease-out-expo) forwards;
}

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

/* ── TAB 导航栏 ── */
.tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #FAFAFA;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.tab-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(196, 155, 44, .25);
}

/* ── Tooltip（动量评分说明） ── */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
  margin-left: 4px;
  transition: background .2s;
  outline: none;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus {
  background: var(--accent);
  color: #fff;
}

.tooltip-box {
  display: none;
  background: var(--txt);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.tooltip-box.show {
  display: block;
}

/* ── VIX 半圆仪表盘 ── */
.vix-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vix-gauge svg {
  width: 180px;
  height: 120px;
  overflow: visible;
}

.vix-gauge-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 14;
  stroke-linecap: round;
}

.vix-gauge-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease, stroke .3s ease;
}

.vix-gauge-value {
  font-size: 22px;
  font-weight: 800;
  fill: var(--txt);
  text-anchor: middle;
  dominant-baseline: middle;
}

.vix-gauge-label-text {
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.vix-gauge-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.vix-gauge-badge.vg-ok { background: var(--ok-bg); color: var(--ok); }
.vix-gauge-badge.vg-warn { background: var(--warn-bg); color: var(--warn); }
.vix-gauge-badge.vg-bad { background: var(--bad-bg); color: var(--bad); }

/* ── 板块轮动 ── */
.sector-group {
  margin-bottom: 10px;
}

.sector-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.sector-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 6px 6px 0;
  border: 1.5px solid var(--border);
  transition: transform .15s;
}

.sector-chip:hover {
  transform: scale(1.05);
}

.sector-chip.up {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok);
}

.sector-chip.down {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad);
}

.sector-chip.flat {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn);
}

/* ── 7天展望英雄区 ── */
.card-lead {
  background: linear-gradient(135deg, #FFFEF9 0%, #FDF8E8 50%, #FFFDF5 100%);
  border-color: var(--accent);
}

/* 上层：三列玻璃态指标卡片 */
.outlook-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.outlook-metric-card {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.outlook-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196, 155, 44, .1);
}

.outlook-metric-card .metric-icon {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.outlook-metric-card .metric-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.outlook-metric-card .metric-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
}

.outlook-metric-card .metric-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* 天气颜色 */
.outlook-metric-card.weather-sunny .metric-icon { color: #f5a623; }
.outlook-metric-card.weather-cloudy .metric-icon { color: #6B7280; }
.outlook-metric-card.weather-overcast .metric-icon { color: #4B5563; }
.outlook-metric-card.weather-storm .metric-icon { color: var(--bad); }

/* VIX 仪表盘在卡片内缩小 */
.outlook-metric-card .vix-gauge svg {
  width: 130px;
  height: 88px;
}

/* 下层：核心策略全宽 */
.outlook-strategy {
  margin-top: 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0 12px 12px 0;
}

.strategy-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.5;
}

.strategy-fallback {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ── 催化剂时间线 ── */
.catalyst-timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 8px;
}

.catalyst-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.catalyst-day {
  position: relative;
  margin-bottom: 16px;
}

.catalyst-day::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.catalyst-day-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 6px;
}

.catalyst-event {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  padding: 4px 0;
}

.catalyst-event .impact-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
}

.impact-green { background: var(--ok); }
.impact-yellow { background: var(--warn); }
.impact-red { background: var(--bad); }

/* ── RRG 象限图 ── */
.rrg-wrap {
  margin-top: 16px;
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ── 暗马候选 ── */
.dark-horse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.dark-horse-chip {
  background: var(--ok-bg);
  border: 1.5px solid var(--ok);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: transform .15s;
}

.dark-horse-chip:hover {
  transform: scale(1.03);
}

.dark-horse-chip .dh-symbol {
  font-size: 14px;
  font-weight: 800;
  color: var(--txt);
}

.dark-horse-chip .dh-name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.dark-horse-chip .dh-stats {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* ── 卡片式观察名单 ── */
.watchlist-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.watch-card {
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.watch-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow);
}

.wc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.wc-symbol {
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
}

.wc-name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.signal-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.signal-badge.signal-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.signal-badge.signal-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.wc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.wc-price {
  font-size: 20px;
  font-weight: 800;
}

.wc-change {
  font-size: 14px;
  font-weight: 700;
}

.wc-metrics {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.wc-metrics span strong {
  color: var(--txt);
}

.wc-levels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wc-levels span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.level-support {
  background: var(--ok-bg);
  color: var(--ok);
}

.level-resist {
  background: var(--bad-bg);
  color: var(--bad);
}

/* ── 响应式：移动端侧边栏 ── */
@media (max-width: 768px) {
  .conv-item-actions {
    opacity: 1;
  }

  .conv-item {
    align-items: flex-start;
    padding: 10px;
  }

  .conv-item-title {
    font-size: 13px;
  }

  .sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    height: 100vh;
    height: 100dvh;
    transition: left .25s ease;
  }

  .sidebar.open,
  .sidebar.sidebar-open {
    left: 0;
  }

  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }

  .sidebar-overlay.active,
  .sidebar-overlay.show {
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: block;
  }

  .global-topbar {
    left: 0;
  }

  .topbar-nav {
    display: flex;
  }

  .header-banner {
    padding-left: 20px;
  }

  .btn-refresh {
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .header-banner h1 { font-size: 20px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi .v { font-size: 18px; }
  table { font-size: 12px; }
  th, td { padding: 8px 6px; }
  .card { padding: 16px 14px; margin: 12px 0; }
  .tab-bar { gap: 4px; }
  .tab-btn { padding: 5px 12px; font-size: 12px; }
  .sector-chip { padding: 4px 10px; font-size: 12px; }
  .outlook-metrics { gap: 8px; }
  .outlook-metric-card { padding: 14px 10px; border-radius: 12px; }
  .outlook-metric-card .metric-icon { font-size: 28px; }
  .outlook-metric-card .metric-value { font-size: 14px; }
  .outlook-metric-card .vix-gauge svg { width: 110px; height: 74px; }
  .outlook-strategy { padding: 12px 14px; }
  .watchlist-cards { grid-template-columns: 1fr; }
  .dark-horse-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .outlook-metrics { grid-template-columns: 1fr; }
  .outlook-metric-card .vix-gauge svg { width: 130px; height: 88px; }
}

/* ── AI 分析区块（高级瓷片布局） ── */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ai-tile {
  background: linear-gradient(135deg, #FAFAFA 0%, #F9FAFB 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.ai-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.ai-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow);
}

.ai-tile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-tile-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: .2px;
}

.ai-tile p,
.ai-tile li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--txt);
}

.ai-tile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-tile ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
}

.ai-tile ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 色彩主题变体 */
.ai-tile.tile-narrative::before { background: var(--accent); }
.ai-tile.tile-narrative .ai-tile-icon { background: var(--accent-light); color: var(--accent); }
.ai-tile.tile-narrative ul li::before { background: var(--accent); }

.ai-tile.tile-overview::before { background: #6c8cff; }
.ai-tile.tile-overview .ai-tile-icon { background: #eef2ff; color: #6c8cff; }
.ai-tile.tile-overview ul li::before { background: #6c8cff; }

.ai-tile.tile-anomaly::before { background: var(--warn); }
.ai-tile.tile-anomaly .ai-tile-icon { background: var(--warn-bg); color: var(--warn); }
.ai-tile.tile-anomaly ul li::before { background: var(--warn); }

.ai-tile.tile-catalyst::before { background: var(--ok); }
.ai-tile.tile-catalyst .ai-tile-icon { background: var(--ok-bg); color: var(--ok); }
.ai-tile.tile-catalyst ul li::before { background: var(--ok); }

.ai-tile.tile-hedge::before { background: #a78bfa; }
.ai-tile.tile-hedge .ai-tile-icon { background: #f3eeff; color: #a78bfa; }
.ai-tile.tile-hedge ul li::before { background: #a78bfa; }

.ai-tile.tile-news::before { background: #38bdf8; }
.ai-tile.tile-news .ai-tile-icon { background: #e8f7ff; color: #38bdf8; }
.ai-tile.tile-news ul li::before { background: #38bdf8; }

.ai-tile.tile-risk::before { background: var(--bad); }
.ai-tile.tile-risk .ai-tile-icon { background: var(--bad-bg); color: var(--bad); }
.ai-tile.tile-risk ul li::before { background: var(--bad); }

.ai-tile.tile-advice::before { background: #f472b6; }
.ai-tile.tile-advice .ai-tile-icon { background: #fef0f5; color: #f472b6; }
.ai-tile.tile-advice ul li::before { background: #f472b6; }

/* 跨两列（叙事分析 / 分市场建议 较长时） */
.ai-tile.tile-wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-tile.tile-wide { grid-column: auto; }
}

/* ── 日报管理状态 ── */
.report-status p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.report-status strong { color: var(--txt); }
.admin-msg.info { color: var(--accent); background: var(--accent-light); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: var(--radius-sm); }

/* ── 日报生成进度条 ── */
.report-progress-wrap { margin: 14px 0; }
.report-progress-bar {
  height: 10px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.report-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  border-radius: 6px;
  transition: width .4s ease;
}
.report-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 6px;
}

/* ── 日报生成日志面板 ── */
.report-log-panel {
  margin: 14px 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.report-log-header {
  background: var(--accent-light);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.report-log-body {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 14px;
  background: #1A1A1A;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
  font-size: 12px;
  line-height: 1.8;
}
.report-log-line {
  color: rgba(255,255,255,.7);
  white-space: pre-wrap;
  word-break: break-all;
}
.report-log-line.log-success { color: var(--ok); font-weight: 700; }
.report-log-line.log-error { color: var(--bad); font-weight: 700; }

/* ── 日报生成历史列表 ── */
.report-history-list {
  margin-top: 4px;
  max-height: 440px;
  overflow-y: auto;
}
.report-history-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 24px 0;
}
.report-history-item {
  border-bottom: 1px solid var(--border);
  padding: 10px 4px;
  transition: background .15s;
}
.report-history-item:last-child {
  border-bottom: none;
}
.report-history-item:hover {
  background: #FFFEF9;
}
.rh-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.rh-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.rh-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.rh-fail {
  background: var(--bad-bg);
  color: var(--bad);
}
.rh-date {
  font-weight: 700;
  color: var(--txt);
}
.rh-trigger {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.rh-trigger-admin {
  background: var(--accent-light);
  color: var(--accent);
}
.rh-trigger-cron {
  background: #eef2ff;
  color: #6c8cff;
}
.rh-trigger-auto {
  background: var(--warn-bg);
  color: var(--warn);
}
.rh-ai {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.rh-ai-yes {
  background: var(--ok-bg);
  color: var(--ok);
}
.rh-ai-no {
  background: #F3F4F6;
  color: var(--muted);
}
.rh-duration {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.rh-user {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.rh-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
}
.rh-error {
  font-size: 12px;
  color: var(--bad);
  padding: 4px 0 0 32px;
  word-break: break-all;
}

@media (max-width: 640px) {
  .rh-main {
    gap: 6px;
  }
  .rh-time {
    margin-left: 0;
    width: 100%;
    padding-left: 32px;
  }
}

/* ── 催化剂日历弹窗 ── */
.catalyst-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.catalyst-modal-overlay.show {
  display: flex;
}

.catalyst-modal-box {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 640px;
  width: 92%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  animation: fadeUp .25s ease;
}

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

.catalyst-modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

.catalyst-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.catalyst-modal-close:hover {
  background: var(--bad-bg);
  color: var(--bad);
}

.catalyst-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.catalyst-more-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.catalyst-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ── 侧边栏折叠子菜单 ── */
.sidebar-group { list-style: none; }

.sidebar-group-toggle {
  width: 100%;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.sidebar-arrow {
  transition: transform .2s;
  font-size: 14px;
}

.sidebar-group.open .sidebar-arrow {
  transform: rotate(90deg);
}

.sidebar-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding-left: 18px;
}

.sidebar-group.open .sidebar-submenu {
  max-height: 120px;
}

.sidebar-sub-link {
  font-size: 13px;
  padding: 7px 14px;
}

/* ===== 指标字典页面 ===== */

.indicator-search {
  width: 100%;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: var(--txt);
  background: var(--card);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 14px;
}

.indicator-search::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.indicator-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 155, 44, .12);
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.indicator-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: fadeUp .4s ease forwards;
  opacity: 0;
}

.indicator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(196, 155, 44, .12);
  border-color: var(--accent);
}

.ind-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ind-abbr {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 10px;
  letter-spacing: .3px;
}

.ind-cat-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.ind-cat-fundamental {
  background: #eef2ff;
  color: #6c8cff;
}

.ind-cat-technical {
  background: var(--ok-bg);
  color: var(--ok);
}

.ind-cat-macro {
  background: var(--warn-bg);
  color: var(--warn);
}

.ind-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 8px;
}

.ind-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--txt);
  margin-bottom: 10px;
}

.ind-example {
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.ind-example-label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 6px;
  margin-right: 6px;
  letter-spacing: .2px;
}

.indicator-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  padding: 48px 0;
}

@media (max-width: 640px) {
  .indicator-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 仪表盘 UI/UX 升级 — 新增样式 ========== */

/* ── 仪表盘分区布局 ── */
.dashboard-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.zone-hero { margin-bottom: 0; }

.zone-kpi-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 0;
}

.zone-kpi-strip::-webkit-scrollbar { display: none; }

.kpi-strip-inner {
  display: flex;
  gap: 12px;
  min-width: max-content;
  padding: 0 2px;
}

.kpi-strip-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 150px;
  text-align: center;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
  cursor: default;
}

.kpi-strip-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.kpi-strip-item .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.kpi-strip-item .kpi-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
}

.kpi-strip-item .kpi-sub {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.zone-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0 20px;
  align-items: start;
}

.zone-main-left,
.zone-main-right {
  min-width: 0;
}

.zone-bottom {
  margin-top: 8px;
}

/* ── 新闻横向滚动 ── */
.news-horizontal {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.news-horizontal::-webkit-scrollbar { display: none; }

.news-category-card {
  flex-shrink: 0;
  width: 280px;
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.news-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.news-category-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 10px;
  padding: 4px 10px;
  background: var(--accent-light);
  border-radius: 8px;
  display: inline-block;
}

.news-category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-category-card li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.6;
}

.news-category-card li:last-child { border-bottom: none; }

.news-category-card a {
  color: var(--txt);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}

.news-category-card a:hover {
  color: var(--accent);
}

/* ── 骨架屏加载 ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }

.skeleton-block {
  height: 120px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* ── 涟漪效果 ── */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(196,155,44,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ── 实时数据脉冲 ── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.5s ease-in-out infinite;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── 鼠标跟随光效 ── */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(196,155,44,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.card:hover::after {
  opacity: 1;
}

/* ── 渐变文字效果 ── */
.hero-title-gradient,
.strategy-text {
  background: linear-gradient(135deg, #C49B2C, #E8C547);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 动态渐变边框 — Lead 卡片 ── */
.card-lead::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--accent), #E8C547, var(--accent), #FFD700);
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}

.card-lead:hover::before {
  opacity: 1;
}

/* ── 深度阴影系统（card-lead 增强） ── */
.card-lead {
  box-shadow: var(--shadow-md);
}

.card-lead:hover {
  box-shadow: var(--shadow-xl);
}

/* ── 板块热力图 ── */
.sector-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.sector-heat-cell {
  border-radius: 8px;
  text-align: center;
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 700;
  transition: transform .15s;
  cursor: default;
}

.sector-heat-cell:hover {
  transform: scale(1.06);
}

.sector-heat-cell .heat-label {
  display: block;
  font-weight: 800;
  margin-bottom: 2px;
  font-size: 12px;
}

.sector-heat-cell .heat-pct {
  display: block;
  font-size: 11px;
}

/* 热力图颜色档 */
.heat-5 { background: #dcfce7; color: #166534; }
.heat-4 { background: #d1fae5; color: #047857; }
.heat-3 { background: #fef9c3; color: #854d0e; }
.heat-2 { background: #fee2e2; color: #991b1b; }
.heat-1 { background: #fecaca; color: #7f1d1d; }

/* ── 侧边栏快捷数据面板 ── */
.sidebar-quick-data {
  padding: 14px 14px 10px;
  border-top: 1px solid #E5E7EB;
  margin-top: auto;
  background: #FAFAFA;
}

.sqd-section {
  margin-bottom: 12px;
}

.sqd-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sqd-vix-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  background: #F3F4F6;
  color: var(--muted);
}

.sqd-vix-badge.up { color: var(--ok); background: var(--ok-bg); }
.sqd-vix-badge.down { color: var(--bad); background: var(--bad-bg); }
.sqd-vix-badge.flat { color: var(--muted); background: #F3F4F6; }

/* 情绪进度条 */
.sqd-sentiment-bar {
  margin-bottom: 12px;
}

.sqd-sentiment-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bad), var(--warn), var(--ok));
  position: relative;
}

.sqd-sentiment-thumb {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: left .6s var(--ease-out-expo);
}

.sqd-sentiment-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

/* 迷你 ticker */
.sqd-tickers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sqd-ticker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sqd-ticker-symbol {
  font-size: 12px;
  font-weight: 800;
  color: var(--txt);
}

.sqd-watchlist-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: super;
}

.sqd-ticker[data-ask] {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.sqd-ticker[data-ask]:hover {
  background: var(--accent-light);
}

.sqd-ticker-price {
  font-size: 12px;
  font-weight: 700;
}

.sqd-ticker-change {
  font-size: 11px;
  font-weight: 700;
}

/* 数据更新闪烁动画 */
@keyframes sqdFlash {
  0% { background: rgba(196,155,44,.2); }
  100% { background: transparent; }
}

.sqd-flash {
  animation: sqdFlash .6s ease;
  border-radius: 4px;
}

.sqd-ticker {
  transition: transform .2s ease;
}

.sqd-ticker-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* 行情轮播容器 */
.sqd-tickers-carousel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 56px;
  transition: opacity .2s ease;
}

/* 更新时间弱化 */
.sqd-update-time {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  opacity: .6;
  margin-left: 4px;
}

/* 侧栏 active link 发光 */
.sidebar-link.active {
  animation: floatGlow 2s ease-in-out infinite;
}

/* ── VIX 仪表盘增强 ── */
.vix-gauge-fill {
  filter: drop-shadow(0 0 4px currentColor);
}

/* ── Chart.js Tooltip 统一美化 ── */
/* (通过 JS 配置实现，这里预留容器样式) */

/* ── 迷你火花图 ── */
.sparkline-wrap {
  margin-top: 6px;
}

.sparkline-wrap svg {
  display: block;
  width: 100%;
  height: 24px;
}

/* ── 响应式：仪表盘布局 ── */
@media (max-width: 900px) {
  .zone-main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kpi-strip-item {
    min-width: 130px;
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .zone-kpi-strip {
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-quick-data {
    padding: 10px 12px 8px;
  }
}

@media (max-width: 640px) {
  .news-category-card {
    width: 240px;
  }

  .kpi-strip-item .kpi-value {
    font-size: 15px;
  }

  .sector-heatmap {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* ===== Ask AI 浮动按钮（全站共享） ===== */
.ask-ai-fab-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ask-ai-hints {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ask-ai-hint {
  display: inline-flex;
  align-items: center;
  max-width: min(320px, calc(100vw - 48px));
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--txt);
  border: 1px solid rgba(196, 155, 44, 0.2);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  transition: all 0.2s;
}

.ask-ai-hint:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 155, 44, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  color: var(--accent);
}

.ask-ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196, 155, 44, 0.35);
  transition: all 0.25s;
  text-decoration: none;
}

.ask-ai-fab-group .ask-ai-fab {
  position: static;
  bottom: auto;
  right: auto;
}

.ask-ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 155, 44, 0.45);
  background: #b58d27;
}

.ask-ai-fab .fab-icon {
  font-size: 16px;
  line-height: 1;
}

/* 页面内嵌 AI 入口按钮 */
.ask-ai-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(196, 155, 44, 0.2);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.ask-ai-inline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* 聊天页预警通知条 */
.alert-notification-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 8px 12px;
  background: rgba(242, 86, 107, 0.06);
  border: 1px solid rgba(242, 86, 107, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--txt);
  cursor: pointer;
  transition: all 0.2s;
  animation: artifactFadeIn 0.4s ease-out;
}

.alert-notification-bar:hover {
  background: rgba(242, 86, 107, 0.1);
  border-color: rgba(242, 86, 107, 0.25);
}

.alert-notification-bar .alert-bar-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.alert-notification-bar .alert-bar-text {
  flex: 1;
  font-weight: 500;
}

.alert-notification-bar .alert-bar-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.alert-notification-bar .alert-bar-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

@media (max-width: 768px) {
  .ask-ai-fab-group {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }

  .ask-ai-hints {
    gap: 6px;
  }

  .ask-ai-hint {
    max-width: min(260px, calc(100vw - 32px));
    padding: 7px 12px;
    font-size: 11px;
  }

  .ask-ai-fab {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .ask-ai-fab-group .ask-ai-fab {
    bottom: auto;
    right: auto;
  }
}

/* ── 消息中股票代码可点击标签 ── */
.ticker-link {
  display: inline;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed rgba(196, 155, 44, 0.4);
  transition: all 0.15s;
}

.ticker-link:hover {
  background: var(--accent-light);
  border-bottom-color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 -2px;
}
