* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #fef7f7 0%, #f8e8e8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* 日期选择器样式 */
.date-picker {
    background: linear-gradient(135deg, #e53935 0%, #e35d5b 100%);
    color: white;
    padding: 20px 30px;
    position: relative;
    z-index: 10;
}

.date-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.current-date-display {
    font-size: 18px;
    font-weight: 500;
}

.expand-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.date-picker.expanded .expand-icon {
    transform: rotate(180deg);
}

.date-selector {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #e53935 0%, #e35d5b 100%);
    padding: 0 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 20;
}

.date-picker.expanded .date-selector {
    max-height: 400px;
}

.date-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.current-month {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.day-header {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
}

.date-cell {
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.date-cell:hover {
    background: rgba(255, 255, 255, 0.2);
}

.date-cell.selected {
    background: white;
    color: #e53935;
}

.date-cell.weekend {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.date-cell.weekend:hover {
    background: rgba(255, 255, 255, 0.14);
}

.date-cell.other-month {
    color: rgba(255, 255, 255, 0.3);
}

.date-cell.today {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

/* 标签页样式 */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-top: 20px;

}

.tab {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    position: relative;
}

.tab.active {
    color: #e53935;
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e53935;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 筛选区域样式 */
.filter-section {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #343a40;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e53935;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #e53935;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.filter-btn.active {
    background: #e53935;
    color: white;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 57, 53, 0.2);
}

.query-btn {
    padding: 12px 30px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

.query-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 57, 53, 0.3);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: white;
}

.user-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #343a40;
}

.user-info p {
    font-size: 14px;
    color: #6c757d;
}

.card-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.action {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.action:hover {
    color: #e53935;
}

.ai-avatar {
    background: linear-gradient(135deg, #e53935 0%, #ff6b6b 100%);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 股票项目样式 */
.stock-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stock-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.stock-code {
    font-size: 16px;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stock-code:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* 头部右侧容器 */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 计数圆点样式 */
.count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e53935;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
    flex-shrink: 0;
}

/* 复制按钮样式 */
.copy-btn {
    background: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 50px;
    box-sizing: border-box;
}

.copy-btn:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.bottom-volume-copy-btn {
    height: 32px;
    min-width: 44px;
    padding: 4px 8px;
    font-size: 12px;
}

.bottom-volume-table-copy-btn {
    display: inline-flex;
    height: 28px;
    min-width: 42px;
    margin-left: 5px;
    padding: 3px 7px;
    font-size: 11px;
    vertical-align: middle;
}

/* 分析按钮样式 */
.analysis-btn {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 50px;
    box-sizing: border-box;
}

.analysis-btn:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.stock-chart {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.ai-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.ai-info p {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

.ai-stock-item {
    position: relative;
}

/* AI推标签页头部右侧容器 */
.ai-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* AI推标签页计数圆点样式 */
.ai-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e53935;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
    flex-shrink: 0;
}

/* 调整评分标签与复制按钮大小一致 */
.ai-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 50px;
    height: 40px;
    justify-content: center;
    box-sizing: border-box;
}

.score-value {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1;
    margin-top: 2px;
}

/* 调整详细评分中标签和数值的间距 */
.ai-detail-scores {
    display: grid;
    grid-template-columns: repeat(2, 138px);
    gap: 8px;
    margin-bottom: 0px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: center;

}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 4px 6px;
    min-height: 24px;
    width: 138px;
}

.score-item .score-label {
    color: #6c757d;
    margin-right: 12px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.score-item .score-value {
    font-weight: bold;
    color: #9c5f5e;
    font-size: 15px;
    min-width: 20px;
    text-align: right;
}

/* 复盘内容样式 */
.review-content {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.review-title {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-text {
    color: #495057;
    line-height: 1.5;
    font-size: 14px;
}

.agent-content {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #9C27B0; /* 紫色，区别于复盘的绿色 */
}

.agent-title {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
    font-size: 14px;
}

.agent-text {
    color: #495057;
    line-height: 1.5;
    font-size: 14px;
}

/* 筛选头部样式 - 让标题和统计信息在同一行 */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.stats-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    align-items: center;
    color: #003eff;
    font-weight: bold; /* 加粗文本 */
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-label {
    color: #6c757d;
    font-size: 14px;
}

.stats-value {
    color: #e53935;
    font-weight: 600;
    font-size: 14px;
}

/* 统计信息区域样式 */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-item.total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    color: white;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    text-align: center;
}

.stat-item.total .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #e53935;
}

.stat-item.total .stat-value {
    color: white;
    font-size: 28px;
}
#realtime-stats-section .stat-item.active {
    background: linear-gradient(90deg, #e53935, #e91e63) !important;
    color: white !important;
    border-radius: 10px;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4) !important;
    font-weight: bold;
}

#realtime-stats-section .stat-item:hover:not(.active) {
    background-color: #854b49 !important;
}

.ai-detail-scores .score-item:nth-last-child(1) .score-value {
    color: #e53935;
    font-weight: 600;
}

.concept-section {
    margin-top: 0px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e53935;
}

.concept-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 6px;
    font-size: 14px;
}

.concept-value {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all; /* 长文本自动换行 */
}










#agent-cards {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 组间大间距，相当于你描述的“空行”分隔 */
    padding: 10px 0;
}

.sector-group {
    width: 100%;
}

.group-title {
    font-size: 20px;
    font-weight: 700;
    color: #e53935;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    background: rgba(229, 57, 53, 0.08);
    border-radius: 8px;
}

/* 每组内部卡片网格：桌面5列（你之前要求的“一行5个”） */
.group-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

/* sector-card 保持之前风格（大数字醒目） */
.sector-card {
    background: white;
    border-radius: 12px;
    padding: 28px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.sector-name {
    font-size: 17px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 12px;
    word-break: break-all;
}

.sector-zt-count {
    font-size: 34px;
    font-weight: 700;
    color: #e53935;
    line-height: 1;
}

.sector-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}


/* 搜索框样式 */
.search-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

#search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.search-btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

#clear-search {
    margin-top: 20px;
    padding: 8px 16px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear-search:hover {
    background: #d32f2f;
}

.collect-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffb513;
    color: #666;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.collect-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.collect-btn.active {
    background-color: #ffc107;
    color: #333;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.collect-btn.active:hover {
    background-color: #ffb300;
    transform: scale(1.1);
}

