/* =============================================
   主题系统 - 亮色主题 (基于盈泰投资风控看板色调)
   使用 [data-theme="light"] 在 <html> 上激活
   ============================================= */

/* 亮色主题 CSS 变量 */
[data-theme="light"] {
    --theme-bg: linear-gradient(180deg, #fbfaf8 0%, #f3efe9 100%);
    --theme-paper: #ffffff;
    --theme-paper-soft: #fcfbf8;
    --theme-paper-strong: #f3efe9;
    --theme-line: #e6e1d8;
    --theme-text: #1f1f1f;
    --theme-text-secondary: #4a5568;
    --theme-muted: #6f7682;
    --theme-accent: #c9a76c;
    --theme-accent-hover: #b8956a;
    --theme-accent-dark: #8b7355;
    --theme-accent-subtle: rgba(201, 167, 108, 0.08);
    --theme-accent-light: rgba(201, 167, 108, 0.15);
    --theme-shadow: 0 14px 38px rgba(31, 41, 55, 0.06);
    --theme-shadow-sm: 0 4px 12px rgba(31, 41, 55, 0.04);
    --theme-red: #d65a4a;
    --theme-orange: #d08a4d;
    --theme-gold: #c9a227;
    --theme-green: #2f7d6d;
    --theme-heading: #5a4a35;
    --theme-link: #7a6a50;
}

/* =========================================
   Body / 全局基础
   ========================================= */
[data-theme="light"] body {
    background: linear-gradient(180deg, #fbfaf8 0%, #f3efe9 100%) !important;
    color: #1f1f1f !important;
}

/* =========================================
   左上角 Logo 图标
   ========================================= */
[data-theme="light"] .nav-logo-icon {
    background: linear-gradient(135deg, #c9a76c 0%, #a88b56 100%) !important;
}

/* =========================================
   滚动条
   ========================================= */
[data-theme="light"] ::-webkit-scrollbar {
    width: 6px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #c4b9a8 !important;
    border-radius: 10px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: transparent !important;
}

/* =========================================
   Glass Card (核心组件)
   ========================================= */
[data-theme="light"] .glass-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.06) !important;
}

/* =========================================
   导航栏 (左侧菜单)
   ========================================= */
[data-theme="light"] nav.glass-card {
    background: #ffffff !important;
    border-color: #e6e1d8 !important;
}

[data-theme="light"] nav .border-b.border-slate-600\/50,
[data-theme="light"] nav .border-t.border-slate-600\/50 {
    border-color: #e6e1d8 !important;
}

[data-theme="light"] nav h1.text-white {
    color: #1f1f1f !important;
}

[data-theme="light"] .nav-btn {
    background: rgba(247, 245, 242, 0.6) !important;
    border: 1px solid #e6e1d8 !important;
    color: #6f7682 !important;
}

[data-theme="light"] .nav-btn:hover {
    background: #f3efe9 !important;
    color: #5a4a35 !important;
    transform: translateY(-2px);
}

[data-theme="light"] .nav-btn.active {
    background: linear-gradient(135deg, #c9a76c 0%, #b8956a 100%) !important;
    color: white !important;
    border-color: #c9a76c !important;
    box-shadow: 0 4px 16px rgba(201, 167, 108, 0.35) !important;
}

[data-theme="light"] #logout-btn {
    color: #d65a4a !important;
}

[data-theme="light"] #logout-btn:hover {
    background: rgba(214, 90, 74, 0.1) !important;
    color: #c34a3c !important;
    border-color: rgba(214, 90, 74, 0.3) !important;
}

/* =========================================
   顶部搜索栏
   ========================================= */
[data-theme="light"] .search-input {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .search-input::placeholder {
    color: #9ca3af !important;
}

[data-theme="light"] .search-input:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

[data-theme="light"] #main-search-btn {
    background: linear-gradient(135deg, #c9a76c, #b8956a) !important;
}

[data-theme="light"] #main-search-btn:hover {
    background: linear-gradient(135deg, #b8956a, #a78558) !important;
}

/* 搜索下拉框 */
[data-theme="light"] .main-search-dropdown {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.12) !important;
}

[data-theme="light"] .main-search-option {
    color: #1f1f1f !important;
    border-bottom: 1px solid #f3efe9 !important;
}

[data-theme="light"] .main-search-option:hover,
[data-theme="light"] .main-search-option.selected {
    background: rgba(201, 167, 108, 0.1) !important;
    color: #8b7355 !important;
}

[data-theme="light"] .main-search-option.no-results {
    color: #6f7682 !important;
}

[data-theme="light"] .main-search-option.no-results:hover {
    background: transparent !important;
    color: #6f7682 !important;
}

/* =========================================
   Tailwind 文本颜色覆盖
   ========================================= */
[data-theme="light"] .text-white {
    color: #1f1f1f !important;
}

[data-theme="light"] .text-slate-300 {
    color: #4a5568 !important;
}

[data-theme="light"] .text-slate-400 {
    color: #5a6577 !important;
}

[data-theme="light"] .text-slate-500 {
    color: #5a6577 !important;
}

[data-theme="light"] .text-blue-300 {
    color: #5a4a35 !important;
}

[data-theme="light"] .text-blue-400 {
    color: #8b7355 !important;
}

[data-theme="light"] .text-green-400 {
    color: #2f7d6d !important;
}

[data-theme="light"] .text-yellow-400 {
    color: #c9a227 !important;
}

[data-theme="light"] .text-orange-400 {
    color: #d08a4d !important;
}

[data-theme="light"] .text-red-400 {
    color: #d65a4a !important;
}

[data-theme="light"] .text-gray-400 {
    color: #5a6577 !important;
}

[data-theme="light"] .text-gray-500 {
    color: #5a6577 !important;
}

/* =========================================
   Tailwind 背景/边框覆盖
   ========================================= */
[data-theme="light"] .bg-slate-700\/50,
[data-theme="light"] .bg-slate-700 {
    background-color: #f7f5f2 !important;
}

[data-theme="light"] .border-slate-600,
[data-theme="light"] .border-slate-600\/50 {
    border-color: #e6e1d8 !important;
}

[data-theme="light"] .border-slate-700 {
    border-color: #e6e1d8 !important;
}

[data-theme="light"] .bg-blue-600 {
    background-color: #c9a76c !important;
}

[data-theme="light"] .hover\:bg-blue-700:hover {
    background-color: #b8956a !important;
}

[data-theme="light"] .bg-black\/10 {
    background: rgba(201, 167, 108, 0.04) !important;
}

/* =========================================
   持仓/关注页面 (chicang.html, guanzhu.html)
   ========================================= */
[data-theme="light"] .hold-container-wrapper,
[data-theme="light"] .watch-container-wrapper {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.06) !important;
}

[data-theme="light"] .page-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .page-title::before {
    background-color: #c9a76c !important;
}

/* 股票卡片 - 保留颜色差异化，但使用柔和的浅色版本 */
[data-theme="light"] .stock-card {
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.06) !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .stock-card:hover {
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12) !important;
}

[data-theme="light"] .stock-name {
    color: #1f1f1f !important;
}

[data-theme="light"] .current-price {
    color: #1f1f1f !important;
}

/* 新闻行 */
[data-theme="light"] .news-row {
    background: #fcfbf8 !important;
    border: 1px solid #e6e1d8 !important;
    border-left: 3px solid #c9a76c !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .news-row:hover {
    background: #f3efe9 !important;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.08) !important;
}

[data-theme="light"] .news-row-financial-report {
    background: rgba(255, 165, 0, 0.06) !important;
    border: 1px solid rgba(255, 165, 0, 0.25) !important;
    border-left: 3px solid #ffa500 !important;
}

[data-theme="light"] .news-row-financial-report:hover {
    background: rgba(255, 165, 0, 0.12) !important;
}

[data-theme="light"] .news-title {
    color: #1f1f1f !important;
}

[data-theme="light"] .news-desc {
    color: #4a5568 !important;
}

