/* ===================================
 * 公共样式 - common.css
 * =================================== */

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

:root {
    --primary: #4a6cf7;
    --primary-hover: #3b5de7;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --secondary: #6b7280;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --text-muted: #9ca3af;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--text);
    background: #f3f4f6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-secondary { background: var(--secondary); }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
.btn-xs { padding: 2px 6px; font-size: 0.75rem; }
.btn.btn-xs-compact { padding: 1px 4px; font-size: 12px !important; }
.btn-block { display: block; width: 100%; }
.btn-group { display: flex; gap: 4px; }
.btn-group-compact { display: flex; gap: 2px; }

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

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

.form-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
}

.form-horizontal {
    max-width: 800px;
}

/* 水平表单布局 - 字段和输入框左右排列 */
.form-horizontal .form-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.form-horizontal .form-label {
    flex-shrink: 0;
    width: 120px;
    margin-bottom: 0;
    padding-top: 8px;
    text-align: right;
}

.form-horizontal .form-input {
    flex: 1;
    min-width: 0;
}

.form-horizontal .checkbox-group {
    flex: 1;
}

.form-horizontal .target-hint {
    margin-left: 136px;
}

.form-horizontal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-left: 136px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s;
}

.checkbox-item:hover {
    background: #eef2ff;
    border-color: var(--primary);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* 表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--dark);
}

.table th.sortable {
    cursor: pointer;
    user-select: none;
}

.table th.sortable:hover {
    background: #e5e7eb;
}

.table th.sortable .sort-icon {
    display: inline-block;
    margin-left: 4px;
    color: var(--secondary);
    font-size: 0.75rem;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table a {
    color: var(--primary);
    text-decoration: none;
}

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

/* 表格内按钮不受链接样式影响 */
.table .btn {
    color: #fff;
}

.table .btn:hover {
    color: #fff;
    opacity: 0.9;
    text-decoration: none;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    line-height: 1.6;
}

.badge-default { background: #e5e7eb; color: #374151; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #e5e7eb; color: #4b5563; }

/* 类型目标提示 */
.target-hint {
    display: block;
    margin-top: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    line-height: 1.5;
}

/* 提示 */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination button,
.pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
}

.pagination button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.page-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 8px;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-card-warning .stat-value { color: var(--warning); }
.stat-card-success .stat-value { color: var(--success); }
.stat-card-info .stat-value { color: var(--info); }
.stat-card-purple .stat-value { color: #8b5cf6; }

/* 筛选栏 */
.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-default {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-default:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

/* 可点击的统计卡片 */
.stat-link {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.stat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-link:active {
    transform: translateY(0);
}

.stat-arrow {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.2rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-link:hover .stat-arrow {
    opacity: 1;
}

/* 详情网格 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.detail-item {
    padding: 8px 0;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-item span {
    font-size: 0.875rem;
    color: var(--text);
}

.detail-full {
    grid-column: 1 / -1;
}

/* 筛选栏 */
.filter-bar {
    padding: 16px 20px;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 140px;
}

.filter-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 辅助 */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* 建议目标提示 */
.target-hint {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    background: #fef3c7;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #92400e;
}

/* Toast消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    padding: 12px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

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

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

/* 批量添加计划表格样式 */
.plan-table .plan-input {
    width: 80px;
    text-align: center;
    padding: 6px 8px;
}

.plan-table th,
.plan-table td {
    text-align: center;
    padding: 8px 10px;
}

/* ===================================
 * 数据大屏样式 - Sum Screen
 * =================================== */

.screen-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.screen-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a67d8;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 240px;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-card.purple .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
}

.stat-card.purple .stat-value {
    color: white;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    margin-bottom: 20px;
}

.main-panel {
    width: 100%;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.matrix-table th,
.matrix-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.matrix-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #4b5563;
}

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

.matrix-table .project-name {
    text-align: left;
    font-weight: 500;
    color: #374151;
}

.matrix-table .total-row {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.count-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.count-card .count-value {
    font-size: 48px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
}

.count-card .count-label {
    font-size: 14px;
    color: #6b7280;
}

.count-card .count-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.status-item:last-child {
    border-bottom: none;
}

.status-name {
    color: #4b5563;
}

.status-count {
    font-weight: 600;
    color: #1f2937;
}

.owner-chart-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.owner-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 180px;
    padding: 10px 0;
}

.owner-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.bar-stack {
    display: flex;
    flex-direction: column-reverse;
    height: 140px;
    width: 28px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-segment {
    width: 100%;
    transition: height 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar-number {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar-segment.health {
    background-color: #3b82f6;
}

.bar-segment.large {
    background-color: #8b5cf6;
}

.bar-segment.small {
    background-color: #f59e0b;
}

.bar-segment.video {
    background-color: #10b981;
}

.bar-segment.image {
    background-color: #ef4444;
}

.owner-name {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.owner-total {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.health { background-color: #3b82f6; }
.legend-color.large { background-color: #8b5cf6; }
.legend-color.small { background-color: #f59e0b; }
.legend-color.video { background-color: #10b981; }
.legend-color.image { background-color: #ef4444; }

.footer {
    text-align: center;
    padding: 16px;
    color: #9ca3af;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .main-content {
        grid-template-columns: 1fr;
    }
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .screen-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .owner-chart {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

/* ===================================
 * 可点击元素样式
 * =================================== */

.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clickable-cell {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clickable-cell:hover {
    background-color: #f0f4ff;
    color: #667eea;
    font-weight: 600;
}

.stat-card.clickable:hover {
    background-color: #f8fafc;
}

.stat-card.purple.clickable:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.count-card.clickable:hover {
    background-color: #f8fafc;
}

.status-item.clickable:hover {
    background-color: #f3f4f6;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
}

.bar-segment.clickable:hover {
    opacity: 0.85;
}

.owner-total.clickable:hover {
    color: #667eea;
}

.stat-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clickable:hover .stat-hint {
    opacity: 1;
}

/* ===================================
 * 弹窗样式
 * =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #efefef;
    color: #374151;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.modal-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 16px;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.modal-table th,
.modal-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.modal-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #4b5563;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-table tbody tr:hover {
    background-color: #f9fafb;
}

.topic-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-passed {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-changed {
    background-color: #fef3c7;
    color: #b45309;
}

.status-completed {
    background-color: #d1fae5;
    color: #059669;
}

.status-canceled {
    background-color: #e5e7eb;
    color: #6b7280;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 10px;
    }
    
    .modal-table {
        font-size: 11px;
    }
    
    .modal-table th,
    .modal-table td {
        padding: 6px 8px;
    }
}

/* 状态统计页面 - Tab导航 */
.status-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.status-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    background: #fff;
}

.status-tab:hover {
    color: var(--primary);
    background: #f8fafc;
}

.status-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #f0f4ff;
}

.tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 10px;
    margin-left: 4px;
    line-height: 1.5;
}

.tab-count-warning {
    background: #fef3c7;
    color: #92400e;
}

.tab-count-secondary {
    background: #e5e7eb;
    color: #4b5563;
}

.tab-count-success {
    background: #d1fae5;
    color: #065f46;
}

.tab-count-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* 状态统计页面 - 分页 */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination .btn {
    padding: 4px 12px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .status-tabs {
        flex-wrap: wrap;
    }
    
    .status-tab {
        flex: 1 1 auto;
        min-width: 60px;
        padding: 10px 8px;
        font-size: 0.75rem;
    }
}