/* 中国教育学会数据管理与应用平台 - 全局样式 */

:root {
    --brand-primary: #005BAC;
    --brand-primary-dark: #003F7F;
    --brand-primary-light: #E8F2FB;

    --primary-color: #005BAC;
    --secondary-blue: #003F7F;
    --light-blue-bg: #E8F2FB;

    --page-bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --panel-bg: #F8FAFC;

    --border-color: #D6E0EA;
    --border-light: #E8ECF0;
    --border-strong: #AFC0D0;

    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;

    --success-color: #2F7D4E;
    --warning-color: #A15C07;
    --danger-color: #C31920;
    --danger-light-bg: #FFF1F1;
    --info-color: var(--secondary-blue);

    --header-height: 48px;
    --sidebar-width: 220px;

    --font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--page-bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

/* ========== 顶部导航栏 ========== */
.top-header {
    height: var(--header-height);
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

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

.header-logo {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.25);
}

.header-system-name {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 系统切换下拉 */
.system-switcher {
    position: relative;
}

.system-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
}

.system-switcher-btn:hover {
    background: rgba(255,255,255,0.2);
}

.system-switcher-btn .switch-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.system-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 300;
}

.system-dropdown.show {
    display: block;
}

.system-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}

.system-dropdown a:hover {
    background: var(--light-blue-bg);
}

.system-dropdown a.current {
    color: var(--secondary-blue);
    font-weight: 500;
    background: var(--light-blue-bg);
}

.system-dropdown a .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-user {
    font-size: 13px;
    opacity: 0.8;
}

/* ========== 侧边栏 ========== */
.layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

.sidebar {
    width: var(--sidebar-width);
    background: #1A2E42;
    color: white;
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    border-right: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-section-title {
    padding: 16px 20px 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 8px 0 60px;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 9px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
    gap: 10px;
    border-left: 3px solid transparent;
}

.nav-item .icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.nav-item:hover .icon,
.nav-item.active .icon {
    opacity: 0.9;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.nav-item.active {
    background: rgba(31,90,150,0.3);
    color: white;
    border-left-color: #4A9BDB;
}

.nav-item.active .icon {
    opacity: 1;
}

/* ========== 层级导航菜单 ========== */

/* 一级：分组标题 */
.nav-group-title {
    display: flex;
    align-items: center;
    padding: 9px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    gap: 6px;
    user-select: none;
    border-left: 3px solid transparent;
}

.nav-group-title:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.95);
}

.nav-group-title .icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.nav-group-title:hover .icon,
.nav-group-title.expanded .icon {
    opacity: 0.9;
}

/* 展开/收起指示箭头 */
.nav-group-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid rgba(255,255,255,0.5);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    margin-left: auto;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-group-title.expanded .nav-group-arrow {
    transform: rotate(90deg);
    border-left-color: rgba(255,255,255,0.7);
}

/* 当前分组高亮（包含active子项的分组） */
.nav-group-title.contains-active {
    color: white;
    border-left-color: #4A9BDB;
}

.nav-group-title.contains-active .icon {
    opacity: 1;
}

/* 二级子菜单容器 */
.nav-group-items {
    display: none;
    padding: 0 0 4px;
}

.nav-group-items.open {
    display: block;
}

/* 三级：子菜单项 */
.nav-sub-item {
    display: flex;
    align-items: center;
    padding: 7px 20px 7px 46px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.15s;
    cursor: pointer;
    gap: 8px;
    border-left: 3px solid transparent;
}

.nav-sub-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
}

.nav-sub-item.active {
    background: rgba(31,90,150,0.3);
    color: white;
    border-left-color: #4A9BDB;
}

.nav-sub-item .icon {
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.nav-sub-item:hover .icon,
.nav-sub-item.active .icon {
    opacity: 0.9;
}

/* 菜单分隔线 */
.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 16px;
}

/* 侧边栏底部 - 返回总览 */
.sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #1A2E42;
    position: relative;
    z-index: 10;
}

.sidebar-bottom .nav-item {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.sidebar-bottom .nav-item:hover {
    color: rgba(255,255,255,0.7);
}

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px 24px;
    min-width: 0;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: var(--border-color);
}