/* 事件项 */
[data-theme="light"] .event-item {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .event-item:hover {
    background: #f3efe9 !important;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.08) !important;
}

[data-theme="light"] .event-clickable {
    border: 1px solid #d4cdc3 !important;
}

[data-theme="light"] .event-clickable:hover {
    border-color: #c9a76c !important;
}

[data-theme="light"] .contradiction-clickable {
    color: #1f1f1f !important;
}

[data-theme="light"] .hold-info-item {
    color: #1f1f1f !important;
}

[data-theme="light"] .hold-info-style-trade {
    color: #1f1f1f !important;
}

[data-theme="light"] .hold-info-box:hover {
    background: #f3efe9 !important;
}

[data-theme="light"] .stock-hint {
    color: #5a6577 !important;
}

[data-theme="light"] .analysis-title {
    color: #5a6577 !important;
    opacity: 1 !important;
}

[data-theme="light"] .analysis-date {
    color: #5a6577 !important;
}

[data-theme="light"] .analysis-content {
    color: #1f1f1f !important;
}

/* 新闻滚动条文字 */
[data-theme="light"] .news-ticker-item {
    color: #1f1f1f !important;
}

/* 图例说明背景 */
[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.2)"] {
    background: #f3efe9 !important;
}

/* 日报按钮 */
[data-theme="light"] .day-report-btn:hover {
    background: rgba(201, 167, 108, 0.2) !important;
    border-color: #c9a76c !important;
    box-shadow: 0 0 8px rgba(201, 167, 108, 0.25) !important;
}

/* 新增按钮 */
[data-theme="light"] .btn-add {
    background: transparent !important;
    border: 1px solid #c9a76c !important;
    color: #8b7355 !important;
}

[data-theme="light"] .btn-add:hover {
    background: rgba(201, 167, 108, 0.1) !important;
    box-shadow: 0 0 8px rgba(201, 167, 108, 0.2) !important;
}

/* 卡片内小按钮 (add-event-btn 等) */
[data-theme="light"] .add-event-btn {
    background: rgba(201, 167, 108, 0.15) !important;
    border: 1px solid #c9a76c !important;
    color: #8b7355 !important;
}

/* =========================================
   统一表格样式 (所有页面)
   ========================================= */
[data-theme="light"] .analysis-table {
    color: #1f1f1f !important;
}