.collect-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.collect-btn.disabled:hover {
    background-color: #f0f0f0;
    transform: none;
}

.remove-collection-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f39506;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.25);
    transition: all 0.3s ease;
}

.remove-collection-btn:hover {
    background-color: #c62828;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.3);
}

/* 在CSS文件中添加 */

.stock-item.high-hot-d3 {
    background-color: rgba(255, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 0, 0, 0.25) !important;
}

/* ===== 回测页面专用样式 ===== */

.bt-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.bt-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.bt-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.bt-card-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
}

.bt-label {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}

.bt-val {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
    text-align: right;
}

.bt-highlight {
    font-weight: 700 !important;
    color: #e53935 !important;
}

.bt-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.bt-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
}

.bt-table thead tr {
    background: #f4f6fb;
}

.bt-table th {
    padding: 10px 10px;
    text-align: right;
    font-weight: 600;
    color: #555;
    font-size: 12px;
}

.bt-table th:first-child {
    text-align: left;
}

.bt-table td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.bt-table td:first-child {
    text-align: left;
    color: #555;
}

.bt-table tbody tr:last-child td {
    border-bottom: none;
}

.bt-table-sm {
    font-size: 12px;
}

.bt-table-sm th,
.bt-table-sm td {
    padding: 7px 8px;
}

.bt-attr-section {
    margin-bottom: 16px;
}

.bt-attr-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.bt-attr-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.bt-attr-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #343a40;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.bt-attr-grid {
    grid-template-columns: auto 1fr auto 1fr;
    gap: 4px 8px;
}

/* ===== AI 实盘池 Tag 筛选 + 搜索栏 ===== */