/* ========== 页面标题 ========== */
.page-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-header .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== 筛选区域 ========== */
.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item label {
    font-size: 12px;
    color: var(--text-secondary);
}

.filter-item input,
.filter-item select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 13px;
    min-width: 150px;
    background: white;
    color: var(--text-primary);
}

.filter-item input:focus,
.filter-item select:focus {
    border-color: var(--secondary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(31,90,150,0.1);
}

/* ========== 按钮 ========== */
.btn {
    padding: 7px 16px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    white-space: nowrap;
}

.btn:hover {
    background: var(--light-blue-bg);
    border-color: var(--secondary-blue);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

/* ========== 表格 ========== */
.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #F0F4F8;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

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

tr:hover td {
    background: #F8FAFC;
}

/* ========== 标签 ========== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 2px;
    background: var(--light-blue-bg);
    color: var(--secondary-blue);
    margin: 2px;
}

.tag-primary {
    background: var(--primary-color);
    color: white;
}

.tag-success {
    background: #D1FAE5;
    color: #065F46;
}

.tag-warning {
    background: #FEF3C7;
    color: #92400E;
}

.tag-danger {
    background: #FEE2E2;
    color: #991B1B;
}

/* ========== 状态标签 ========== */
.status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 2px;
}

.status-active {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-inactive {
    background: #F3F4F6;
    color: #6B7280;
}

.status-published {
    background: #DBEAFE;
    color: #1E40AF;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(31,90,150,0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-required::after {
    content: " *";
    color: var(--danger-color);
}

/* ========== 网格布局 ========== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

/* ========== 入口卡片 ========== */
.entry-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.entry-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.entry-card:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 2px 8px rgba(31,90,150,0.1);
}

.entry-card .icon-text {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.entry-card .icon-text .icon {
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.entry-card h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.entry-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== 详情页 ========== */
.detail-section {
    margin-bottom: 20px;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.info-item .value {
    font-size: 14px;
    font-weight: 500;
}

/* ========== 评分 ========== */
.score {
    display: inline-block;
    padding: 4px 8px;
    background: var(--light-blue-bg);
    font-weight: 500;
    border-radius: 2px;
}

.score-high {
    background: #D1FAE5;
    color: #065F46;
}

.score-mid {
    background: #FEF3C7;
    color: #92400E;
}

.score-low {
    background: #FEE2E2;
    color: #991B1B;
}

/* ========== 进度条 ========== */
.progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    position: relative;
}

.progress-bar .fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

/* ========== 标签页 ========== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-left {
    color: var(--text-muted);
}

.pagination-right {
    display: flex;
    gap: 4px;
}

.page-btn {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 13px;
    border-radius: 2px;
    color: var(--text-primary);
}

.page-btn:hover {
    background: var(--light-blue-bg);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state .icon::before {
    font-size: 48px;
}

/* ========== 统计卡片 ========== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 16px 20px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-card .stat-change {
    font-size: 12px;
    color: var(--success-color);
    margin-top: 4px;
}

/* ========== 审核流程 ========== */
.review-flow {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 16px 0;
}

.review-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F3F4F6;
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
}

.review-step.completed {
    background: #D1FAE5;
    color: #065F46;
}

.review-step.current {
    background: var(--light-blue-bg);
    color: var(--secondary-blue);
    font-weight: 500;
}

.review-step + .review-step::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #D1D5DB;
}

.review-step.completed + .review-step::before {
    border-left-color: #D1FAE5;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .grid-4, .stat-cards, .entry-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .entry-cards, .stat-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== Toast 通知 ===== */
.toast-container {
    position: fixed;
    top: 56px;
    right: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast-item {
    padding: 10px 20px;
    font-size: 13px;
    color: #fff;
    border-radius: 2px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.3s ease;
    max-width: 360px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.toast-show {
    opacity: 1;
    transform: translateX(0);
}
.toast-hide {
    opacity: 0;
    transform: translateX(40px);
}
.toast-success { background: var(--success-color); }
.toast-info { background: var(--info-color); }
.toast-warning { background: var(--warning-color); }
.toast-error { background: var(--danger-color); }

/* ===== Modal 对话框 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-dialog {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    max-height: 85vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6B7280;
    cursor: pointer;
    padding: 4px 8px;
}
.modal-close-btn:hover { color: #1F2937; }
.modal-body {
    padding: 20px;
    font-size: 13px;
    color: #1F2937;
}
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.modal-form .form-row {
    margin-bottom: 14px;
}
.modal-form .form-row label {
    display: block;
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 4px;
}
.modal-form .form-row input,
.modal-form .form-row select,
.modal-form .form-row textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 13px;
    box-sizing: border-box;
}
.modal-form .form-row textarea {
    min-height: 60px;
    resize: vertical;
}
.modal-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

/* ===== 按钮补充样式 ===== */
.btn-danger {
    background: var(--danger-color);
    color: #fff;
    border: 1px solid var(--danger-color);
}
.btn-danger:hover {
    background: #DC2626;
}
.btn-default {
    background: #fff;
    color: #4B5563;
    border: 1px solid var(--border-color);
}
.btn-default:hover {
    background: #F5F7FA;
}

/* ===== 状态卡片高亮 ===== */
.status-card.status-active {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 2px rgba(31,90,150,0.2);
}

/* ===== 批量操作栏 ===== */
.batch-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--brand-primary-light);
    border: 1px solid #AFC0D0;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--secondary-blue);
}

/* ===== Tab 组件 ===== */
.tab-group {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.tab-group .tab {
    padding: 8px 16px;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.tab-group .tab:hover {
    color: var(--secondary-blue);
}
.tab-group .tab.active {
    color: var(--secondary-blue);
    border-bottom-color: var(--secondary-blue);
    font-weight: 500;
}
.tab-panel {
    display: none;
}
.tab-panel:first-of-type {
    display: block;
}

/* ========== 信息补全页布局 ========== */
.enrich-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.enrich-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 20px;
}
.enrich-panel h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* ========== 线索分类区 ========== */
.clue-section {
    margin-bottom: 20px;
}
.clue-section:last-child {
    margin-bottom: 0;
}
.clue-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.clue-section-title .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.clue-section-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ========== 单条线索卡片 ========== */
.clue-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.clue-card:last-child {
    margin-bottom: 0;
}
.clue-card:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 1px 4px rgba(31,90,150,0.08);
}

/* 已采纳 */
.clue-card.clue-adopted {
    border-left: 3px solid var(--success-color);
    background: #F0FFF4;
}
.clue-card.clue-adopted .clue-card-status {
    background: #D1FAE5;
    color: #065F46;
}

/* 已忽略 */
.clue-card.clue-ignored {
    border-left: 3px solid var(--text-muted);
    background: #F9FAFB;
    opacity: 0.7;
}
.clue-card.clue-ignored .clue-card-status {
    background: #F3F4F6;
    color: #6B7280;
}

/* 待确认 */
.clue-card.clue-pending-confirm {
    border-left: 3px solid var(--warning-color);
    background: #FFFBEB;
}
.clue-card.clue-pending-confirm .clue-card-status {
    background: #FEF3C7;
    color: #92400E;
}

.clue-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.clue-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}
.clue-card-type {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 2px;
    background: var(--light-blue-bg);
    color: var(--secondary-blue);
    margin-right: 6px;
    vertical-align: middle;
}
.clue-card-status {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 2px;
    background: #E5E7EB;
    color: #6B7280;
    vertical-align: middle;
}

.clue-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.clue-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.clue-card-fields {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.clue-card-fields-label {
    color: var(--text-muted);
    margin-right: 4px;
}
.clue-card-field-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 2px;
    background: #E0E7FF;
    color: #3730A3;
    margin: 2px 2px;
}

.clue-card-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 10px;
}
.clue-card-confidence-label {
    color: var(--text-muted);
}
.confidence-bar {
    width: 80px;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.confidence-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}
.confidence-high { background: var(--success-color); }
.confidence-mid { background: var(--warning-color); }
.confidence-low { background: var(--danger-color); }
.confidence-value {
    font-weight: 500;
    color: var(--text-primary);
}

.clue-card-actions {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
.clue-card-actions .btn {
    padding: 4px 10px;
    font-size: 12px;
}
