/**
 * 涨停板块历史页样式
 * - 设计 token：--sa-*（其它页面若复用可只摘 :root + 所需 class）
 * - 新晋势力雷达：.new-force-radar-*
 * - AI 智能选股弹窗：.ai-stock-select-*、.ai-pick-card*、.ai-stock-viz-*
 * - 文末「plate_ranking_history 页面」段：由原 plate_ranking_history.html 内联样式迁出（含 body/.container 等整页布局）
 *
 * 当前仅 plate_ranking_history.html 引用本文件。
 */
:root {
    --sa-radius-card: 16px;
    --sa-radius-panel: 12px;
    --sa-radius-pill: 999px;
    --sa-gap-md: 16px;
    --sa-gap-sm: 14px;
    --sa-teal-600: #0f766e;
    --sa-teal-500: #14b8a6;
    --sa-teal-700: #115e59;
    --sa-brand-500: #0d9488;
    --sa-slate-500: #64748b;
    --sa-slate-600: #475569;
    --sa-slate-700: #334155;
    --sa-indigo-500: #6366f1;
    --sa-shadow-card: 0 8px 24px rgba(13, 148, 136, 0.12);
    --sa-border-radar: rgba(45, 212, 191, 0.35);
}

/* —— 新晋势力雷达 —— */
.new-force-radar-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    border-radius: var(--sa-radius-card);
    padding: 22px 24px 24px;
    margin-bottom: 24px;
    box-shadow: var(--sa-shadow-card);
    border: 1px solid var(--sa-border-radar);
}
.new-force-radar-head {
    margin-bottom: 16px;
}
.new-force-radar-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sa-teal-600);
}
.new-force-radar-title-row i {
    color: var(--sa-teal-500);
}
.new-force-radar-sub {
    margin: 8px 0 0 0;
    font-size: 0.78rem;
    color: var(--sa-slate-500);
    line-height: 1.5;
    font-weight: normal;
}
.new-force-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sa-gap-md);
    align-items: stretch;
}
.new-force-radar-item {
    background: #fff;
    border-radius: var(--sa-radius-panel);
    padding: 14px 14px 12px;
    border: 1px solid #ccfbf1;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.new-force-radar-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.new-force-radar-name {
    font-weight: 600;
    color: var(--sa-teal-700);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    font-size: 0.95rem;
    padding: 0;
    text-align: left;
}
.new-force-radar-name:hover {
    color: var(--sa-brand-500);
    text-decoration: underline;
}
.new-force-radar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.new-force-badge-tier {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--sa-radius-pill);
    font-weight: 600;
}
.new-force-badge-tier.quasi {
    background: #fef3c7;
    color: #b45309;
}
.new-force-badge-tier.shock {
    background: #e0f2fe;
    color: #0369a1;
}
.new-force-badge-elite {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--sa-radius-pill);
    background: #ede9fe;
    color: #5b21b6;
    font-weight: 600;
}
.new-force-radar-metrics {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--sa-slate-600);
    line-height: 1.55;
    flex: 1 1 auto;
    min-height: 6.2em;
}
.new-force-radar-metrics strong {
    color: var(--sa-teal-600);
}
.new-force-delta-pos { color: #c62828; font-weight: 600; }
.new-force-delta-neg { color: #2e7d32; font-weight: 600; }
.new-force-delta-zero { color: var(--sa-slate-500); }
.new-force-radar-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #99f6e4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.new-force-radar-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--sa-radius-pill);
    border: none;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--sa-brand-500) 0%, var(--sa-indigo-500) 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.new-force-radar-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.new-force-radar-ai-btn i { font-size: 0.75rem; opacity: 0.95; }
.new-force-radar-ai-hint {
    font-size: 0.68rem;
    color: var(--sa-slate-500);
    line-height: 1.4;
    flex: 1;
    min-width: 140px;
}

/* —— AI 选股弹窗（重点卡片 + 主表）—— */
.ai-stock-select-header {
    background: linear-gradient(135deg, var(--sa-brand-500) 0%, var(--sa-teal-600) 100%);
}
.ai-stock-select-btn i {
    font-size: 0.95rem;
}
.ai-stock-select-content {
    max-height: min(78vh, 720px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}
.ai-stock-intro--compact {
    font-size: 0.78rem;
    color: var(--sa-slate-600);
    line-height: 1.5;
    margin: 0 0 14px 0;
}
.ai-stock-hero-strip {
    margin: 0 0 18px 0;
    padding: 14px 16px 16px;
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ai-stock-hero-strip-head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sa-slate-600);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.ai-stock-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .ai-stock-hero-cards {
        grid-template-columns: 1fr;
    }
}
.ai-stock-section-title--primary {
    margin: 0 0 12px 0;
    color: var(--sa-slate-800);
    font-size: 0.95rem;
}
.ai-stock-select-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: linear-gradient(90deg, #f0fdfa 0%, #eef2ff 100%);
    border-radius: var(--sa-radius-panel);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.ai-stock-select-toolbar .toolbar-left {
    font-size: 0.82rem;
    color: var(--sa-slate-600);
    max-width: 100%;
}
.ai-stock-toolbar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ai-stock-export-chart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ai-stock-export-chart-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #64748b;
    color: #334155;
}
.ai-stock-export-chart-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.ai-stock-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--sa-brand-500);
    background: #fff;
    color: var(--sa-teal-600);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.ai-stock-refresh-btn:hover { background: #f0fdfa; }
.ai-pick-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.ai-pick-card.rank-1 { border-color: #fbbf24; background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); }
.ai-pick-card.rank-2 { border-color: #94a3b8; }
.ai-pick-card.rank-3 { border-color: #fdba74; }
.ai-pick-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.ai-pick-card-name { font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.ai-pick-card-code { font-size: 0.72rem; color: var(--sa-slate-500); }
.ai-pick-card-scores {
    display: flex;
    gap: 10px;
    font-size: 0.72rem;
    margin-bottom: 6px;
}
.ai-pick-card-scores span { color: var(--sa-slate-600); }
.ai-pick-card-scores strong { color: #059669; }
.ai-pick-card-analysis {
    font-size: 0.74rem;
    color: var(--sa-slate-700);
    line-height: 1.45;
}
.ai-stock-section-title {
    margin: 0 0 10px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sa-slate-700);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-stock-section-title i { color: var(--sa-brand-500); }
.ai-stock-intro {
    margin: 0 0 14px 0;
    color: var(--sa-slate-500);
    font-size: 0.82rem;
    line-height: 1.55;
}
.ai-stock-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ai-stock-select-content .ai-stock-select-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    line-height: 1.45;
}
.ai-stock-select-content .ai-stock-select-table th,
.ai-stock-select-content .ai-stock-select-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.ai-stock-select-content .ai-stock-select-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 #e2e8f0;
}
.ai-stock-select-content .ai-stock-select-table tbody tr:last-child td {
    border-bottom: none;
}
.ai-stock-select-content .ai-stock-select-table tr:nth-child(even):not(.ai-stock-row--rank1):not(.ai-stock-row--rank2):not(.ai-stock-row--rank3) {
    background: #fafafa;
}
.ai-stock-select-content .ai-stock-select-table .col-rank {
    width: 48px;
    text-align: center;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}
.ai-stock-select-content .ai-stock-select-table .col-score {
    width: 52px;
    text-align: center;
    white-space: nowrap;
}
.ai-stock-select-content .ai-stock-select-table .col-change {
    max-width: 200px;
}
.ai-stock-select-content .ai-stock-select-table .col-analysis {
    min-width: 200px;
    max-width: 360px;
}
.ai-stock-row--rank1 td {
    background: linear-gradient(90deg, #fffbeb 0%, rgba(255, 251, 235, 0.35) 100%) !important;
}
.ai-stock-row--rank2 td {
    background: #f8fafc !important;
}
.ai-stock-row--rank3 td {
    background: #fff7ed !important;
}
.ai-stock-select-content .ai-stock-select-table .score-high { color: #059669; font-weight: 600; }
.ai-stock-select-content .ai-stock-select-table .score-mid { color: #d97706; }
.ai-stock-select-content .ai-stock-select-table .score-low { color: #6b7280; }
.ai-stock-select-content .ai-stock-select-table .col-trend {
    min-width: 88px;
    font-size: 0.82rem;
    line-height: 1.35;
}
.ai-stock-select-content .ai-stock-select-table .trend-strong { color: #047857; font-weight: 600; }
.ai-stock-select-content .ai-stock-select-table .trend-steady { color: #0d9488; font-weight: 600; }
.ai-stock-select-content .ai-stock-select-table .trend-moderate { color: #b45309; }
.ai-stock-select-content .ai-stock-select-table .trend-weak { color: #64748b; }
.ai-stock-select-content .ai-stock-select-table .trend-flat { color: #94a3b8; }
.ai-pick-card-scores .trend-strong { color: #047857; }
.ai-pick-card-scores .trend-steady { color: #0d9488; }
.ai-pick-card-scores .trend-moderate { color: #b45309; }
.ai-pick-card-scores .trend-weak { color: #64748b; }
.ai-pick-card-scores .trend-flat { color: #94a3b8; }
.ai-stock-select-content .stock-desc-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ai-stock-select-content .stock-desc-cell:hover {
    white-space: normal;
    overflow: visible;
}


/* ========== plate_ranking_history 页面（由原模板内联样式迁出） ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* 无情数据风格：一行式 Toolbar */
.plate-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8f9fa;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    border-bottom: 1px solid #e5e7eb;
    min-height: 48px;
}
.plate-toolbar-left {
    display: flex;
    align-items: center;
}
.plate-toolbar-brand {
    display: flex;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
}
.plate-toolbar-logo {
    display: block;
    width: 28px;
    height: 28px;
}
.plate-toolbar-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}
.plate-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.plate-toolbar .toolbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.plate-toolbar .toolbar-item label {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}
.plate-toolbar .toolbar-item .form-control,
.plate-toolbar .toolbar-item select.form-control {
    height: 28px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    min-width: 0;
}
.plate-toolbar .date-range-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.plate-toolbar .date-range-wrap .form-control {
    width: 118px;
}
.plate-toolbar .date-range-wrap .date-range-sep { margin: 0; color: #9ca3af; font-size: 11px; }
.plate-toolbar .toolbar-btn {
    height: 28px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    cursor: pointer;
}
.plate-toolbar .toolbar-btn.primary { background: #1a56a7; border-color: #1a56a7; color: #fff; }
.plate-toolbar .toolbar-btn.primary:hover { background: #144785; }
.plate-toolbar .toolbar-btn:hover { border-color: #1a56a7; color: #1a56a7; }
.plate-toolbar .custom-multiselect { min-width: 90px; }
.plate-toolbar .multiselect-display { padding: 4px 8px; font-size: 12px; height: 28px; border-radius: 3px; }
.plate-toolbar #daysLimitCapsules,
.plate-toolbar #topNCapsules { display: none !important; }

.controls-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.form-group {
    flex: 0 1 auto;
    min-width: 140px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 0.82rem;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #1a56a7;
    box-shadow: 0 0 0 2px rgba(26, 86, 167, 0.12);
}
.form-control-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.date-range-group {
    min-width: 260px;
}
.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.date-range-inputs .form-control {
    flex: 1;
    min-width: 0;
}
.date-range-sep {
    color: #999;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.capsule-form-group {
    min-width: 0;
}
.capsule-label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 0.82rem;
}
.capsule-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}
.capsule-btn {
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.capsule-btn:hover {
    border-color: #1a56a7;
    color: #1a56a7;
}
.capsule-btn.active {
    background: #1a56a7;
    border-color: #1a56a7;
    color: #fff;
}
.form-group-filter {
    min-width: 160px;
}

/* 自定义多选下拉框样式 */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-display {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}
.multiselect-display:hover {
    border-color: #1a56a7;
}
.multiselect-display.active {
    border-color: #1a56a7;
    box-shadow: 0 0 0 2px rgba(26, 86, 167, 0.12);
}

.multiselect-text {
    color: #333;
    flex: 1;
}

.multiselect-text.has-selection {
    color: #333;
    font-weight: 500;
}

.multiselect-arrow {
    color: #666;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.multiselect-display.active .multiselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.multiselect-option {
    padding: 0;
}

.multiselect-label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
}

.multiselect-label:hover {
    background-color: #f5f5f5;
}

.multiselect-label input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #1a56a7;
}

.multiselect-label span {
    color: #333;
    font-size: 0.95rem;
}

.multiselect-label input[type="checkbox"]:checked + span {
    color: #1a56a7;
    font-weight: 500;
}

.btn {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 167, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.daily-list-size-card {
    background: white;
    border-radius: 16px;
    padding: 22px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.daily-list-size-card .hot-plates-list-size-section {
    margin-top: 0;
}

/* 新晋势力雷达、AI 选股 UI 见 static/css/modules/plate_ranking_ui.css */

/* 连续火爆板块样式 */
.hot-plates-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 连续火爆区：先板块后个股的 AI 选股流程说明 */
.hot-plates-ai-hint {
    font-size: 0.8rem;
    line-height: 1.58;
    color: #475569;
    margin: 0 0 16px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #0d9488;
}
.hot-plates-ai-hint strong {
    color: #0f766e;
    font-weight: 600;
}

.hot-plates-list-size-section {
    margin-top: 18px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
}
.hot-plates-list-size-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 10px;
}
.hot-plates-list-size-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}
.hot-plates-list-size-title i {
    margin-right: 6px;
    color: #5b8def;
}
.hot-plates-list-size-hint {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: normal;
}
.hot-plates-list-size-chart {
    width: 100%;
    height: 220px;
    min-height: 180px;
}

.hot-plates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.hot-boards-tabs {
    display: inline-flex;
    gap: 8px;
    margin-top: 4px;
}
.hot-board-tab {
    border: 1px solid #d7dee7;
    background: #f8fafc;
    color: #4b5563;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.hot-board-tab.active {
    background: #1a56a7;
    color: #fff;
    border-color: #1a56a7;
}
.hot-boards-panel {
    display: none;
}
.hot-boards-panel.active {
    display: block;
}

.hot-plate-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}
.hot-plate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #1a56a7;
}
.hot-plate-card-top1 {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 193, 7, 0.25);
}
.hot-plate-card-top1::before { background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%); width: 4px; }
.hot-plate-card-top2 {
    background: linear-gradient(135deg, #fff 0%, rgba(192, 192, 192, 0.05) 100%);
    border-color: rgba(192, 192, 192, 0.3);
}
.hot-plate-card-top2::before { background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%); width: 4px; }
.hot-plate-card-top3 {
    background: linear-gradient(135deg, #fff 0%, rgba(205, 127, 50, 0.05) 100%);
    border-color: rgba(205, 127, 50, 0.25);
}
.hot-plate-card-top3::before { background: linear-gradient(180deg, #cd7f32 0%, #b87333 100%); width: 4px; }
.hot-plate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
/* 已入前 N 但未达原「强火爆」门槛，略弱化以便与强信号区分 */
.hot-plate-card-soft-signal {
    border-style: dashed;
    border-color: #d1d5db;
}
.hot-plate-card-soft-signal::before {
    opacity: 0.45;
}
.hot-plate-watermark {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.07);
    line-height: 1;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.hot-plate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.hot-plate-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a56a7;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.hot-plate-name .hot-plate-badge {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.hot-plate-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: transparent;
    color: #1a56a7;
    border: 1.5px solid #1a56a7;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: 'Roboto Mono', 'SF Mono', 'DIN Alternate', 'Lato', 'Consolas', 'Monaco', monospace;
}
.hot-plate-card-top1 .hot-plate-name .hot-plate-badge,
.hot-plate-card-top1 .hot-plate-badge {
    color: #d4a017;
    border-color: #d4a017;
    background: transparent;
}
.hot-plate-card-top2 .hot-plate-name .hot-plate-badge,
.hot-plate-card-top2 .hot-plate-badge {
    color: #6c757d;
    border-color: #9e9e9e;
    background: transparent;
}
.hot-plate-card-top3 .hot-plate-name .hot-plate-badge,
.hot-plate-card-top3 .hot-plate-badge {
    color: #b87333;
    border-color: #cd7f32;
    background: transparent;
}
.hot-plate-score-badge {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d4a017;
    font-variant-numeric: tabular-nums;
    font-family: 'Roboto Mono', 'SF Mono', 'DIN Alternate', 'Lato', 'Consolas', 'Monaco', monospace;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.hot-plate-card-top1 .hot-plate-score-badge { color: #c9a227; }
.hot-plate-card-top2 .hot-plate-score-badge { color: #6c757d; }
.hot-plate-card-top3 .hot-plate-score-badge { color: #b87333; }
.hot-plate-metrics-inline {
    font-size: 0.85rem;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    position: relative;
    z-index: 1;
}
.hot-metric-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.hot-metric-inline em {
    font-style: normal;
    font-size: 12px;
    color: #999;
    margin: 0;
}
.hot-metric-inline strong {
    font-weight: 700;
    color: #1a56a7;
    font-family: 'Roboto Mono', 'SF Mono', 'DIN Alternate', 'Lato', 'Consolas', 'Monaco', monospace;
    font-variant-numeric: tabular-nums;
}
.hot-metric-inline strong.hot-metric-high {
    color: #ff6b6b;
}
/* 数字统一使用等宽字体 */
.hot-metric-inline {
    font-variant-numeric: tabular-nums;
}
.hot-metric-number,
.hot-metric-inline strong,
.hot-plate-score-badge {
    font-family: 'Roboto Mono', 'SF Mono', 'DIN Alternate', 'Lato', 'Consolas', 'Monaco', monospace;
    font-variant-numeric: tabular-nums;
}
.hot-metric-sep {
    color: #ccc;
    font-size: 0.75rem;
    user-select: none;
}
.mini-chart-container {
    margin-top: 8px;
    position: relative;
    z-index: 1;
}
.mini-chart-bars {
    display: flex;
    align-items: flex-end;
    height: 24px;
    gap: 3px;
    width: 100%;
}
.bar-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    cursor: default;
    position: relative;
    min-width: 4px;
}
.bar {
    width: 100%;
    min-height: 4px;
    border-radius: 2px 2px 0 0;
    transition: filter 0.2s ease, transform 0.2s ease;
    transform-origin: bottom;
}
.bar-wrapper:hover .bar {
    filter: brightness(0.92);
    transform: scaleY(1.08);
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plate-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.plate-detail-btn:hover {
    background: linear-gradient(135deg, #144785 0%, #0f3a6b 100%);
    transform: rotate(90deg);
}

.plate-detail-btn i {
    font-size: 0.9rem;
}

.close-chart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.close-chart-btn:hover {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
    transform: rotate(90deg);
}

/* 表格标题容器 - 标题在左，按钮在右，固定在顶部不随表格滚动 */
.table-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    flex-shrink: 0;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.table-title i {
    color: #1a56a7;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

/* 优雅的导出按钮样式 */
.export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a56a7;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1.5px solid #1a56a7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(26, 86, 167, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.export-btn:hover::before {
    left: 100%;
}

.export-btn:hover {
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    color: white;
    border-color: #144785;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 167, 0.25);
}

.export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 86, 167, 0.2);
}

.export-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.export-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.export-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

.export-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Toast 通知样式 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.toast-notification.success {
    border-left-color: #52c41a;
}

.toast-notification.error {
    border-left-color: #f5222d;
}

.toast-notification.info {
    border-left-color: #1890ff;
}

.toast-notification i {
    font-size: 1.25rem;
}

.toast-notification.success i {
    color: #52c41a;
}

.toast-notification.error i {
    color: #f5222d;
}

.toast-notification.info i {
    color: #1890ff;
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #333;
}

.toast-notification .toast-message {
    font-size: 0.85rem;
    color: #666;
}

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .table-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .export-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.chart-container {
    width: 100% !important;
    height: 500px !important;
    min-height: 400px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* 保护 ECharts 图表不受 Bootstrap 影响 */
#trendChart {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* 防止 Bootstrap 重置影响图表容器 */
.chart-card .chart-container * {
    box-sizing: border-box !important;
}

.table-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* 表格容器 - 可滚动区域 */
.table-scroll-container {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: #1a56a7;
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #144785;
}

.horizontal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.horizontal-table thead {
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.horizontal-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    color: #ffffff;
}

.horizontal-table th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    z-index: 11;
    color: #ffffff;
}

.horizontal-table td {
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    vertical-align: middle;
    height: 80px;
}

.horizontal-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a56a7;
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
    border-right: 2px solid #e0e0e0;
}

.horizontal-table tbody tr:hover {
    background: #f8f9ff;
    transition: background 0.2s ease;
}

.horizontal-table tbody tr:hover td:first-child {
    background: #f8f9ff;
}
.horizontal-table th.column-highlight {
    background: linear-gradient(135deg, #164987 0%, #0f3b73 100%);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.35);
}
.horizontal-table td.column-highlight {
    background: #eef6ff;
}

.strength-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 8px;
    background: #f8f9ff;
    transition: all 0.2s ease;
    min-height: 80px;
    height: auto;
    box-sizing: border-box;
}

.strength-cell:hover {
    background: #e3f2fd;
    transform: scale(1.05);
}

.strength-cell.no-data {
    min-height: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #ccc;
}

/* 主线回踩「退二进三」：满足条件的单元格淡紫高亮（含历史列） */
.strength-cell.mainline-support-zone {
    background: linear-gradient(160deg, #f3e8ff 0%, #ede9fe 55%, #f5f3ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12);
}
.strength-cell.mainline-support-zone:hover {
    background: linear-gradient(160deg, #ede4ff 0%, #e9d5ff 50%, #f3e8ff 100%);
}
.mainline-pullback-legend {
    margin: 0 0 12px 0;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #5b21b6;
    background: #faf5ff;
    border-left: 4px solid #a78bfa;
    border-radius: 6px;
}
.mainline-pullback-legend strong {
    color: #4c1d95;
}

.strength-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a56a7;
    line-height: 1.2;
    min-height: 1.3rem;
}

.strength-value.count-high {
    color: #c62828;
}

.strength-value.count-medium {
    color: #e65100;
}

.strength-value.count-low {
    color: #2e7d32;
}

.strength-total {
    display: inline-block;
    font-size: 0.7rem;
    color: #888;
    margin-left: 2px;
    vertical-align: baseline;
}

.strength-rank {
    font-size: 0.7rem;
    color: #999;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.strength-avg {
    font-size: 0.75rem;
    color: #666;
}

.strength-avg.positive {
    color: #e74c3c; /* 红色表示上涨 */
}

.strength-avg.negative {
    color: #27ae60; /* 绿色表示下跌 */
}

.strength-avg.neutral {
    color: #666; /* 灰色表示平盘 */
}

/* 板块详情模态框样式 */
.plate-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.plate-detail-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-detail-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.plate-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.plate-detail-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.plate-detail-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.plate-detail-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.plate-detail-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.plate-detail-stats-wrapper {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.plate-detail-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f4f8;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #1a56a7;
    transition: background 0.2s;
}
.plate-detail-stats-header:hover {
    background: #e4eaf2;
}
.plate-detail-stats-header .plate-detail-stats-toggle {
    transition: transform 0.2s;
}
.plate-detail-stats-wrapper.expanded .plate-detail-stats-toggle {
    transform: rotate(180deg);
}
.plate-detail-stats-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.plate-detail-stats-wrapper.expanded .plate-detail-stats-content {
    max-height: 500px;
    transition: max-height 0.35s ease-in;
}
.plate-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding: 12px 14px;
}

.plate-detail-stat-card {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 2px solid #1a56a7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plate-detail-stat-label {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    flex-shrink: 0;
}

.plate-detail-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a56a7;
    margin-left: 8px;
    flex-shrink: 0;
}

.plate-detail-stat-value.positive {
    color: #e74c3c;
}

.plate-detail-stat-value.negative {
    color: #27ae60;
}

.plate-detail-description {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    line-height: 1.6;
    color: #333;
}

.plate-detail-stocks {
    margin-top: 24px;
}

.plate-detail-stocks-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a56a7;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.plate-detail-stock-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.plate-detail-stock-card:hover {
    border-color: #1a56a7;
    box-shadow: 0 4px 12px rgba(26, 86, 167, 0.1);
    transform: translateY(-2px);
}

.plate-detail-stock-symbol {
    font-weight: 600;
    color: #1a56a7;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.plate-detail-stock-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.plate-detail-stock-flag {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 4px;
}

.plate-detail-stock-flag.core {
    background: #d4edda;
    color: #155724;
}

.plate-detail-stock-flag.new {
    background: #d1ecf1;
    color: #0c5460;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* AI总结区域样式 */
.plate-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-calendar-timeline-btn:hover {
    transform: rotate(-8deg);
}

.timeline-meta-bar {
    flex-shrink: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

/* 时间线顶部统计卡片 */
.pct-meta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 20px;
}

.pct-meta-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    min-width: 0;
}

.pct-meta-card-warn {
    background: #fffbeb;
    border-color: #fcd34d;
}

.pct-meta-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4ff;
    color: #1a56a7;
    font-size: 0.9rem;
}

.pct-meta-card-warn .pct-meta-icon {
    background: #fef3c7;
    color: #b45309;
}

.pct-meta-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pct-meta-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a56a7;
    line-height: 1.2;
    white-space: nowrap;
}

.pct-meta-card-warn .pct-meta-value {
    color: #b45309;
}

.pct-meta-value em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
}

.pct-meta-label {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    line-height: 1.3;
}

.pct-meta-note {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timeline-meta-bar i {
    color: #1a56a7;
}

.ai-summary-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.ai-summary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

.ai-summary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-summary-btn i {
    font-size: 1rem;
}

.ai-summary-btn span {
    display: none;
}

/* .ai-stock-select-header / .ai-stock-select-btn / 选股表格 → plate_ranking_ui.css */

/* AI总结独立模态框 */
.ai-summary-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.ai-summary-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-summary-modal-content {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.ai-summary-section {
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
}

.ai-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-summary-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cache-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ai-summary-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ai-summary-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

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

.ai-summary-export {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ai-summary-export:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.ai-summary-export:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* AI 板块细分分析 · 离屏导出配图（html2canvas） */
.pr-ai-summary-export-host {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1e293b;
    line-height: 1.65;
    box-sizing: border-box;
}

.pr-ai-summary-export-header {
    padding: 22px 26px 20px;
    background: linear-gradient(125deg, #1a56a7 0%, #2563eb 48%, #4f46e5 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.pr-ai-summary-export-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
}

.pr-ai-summary-export-subtitle {
    font-size: 12.5px;
    opacity: 0.92;
    margin: 0;
}

.pr-ai-summary-export-meta {
    padding: 12px 26px;
    background: #eef2ff;
    border-bottom: 1px solid #c7d2fe;
    font-size: 12px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
}

.pr-ai-summary-export-meta strong {
    color: #1e3a8a;
    font-weight: 600;
}

.pr-ai-summary-export-meta .pr-export-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
}

.pr-ai-summary-export-body {
    padding: 22px 26px 8px;
    background: #fafbfc;
}

.pr-ai-summary-export-host .markdown-body {
    max-width: 100%;
    color: #24292f;
    font-size: 13.5px;
}

.pr-ai-summary-export-host .markdown-body h1 {
    font-size: 1.35rem;
    color: #1a56a7;
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 8px;
    margin: 1.2em 0 0.6em;
}

.pr-ai-summary-export-host .markdown-body h2 {
    font-size: 1.15rem;
    color: #1e40af;
    margin: 1.1em 0 0.5em;
    padding-left: 10px;
    border-left: 4px solid #3b82f6;
}

.pr-ai-summary-export-host .markdown-body h3 {
    font-size: 1.02rem;
    color: #334155;
    margin: 0.9em 0 0.4em;
}

.pr-ai-summary-export-host .markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 12.5px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pr-ai-summary-export-host .markdown-body table th {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #bfdbfe;
}

.pr-ai-summary-export-host .markdown-body table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.pr-ai-summary-export-host .markdown-body table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.pr-ai-summary-export-host .markdown-body blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 4px solid #6366f1;
    background: #f5f3ff;
    color: #4338ca;
    border-radius: 0 8px 8px 0;
}

.pr-ai-summary-export-host .markdown-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

.pr-ai-summary-export-footer {
    margin: 0 26px 22px;
    padding: 12px 14px 12px 18px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #64748b;
    font-size: 11px;
    color: #64748b;
    line-height: 1.55;
}

.ai-summary-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: #fafbfc;
    line-height: 1.8;
}

/* AI 弹窗内容区：与头部 flex 分配高度，避免 calc 与双滚动条 */
.ai-summary-modal-content .ai-summary-header {
    flex-shrink: 0;
}
.ai-summary-modal-content .ai-summary-content {
    padding: 20px 24px 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    height: auto;
}

/* 优化滚动条样式 */
.ai-summary-content::-webkit-scrollbar,
.ai-summary-modal-content .ai-summary-content::-webkit-scrollbar {
    width: 10px;
}

.ai-summary-content::-webkit-scrollbar-track,
.ai-summary-modal-content .ai-summary-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.ai-summary-content::-webkit-scrollbar-thumb,
.ai-summary-modal-content .ai-summary-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.ai-summary-content::-webkit-scrollbar-thumb:hover,
.ai-summary-modal-content .ai-summary-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Markdown内容容器 */
.ai-summary-content .markdown-body {
    max-width: 100%;
    color: #24292f;
}

/* 表格样式优化 */
.ai-summary-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.ai-summary-content table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-summary-content table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ai-summary-content table tbody tr {
    transition: background-color 0.2s ease;
}

.ai-summary-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.ai-summary-content table tbody tr:hover {
    background-color: #e3f2fd !important;
    transform: scale(1.01);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-summary-content table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e1e4e8;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #24292f;
    white-space: normal;
    word-wrap: break-word;
    max-width: 300px;
}

.ai-summary-content table tbody tr:last-child td {
    border-bottom: none;
}

/* 标题样式 */
.ai-summary-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a56a7;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
}

.ai-summary-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a56a7;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.ai-summary-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 24px;
    margin-bottom: 12px;
}

.ai-summary-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 段落样式 */
.ai-summary-content p {
    line-height: 1.8;
    color: #24292f;
    margin-bottom: 16px;
    text-align: justify;
}

/* 深度分析文字部分 - 小字显示 */
/* 表格后的文字分析部分（深度分析） */
.ai-summary-content table + p,
.ai-summary-content table ~ p {
    font-size: 0.8rem !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-top: 12px;
}

/* 普通段落（非标题、非代码块内的）使用较小字体 */
.ai-summary-content .markdown-body > p {
    font-size: 0.85rem;
    color: #555;
}

/* 确保表格后的分析文字更小 */
.ai-summary-content table + *:not(table):not(h1):not(h2):not(h3):not(h4) {
    font-size: 0.8rem;
    color: #666;
}

/* AI加载动画样式 */
.ai-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    min-height: 400px;
}

.ai-loading-animation {
    margin-bottom: 30px;
}

.ai-loading-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-loading-icon i {
    font-size: 3rem;
    color: #667eea;
    z-index: 2;
    animation: aiPulse 2s ease-in-out infinite;
}

.ai-loading-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    animation: aiPulseRing 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes aiPulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-loading-content {
    text-align: center;
    max-width: 500px;
}

.ai-loading-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a56a7;
    margin-bottom: 16px;
}

.ai-loading-step {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 24px;
}

.ai-loading-progress {
    width: 100%;
    height: 6px;
    background: #e1e4e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.ai-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
    animation: aiProgressShimmer 2s infinite;
}

@keyframes aiProgressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.ai-loading-tips {
    margin-top: 30px;
    text-align: left;
}

.ai-loading-tips p {
    font-size: 0.85rem;
    color: #666;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-loading-tips i {
    color: #667eea;
    width: 16px;
}

/* 强调文本 */
.ai-summary-content strong {
    color: #1a56a7;
    font-weight: 600;
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 3px;
}

.ai-summary-content em {
    color: #667eea;
    font-style: italic;
}

/* 列表样式 */
.ai-summary-content ul,
.ai-summary-content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.ai-summary-content ul {
    list-style-type: disc;
}

.ai-summary-content ol {
    list-style-type: decimal;
}

.ai-summary-content li {
    margin: 8px 0;
    line-height: 1.8;
    color: #24292f;
}

.ai-summary-content li::marker {
    color: #667eea;
}

/* 代码块样式 */
.ai-summary-content code {
    background-color: #f6f8fa;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85em;
    color: #e83e8c;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.ai-summary-content pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #e1e4e8;
}

.ai-summary-content pre code {
    background-color: transparent;
    padding: 0;
    color: #24292f;
}

/* 引用样式 */
.ai-summary-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #6a737d;
    background-color: #f6f8fa;
    padding: 12px 16px;
    border-radius: 4px;
}

/* 水平线 */
.ai-summary-content hr {
    border: none;
    border-top: 2px solid #e1e4e8;
    margin: 24px 0;
}

/* 链接样式 */
.ai-summary-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.ai-summary-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

@media (max-width: 768px) {
    .plate-detail-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .plate-detail-stats {
        grid-template-columns: 1fr;
    }
    
    .plate-detail-stocks-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-summary-section {
        max-height: 40vh;
    }
    
    .ai-summary-content {
        padding: 16px;
    }
    
    .ai-summary-modal-content {
        width: 98%;
        height: 95vh;
    }
    
    .ai-summary-modal-content .ai-summary-content {
        padding: 20px;
        height: calc(95vh - 70px);
    }
    
    .ai-summary-content table {
        font-size: 0.75rem;
    }
    
    .ai-summary-content table th,
    .ai-summary-content table td {
        padding: 8px;
        font-size: 0.7rem;
    }
    
    .ai-summary-content h1 {
        font-size: 1.3rem;
    }
    
    .ai-summary-content h2 {
        font-size: 1.15rem;
    }
    
    .ai-summary-content h3 {
        font-size: 1rem;
    }
}

/* 表格包装器，用于响应式滚动 */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: white;
}

.rank-other {
    background: #e3f2fd;
    color: #1a56a7;
}

.count-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.count-high {
    background: #ffebee;
    color: #c62828;
}

.count-medium {
    background: #fff3e0;
    color: #e65100;
}

.count-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.date-header {
    font-weight: 600;
    color: #1a56a7;
    font-size: 0.85rem;
}

.plate-name {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    min-height: 1.2rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-all;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-tag-short-window {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.25;
    letter-spacing: 0.02em;
}
.signal-tag-short-window .shortwin-arrow {
    font-weight: 900;
    margin-right: 3px;
}
.shortwin-spark {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.shortwin-spark svg {
    width: 18px;
    height: 14px;
    overflow: visible;
}
.shortwin-spark-rank polyline { stroke: #0f766e; }
.shortwin-spark-rank circle { fill: #0f766e; }
.shortwin-spark-count rect { fill: rgba(13, 148, 136, 0.55); }
.shortwin-bubble-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(15, 118, 110, 0.35);
    border-radius: 50%;
    color: #0f766e;
    background: rgba(204, 251, 241, 0.55);
    margin-left: 4px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}
.shortwin-bubble-btn:hover { filter: brightness(0.97); }
.shortwin-bubble {
    position: fixed;
    z-index: 9999;
    max-width: min(360px, calc(100vw - 20px));
    background: #0b1220;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    padding: 10px 12px;
    font-size: 12px;
}
.shortwin-bubble-title {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 6px;
    color: #f8fafc;
}
.shortwin-bubble-body {
    font-variant-numeric: tabular-nums;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.92);
    word-break: break-word;
}
/* 表格里用更简约的“徽记”样式，避免占位/花哨 */
.signal-tag-short-window.shortwin-compact {
    padding: 0;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
}
.signal-tag-short-window.shortwin-compact .shortwin-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid #d5dee8;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.signal-tag-short-window.shortwin-compact .shortwin-text {
    display: none;
}
.signal-tag-short-window.shortwin-compact .shortwin-arrow {
    margin-right: 0;
    font-size: 11px;
    line-height: 1;
    color: #475569;
}
.signal-tag-short-window.shortwin-compact .shortwin-spark {
    margin-left: 0;
}
.signal-tag-short-window.shortwin-compact .shortwin-spark svg {
    width: 16px;
    height: 12px;
}
.signal-tag-short-window.shortwin-compact .shortwin-bubble-btn {
    width: 14px;
    height: 14px;
    font-size: 10px;
    margin-left: 2px;
    background: transparent;
    color: #64748b;
    border-color: #cbd5e1;
}
.signal-tag-short-window.shortwin-compact .shortwin-bubble-btn:hover {
    color: #334155;
    border-color: #94a3b8;
    background: #f1f5f9;
}
.strength-cell.selected .signal-tag-short-window.shortwin-compact .shortwin-chip {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}
.strength-cell.selected .signal-tag-short-window.shortwin-compact .shortwin-spark-rank polyline,
.strength-cell.selected .signal-tag-short-window.shortwin-compact .shortwin-spark-rank circle {
    stroke: rgba(236, 253, 245, 0.92);
    fill: rgba(236, 253, 245, 0.92);
}
.strength-cell.selected .signal-tag-short-window.shortwin-compact .shortwin-spark-count rect {
    fill: rgba(236, 253, 245, 0.55);
}
.strength-cell.selected .signal-tag-short-window.shortwin-compact .shortwin-bubble-btn {
    color: rgba(236, 253, 245, 0.92);
    border-color: rgba(255, 255, 255, 0.35);
}
.hot-plate-name .signal-tag-short-window {
    margin-left: 6px;
    flex-shrink: 0;
}
.plate-cell-signal-row {
    flex-shrink: 0;
    width: 100%;
    max-width: 108px;
    text-align: center;
    margin: 1px 0 2px;
    line-height: 1;
    min-height: 18px;
}
.signal-tag-table-cell {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    vertical-align: top;
}
.shortwin-inline {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    vertical-align: middle;
}
.plate-name-in-cell .shortwin-inline {
    margin-left: 3px;
}
.shortwin-inline .shortwin-arrow {
    font-size: 12px;
    color: #1a56a7;
    line-height: 1;
}
.shortwin-inline .shortwin-bubble-btn {
    width: 13px;
    height: 13px;
    font-size: 9px;
    margin-left: 0;
    background: transparent;
    color: #64748b;
    border-color: #cbd5e1;
}
.shortwin-inline .shortwin-bubble-btn:hover {
    color: #334155;
    border-color: #94a3b8;
    background: #f1f5f9;
}
.plate-name-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.plate-name-in-cell {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    min-height: 1.2rem;
    line-height: 1.2;
    text-align: center;
    display: block;
    word-break: break-all;
    max-width: 108px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
    box-sizing: border-box;
}

.plate-name-in-cell:hover {
    color: #1a56a7;
    background: #e3f2fd;
    transform: scale(1.05);
}

.plate-name-in-cell.selected {
    color: #ffffff;
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(26, 86, 167, 0.3);
}
.strength-cell.selected .signal-tag-table-cell {
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.strength-cell.selected {
    background: #e3f2fd;
    border: 2px solid #1a56a7;
    box-shadow: 0 2px 8px rgba(26, 86, 167, 0.2);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .plate-toolbar {
        padding: 8px 12px;
        gap: 8px;
        margin-bottom: 12px;
    }
    .plate-toolbar-title { font-size: 1rem; }
    .plate-toolbar-right { gap: 8px; }
    .plate-toolbar .date-range-wrap .form-control { width: 100px; }
    .controls-row {
        flex-direction: column;
        gap: 12px;
    }
    .form-group {
        min-width: 100%;
    }
    .form-group label,
    .capsule-label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .date-range-group {
        min-width: 100%;
    }
    .date-range-inputs {
        flex-direction: column;
        gap: 8px;
    }
    .date-range-inputs .form-control {
        width: 100%;
        min-width: 0;
    }
    .date-range-sep {
        display: none;
    }
    .capsule-form-group {
        min-width: 100%;
    }
    .capsule-label {
        margin-bottom: 6px;
    }
    .capsule-group {
        gap: 4px;
        width: 100%;
        justify-content: flex-start;
    }
    .capsule-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        flex: 0 1 auto;
        min-width: 0;
    }
    .form-group-filter {
        min-width: 100%;
    }
    .form-group.button-group {
        display: flex;
        flex-direction: row;
        justify-content: stretch;
        align-items: stretch;
        gap: 10px;
        margin-top: 4px;
    }
    .form-group.button-group .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .multiselect-dropdown {
        max-height: 150px;
    }
    .multiselect-label {
        padding: 10px 12px;
    }
    
    .chart-container {
        height: 280px;
        min-height: 250px;
    }
    
    #trendChart {
        height: 280px !important;
        min-height: 250px !important;
    }
    
    .daily-list-size-card {
        padding: 16px 14px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .chart-card {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .table-card {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    /* 小屏幕进一步优化 */
    @media (max-width: 480px) {
        .controls-card {
            padding: 10px;
            margin-bottom: 14px;
        }
        .controls-row {
            gap: 10px;
        }
        .form-group label,
        .capsule-label {
            font-size: 0.7rem;
            margin-bottom: 4px;
        }
        .form-control {
            padding: 9px 10px;
            font-size: 0.85rem;
        }
        .date-range-inputs {
            gap: 6px;
        }
        .capsule-group {
            gap: 3px;
        }
        .capsule-btn {
            padding: 6px 10px;
            font-size: 0.75rem;
        }
        .form-group.button-group {
            flex-direction: row;
            gap: 8px;
        }
        .form-group.button-group .btn {
            flex: 1;
            min-width: 0;
            padding: 11px 12px;
            font-size: 0.85rem;
        }
    }
    
    /* 连续火爆：移动端信息密度（双列 + 紧凑排版；极窄屏单列） */
    .hot-plates-card > .chart-title {
        font-size: 1rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom-width: 1px;
    }
    .hot-plates-card > .chart-title i {
        font-size: 0.92em;
        vertical-align: -0.05em;
    }
    .hot-plates-card {
        padding: 8px 10px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    .hot-plates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 6px;
    }
    .hot-boards-tabs {
        width: 100%;
        margin-top: 6px;
        gap: 6px;
    }
    .hot-board-tab {
        flex: 1;
        text-align: center;
        padding: 5px 8px;
        font-size: 11px;
    }
    .hot-plates-list-size-section {
        padding: 12px;
        margin-top: 12px;
    }
    .hot-plates-list-size-chart {
        height: 200px;
    }
    .hot-plate-card {
        padding: 7px 8px;
        border-radius: 8px;
        gap: 3px;
        min-width: 0;
    }
    .hot-plate-card:hover {
        transform: none;
    }
    .hot-plate-card:active {
        opacity: 0.94;
    }
    .hot-plate-card::before {
        width: 3px;
    }
    .hot-plate-watermark {
        display: none;
    }
    .hot-plate-header {
        gap: 5px;
        align-items: flex-start;
    }
    .hot-plate-name {
        font-size: 0.8rem;
        line-height: 1.25;
        gap: 3px;
        flex-wrap: wrap;
    }
    .hot-plate-name > span:first-child {
        min-width: 0;
        word-break: break-all;
    }
    .hot-plate-name .signal-tag-short-window {
        margin-left: 0;
        font-size: 0.56rem;
        padding: 0 4px;
        line-height: 1.3;
    }
    .hot-plate-badge {
        padding: 0 4px;
        font-size: 0.52rem;
    }
    .hot-plate-score-badge {
        font-size: 0.92rem;
        line-height: 1;
        margin-top: 1px;
    }
    .hot-plate-metrics-inline {
        font-size: 0.68rem;
        gap: 1px 3px;
        line-height: 1.35;
    }
    .hot-metric-inline em {
        font-size: 9px;
        letter-spacing: -0.02em;
    }
    .hot-metric-sep {
        font-size: 0.62rem;
    }
    .mini-chart-container {
        margin-top: 3px;
    }
    .mini-chart-bars {
        height: 20px;
        gap: 2px;
    }
    .bar-wrapper {
        min-width: 2px;
    }
    @media (max-width: 360px) {
        .hot-plates-grid {
            grid-template-columns: 1fr;
        }
    }
    .hot-plates-grid > .empty-state {
        grid-column: 1 / -1;
        padding: 28px 12px;
    }
    .signal-tag-short-window.shortwin-compact .shortwin-chip {
        height: 16px;
        padding: 0 5px;
    }
    .signal-tag-short-window.shortwin-compact .shortwin-arrow {
        font-size: 10px;
    }
    .signal-tag-short-window.shortwin-compact .shortwin-bubble-btn {
        width: 13px;
        height: 13px;
        font-size: 9px;
    }
    
}

/* ========== 板块投资时间线（垂直时间轴 UI） ========== */
.plate-calendar-timeline-modal .ai-summary-modal-content {
    max-width: 880px;
}

.plate-calendar-timeline-modal .ai-summary-header {
    background: linear-gradient(135deg, #1a56a7 0%, #0d9488 100%);
}

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

.plate-calendar-timeline-content {
    padding: 0 !important;
    overflow-y: auto;
    background: #f4f6f9;
}

.pct-root {
    padding: 16px 20px 24px;
    min-height: 200px;
}

/* 概览卡片 */
.pct-overview-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #eef4ff 0%, #f0fdf9 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26, 86, 167, 0.06);
}

.pct-overview-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a56a7;
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
}

.pct-overview-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a56a7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.pct-overview-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
}

/* 筛选工具栏 */
.pct-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(244, 246, 249, 0.98);
    backdrop-filter: blur(8px);
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pct-toolbar-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pct-toolbar-block-actions {
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.pct-toolbar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
}

.pct-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
}

.pct-toolbar-title i {
    color: #1a56a7;
    margin-right: 4px;
}

.pct-toolbar-tip {
    font-size: 0.72rem;
    color: #94a3b8;
}

.pct-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pct-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pct-filter-chip i {
    font-size: 0.72rem;
    opacity: 0.85;
}

.pct-filter-chip:hover {
    border-color: #1a56a7;
    color: #1a56a7;
}

.pct-filter-chip.active {
    background: #1a56a7;
    border-color: #1a56a7;
    color: #fff;
}

.pct-filter-chip.active i {
    opacity: 1;
}

.pct-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pct-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #dbeafe;
    background: #fff;
    border-radius: 8px;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pct-action-chip i {
    color: #1a56a7;
    font-size: 0.82rem;
}

.pct-action-chip:hover {
    border-color: #1a56a7;
    background: #eef4ff;
    color: #1a56a7;
}

.pct-action-chip:active {
    transform: translateY(1px);
}

.pct-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.pct-action-btn:hover {
    border-color: #1a56a7;
    color: #1a56a7;
    background: #eef4ff;
}

/* 垂直时间轴 */
.pct-timeline-wrap {
    position: relative;
    padding-left: 4px;
}

.pct-day-node {
    position: relative;
    margin-bottom: 4px;
    padding-left: 0;
}

.pct-day-node::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: -4px;
    width: 2px;
    background: linear-gradient(180deg, #93c5fd 0%, #e2e8f0 100%);
}

.pct-day-node:last-child::before {
    display: none;
}

.pct-day-node.pct-node-past::before {
    background: #e2e8f0;
}

.pct-day-node.pct-node-today::before {
    background: linear-gradient(180deg, #1a56a7 0%, #93c5fd 100%);
}

.pct-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pct-day-header:hover {
    background: rgba(26, 86, 167, 0.04);
}

.pct-day-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #94a3b8;
    background: #fff;
    position: relative;
    z-index: 1;
}

.pct-node-today .pct-day-dot {
    border-color: #1a56a7;
    background: #1a56a7;
    box-shadow: 0 0 0 4px rgba(26, 86, 167, 0.2);
    animation: pctTodayPulse 2s ease-in-out infinite;
}

.pct-node-highlight .pct-day-dot {
    border-color: #f59e0b;
    background: #f59e0b;
}

@keyframes pctTodayPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(26, 86, 167, 0.2); }
    50% { box-shadow: 0 0 0 7px rgba(26, 86, 167, 0.08); }
}

.pct-day-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.pct-node-past .pct-day-date {
    color: #64748b;
}

.pct-day-type {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pct-day-type.type-calendar {
    background: #dbeafe;
    color: #1d4ed8;
}

.pct-day-type.type-ranking {
    background: #ffedd5;
    color: #c2410c;
}

.pct-day-type.type-resonance {
    background: #ede9fe;
    color: #6d28d9;
}

.pct-day-type.type-other {
    background: #f1f5f9;
    color: #64748b;
}

.pct-day-star {
    color: #f59e0b;
    font-size: 0.75rem;
}

.pct-day-toggle {
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.pct-day-node.pct-node-collapsed .pct-day-body {
    display: none;
}

.pct-day-node.pct-node-collapsed .pct-day-toggle {
    transform: rotate(-90deg);
}

.pct-day-body {
    padding: 0 0 12px 28px;
}

/* AI 解读 */
.pct-ai-insight {
    background: #fff;
    border-left: 3px solid #1a56a7;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pct-ai-summary {
    margin: 0 0 6px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #334155;
}

.pct-ai-meaning {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #0d9488;
}

.pct-ai-meaning i {
    margin-right: 4px;
}

/* 事件卡片 */
.pct-event-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.15s ease;
}

.pct-event-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pct-event-calendar.impact-high {
    border-left: 3px solid #dc2626;
}

.pct-event-calendar.impact-mid {
    border-left: 3px solid #f59e0b;
}

.pct-event-calendar.impact-low {
    border-left: 3px solid #94a3b8;
}

.pct-event-ranking {
    border-left: 3px solid #c2410c;
    background: linear-gradient(90deg, #fff7ed 0%, #fff 40%);
}

.pct-event-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
}

.pct-event-head i {
    color: #1a56a7;
    font-size: 0.8rem;
}

.pct-event-ranking .pct-event-head i {
    color: #c2410c;
}

.pct-event-title {
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    min-width: 120px;
}

.pct-event-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.pct-event-tags {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #64748b;
}

.pct-rank-badge {
    font-weight: 800;
    color: #c2410c;
    font-size: 0.9rem;
}

.pct-rank-change {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.pct-rank-change.up {
    background: #fef2f2;
    color: #dc2626;
}

.pct-rank-change.down {
    background: #f0fdf4;
    color: #16a34a;
}

.pct-rank-stat {
    font-size: 0.78rem;
    color: #64748b;
}

.pct-rank-stat strong {
    color: #1e293b;
}

.pct-rank-reason {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
}

/* 后续关注 */
.pct-watchlist {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pct-watchlist-head {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a56a7;
    margin-bottom: 10px;
}

.pct-watchlist-head i {
    margin-right: 6px;
}

.pct-watchlist-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pct-watch-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #475569;
}

.pct-watch-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pct-watch-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #1a56a7;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
}

/* 空状态 */
.pct-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

.pct-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.pct-empty p {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 16px;
}

@media (max-width: 768px) {
    .plate-calendar-timeline-modal.show {
        align-items: stretch;
        justify-content: stretch;
    }

    .plate-calendar-timeline-modal .ai-summary-modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .plate-calendar-timeline-modal .ai-summary-header {
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
        gap: 8px;
    }

    .plate-calendar-timeline-modal .ai-summary-header h4 {
        font-size: 0.92rem;
        min-width: 0;
        flex: 1;
    }

    .plate-calendar-timeline-modal .ai-summary-header h4 #plateCalendarTimelineTitle {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

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

    .plate-calendar-timeline-modal .ai-summary-refresh,
    .plate-calendar-timeline-modal .plate-detail-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .plate-calendar-timeline-content {
        flex: 1;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .timeline-meta-bar .pct-meta-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-meta-bar .pct-meta-card.pct-meta-span {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .pct-meta-strip {
        grid-template-columns: 1fr;
        padding: 10px 12px;
        gap: 8px;
    }

    .pct-meta-card {
        padding: 8px 10px;
    }

    .pct-meta-value {
        font-size: 1.05rem;
    }

    .pct-root {
        padding: 10px 10px max(16px, env(safe-area-inset-bottom, 0px));
    }

    .pct-overview-card {
        flex-direction: row;
        gap: 10px;
        padding: 12px 14px;
    }

    .pct-overview-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .pct-overview-text {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .pct-toolbar {
        padding: 10px;
        margin-bottom: 12px;
        top: -1px;
    }

    .pct-toolbar-tip {
        line-height: 1.35;
    }

    .pct-filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin: 0 -2px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .pct-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .pct-filter-chip {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .pct-toolbar-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pct-toolbar-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .pct-action-chip {
        justify-content: flex-start;
        width: 100%;
        padding: 10px 12px;
        font-size: 0.82rem;
        min-height: 44px;
    }

    .pct-action-chip span {
        overflow: visible;
        text-overflow: unset;
    }

    .pct-day-header {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 6px;
        padding: 12px 4px 12px 0;
        min-height: 44px;
    }

    .pct-day-date {
        font-size: 0.88rem;
        flex: 1;
        min-width: 0;
    }

    .pct-day-type {
        order: 5;
        flex-basis: calc(100% - 24px);
        margin-left: 24px;
        font-size: 0.68rem;
    }

    .pct-day-star {
        margin-left: auto;
    }

    .pct-day-toggle {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pct-day-body {
        padding-left: 20px;
        padding-right: 2px;
    }

    .pct-event-card {
        padding: 10px 12px;
    }

    .pct-event-head {
        gap: 6px;
    }

    .pct-event-title {
        flex: 1 1 100%;
        min-width: 0;
        word-break: break-word;
    }

    .pct-rank-stat {
        font-size: 0.74rem;
    }

    .pct-ai-insight {
        padding: 10px 12px;
    }

    .pct-watchlist {
        padding: 12px;
    }

    .pct-empty {
        padding: 32px 16px;
    }
}

@media (max-width: 380px) {
    .pct-overview-card {
        flex-direction: column;
    }

    .pct-filter-chip span {
        max-width: 5.5em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