.research-tag-bar {
    display: flex;
    gap: 8px;
    margin: 12px 0 14px;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 7px 16px;
    border-radius: 999px;
    border: 2px solid #ccc;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tag-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.tag-pill.tag-all       { border-color: #78909c; color: #455a64; }
.tag-pill.tag-all.active { background: #455a64; color: #fff; border-color: #455a64; }

.tag-pill.tag-aplus       { border-color: #b71c1c; color: #b71c1c; }
.tag-pill.tag-aplus.active { background: #b71c1c; color: #fff; border-color: #b71c1c; }

.tag-pill.tag-a       { border-color: #e53935; color: #e53935; }
.tag-pill.tag-a.active { background: #e53935; color: #fff; border-color: #e53935; }

.tag-pill.tag-b       { border-color: #fb8c00; color: #fb8c00; }
.tag-pill.tag-b.active { background: #fb8c00; color: #fff; border-color: #fb8c00; }

.tag-pill.tag-c       { border-color: #8d6e63; color: #8d6e63; }
.tag-pill.tag-c.active { background: #8d6e63; color: #fff; border-color: #8d6e63; }

.research-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

#research-search-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#research-search-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229,57,53,0.1);
}

.research-search-clear {
    padding: 9px 16px;
    background: #78909c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.research-search-clear:hover {
    background: #546e7a;
}

.research-summary-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    min-height: 28px;
    align-items: center;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.summary-chip:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.summary-chip .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
}

.summary-chip.chip-aplus  { background: rgba(183,28,28,0.12); color: #b71c1c; }
.summary-chip.chip-aplus .chip-count { background: #b71c1c; color: #fff; }

.summary-chip.chip-a  { background: rgba(229,57,53,0.1); color: #e53935; }
.summary-chip.chip-a .chip-count { background: #e53935; color: #fff; }

.summary-chip.chip-b  { background: rgba(251,140,0,0.1); color: #fb8c00; }
.summary-chip.chip-b .chip-count { background: #fb8c00; color: #fff; }

.summary-chip.chip-c  { background: rgba(141,110,99,0.12); color: #8d6e63; }
.summary-chip.chip-c .chip-count { background: #8d6e63; color: #fff; }

.summary-chip.chip-total { background: #f0f0f0; color: #333; }
.summary-chip.chip-total .chip-count { background: #333; color: #fff; }

/* 分区颜色标识 */
.research-section.section-aplus { border-left: 4px solid #b71c1c; border-radius: 8px; padding-left: 12px; }
.research-section.section-a { border-left: 4px solid #e53935; border-radius: 8px; padding-left: 12px; }
.research-section.section-b { border-left: 4px solid #fb8c00; border-radius: 8px; padding-left: 12px; }
.research-section.section-c { border-left: 4px solid #8d6e63; border-radius: 8px; padding-left: 12px; }

.research-section .section-header-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.section-badge-aplus { background: #b71c1c; }
.section-badge-a { background: #e53935; }
.section-badge-b { background: #fb8c00; }
.section-badge-c { background: #8d6e63; }

/* 前端过滤动画 */
#research-cards {
    transition: opacity 0.15s ease, filter 0.15s ease;
}

#research-cards.research-filtering {
    opacity: 0.35;
    filter: blur(2px);
    pointer-events: none;
}

#research-cards.research-filter-done {
    animation: filterFadeIn 0.35s ease;
}

@keyframes filterFadeIn {
    from { opacity: 0.6; transform: translateY(6px); }
    to   { opacity: 1;   transform: translateY(0); }
}

.tab-hidden,
.tab-content-hidden {
    display: none !important;
}

.tulongdao-card {
    border-color: rgba(229, 57, 53, 0.16);
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.07);
}

.tulongdao-header {
    align-items: flex-start;
    gap: 10px;
}

.tulongdao-badges,
.tulongdao-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tulongdao-badge,
.tulongdao-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.tulongdao-badge.level-aplus {
    background: #b71c1c;
    color: #fff;
}

.tulongdao-badge.level-a {
    background: #e53935;
    color: #fff;
}

.tulongdao-badge.level-b {
    background: #fb8c00;
    color: #fff;
}

.tulongdao-badge.level-c {
    background: #8d6e63;
    color: #fff;
}

.event2-collapsible {
    margin: 4px 0 10px;
}

.event2-toggle-btn {
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: #1976d2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.event2-toggle-btn:hover {
    background: #1565c0;
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.25);
}

.event2-collapsible.open .event2-toggle-btn {
    background: #0d47a1;
}

.event2-toggle-state {
    flex-shrink: 0;
    min-width: 38px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.event2-result-panel {
    margin: 8px 0 0;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff5f5;
    color: #5d4037;
    border: 1px solid rgba(229, 57, 53, 0.18);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.event2-result-panel.event2-result-error {
    background: #fff8e1;
    color: #e65100;
    border-color: rgba(251, 140, 0, 0.22);
}

.event2-section-label {
    margin-bottom: 7px;
    color: #4e342e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.event2-panel-status {
    color: #8a6d6d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.event2-analysis-head {
    margin-bottom: 8px;
}

.event2-analysis-title {
    color: #b71c1c;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.event2-analysis-meta {
    margin-top: 3px;
    color: #8a6d6d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.event2-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 7px;
    margin: 9px 0;
}

.event2-metric {
    min-height: 48px;
    padding: 7px 8px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid rgba(229, 57, 53, 0.13);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.event2-metric span {
    color: #8a6d6d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.event2-metric strong {
    color: #4e342e;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    word-break: break-word;
}

.event2-metric-positive strong {
    color: #c62828;
}

.event2-metric-negative strong {
    color: #e65100;
}

.event2-metric-observe strong {
    color: #8a5a00;
}

.event2-metric-pattern strong {
    color: #1565c0;
}

.event2-point-group {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff;
    border-left: 4px solid #8d6e63;
}

.event2-point-positive {
    border-left-color: #c62828;
}

.event2-point-risk {
    border-left-color: #fb8c00;
    background: #fffaf0;
}

.event2-point-observe {
    border-left-color: #1976d2;
}

.event2-point-title {
    margin-bottom: 4px;
    color: #4e342e;
    font-size: 12px;
    font-weight: 900;
}

.event2-point-group ul {
    margin: 0;
    padding-left: 18px;
}

.event2-point-group li {
    margin: 3px 0;
    color: #5d4037;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.event2-empty-points {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff;
    color: #6d4c41;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.tulongdao-badge.action-buy {
    background: rgba(229, 57, 53, 0.12);
    color: #b71c1c;
}

.tulongdao-badge.action-light_buy {
    background: rgba(251, 140, 0, 0.14);
    color: #e65100;
}

.tulongdao-badge.action-watch,
.tulongdao-badge.weight-badge {
    background: #f5f2f2;
    color: #6d4c41;
}

.tulongdao-badge.fundamental-risk-g {
    background: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.32);
}

.tulongdao-badge.fundamental-risk-y {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid rgba(126, 34, 206, 0.28);
}

.tulongdao-badge.fundamental-risk-r {
    background: #eef7f0;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.24);
}

.tulongdao-tag {
    background: #fff5f5;
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.18);
    font-weight: 600;
}

.tulongdao-tag.risk-tag {
    background: #fff8e1;
    color: #e65100;
    border-color: rgba(251, 140, 0, 0.22);
}

.tulongdao-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.tulongdao-metric {
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #faf7f7;
    border: 1px solid #f0dddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.tulongdao-metric.strong {
    background: #fff2f2;
    border-color: rgba(229, 57, 53, 0.22);
}

.tulongdao-metric .metric-label {
    font-size: 11px;
    color: #8a6d6d;
    line-height: 1;
}

.tulongdao-metric .metric-value {
    font-size: 15px;
    font-weight: 800;
    color: #4e342e;
    line-height: 1.15;
    word-break: break-word;
}

.tulongdao-reason {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7f7 0%, #fff 100%);
    border: 1px solid rgba(229, 57, 53, 0.16);
    color: #5d4037;
    font-size: 13px;
    line-height: 1.55;
}

.tulongdao-industry {
    margin: 8px 0 10px;
}

.tulongdao-chart {
    margin-top: 8px;
}

.tulongdao-today-summary {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(229, 57, 53, 0.16);
    background: linear-gradient(135deg, #fffafa 0%, #ffffff 100%);
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.06);
}

.tulongdao-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tulongdao-summary-title {
    color: #b71c1c;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tulongdao-summary-source {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.1);
    color: #c62828;
    font-size: 11px;
    font-weight: 800;
}

.tulongdao-summary-subtitle {
    margin-top: 5px;
    color: #8a6d6d;
    font-size: 12px;
    line-height: 1.45;
}

.tulongdao-summary-status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tulongdao-summary-status.summary-status-open {
    background: #e53935;
    color: #fff;
}

.tulongdao-summary-status.summary-status-watch {
    background: #f4eeee;
    color: #8d6e63;
}

.tulongdao-summary-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.summary-kpi {
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0dddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.summary-kpi span {
    color: #8a6d6d;
    font-size: 11px;
    font-weight: 700;
}

.summary-kpi strong {
    color: #4e342e;
    font-size: 18px;
    line-height: 1;
}

.summary-kpi-aplus strong,
.summary-kpi-a strong {
    color: #e53935;
}

.summary-kpi-b strong {
    color: #fb8c00;
}

.summary-kpi-c strong,
.summary-kpi-focus strong {
    color: #8d6e63;
}

.tulongdao-summary-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff5f5;
    border-left: 4px solid #e53935;
    color: #5d4037;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.tulongdao-summary-risk {
    margin: -4px 0 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff8e1;
    border-left: 4px solid #fb8c00;
    color: #6d4c41;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}


.tulongdao-top3-grid,
.tulongdao-top3-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 14px;
}

.r3-live-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 0 18px;
    padding: 14px;
}

.r3-live-list {
    display: grid;
    gap: 8px;
}

.r2-status-cloud {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.r2-status-cloud-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #334155;
}

.r2-status-cloud-head strong {
    display: inline-block;
    margin-right: 8px;
    color: #0f172a;
    font-size: 15px;
}

.r2-status-cloud-head span {
    font-size: 12px;
    color: #64748b;
}

.r2-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
}

.r2-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
}

.r2-status-legend-item i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.r2-status-legend-confirm i {
    background: #dc2626;
}

.r2-status-legend-invalidate i {
    background: #16a34a;
}

.r2-status-legend-pending i {
    background: #f59e0b;
}

.r2-status-legend-watch i {
    background: #3b82f6;
}

.r2-buy-history-strip {
    margin: 8px 0 0;
    padding: 6px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff7f7 0%, #fff1f2 100%);
}

.r2-buy-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.r2-buy-history-head strong {
    color: #991b1b;
    font-size: 13px;
}

.r2-buy-history-head span {
    color: #64748b;
    font-size: 12px;
}

.r2-buy-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 7px;
    background: #ffffff;
}

.r2-buy-history-item {
    display: flex;
    flex: 1 1 118px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 104px;
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.38);
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 -10px 20px rgba(15, 23, 42, 0.1);
}

.r2-buy-history-item:hover {
    filter: brightness(1.04);
}

.r2-buy-history-item-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.r2-buy-history-item-invalidate {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.r2-buy-history-item-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.r2-buy-history-item-watch {
    color: #0f4c81;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.r2-buy-history-item-detached {
    opacity: 0.64;
    cursor: default;
    filter: saturate(0.75);
}

.r2-buy-history-code {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
}

.r2-buy-history-name {
    margin-top: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r2-status-cloud-tiles {
    position: relative;
    display: block;
    height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
}

.r2-status-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    padding: 8px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    outline: 1px solid rgba(255, 255, 255, 0.34);
    outline-offset: -1px;
    text-decoration: none;
    box-shadow: inset 0 -14px 24px rgba(15, 23, 42, 0.08);
    transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.r2-status-tile:hover {
    z-index: 2;
    filter: brightness(1.04);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14), inset 0 -14px 24px rgba(15, 23, 42, 0.08);
}

.r2-status-tile-confirm {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.r2-status-tile-invalidate {
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.r2-status-tile-pending {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.r2-status-tile-watch {
    color: #0f4c81;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.r2-status-code {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.r2-status-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r2-status-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}

.r2-status-score {
    font-variant-numeric: tabular-nums;
}

.r2-status-weight {
    margin-left: 4px;
    opacity: 0.82;
    font-variant-numeric: tabular-nums;
}

.r2-status-tile-small {
    padding: 6px;
}

.r2-status-tile-small .r2-status-foot,
.r2-status-tile-tiny .r2-status-foot {
    display: none;
}

.r2-status-tile-tiny {
    padding: 5px;
}

.r2-status-tile-tiny .r2-status-name {
    display: none;
}

.r3-live-row {
    border: 1px solid #eceff3;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcfe;
}

.r3-live-row-active {
    border-left-color: #e53935;
    background: #fff7f7;
}

.r3-live-row-buy {
    border-left-color: #e53935;
    background: #fff7f7;
}

.r3-live-row-watch {
    border-left-color: #94a3b8;
    background: #fbfcfe;
}

.r3-live-row-drop {
    border-left-color: #64748b;
    background: #f8fafc;
}

.r3-live-row.r2-live-row-highlight,
.r3-live-row:target {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
    transition: box-shadow 0.18s ease, outline-color 0.18s ease;
}

.r3-live-main,
.r3-live-tags,
.r3-live-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.r3-live-main {
    font-weight: 600;
    color: #263238;
}

.r3-live-tags,
.r3-live-metrics {
    margin-top: 6px;
    font-size: 12px;
    color: #54616f;
}

.r3-live-rank,
.r3-live-tier,
.r3-live-buy,
.r3-live-risk,
.r3-live-level {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    padding: 2px 8px;
    background: #eef2f7;
}

.r3-live-tier,
.r3-live-buy {
    color: #b71c1c;
    background: #ffebee;
}

.r3-live-decision-buy {
    min-width: 34px;
    justify-content: center;
    color: #ffffff;
    background: #e53935;
}

.r3-live-decision-watch {
    min-width: 34px;
    justify-content: center;
    color: #0f4c81;
    background: #e3f2fd;
}

.r3-live-decision-drop {
    min-width: 34px;
    justify-content: center;
    color: #475569;
    background: #e2e8f0;
}

.r3-live-reason {
    margin-top: 7px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid rgba(229, 57, 53, 0.14);
    color: #4e342e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.r3-live-row-watch .r3-live-reason,
.r3-live-row-drop .r3-live-reason {
    border-color: #e2e8f0;
    color: #475569;
}

.r3-live-code {
    color: #1565c0;
}

.r3-live-code,
.r3-live-name {
    text-decoration: none;
}

.r3-live-code:hover,
.r3-live-name:hover {
    text-decoration: underline;
}

.r2-decision-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.r2-decision-toggle,
.r2-decision-retry {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 5px 11px;
    color: #334155;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.r2-decision-toggle:hover,
.r2-decision-toggle[aria-expanded="true"] {
    border-color: #64748b;
    background: #f1f5f9;
}

.r2-decision-timeline {
    margin-top: 10px;
    padding: 12px 12px 4px 22px;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.72);
}

.r2-decision-timeline[hidden] {
    display: none;
}

.r2-decision-event {
    position: relative;
    padding: 0 0 14px 16px;
    border-left: 2px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
}

.r2-decision-event::before {
    position: absolute;
    top: 2px;
    left: -6px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #64748b;
    content: "";
}

.r2-decision-event-trigger {
    border-left-color: #64748b;
}

.r2-decision-event-trigger::before {
    background: #64748b;
}

.r2-decision-event-pending {
    border-left-color: #f59e0b;
}

.r2-decision-event-pending::before {
    background: #f59e0b;
}

.r2-decision-event-confirm {
    border-left-color: #dc2626;
}

.r2-decision-event-confirm::before {
    background: #dc2626;
}

.r2-decision-event-invalidate {
    border-left-color: #16a34a;
}

.r2-decision-event-invalidate::before {
    background: #16a34a;
}

.r2-decision-event-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.r2-decision-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 12px;
    line-height: 1.45;
}

.r2-decision-label-trigger {
    background: #f1f5f9;
    color: #475569;
}

.r2-decision-label-pending {
    background: #fef3c7;
    color: #b45309;
}

.r2-decision-label-confirm {
    background: #fee2e2;
    color: #b91c1c;
}

.r2-decision-label-invalidate {
    background: #dcfce7;
    color: #15803d;
}

.r2-decision-time {
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.r2-decision-event-reason {
    margin-top: 3px;
    line-height: 1.45;
}

.r2-decision-price {
    display: inline-block;
    margin-top: 4px;
    color: #475569;
}

.r2-decision-state {
    padding: 6px 0 12px;
    color: #64748b;
    font-size: 12px;
}

.r2-decision-state-error {
    color: #b91c1c;
}

.r2-decision-retry {
    margin-left: 8px;
    border-color: #fecaca;
    color: #b91c1c;
}

.r2-kline-view {
    position: fixed;
    inset: 0;
    z-index: 5000;
    overflow: auto;
    padding: 18px;
    background: rgba(250, 250, 250, 0.96);
}

.r2-kline-view[hidden] {
    display: none;
}

.r2-kline-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.r2-kline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.r2-kline-back {
    min-width: 58px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #e53935;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.r2-kline-title {
    min-width: 0;
    color: #263238;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.r2-kline-chart {
    margin-top: 0;
    border: 1px solid #dbeafe;
}

.r3-live-empty {
    padding: 12px;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.tulongdao-top3-panel {
    min-width: 0;
    border: 1px solid #f0dada;
    border-radius: 8px;
    background: #fffdfd;
    overflow: hidden;
}

.tulongdao-top3-panel-level2 {
    border-color: #cfe0ff;
    background: #fbfdff;
}

.tulongdao-top3-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    color: #3e2723;
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid #f2e0e0;
    background: #fff7f7;
}

.tulongdao-top3-panel-level2 .tulongdao-top3-title {
    color: #0d47a1;
    border-bottom-color: #d9e7ff;
    background: #eef5ff;
}

.tulongdao-top3-title span {
    color: #607d9f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tulongdao-top3-table {
    min-width: 740px;
}

.tulongdao-top3-table .summary-rank-col,
.tulongdao-top3-table .summary-rank-cell {
    width: 58px;
    min-width: 58px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tulongdao-top3-table .summary-code-col,
.tulongdao-top3-table .summary-code-cell {
    width: 116px;
    min-width: 116px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tulongdao-top3-table .summary-name-col,
.tulongdao-top3-table .summary-name-cell {
    width: 116px;
    min-width: 116px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tulongdao-top3-table .summary-name-cell {
    color: #3e2723;
    font-weight: 800;
    line-height: 1.2;
}

.summary-name-link {
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.summary-top3-jump-link {
    cursor: pointer;
    text-decoration: none;
    transition: color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.summary-top3-jump-link:hover {
    color: #dc2626;
    text-decoration: underline;
}

.tulongdao-top3-table .summary-level-col,
.tulongdao-top3-table .summary-level-cell {
    width: 54px;
    min-width: 54px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tulongdao-top3-table .summary-pattern-col,
.tulongdao-top3-table .summary-pattern-cell {
    width: 1%;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tulongdao-top3-table .summary-reason-col,
.tulongdao-top3-table .summary-reason-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.summary-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffe8e8;
    color: #d32f2f;
    font-size: 12px;
    font-weight: 900;
}

.summary-rank-pill-blue {
    background: #e3f2fd;
    color: #1565c0;
}

.top3-v2-badge {
    background: #fff1d6;
    color: #bf6500;
}

.top3-level2-badge {
    background: #e3f2fd;
    color: #1565c0;
}

@media (max-width: 900px) {
    .tulongdao-top3-grid,
    .tulongdao-top3-stack {
        flex-direction: column;
    }
}

.tulongdao-summary-section-title {
    margin-bottom: 8px;
    color: #343a40;
    font-size: 14px;
    font-weight: 800;
}

.tulongdao-summary-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tulongdao-summary-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
}

.tulongdao-summary-table th,
.tulongdao-summary-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f0e2e2;
    text-align: left;
    vertical-align: top;
}

.tulongdao-summary-table th {
    color: #4e342e;
    font-size: 12px;
    font-weight: 800;
    background: #fff7f7;
}

.tulongdao-summary-table td {
    color: #4b3b38;
    line-height: 1.45;
}

.tulongdao-summary-table tbody tr:last-child td {
    border-bottom: none;
}

/* 底部温和放量 Top3：统一名称、评分、行业三列的对齐和内边距。 */
.bottom-volume-top3-table {
    table-layout: fixed;
    min-width: 620px;
}

.bottom-volume-top3-table th,
.bottom-volume-top3-table td {
    vertical-align: middle;
}

.bottom-volume-top3-table .bottom-volume-rank-col,
.bottom-volume-top3-table .bottom-volume-rank-cell {
    width: 7%;
    min-width: 58px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}

.bottom-volume-top3-table .bottom-volume-code-col,
.bottom-volume-top3-table .bottom-volume-code-cell {
    width: 13%;
    min-width: 105px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}

.bottom-volume-top3-table .bottom-volume-name-col,
.bottom-volume-top3-table .bottom-volume-name-cell,
.bottom-volume-top3-table .bottom-volume-score-col,
.bottom-volume-top3-table .bottom-volume-score-cell,
.bottom-volume-top3-table .bottom-volume-industry-col,
.bottom-volume-top3-table .bottom-volume-industry-cell {
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
}

.bottom-volume-top3-table .bottom-volume-name-col,
.bottom-volume-top3-table .bottom-volume-name-cell {
    width: 17%;
    min-width: 132px;
    white-space: nowrap;
    background: #ffffff;
}

.bottom-volume-top3-table .bottom-volume-score-col,
.bottom-volume-top3-table .bottom-volume-score-cell {
    width: 10%;
    min-width: 74px;
    white-space: nowrap;
}

.bottom-volume-top3-table .bottom-volume-industry-col,
.bottom-volume-top3-table .bottom-volume-industry-cell {
    width: 10%;
    min-width: 74px;
}

.bottom-volume-top3-table .bottom-volume-amount-col,
.bottom-volume-top3-table .bottom-volume-amount-cell {
    width: 10%;
    min-width: 86px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}

.bottom-volume-top3-table .bottom-volume-operation-col,
.bottom-volume-top3-table .bottom-volume-operation-cell {
    width: 18%;
    min-width: 150px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    white-space: normal;
}

.bottom-volume-top3-table .bottom-volume-reason-col,
.bottom-volume-top3-table .bottom-volume-reason-cell {
    width: 20%;
    min-width: 200px;
    padding-left: 12px;
    padding-right: 12px;
    text-align: left;
}

.bottom-volume-operation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f5f9ff;
    border: 1px solid #d9e7ff;
}

.bottom-volume-operation .concept-label {
    flex: 0 0 auto;
    color: #607d9f;
    font-size: 12px;
    font-weight: 800;
}

.bottom-volume-operation-text {
    color: #174a7c;
    font-size: 13px;
    line-height: 1.45;
}

.summary-code-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f5f2f2;
    color: #4e342e;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.summary-code-pill.summary-top3-jump-link:hover {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.tulongdao-card.research-card-highlight,
.tulongdao-card:target {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
    transition: box-shadow 0.18s ease, outline-color 0.18s ease;
}

.summary-empty-cell {
    color: #8a6d6d !important;
    text-align: center !important;
}

#research-query-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.tulongdao-review-box {
    margin-top: 10px;
    border-radius: 10px;
    background: transparent;
    overflow: visible;
}

.tulongdao-review-toggle {
    width: 100%;
    min-height: 45px;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    background: #1976d2;
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tulongdao-review-toggle:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.review-toggle-main {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.review-toggle-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.review-toggle-arrow {
    min-width: 44px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.tulongdao-review-box.has-review-hit .review-toggle-main::after {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #fff;
    color: #1976d2;
    font-size: 11px;
}

.tulongdao-review-panel {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(229, 57, 53, 0.14);
    border-radius: 8px;
    background: #fffafa;
}

.tulongdao-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.tulongdao-review-header .review-title {
    font-size: 15px;
    font-weight: 800;
    color: #b71c1c;
}

.tulongdao-review-header .review-subtitle {
    font-size: 12px;
    color: #8a6d6d;
    text-align: right;
}

.tulongdao-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.tulongdao-review-group {
    margin-top: 12px;
}

.tulongdao-review-group:first-of-type {
    margin-top: 0;
}

.review-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    color: #b71c1c;
    font-size: 14px;
    font-weight: 800;
}

.review-group-title span {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.12);
    color: #b71c1c;
    font-size: 12px;
}

.review-group-secondary .review-group-title {
    color: #1565c0;
}

.review-group-secondary .review-group-title span {
    background: rgba(25, 118, 210, 0.12);
    color: #1565c0;
}

.review-group-subtitle {
    margin-bottom: 10px;
    color: #8a6d6d;
    font-size: 12px;
}

.review-group-empty {
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed rgba(141, 110, 99, 0.28);
    background: #fff;
}

.tulongdao-review-item {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(229, 57, 53, 0.16);
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.06);
    padding: 12px;
}

.tulongdao-review-item.review-hit-limit {
    border-left: 4px solid #b71c1c;
}

.tulongdao-review-item.review-hit-touch {
    border-left: 4px solid #e53935;
}

.tulongdao-review-item.review-hit-strong {
    border-left: 4px solid #1565c0;
}

.tulongdao-review-stock-header {
    align-items: flex-start;
}

.review-hit-badge {
    background: rgba(229, 57, 53, 0.12);
    color: #b71c1c;
}

.tulongdao-review-empty {
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px dashed rgba(141, 110, 99, 0.28);
    color: #6d4c41;
}

.review-empty-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.review-empty-text {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .tulongdao-summary-head {
        flex-direction: column;
    }

    .tulongdao-summary-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tulongdao-summary-table {
        min-width: 520px;
    }
}








/* 涨停次日开盘策略页 */
#limitup-cards .lu-section { margin: 14px 0 22px; }
#limitup-cards .lu-section h3 { font-size: 16px; margin: 6px 0; }
#limitup-cards .lu-section h4 { font-size: 14px; margin: 10px 0 4px; color: #555; }
#limitup-cards .lu-note { font-size: 12px; color: #777; margin-bottom: 6px; }
#limitup-cards .lu-empty { font-size: 13px; color: #999; padding: 8px 0; }
#limitup-cards .lu-table-wrap { overflow-x: auto; }
#limitup-cards .lu-table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
#limitup-cards .lu-table th, #limitup-cards .lu-table td { border-bottom: 1px solid #eee; padding: 5px 8px; text-align: right; }
#limitup-cards .lu-table th:nth-child(-n+3), #limitup-cards .lu-table td:nth-child(-n+3) { text-align: left; }
#limitup-cards .lu-up { color: #d9363e; }
#limitup-cards .lu-down { color: #1a9a4a; }
#limitup-cards .lu-tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; margin: 0 2px;
    border-radius: 4px; background: #fdecea; color: #d9363e; border: 1px solid #f5c2c0; vertical-align: middle; }
#limitup-cards .lu-tag-src { background: #f2f4f7; color: #555; border-color: #dde1e6; font-weight: 500; }

/* 刀2 策略页：复用 tulongdao 卡片样式，这里只补充刀2 独有的摘要与徽标。 */
#dao2-cards .dao2-summary {
    display: block;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: #fbf7f2;
    border: 1px solid #e6d9c9;
}

#dao2-cards .dao2-summary-status {
    font-size: 13px;
    color: #8d6e63;
    margin: 6px 0;
}

#dao2-cards .dao2-summary-text {
    font-size: 14px;
    line-height: 1.6;
    color: #37474f;
}

#dao2-cards .dao2-summary-risk {
    font-size: 13px;
    line-height: 1.6;
    color: #d9363e;
    margin-top: 6px;
}

#dao2-cards .dao2-rule-list {
    margin: 10px 0 0;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.7;
    color: #607d8b;
}

#dao2-cards .tulongdao-badge.dao2-date-badge {
    background: #eceff1;
    color: #455a64;
}

#dao2-cards .dao2-fallback {
    margin-bottom: 14px;
    color: #8d6e63;
}