[data-theme="light"] .analysis-table th,
[data-theme="light"] .analysis-table td {
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .analysis-table th {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .analysis-table tr:hover {
    background: rgba(201, 167, 108, 0.05) !important;
}

[data-theme="light"] .analysis-content:hover {
    color: #8b7355 !important;
}

/* 表格容器背景 */
[data-theme="light"] [style*="background: rgba(30, 41, 59, 0.4)"] {
    background: #ffffff !important;
    border-color: #e6e1d8 !important;
}

/* 表格搜索框 */
[data-theme="light"] #hold-table-search-code,
[data-theme="light"] #hold-table-search-name,
[data-theme="light"] #watch-table-search-code,
[data-theme="light"] #watch-table-search-name {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

/* clue-table 机会页面表格 */
[data-theme="light"] .clue-table {
    color: #1f1f1f !important;
}

[data-theme="light"] .clue-table th {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
}

[data-theme="light"] .clue-table td {
    border-bottom: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .clue-table tbody tr:hover {
    background-color: rgba(201, 167, 108, 0.06) !important;
}

[data-theme="light"] .clue-wrapper {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.06) !important;
}

[data-theme="light"] .clue-table-wrapper {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .col-frozen-left,
[data-theme="light"] .col-frozen-left-2 {
    background: #ffffff !important;
}

/* =========================================
   统一筛选器样式 (所有页面)
   ========================================= */
[data-theme="light"] .stock-filter-label {
    color: #5a4a35 !important;
}

[data-theme="light"] .stock-filter-select {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .stock-filter-select:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 5px rgba(201, 167, 108, 0.25) !important;
}

[data-theme="light"] .stock-filter-select option {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

/* 搜索框 */
[data-theme="light"] .clue-search-box select,
[data-theme="light"] .clue-search-box input {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .clue-search-box select:focus,
[data-theme="light"] .clue-search-box input:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

/* =========================================
   统一分页按钮样式 (所有页面)
   ========================================= */
[data-theme="light"] .pagination {
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .pagination .page-btn {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #5a6577 !important;
}

[data-theme="light"] .pagination .page-btn:hover {
    background: #f3efe9 !important;
    color: #8b7355 !important;
    border-color: #c9a76c !important;
}

[data-theme="light"] .pagination .page-btn.active {
    background: #c9a76c !important;
    color: #ffffff !important;
    border-color: #c9a76c !important;
}

[data-theme="light"] .pagination .page-info {
    color: #5a6577 !important;
}

/* =========================================
   统一按钮样式 (btn-primary 等)
   ========================================= */
[data-theme="light"] .btn-primary {
    background: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-primary:hover {
    background: #b8956a !important;
    box-shadow: 0 0 12px rgba(201, 167, 108, 0.35) !important;
}

[data-theme="light"] button.bg-gradient-to-r,
[data-theme="light"] .px-6.py-3.bg-gradient-to-r {
    background: linear-gradient(135deg, #c9a76c, #b8956a) !important;
}

[data-theme="light"] .px-6.py-2.bg-blue-600 {
    background-color: #c9a76c !important;
}

[data-theme="light"] .px-6.py-2.bg-blue-600:hover {
    background-color: #b8956a !important;
}

[data-theme="light"] button.bg-slate-700\/50 {
    background: #f7f5f2 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] button.bg-slate-700\/50:hover {
    background: #f3efe9 !important;
}

/* 操作按钮 (表格内) */
[data-theme="light"] button[style*="background: rgba(59, 130, 246"],
[data-theme="light"] button[style*="background:rgba(59, 130, 246"],
[data-theme="light"] button[style*="background: #3b82f6"],
[data-theme="light"] .table-action-btn {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

/* =========================================
   统一弹出框/模态框 (Layui Layer - 所有页面)
   ========================================= */
[data-theme="light"] .layui-layer {
    border: 1px solid #e6e1d8 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.15) !important;
    background: #ffffff !important;
}

[data-theme="light"] .layui-layer-title {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
    border-bottom: 1px solid #e6e1d8 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .layui-layer-content {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-close {
    color: #8b7355 !important;
}

[data-theme="light"] .layui-layer-close:hover {
    color: #5a4a35 !important;
}

[data-theme="light"] .layui-layer-btn {
    background: #faf7f2 !important;
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .layui-layer-btn a {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .layui-layer-btn a:hover {
    background: #b8956a !important;
    border-color: #b8956a !important;
}

[data-theme="light"] .layui-layer-btn .layui-layer-btn1 {
    background: #f7f5f2 !important;
    border-color: #e6e1d8 !important;
    color: #5a6577 !important;
}

[data-theme="light"] .layui-layer-btn .layui-layer-btn1:hover {
    background: #f3efe9 !important;
    color: #1f1f1f !important;
}

/* 确认弹窗 */
[data-theme="light"] .layui-layer-dialog .layui-layer-title {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
    border-bottom: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .layui-layer-dialog .layui-layer-content {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-dialog .layui-layer-btn a {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .layui-layer-dialog .layui-layer-btn a:hover {
    background: #b8956a !important;
}

/* 弹窗内容中的标题颜色 */
[data-theme="light"] .layui-layer-content div[style*="color:#60a5fa"],
[data-theme="light"] .layui-layer-content div[style*="color: #60a5fa"],
[data-theme="light"] .layui-layer-content h4[style*="color:#60a5fa"],
[data-theme="light"] .layui-layer-content h4[style*="color: #60a5fa"] {
    color: #5a4a35 !important;
}

/* 弹窗内容中的文本颜色 */
[data-theme="light"] .layui-layer-content div[style*="color:#e2e8f0"],
[data-theme="light"] .layui-layer-content div[style*="color: #e2e8f0"],
[data-theme="light"] .layui-layer-content div[style*="color:#e0e0e0"],
[data-theme="light"] .layui-layer-content span[style*="color:#e2e8f0"],
[data-theme="light"] .layui-layer-content span[style*="color: #e2e8f0"] {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-content div[style*="color:#94a3b8"],
[data-theme="light"] .layui-layer-content div[style*="color: #94a3b8"],
[data-theme="light"] .layui-layer-content span[style*="color:#94a3b8"],
[data-theme="light"] .layui-layer-content span[style*="color: #94a3b8"] {
    color: #5a6577 !important;
}

/* 弹窗中深色背景覆盖 */
[data-theme="light"] .layui-layer-content [style*="background: rgba(15, 23, 42"],
[data-theme="light"] .layui-layer-content [style*="background:rgba(15, 23, 42"],
[data-theme="light"] .layui-layer-content [style*="background-color: rgba(15, 23, 42"],
[data-theme="light"] .layui-layer-content [style*="background: rgba(30, 41, 59"],
[data-theme="light"] .layui-layer-content [style*="background:rgba(30, 41, 59"],
[data-theme="light"] .layui-layer-content [style*="background-color: rgba(30, 41, 59"],
[data-theme="light"] .layui-layer-content [style*="background: rgba(0, 0, 0"],
[data-theme="light"] .layui-layer-content [style*="background:rgba(0, 0, 0"],
[data-theme="light"] .layui-layer-content [style*="background:rgba(0,0,0"],
[data-theme="light"] .layui-layer-content [style*="background: rgba(0,0,0"] {
    background: #f7f5f2 !important;
}

/* 弹窗中边框覆盖 */
[data-theme="light"] .layui-layer-content [style*="border: 1px solid rgba(71, 85, 105"],
[data-theme="light"] .layui-layer-content [style*="border:1px solid rgba(71, 85, 105"],
[data-theme="light"] .layui-layer-content [style*="border-bottom: 1px solid rgba(71, 85, 105"],
[data-theme="light"] .layui-layer-content [style*="border-left: 3px solid #60a5fa"],
[data-theme="light"] .layui-layer-content [style*="border-left:3px solid #60a5fa"] {
    border-color: #e6e1d8 !important;
}

/* =========================================
   弹窗内表单 (所有页面)
   ========================================= */
[data-theme="light"] .layui-layer-content .layui-input,
[data-theme="light"] .layui-layer-content .layui-textarea,
[data-theme="light"] .layui-layer-content select,
[data-theme="light"] .layui-layer-content input[type="text"],
[data-theme="light"] .layui-layer-content input[type="number"],
[data-theme="light"] .layui-layer-content input[type="date"] {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-content .layui-input:focus,
[data-theme="light"] .layui-layer-content .layui-textarea:focus,
[data-theme="light"] .layui-layer-content select:focus,
[data-theme="light"] .layui-layer-content input:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

[data-theme="light"] .layui-layer-content .layui-form-label {
    color: #5a4a35 !important;
}

[data-theme="light"] .layui-layer-content select option {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

/* 弹窗内markdown文本 */
[data-theme="light"] .layui-layer-content .markdown-content,
[data-theme="light"] .layui-layer-content .plan-content {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-content .markdown-content h1,
[data-theme="light"] .layui-layer-content .markdown-content h2,
[data-theme="light"] .layui-layer-content .markdown-content h3,
[data-theme="light"] .layui-layer-content .markdown-content h4,
[data-theme="light"] .layui-layer-content .markdown-content h5,
[data-theme="light"] .layui-layer-content .markdown-content h6,
[data-theme="light"] .layui-layer-content .plan-content h1,
[data-theme="light"] .layui-layer-content .plan-content h2,
[data-theme="light"] .layui-layer-content .plan-content h3 {
    color: #a88b56 !important;
}

[data-theme="light"] .layui-layer-content .markdown-content strong,
[data-theme="light"] .layui-layer-content .plan-content strong {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-content .markdown-content em {
    color: #5a6577 !important;
}

[data-theme="light"] .layui-layer-content .markdown-content code {
    background: rgba(201, 167, 108, 0.08) !important;
    color: #8b7355 !important;
}

[data-theme="light"] .layui-layer-content .markdown-content pre {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .layui-layer-content .markdown-content pre code {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer-content .markdown-content blockquote {
    border-left: 3px solid #c9a76c !important;
    background: rgba(201, 167, 108, 0.04) !important;
}

[data-theme="light"] .layui-layer-content .markdown-content a {
    color: #8b7355 !important;
    border-bottom-color: #c9a76c !important;
}

[data-theme="light"] .layui-layer-content .markdown-content th {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
}

[data-theme="light"] .layui-layer-content .markdown-content th,
[data-theme="light"] .layui-layer-content .markdown-content td {
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

/* =========================================
   Tooltip / onmouseover 浮层 (统一亮色)
   ========================================= */
[data-theme="light"] .tooltip-content,
[data-theme="light"] .popover-content,
[data-theme="light"] [style*="position: absolute"][style*="z-index"][style*="background: rgba(15"],
[data-theme="light"] [style*="position: absolute"][style*="z-index"][style*="background:rgba(15"],
[data-theme="light"] [style*="position: absolute"][style*="z-index"][style*="background: rgba(30"],
[data-theme="light"] [style*="position: absolute"][style*="z-index"][style*="background:rgba(30"],
[data-theme="light"] [style*="position: fixed"][style*="z-index"][style*="background: rgba(15"],
[data-theme="light"] [style*="position: fixed"][style*="z-index"][style*="background:rgba(15"] {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12) !important;
}

/* hold-advice tooltip */
[data-theme="light"] .hold-advice-tooltip,
[data-theme="light"] [class*="advice-tooltip"],
[data-theme="light"] [class*="hover-tooltip"] {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12) !important;
}

/* =========================================
   ECharts 图表 Tooltip (CSS层面)
   ========================================= */
[data-theme="light"] .echarts-tooltip,
[data-theme="light"] div[style*="position: absolute"][style*="border-radius"][style*="background-color: rgba(50"],
[data-theme="light"] div[style*="position: absolute"][style*="border-radius"][style*="background-color: rgb(50"] {
    background-color: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

/* =========================================
   宏观页面 (hongguan.html)
   ========================================= */
[data-theme="light"] .contradictions-content-panel {
    background: transparent !important;
}

[data-theme="light"] .contradictions-panel-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .contradictions-panel-title span {
    background-color: #c9a76c !important;
}

[data-theme="light"] .contradictions-current-date-display {
    color: #5a6577 !important;
}

[data-theme="light"] .contradictions-calendar-toggle-btn {
    background-color: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #4a5568 !important;
}

[data-theme="light"] .contradictions-calendar-toggle-btn:hover {
    background-color: #f3efe9 !important;
    border-color: #c9a76c !important;
    color: #8b7355 !important;
}

[data-theme="light"] .contradictions-calendar-panel {
    background-color: #fcfbf8 !important;
    border-left: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .contradictions-calendar-header {
    color: #1f1f1f !important;
}

[data-theme="light"] .contradictions-nav-btn {
    color: #5a6577 !important;
}

[data-theme="light"] .contradictions-weekday {
    color: #5a6577 !important;
}

/* 矛盾项 */
[data-theme="light"] .contradiction-item {
    border-left: 3px solid #c9a76c !important;
    background: #fcfbf8 !important;
}

[data-theme="light"] .contradiction-item:hover {
    background: #f3efe9 !important;
    box-shadow: 0 2px 12px rgba(201, 167, 108, 0.15) !important;
}

/* =========================================
   日报页面 (day_report.html)
   ========================================= */
[data-theme="light"] .module-card {
    background-color: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.06) !important;
}

[data-theme="light"] .module-header {
    background-color: rgba(247, 245, 242, 0.5) !important;
}

[data-theme="light"] .module-header:hover {
    background-color: #f7f5f2 !important;
}

[data-theme="light"] .module-card.expanded .module-header {
    border-bottom: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .module-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .toggle-icon {
    color: #5a6577 !important;
}

[data-theme="light"] .report-date-badge {
    color: #5a6577 !important;
}

[data-theme="light"] .report-content {
    color: #1f1f1f !important;
}

[data-theme="light"] .report-content h1,
[data-theme="light"] .report-content h2,
[data-theme="light"] .report-content h3,
[data-theme="light"] .report-content h4,
[data-theme="light"] .report-content h5,
[data-theme="light"] .report-content h6 {
    color: #5a4a35 !important;
}

[data-theme="light"] .module-body::-webkit-scrollbar-thumb {
    background: #c4b9a8 !important;
}

/* =========================================
   数据页面 (shuju.html) - Tabs + 表格
   ========================================= */
[data-theme="light"] .data-tab {
    color: #5a6577 !important;
}

[data-theme="light"] .data-tab:hover {
    color: #8b7355 !important;
    background-color: rgba(201, 167, 108, 0.06) !important;
}

[data-theme="light"] .data-tab.active-tab {
    color: #8b7355 !important;
    border-bottom-color: #c9a76c !important;
    background-color: rgba(201, 167, 108, 0.08) !important;
}

/* =========================================
   机会页面 (jihui.html)
   ========================================= */
[data-theme="light"] .page-tabs {
    background: #ffffff !important;
    border-bottom: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .tab-btn {
    color: #5a6577 !important;
}

[data-theme="light"] .tab-btn:hover {
    color: #5a4a35 !important;
}

[data-theme="light"] .tab-btn.active {
    color: #8b7355 !important;
    border-bottom: 2px solid #c9a76c !important;
}

[data-theme="light"] .main-content {
    background-color: transparent !important;
}

[data-theme="light"] .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e6e1d8 !important;
}

/* 排序头 */
[data-theme="light"] .sortable-header:hover {
    color: #8b7355 !important;
}

[data-theme="light"] .sort-icon {
    color: #5a6577 !important;
}

/* =========================================
   财务页面 (financial.html, financial_detail.html)
   ========================================= */
[data-theme="light"] select[class*="bg-slate"],
[data-theme="light"] select.bg-slate-700\/50 {
    background: #f7f5f2 !important;
    border-color: #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .trend-tab {
    color: #5a6577 !important;
}

[data-theme="light"] .trend-tab:hover {
    color: #8b7355 !important;
}

[data-theme="light"] .trend-tab.active {
    color: #8b7355 !important;
    border-bottom: 2px solid #c9a76c !important;
    border-bottom-color: #c9a76c !important;
}

[data-theme="light"] .trend-tab:not(.active) {
    border-bottom: none !important;
}

/* 查看详情按钮 */
[data-theme="light"] button[class*="bg-blue-600"] {
    background-color: #c9a76c !important;
}

[data-theme="light"] button[class*="bg-blue-600"]:hover {
    background-color: #b8956a !important;
}

/* focus ring */
[data-theme="light"] .focus\:border-blue-500:focus {
    border-color: #c9a76c !important;
}

[data-theme="light"] .focus\:ring-blue-500\/20:focus {
    --tw-ring-color: rgba(201, 167, 108, 0.2) !important;
}

/* =========================================
   股票雷达/智能问答 (stock_radar.html, stock_augment.html)
   ========================================= */
[data-theme="light"] .rank-item {
    border-bottom: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .rank-label {
    color: #5a6577 !important;
}

[data-theme="light"] .rank-value {
    color: #1f1f1f !important;
}

[data-theme="light"] .history-item {
    background-color: #fcfbf8 !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .history-item:hover {
    background-color: rgba(201, 167, 108, 0.08) !important;
    border-color: #c9a76c !important;
}

[data-theme="light"] .history-time {
    color: #5a6577 !important;
}

[data-theme="light"] .empty-state {
    color: #5a6577 !important;
}

[data-theme="light"] .loading {
    color: #5a6577 !important;
}

/* =========================================
   Layui 表单组件适配
   ========================================= */
[data-theme="light"] .layui-form-item {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-form-label {
    color: #5a4a35 !important;
}

[data-theme="light"] .layui-input,
[data-theme="light"] .layui-textarea {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-input:focus,
[data-theme="light"] .layui-textarea:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

[data-theme="light"] select {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] select option {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

/* Layui 复选框 */
[data-theme="light"] .layui-form-checkbox {
    color: #5a6577 !important;
}

[data-theme="light"] .layui-form-checkbox:hover {
    color: #8b7355 !important;
}

/* =========================================
   Markdown 内容样式 (页面内嵌)
   ========================================= */
[data-theme="light"] .markdown-content {
    color: #1f1f1f !important;
}

[data-theme="light"] .markdown-content h1,
[data-theme="light"] .markdown-content h2,
[data-theme="light"] .markdown-content h3,
[data-theme="light"] .markdown-content h4,
[data-theme="light"] .markdown-content h5,
[data-theme="light"] .markdown-content h6 {
    color: #a88b56 !important;
}

[data-theme="light"] .markdown-content strong {
    color: #1f1f1f !important;
}

[data-theme="light"] .markdown-content em {
    color: #5a6577 !important;
}

[data-theme="light"] .markdown-content code {
    background: rgba(201, 167, 108, 0.08) !important;
    color: #8b7355 !important;
}

[data-theme="light"] .markdown-content pre {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .markdown-content pre code {
    color: #1f1f1f !important;
}

[data-theme="light"] .markdown-content blockquote {
    border-left: 3px solid #c9a76c !important;
    background: rgba(201, 167, 108, 0.04) !important;
}

[data-theme="light"] .markdown-content a {
    color: #8b7355 !important;
    border-bottom-color: #c9a76c !important;
}

[data-theme="light"] .markdown-content th {
    background: #faf7f2 !important;
    color: #a88b56 !important;
}

[data-theme="light"] .markdown-content th,
[data-theme="light"] .markdown-content td {
    border: 1px solid #e6e1d8 !important;
}

/* plan-content */
[data-theme="light"] .plan-content {
    color: #1f1f1f !important;
}

[data-theme="light"] .plan-content h1,
[data-theme="light"] .plan-content h2,
[data-theme="light"] .plan-content h3 {
    color: #a88b56 !important;
}

[data-theme="light"] .plan-content strong {
    color: #5a4a35 !important;
}

/* =========================================
   通用内联颜色覆盖
   ========================================= */
/* 深色文本内联覆盖 */
[data-theme="light"] [style*="color: #e2e8f0"],
[data-theme="light"] [style*="color:#e2e8f0"],
[data-theme="light"] [style*="color: #e0e0e0"],
[data-theme="light"] [style*="color:#e0e0e0"],
[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#cbd5e1"] {
    color: #1f1f1f !important;
}

[data-theme="light"] [style*="color: #94a3b8"],
[data-theme="light"] [style*="color:#94a3b8"],
[data-theme="light"] [style*="color: #64748b"],
[data-theme="light"] [style*="color:#64748b"] {
    color: #5a6577 !important;
}

[data-theme="light"] [style*="color: #60a5fa"],
[data-theme="light"] [style*="color:#60a5fa"],
[data-theme="light"] [style*="color: #93c5fd"],
[data-theme="light"] [style*="color:#93c5fd"] {
    color: #5a4a35 !important;
}

[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:#fff"] {
    color: #1f1f1f !important;
}

/* 保护白色按钮文字不被覆盖 */
[data-theme="light"] .nav-btn.active [style*="color: #fff"],
[data-theme="light"] .nav-btn.active [style*="color:#fff"],
[data-theme="light"] .layui-layer-btn a[style*="color"],
[data-theme="light"] button[class*="bg-gradient"] [style*="color"] {
    color: #ffffff !important;
}

/* 深色背景内联覆盖 */
[data-theme="light"] [style*="background-color: rgba(30, 41, 59"],
[data-theme="light"] [style*="background: rgba(30, 41, 59"],
[data-theme="light"] [style*="background-color: rgba(19, 22, 32"],
[data-theme="light"] [style*="background-color: rgba(43, 48, 64"],
[data-theme="light"] [style*="background-color: rgba(15, 23, 42"],
[data-theme="light"] [style*="background: rgba(15, 23, 42"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* rgba(0,0,0,*) 系列 */
[data-theme="light"] [style*="background:rgba(0,0,0,0.1"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.1"],
[data-theme="light"] [style*="background:rgba(0,0,0,0.15"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.15"],
[data-theme="light"] [style*="background:rgba(0,0,0,0.18"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.18"],
[data-theme="light"] [style*="background:rgba(0,0,0,0.2"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.2"],
[data-theme="light"] [style*="background:rgba(0,0,0,0.3"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.3"] {
    background: #f7f5f2 !important;
}

/* 边框颜色内联覆盖 */
[data-theme="light"] [style*="border: 1px solid rgba(71, 85, 105"],
[data-theme="light"] [style*="border:1px solid rgba(71, 85, 105"],
[data-theme="light"] [style*="border-color: rgba(71, 85, 105"],
[data-theme="light"] [style*="border-bottom: 1px solid rgba(71, 85, 105"],
[data-theme="light"] [style*="border-top: 1px solid rgba(71, 85, 105"],
[data-theme="light"] [style*="border-left: 1px solid rgba(59, 130, 246"],
[data-theme="light"] [style*="border: 1px solid rgba(59, 130, 246"] {
    border-color: #e6e1d8 !important;
}

/* =========================================
   主题切换按钮
   ========================================= */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(51, 65, 85, 0.7);
    color: #e2e8f0;
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #8b7355 !important;
}

[data-theme="light"] .theme-toggle:hover {
    background: #f3efe9 !important;
    color: #5a4a35 !important;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* =========================================
   登录页面亮色主题
   ========================================= */
[data-theme="light"] .login-container {
    background-color: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08) !important;
}

[data-theme="light"] .corner-decoration {
    border-color: #c9a76c !important;
}

[data-theme="light"] .logo {
    border: 2px solid #c9a76c !important;
    box-shadow: 0 0 12px rgba(201, 167, 108, 0.2) !important;
}

[data-theme="light"] .title {
    color: #5a4a35 !important;
    text-shadow: none !important;
}

[data-theme="light"] .subtitle {
    color: #6f7682 !important;
}

[data-theme="light"] .codeImage {
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .codeImage:hover {
    border-color: #c9a76c !important;
    box-shadow: 0 0 8px rgba(201, 167, 108, 0.2) !important;
}

[data-theme="light"] .login-btn {
    background: linear-gradient(135deg, #c9a76c, #b8956a) !important;
    border: 1px solid #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .login-btn:hover {
    background: linear-gradient(135deg, #b8956a, #a78558) !important;
    box-shadow: 0 4px 16px rgba(201, 167, 108, 0.35) !important;
    text-shadow: none !important;
}

[data-theme="light"] .login-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
}

/* =========================================
   登录页面主题切换按钮
   ========================================= */
.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-theme-toggle:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    transform: scale(1.05);
}

.login-theme-toggle svg { width: 20px; height: 20px; }

[data-theme="light"] .login-theme-toggle {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #8b7355 !important;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08) !important;
}

[data-theme="light"] .login-theme-toggle:hover {
    background: #f7f5f2 !important;
    color: #5a4a35 !important;
}

.login-theme-toggle .icon-sun { display: none; }
.login-theme-toggle .icon-moon { display: block; }
[data-theme="light"] .login-theme-toggle .icon-sun { display: block; }
[data-theme="light"] .login-theme-toggle .icon-moon { display: none; }

/* =========================================
   Chart.js Tooltip 适配 (CSS fallback)
   ========================================= */
[data-theme="light"] .chartjs-tooltip,
[data-theme="light"] div[class*="chartjs-tooltip"] {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.1) !important;
}

/* =========================================
   通用动画过渡
   ========================================= */
body,
.glass-card,
.nav-btn,
.search-input,
.module-card,
.stock-card,
.news-row,
.event-item,
.theme-toggle,
.login-theme-toggle {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* =========================================
   select/input 等表单元素统一处理
   ========================================= */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
    color: #1f1f1f !important;
}

/* =========================================
   卡片模式操作按钮 (inline style overrides)
   ========================================= */
[data-theme="light"] button[style*="background:rgba(0,255,255"],
[data-theme="light"] button[style*="background: rgba(0,255,255"] {
    background: rgba(201, 167, 108, 0.15) !important;
    border-color: #c9a76c !important;
    color: #8b7355 !important;
}

/* =========================================
   持仓建议色块 (legend bar) 背景
   ========================================= */
[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.2); border-radius: 6px"] {
    background: #f3efe9 !important;
}

/* =========================================
   状态 Toggle 开关保持不变（颜色有含义）
   ========================================= */

/* =========================================
   空状态/加载状态
   ========================================= */
[data-theme="light"] .empty-note {
    color: #5a6577 !important;
}

/* =========================================
   Tag / Pill 标签保持原有颜色
   ========================================= */

/* =========================================
   Layui layer 弹窗内 Chart 容器背景
   ========================================= */
[data-theme="light"] .layui-layer-content canvas {
    background: transparent !important;
}

[data-theme="light"] .layui-layer-content [id*="chart"],
[data-theme="light"] .layui-layer-content [id*="Chart"],
[data-theme="light"] .layui-layer-content [id*="echart"] {
    background: transparent !important;
}

/* =============================================
   以下为补充修复项
   ============================================= */

/* =========================================
   1. 宏观页面 - 主要矛盾卡片/新闻卡片
   ========================================= */
[data-theme="light"] .contradiction-item {
    background: #fcfbf8 !important;
    border-left: 3px solid #c9a76c !important;
}

[data-theme="light"] .contradiction-item:hover {
    background: #f3efe9 !important;
    box-shadow: 0 2px 12px rgba(201, 167, 108, 0.15) !important;
}

[data-theme="light"] .contradictions-news-card {
    background-color: #fcfbf8 !important;
    border-left: 3px solid #d4cdc3 !important;
}

[data-theme="light"] .contradictions-news-card:hover {
    background-color: #f3efe9 !important;
    border-left-color: #c9a76c !important;
    box-shadow: 0 2px 12px rgba(201, 167, 108, 0.15) !important;
}

[data-theme="light"] .contradictions-tag {
    background-color: rgba(201, 167, 108, 0.15) !important;
    color: #8b7355 !important;
}

[data-theme="light"] .contradictions-news-title {
    color: #1f1f1f !important;
}

[data-theme="light"] .contradictions-news-desc {
    color: #4a5568 !important;
}

[data-theme="light"] .contradictions-action-link {
    color: #d08a4d !important;
}

[data-theme="light"] .contradictions-action-link.has-plan {
    color: #2f7d6d !important;
}

/* 主要矛盾弹窗中inline样式覆盖 */
[data-theme="light"] .layui-layer-content [style*="border-left: 3px solid #3b82f6"] {
    border-left-color: #c9a76c !important;
}

[data-theme="light"] .layui-layer-content [style*="background: rgba(59, 130, 246, 0.05)"] {
    background: rgba(201, 167, 108, 0.06) !important;
}

[data-theme="light"] .layui-layer-content h4[style*="color: #60a5fa"],
[data-theme="light"] .layui-layer-content h4[style*="color:#60a5fa"] {
    color: #5a4a35 !important;
}

/* =========================================
   2. 仓位建议弹框 (持仓建议趋势)
   ========================================= */
[data-theme="light"] .advice-trend-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .advice-trend-date-input {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .advice-trend-date-input:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

[data-theme="light"] .advice-trend-query-btn {
    background: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .advice-trend-query-btn:hover {
    background: #b8956a !important;
}

[data-theme="light"] .advice-trend-header {
    border-bottom: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .advice-trend-dialog {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

/* 仓位建议 tooltip */
[data-theme="light"] .hold-advice-tooltip {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.12) !important;
}

[data-theme="light"] .hold-advice-tooltip::after {
    border-top-color: #e6e1d8 !important;
}

[data-theme="light"] .hold-advice-tooltip.tooltip-below::after {
    border-top-color: transparent !important;
    border-bottom-color: #e6e1d8 !important;
}

/* =========================================
   3. 持仓/关注弹框内 - 表单标签、标题、按钮
   ========================================= */

/* 弹窗内表单标签(key)改为卡其色 */
[data-theme="light"] .layui-form-label {
    color: #5a4a35 !important;
}

/* 弹窗中趋势图标题 */
[data-theme="light"] .layui-layer-content .advice-trend-title,
[data-theme="light"] .layui-layer-content [style*="font-size: 20px"][style*="font-weight: bold"][style*="color: #60a5fa"] {
    color: #5a4a35 !important;
}

/* 弹窗内所有蓝色按钮 → 卡其色 */
[data-theme="light"] .layui-layer-content button[style*="background: #60a5fa"],
[data-theme="light"] .layui-layer-content button[style*="background:#60a5fa"],
[data-theme="light"] .layui-layer-content button[style*="background: #3b82f6"],
[data-theme="light"] .layui-layer-content button[style*="background:#3b82f6"] {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

/* 弹窗内的「查询」「保存」按钮 */
[data-theme="light"] .layui-layer-content .advice-trend-query-btn {
    background: #c9a76c !important;
    color: #ffffff !important;
}

/* 弹窗内分页组件 */
[data-theme="light"] .layui-layer-content .pagination .page-btn.active {
    background: #c9a76c !important;
    color: #ffffff !important;
    border-color: #c9a76c !important;
}

/* =========================================
   4. 机会页面 - 操作列、action-link、modal弹框
   ========================================= */

/* 冻结列背景 */
[data-theme="light"] .col-frozen-right {
    background: #ffffff !important;
}

[data-theme="light"] .clue-table th.col-frozen-left,
[data-theme="light"] .clue-table th.col-frozen-left-2,
[data-theme="light"] .clue-table th.col-frozen-right {
    background: #faf7f2 !important;
}

[data-theme="light"] .clue-table tbody tr:hover .col-frozen-left,
[data-theme="light"] .clue-table tbody tr:hover .col-frozen-left-2,
[data-theme="light"] .clue-table tbody tr:hover .col-frozen-right {
    background: rgba(201, 167, 108, 0.06) !important;
}

[data-theme="light"] .row-processing .col-frozen-left,
[data-theme="light"] .row-processing .col-frozen-left-2,
[data-theme="light"] .row-processing .col-frozen-right {
    background: #fcfbf8 !important;
}

/* action-link (更新/快照/删除) */
[data-theme="light"] .action-link {
    color: #8b7355 !important;
}

[data-theme="light"] .action-link:hover {
    color: #5a4a35 !important;
    background: rgba(201, 167, 108, 0.1) !important;
}

[data-theme="light"] .action-link.delete:hover {
    color: #d65a4a !important;
    background: rgba(214, 90, 74, 0.08) !important;
}

/* 自定义 modal-overlay / modal-box */
[data-theme="light"] .modal-box {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.15) !important;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid #e6e1d8 !important;
    color: #5a4a35 !important;
}

[data-theme="light"] .modal-close {
    color: #8b7355 !important;
}

[data-theme="light"] .modal-close:hover {
    color: #5a4a35 !important;
}

[data-theme="light"] .modal-body {
    color: #1f1f1f !important;
}

[data-theme="light"] .modal-footer {
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .modal-footer .btn-primary {
    background: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .modal-footer .btn-primary[style*="background: #4b5563"],
[data-theme="light"] .modal-footer .btn-primary[style*="background:#4b5563"] {
    background: #f7f5f2 !important;
    color: #5a6577 !important;
    border: 1px solid #e6e1d8 !important;
}

/* 快照弹窗内列表样式 */
[data-theme="light"] #snapshot-modal-content {
    color: #1f1f1f !important;
}

/* 表单组件 */
[data-theme="light"] .form-group .form-label {
    color: #5a4a35 !important;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

/* 处理中行样式 */
[data-theme="light"] .row-processing {
    background: rgba(201, 167, 108, 0.04) !important;
}

/* breadcrumb / btn-back / btn-toggle */
[data-theme="light"] .btn-back {
    color: #8b7355 !important;
}

[data-theme="light"] .btn-back:hover {
    color: #5a4a35 !important;
}

[data-theme="light"] .btn-toggle {
    color: #5a6577 !important;
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .btn-toggle.active {
    background: #c9a76c !important;
    color: #ffffff !important;
    border-color: #c9a76c !important;
}

/* =========================================
   5. 行业页签卡片 - 亮色系风格
   ========================================= */
[data-theme="light"] .industry-card {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.06) !important;
}

[data-theme="light"] .industry-card:hover {
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.1) !important;
}

[data-theme="light"] .industry-card-title {
    color: #1f1f1f !important;
}

[data-theme="light"] .industry-card-date {
    color: #5a6577 !important;
}

[data-theme="light"] .industry-section-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .industry-clickable:hover {
    background: rgba(201, 167, 108, 0.06) !important;
}

[data-theme="light"] .industry-signal-preview {
    color: #4a5568 !important;
}

[data-theme="light"] .industry-sig-title {
    color: #1f1f1f !important;
}

[data-theme="light"] .industry-sig-sub {
    color: #5a6577 !important;
}

[data-theme="light"] .industry-divider {
    background: #e6e1d8 !important;
}

[data-theme="light"] .industry-daily-block {
    color: #4a5568 !important;
}

[data-theme="light"] .industry-daily-block .lbl {
    color: #1f1f1f !important;
}

[data-theme="light"] .industry-lead-chip {
    border-color: #e6e1d8 !important;
    background: #fcfbf8 !important;
}

[data-theme="light"] .industry-lead-chip:hover {
    border-color: #c9a76c !important;
    background: rgba(201, 167, 108, 0.06) !important;
}

[data-theme="light"] .industry-lead-chip .code {
    color: #8b7355 !important;
}

[data-theme="light"] .industry-empty {
    color: #5a6577 !important;
}

[data-theme="light"] .industry-signal-paragraph {
    background: #fcfbf8 !important;
    border-left: 3px solid #d4cdc3 !important;
}

[data-theme="light"] .industry-signal-paragraph h4 {
    color: #1f1f1f !important;
}

[data-theme="light"] .industry-signal-meta {
    color: #8b7355 !important;
}

[data-theme="light"] .industry-signal-body {
    color: #4a5568 !important;
}

[data-theme="light"] .industry-signal-body .k {
    color: #1f1f1f !important;
}

[data-theme="light"] .industry-daily-full .block h5 {
    color: #5a4a35 !important;
}

[data-theme="light"] .industry-daily-full .block .txt {
    color: #4a5568 !important;
}

/* =========================================
   6. 数据页面 - table内容背景 + 滚动修复
   ========================================= */

/* 数据页面table内容区 */
[data-theme="light"] .data-tab-content .glass-card {
    background: #ffffff !important;
}

[data-theme="light"] .table-body-container {
    background: transparent !important;
}

/* 数据页面表格外层容器 */
[data-theme="light"] .table-wrapper {
    border: 1px solid #e6e1d8 !important;
    background: #ffffff !important;
}

[data-theme="light"] .url-link {
    color: #8b7355 !important;
}

[data-theme="light"] .url-link:hover {
    color: #5a4a35 !important;
}

/* 数据页面下拉框 */
[data-theme="light"] #stock-comment-source-dropdown {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
}

/* =========================================
   7. 所有table内链接、button 统一卡其色
   ========================================= */

/* 表格内链接 */
[data-theme="light"] .analysis-table a,
[data-theme="light"] .clue-table a,
[data-theme="light"] table a {
    color: #8b7355 !important;
}

[data-theme="light"] .analysis-table a:hover,
[data-theme="light"] .clue-table a:hover,
[data-theme="light"] table a:hover {
    color: #5a4a35 !important;
}

/* 表格内按钮 */
[data-theme="light"] .analysis-table button,
[data-theme="light"] .analysis-table .btn,
[data-theme="light"] td button {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .analysis-table button:hover,
[data-theme="light"] .analysis-table .btn:hover,
[data-theme="light"] td button:hover {
    background: #b8956a !important;
}

/* 行选中/高亮 */
[data-theme="light"] tr.selected,
[data-theme="light"] tr.active,
[data-theme="light"] .clue-table tbody tr.selected {
    background: rgba(201, 167, 108, 0.08) !important;
}

/* =========================================
   8. layui.layer.open 弹窗：强制覆盖所有内联样式
   ========================================= */
[data-theme="light"] .layui-layer[style] .layui-layer-title {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
    border-bottom: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .layui-layer[style] .layui-layer-content {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-layer[style] .layui-layer-close {
    color: #8b7355 !important;
}

/* 弹窗内容区域所有内联背景覆盖 */
[data-theme="light"] .layui-layer-content > div[style*="background:rgba(15"],
[data-theme="light"] .layui-layer-content > div[style*="background: rgba(15"],
[data-theme="light"] .layui-layer-content div[style*="background:rgba(15, 23, 42"],
[data-theme="light"] .layui-layer-content div[style*="background: rgba(15, 23, 42"] {
    background: #ffffff !important;
}

[data-theme="light"] .layui-layer-content div[style*="background: rgba(5, 10, 25"],
[data-theme="light"] .layui-layer-content div[style*="background:rgba(5, 10, 25"] {
    background: #fcfbf8 !important;
}

/* 弹窗内所有颜色覆盖 */
[data-theme="light"] .layui-layer-content div[style*="color:#e2e8f0"],
[data-theme="light"] .layui-layer-content div[style*="color: #e2e8f0"],
[data-theme="light"] .layui-layer-content p[style*="color:#e2e8f0"],
[data-theme="light"] .layui-layer-content p[style*="color: #e2e8f0"],
[data-theme="light"] .layui-layer-content span[style*="color:#e2e8f0"],
[data-theme="light"] .layui-layer-content span[style*="color: #e2e8f0"] {
    color: #1f1f1f !important;
}

/* 弹窗内标题颜色 #60a5fa → 卡其棕色 */
[data-theme="light"] .layui-layer-content h3[style*="color:#60a5fa"],
[data-theme="light"] .layui-layer-content h3[style*="color: #60a5fa"],
[data-theme="light"] .layui-layer-content h4[style*="color:#60a5fa"],
[data-theme="light"] .layui-layer-content h4[style*="color: #60a5fa"],
[data-theme="light"] .layui-layer-content h5[style*="color:#60a5fa"],
[data-theme="light"] .layui-layer-content h5[style*="color: #60a5fa"] {
    color: #5a4a35 !important;
}

/* 弹窗内 #94a3b8 次要文字颜色覆盖 */
[data-theme="light"] .layui-layer-content [style*="color:#94a3b8"],
[data-theme="light"] .layui-layer-content [style*="color: #94a3b8"],
[data-theme="light"] .layui-layer-content [style*="color:#a0a0a0"],
[data-theme="light"] .layui-layer-content [style*="color: #a0a0a0"] {
    color: #5a6577 !important;
}

/* 弹窗内链接 */
[data-theme="light"] .layui-layer-content a[style*="color:#60a5fa"],
[data-theme="light"] .layui-layer-content a[style*="color: #60a5fa"] {
    color: #8b7355 !important;
    border-color: #c9a76c !important;
}

/* 弹窗内蓝色border-left → 卡其色 */
[data-theme="light"] .layui-layer-content [style*="border-left:3px solid #60a5fa"],
[data-theme="light"] .layui-layer-content [style*="border-left: 3px solid #60a5fa"],
[data-theme="light"] .layui-layer-content [style*="border-left:3px solid #3b82f6"],
[data-theme="light"] .layui-layer-content [style*="border-left: 3px solid #3b82f6"] {
    border-left-color: #c9a76c !important;
}

/* 弹窗内蓝色border */
[data-theme="light"] .layui-layer-content [style*="border: 1px solid rgba(59, 130, 246"],
[data-theme="light"] .layui-layer-content [style*="border:1px solid rgba(59, 130, 246"],
[data-theme="light"] .layui-layer-content [style*="border: 1px solid rgba(71, 85, 105"],
[data-theme="light"] .layui-layer-content [style*="border:1px solid rgba(71, 85, 105"],
[data-theme="light"] .layui-layer-content [style*="border-top:1px solid rgba(71, 85, 105"],
[data-theme="light"] .layui-layer-content [style*="border-top: 1px solid rgba(71, 85, 105"] {
    border-color: #e6e1d8 !important;
}

/* 弹窗内深色背景容器 */
[data-theme="light"] .layui-layer-content [style*="background:rgba(30, 41, 59"],
[data-theme="light"] .layui-layer-content [style*="background: rgba(30, 41, 59"],
[data-theme="light"] .layui-layer-content [style*="background-color:rgba(30, 41, 59"],
[data-theme="light"] .layui-layer-content [style*="background-color: rgba(30, 41, 59"] {
    background: #fcfbf8 !important;
}

[data-theme="light"] .layui-layer-content [style*="background:rgba(59, 130, 246"],
[data-theme="light"] .layui-layer-content [style*="background: rgba(59, 130, 246"] {
    background: rgba(201, 167, 108, 0.06) !important;
}

/* 弹窗内按钮区 */
[data-theme="light"] .layui-layer[style] .layui-layer-btn {
    background: #faf7f2 !important;
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .layui-layer[style] .layui-layer-btn a {
    background: #c9a76c !important;
    border: 1px solid #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .layui-layer[style] .layui-layer-btn .layui-layer-btn1 {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #5a6577 !important;
}

/* layui-layer 日历弹窗 */
[data-theme="light"] .layui-laydate {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .layui-laydate-header {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-laydate-content td {
    color: #1f1f1f !important;
}

[data-theme="light"] .layui-laydate-content td.layui-this {
    background: #c9a76c !important;
    color: #ffffff !important;
}

/* =========================================
   9. 图谱页面 (jihui.html #graph-page)
   ========================================= */
[data-theme="light"] #graph-page {
    color: #1f1f1f !important;
}

/* =========================================
   10. 补充：确保分页组件在小屏幕可见
       (所有页面通用)
   ========================================= */
[data-theme="light"] .pagination {
    flex-shrink: 0 !important;
    min-height: 45px !important;
}

/* =========================================
   11. 弹窗内ECharts容器背景透明
   ========================================= */
[data-theme="light"] .layui-layer-content div[style*="width: 100%; height: 100%"] {
    background: transparent !important;
}

/* =========================================
   12. 排序图标颜色
   ========================================= */
[data-theme="light"] .sort-icon.active {
    color: #c9a76c !important;
}

/* =========================================
   13. status-processing 骨架屏保持
   ========================================= */
[data-theme="light"] .status-processing {
    color: #c9a76c !important;
}

[data-theme="light"] .skeleton-text {
    background: linear-gradient(90deg, #e6e1d8 25%, #f3efe9 50%, #e6e1d8 75%) !important;
}

/* =========================================
   14. 日历组件 (宏观页面内嵌日历)
   ========================================= */
[data-theme="light"] .contradictions-calendar-grid-days div {
    color: #1f1f1f !important;
}

[data-theme="light"] .contradictions-day.selected {
    background-color: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .contradictions-day:hover {
    background-color: rgba(201, 167, 108, 0.15) !important;
}

[data-theme="light"] .contradictions-day.has-data::after {
    background-color: #c9a76c !important;
}

/* =========================================
   15. 机会页面 - 详情弹窗内容（detail-grid/label/value）
   ========================================= */
[data-theme="light"] .detail-label {
    color: #5a6577 !important;
}

[data-theme="light"] .detail-value {
    color: #1f1f1f !important;
}

[data-theme="light"] .detail-value .score {
    color: #c9a76c !important;
}

[data-theme="light"] .detail-full span[style*="color: white"],
[data-theme="light"] .detail-full span[style*="color:white"] {
    color: #1f1f1f !important;
}

/* 折叠逻辑头部 */
[data-theme="light"] .logic-header {
    background: #fcfbf8 !important;
    border: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .logic-header:hover {
    background: #f3efe9 !important;
}

[data-theme="light"] .logic-body {
    color: #1f1f1f !important;
}

/* 推荐区域 */
[data-theme="light"] .recommend-section {
    background: #fcfbf8 !important;
    border-left: 3px solid #c9a76c !important;
}

[data-theme="light"] .recommend-section .recommend-body {
    color: #1f1f1f !important;
}

[data-theme="light"] .recommend-section .recommend-body strong {
    color: #1f1f1f !important;
}

/* 线索详情：折叠区与「公司要点」内 marked 已加 .markdown-content；此处覆盖页面内嵌的深色样式 */
[data-theme="light"] .logic-content-inner.markdown-content,
[data-theme="light"] .logic-content-inner.markdown-content p,
[data-theme="light"] .logic-content-inner.markdown-content li {
    color: #1f1f1f !important;
}

[data-theme="light"] .logic-toggle-icon {
    color: #5a6577 !important;
}

/* 转关注区域 */
[data-theme="light"] .convert-section {
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .convert-section-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .convert-form-item label {
    color: #5a6577 !important;
}

[data-theme="light"] .convert-form-item select,
[data-theme="light"] .convert-form-item input {
    background: #f7f5f2 !important;
    border: 1px solid #e6e1d8 !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .convert-form-item select:focus,
[data-theme="light"] .convert-form-item input:focus {
    border-color: #c9a76c !important;
    box-shadow: 0 0 0 2px rgba(201, 167, 108, 0.2) !important;
}

/* 转关注状态标签 */
[data-theme="light"] .convert-status-tag.converted {
    color: #2f7d6d !important;
}

[data-theme="light"] .convert-status-tag.not-converted {
    color: #5a6577 !important;
}

/* =========================================
   16. 全局 pagination 亮色系（统一page-btn样式）
   ========================================= */
[data-theme="light"] .pagination {
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .page-btn {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #4a5568 !important;
}

[data-theme="light"] .page-btn:hover:not(:disabled) {
    background: rgba(201, 167, 108, 0.1) !important;
    color: #5a4a35 !important;
    border-color: #c9a76c !important;
}

[data-theme="light"] .page-btn:disabled {
    background: #f7f5f2 !important;
    color: #a0a5ae !important;
}

[data-theme="light"] .page-btn.active {
    background: #c9a76c !important;
    color: #ffffff !important;
    border-color: #c9a76c !important;
}

[data-theme="light"] .page-info {
    color: #5a6577 !important;
}

/* 兼容旧的 pagination button（未使用page-btn的页面） */
[data-theme="light"] .pagination button:not(.page-btn) {
    background: #ffffff !important;
    border: 1px solid #e6e1d8 !important;
    color: #4a5568 !important;
}

[data-theme="light"] .pagination button:not(.page-btn):hover:not(:disabled) {
    background: rgba(201, 167, 108, 0.1) !important;
    color: #5a4a35 !important;
    border-color: #c9a76c !important;
}

[data-theme="light"] .pagination button:not(.page-btn).current-page {
    background: #c9a76c !important;
    color: #ffffff !important;
    border-color: #c9a76c !important;
}

/* =========================================
   17. 数据页面 table 内容背景
   ========================================= */
[data-theme="light"] .analysis-table tbody td {
    background: #ffffff !important;
    color: #1f1f1f !important;
    border-bottom: 1px solid #f0ece5 !important;
}

[data-theme="light"] .analysis-table tbody tr:hover td {
    background: rgba(201, 167, 108, 0.04) !important;
}

[data-theme="light"] .analysis-table tbody td.loading {
    background: #fcfbf8 !important;
    color: #5a6577 !important;
}

/* =========================================
   18. 所有table内部链接统一卡其色
   ========================================= */
[data-theme="light"] td a,
[data-theme="light"] td .action-link,
[data-theme="light"] td span[onclick],
[data-theme="light"] .clue-table td span[onclick] {
    color: #8b7355 !important;
}

[data-theme="light"] td a:hover,
[data-theme="light"] td .action-link:hover,
[data-theme="light"] td span[onclick]:hover {
    color: #5a4a35 !important;
}

/* table中按钮统一 */
[data-theme="light"] .btn-primary {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-primary:hover {
    background: #b8956a !important;
}

/* btn-add 新增按钮 */
[data-theme="light"] .btn-add {
    background: #c9a76c !important;
    border-color: #c9a76c !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-add:hover {
    background: #b8956a !important;
}

/* =========================================
   19. 行业页签弹窗 (industry modals) 
   ========================================= */
[data-theme="light"] #industry-signals-modal .modal-body,
[data-theme="light"] #industry-daily-modal .modal-body,
[data-theme="light"] #industry-lead-modal .modal-body {
    color: #1f1f1f !important;
}

/* =========================================
   20. 线索列表 clue-table 表体
   ========================================= */
[data-theme="light"] .clue-table tbody td {
    background: #ffffff !important;
    color: #1f1f1f !important;
    border-bottom: 1px solid #f0ece5 !important;
}

[data-theme="light"] .clue-table tbody tr:hover td {
    background: rgba(201, 167, 108, 0.04) !important;
}

[data-theme="light"] .clue-table thead th {
    background: #faf7f2 !important;
    color: #5a4a35 !important;
    border-bottom: 1px solid #e6e1d8 !important;
}

/* =========================================
   21. 补充：plan-popup-wrapper 内元素覆盖
   ========================================= */
[data-theme="light"] .plan-popup-wrapper {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

/* =========================================
   22. 宏观页面主要矛盾日历面板标题
   ========================================= */
[data-theme="light"] .contradictions-content-panel {
    background: #ffffff !important;
}

/* =========================================
   23. 筛选区域 border
   ========================================= */
[data-theme="light"] .border-slate-600\/50 {
    border-color: #e6e1d8 !important;
}

/* =========================================
   24. 数据页面弹窗内容
   ========================================= */
[data-theme="light"] .layui-layer-content > div[style*="padding: 24px"][style*="color: #e2e8f0"] {
    background: #ffffff !important;
    color: #1f1f1f !important;
}

/* =========================================
   25. 持仓/关注卡片中新闻news-row背景
       日间模式下与卡片底色协调
   ========================================= */
[data-theme="light"] .news-row {
    background: rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-left: 3px solid rgba(0,0,0,0.15) !important;
    color: #1f1f1f !important;
}

[data-theme="light"] .news-row:hover {
    background: rgba(0,0,0,0.1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .news-row .news-title {
    color: #1f1f1f !important;
}

[data-theme="light"] .news-row .news-desc {
    color: rgba(0,0,0,0.6) !important;
}

[data-theme="light"] .news-row-financial-report {
    background: rgba(255,165,0,0.1) !important;
    border: 1px solid rgba(255,165,0,0.3) !important;
    border-left: 3px solid #ffa500 !important;
}

[data-theme="light"] .news-row-financial-report:hover {
    background: rgba(255,165,0,0.18) !important;
}

/* =========================================
   26. 机会页面排名悬浮框 ranking-tooltip
   ========================================= */
[data-theme="light"] .ranking-tooltip {
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid #e6e1d8 !important;
    box-shadow: 0 8px 24px rgba(31,41,55,0.12) !important;
}

[data-theme="light"] .ranking-tooltip-title {
    color: #5a4a35 !important;
}

[data-theme="light"] .ranking-data-list {
    border-top: 1px solid #e6e1d8 !important;
}

[data-theme="light"] .ranking-data-item .quarter-label {
    color: #5a6577 !important;
}

[data-theme="light"] .ranking-data-item .ranking-value {
    color: #1f1f1f !important;
}

[data-theme="light"] .ranking-cell:hover {
    color: #c9a76c !important;
}

/* ranking-chart SVG元素颜色适配 */
[data-theme="light"] .ranking-chart-svg text {
    fill: #5a6577 !important;
}

[data-theme="light"] .ranking-chart-svg line {
    stroke: #e6e1d8 !important;
}
