/* WirelessAgent项目展示网站样式 */

/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --accent-color: #8b5cf6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    padding-top: 70px;
    color: #334155;
    background: #ffffff;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white !important;
}

/* 导航栏容器 */
.navbar-nav {
    position: relative;
}

/* 灵动岛指示器 */
.nav-indicator {
    position: absolute;
    height: 36px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    opacity: 0;
    will-change: left, width;
}

.nav-indicator.active {
    opacity: 1;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative;
    z-index: 1;
    border-radius: 18px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

/* 首页横幅样式 */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section .display-3 {
    font-size: 4rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-section h2 {
    font-weight: 500;
    color: #475569;
    font-size: 1.75rem;
    line-height: 1.5;
}

.hero-section h2::after {
    display: none;
}

.hero-section .lead {
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-section .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.hero-section .btn-outline-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: white;
}

.hero-section .btn-outline-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* 章节标题样式 */
h2 {
    font-weight: 600;
    color: #1e293b;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 2rem;
}

h2::after {
    display: none;
}

/* 特性高亮样式 */
.feature-highlight {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-highlight:hover {
    transform: scale(1.05);
}

/* 指标卡片样式 */
.metric-card {
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.metric-card:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* 架构图样式 */
.architecture-diagram {
    padding: 40px 0;
}

.arch-component {
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.arch-component:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* 引用框样式 */
.citation-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.citation-box pre {
    margin: 0;
    white-space: pre-wrap;
}

/* 徽章样式 */
.badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
}

/* 图表容器样式 */
canvas {
    max-width: 100%;
    height: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .arch-component {
        margin-bottom: 20px;
    }
    
    .feature-highlight {
        margin-bottom: 30px;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚样式 */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
}

/* 图片展示样式 */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.02);
}

/* 图片说明文字样式 */
.image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

/* 响应式图片样式 */
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-grid-item {
    text-align: center;
}

.image-grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

/* 全屏图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* 项目摘要文本样式 */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

#abstract .lead {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.9;
}

#abstract .card-body {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

/* 响应式文本大小 */
@media (max-width: 768px) {
    #abstract .lead {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    #abstract .card-body {
        padding: 2rem !important;
    }
}

/* Benchmark comparison 图片样式 */
.benchmark-image-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.benchmark-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.benchmark-image:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* 响应式调整 */
@media (min-width: 1400px) {
    .benchmark-image {
        max-width: 1400px;
    }
}

@media (max-width: 992px) {
    .benchmark-image {
        max-width: 100%;
    }
    
    .benchmark-image-container {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .benchmark-image {
        border-radius: 5px;
    }
    
    #results .card-body {
        padding: 1.5rem !important;
    }
}

/* Benchmark Comparison 表格样式 */
.benchmark-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 1rem;
}

.benchmark-table th,
.benchmark-table td {
    padding: 1.2rem 1.5rem;
    vertical-align: middle;
    border: 2px solid #dee2e6;
    line-height: 1.6;
}

.benchmark-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    border-color: #5a67d8;
}

.benchmark-table tbody tr {
    transition: background-color 0.3s ease;
}

.benchmark-table tbody tr:hover {
    background-color: #f8f9fa;
}

.benchmark-table tbody td {
    background-color: white;
    color: #495057;
}

.benchmark-table tbody td:first-child {
    background-color: #f8f9fa;
    font-weight: 500;
}

.benchmark-table tbody td:last-child {
    background-color: #e3f2fd;
}

/* 表格响应式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .benchmark-table {
        font-size: 0.9rem;
    }
    
    .benchmark-table th,
    .benchmark-table td {
        padding: 0.8rem 1rem;
    }
    
    .benchmark-table thead th {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .benchmark-table {
        font-size: 0.85rem;
    }
    
    .benchmark-table th,
    .benchmark-table td {
        padding: 0.6rem 0.8rem;
    }
}

/* 任务设计板块样式 */
.task-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

#task-design .card {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

#task-design .card:hover {
    border-left-color: #764ba2;
    transform: translateX(5px);
}

/* 任务执行流程样式 */
.task-workflow {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.workflow-step {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.workflow-step:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.workflow-arrow {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* 技术特点列表样式 */
#task-design ul {
    list-style: none;
    padding-left: 0;
}

#task-design ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

#task-design ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .workflow-steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .workflow-step {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .task-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #task-design h4 {
        font-size: 1.2rem;
    }
    
    .task-workflow {
        padding: 15px;
    }
}

/* 数据清洗与验证板块样式 */
.cleaning-steps {
    display: grid;
    gap: 20px;
}

.cleaning-step-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #0dcaf0;
    transition: all 0.3s ease;
}

.cleaning-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left-color: #0a9ec7;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0dcaf0 0%, #0a9ec7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-title {
    margin: 0;
    color: #212529;
    font-size: 1.25rem;
    font-weight: 600;
}

.step-content {
    padding-left: 65px;
    color: #495057;
}

.step-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.step-list li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
}

.step-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 算法框样式 */
.algorithm-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px dashed #0dcaf0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* 参考文献框样式 */
.reference-box {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.references-list {
    margin-top: 10px;
}

.references-list p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #495057;
}

.references-list strong {
    color: #0d6efd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cleaning-step-card {
        padding: 20px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 12px;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-content {
        padding-left: 0;
        margin-top: 15px;
    }
    
    .algorithm-box {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
}

/* 容忍度感知评分机制样式 */
.scoring-rules {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.score-rule-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.score-rule-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.score-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin-right: 25px;
}

.score-details {
    flex: 1;
}

.score-condition {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.score-condition code {
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: #d63384;
}

.score-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

/* 不同评分等级的颜色 */
.score-perfect {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
}

.score-perfect .score-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.score-good {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 5px solid #17a2b8;
}

.score-good .score-badge {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.score-acceptable {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
}

.score-acceptable .score-badge {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.score-fail {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 5px solid #dc3545;
}

.score-fail .score-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* 说明框样式 */
.tolerance-note {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #e7f3ff 0%, #d6eaff 100%);
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #0d6efd;
}

.note-icon {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.note-content {
    flex: 1;
    color: #495057;
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .score-rule-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .score-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .score-condition {
        font-size: 0.95rem;
    }
    
    .tolerance-note {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .note-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* 数据集统计表格样式 */
.stats-table-wrapper {
    overflow: visible;
}

.dataset-stats-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    width: 100%;
}

.dataset-stats-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dataset-stats-table thead th {
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    border: none;
    vertical-align: middle;
    line-height: 1.4;
    font-size: 0.9rem;
}

.dataset-stats-table thead th:first-child {
    border-top-left-radius: 10px;
}

.dataset-stats-table thead th:last-child {
    border-top-right-radius: 10px;
}

.dataset-stats-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #dee2e6;
}

.dataset-stats-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.dataset-stats-table tbody td {
    padding: 15px 10px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.dataset-stats-table .task-name {
    font-weight: 600;
    color: #0d6efd;
    font-size: 1rem;
}

.dataset-stats-table .table-total {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-top: 3px solid #0d6efd;
}

.dataset-stats-table .table-total td {
    font-weight: 600;
    color: #0d47a1;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 可视化条形图样式 */
.visual-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}

.visual-bar-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.visual-bar-label {
    min-width: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
    text-align: right;
}

.visual-bar-track {
    flex: 1;
    height: 50px;
    background: #f8f9fa;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.visual-bar-fill {
    height: 100%;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    transition: width 1s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.visual-bar-value {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 任务说明卡片样式 */
.task-description-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
    height: 100%;
}

.task-description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.task-desc-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
}

.task-desc-text {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .dataset-stats-table {
        font-size: 0.85rem;
    }
    
    .dataset-stats-table thead th,
    .dataset-stats-table tbody td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .visual-bar-label {
        min-width: 80px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dataset-stats-table {
        font-size: 0.75rem;
    }
    
    .dataset-stats-table thead th,
    .dataset-stats-table tbody td {
        padding: 10px 5px;
        font-size: 0.75rem;
    }
    
    .dataset-stats-table .task-name {
        font-size: 0.85rem;
    }
    
    .visual-bar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .visual-bar-label {
        min-width: auto;
        text-align: left;
    }
    
    .visual-bar-track {
        width: 100%;
        height: 40px;
    }
    
    .visual-bar-value {
        font-size: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .dataset-stats-table {
        font-size: 0.7rem;
    }
    
    .dataset-stats-table thead th,
    .dataset-stats-table tbody td {
        padding: 8px 3px;
        font-size: 0.7rem;
    }
}

/* 性能对比表格样式 */
.performance-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    width: 100%;
}

.performance-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.performance-table thead th {
    padding: 15px 12px;
    font-weight: 600;
    text-align: center;
    border: none;
    vertical-align: middle;
    font-size: 1rem;
}

.performance-table thead th:first-child {
    border-top-left-radius: 10px;
    text-align: left;
}

.performance-table thead th:last-child {
    border-top-right-radius: 10px;
}

.performance-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #dee2e6;
}

.performance-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.performance-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    font-size: 0.95rem;
}

.performance-table .method-name {
    font-weight: 600;
    color: #495057;
}

.performance-table .method-name small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 3px;
}

.performance-table .table-best {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-top: 3px solid #28a745;
}

.performance-table .table-best td {
    color: #155724;
    font-weight: 600;
}

/* 性能热力图样式 */
.performance-heatmap {
    padding: 20px 0;
}

.heatmap-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.heatmap-row:hover {
    transform: translateX(5px);
}

.heatmap-row.highlight-row {
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 5px;
    background: rgba(212, 237, 218, 0.3);
}

.heatmap-label {
    min-width: 150px;
    font-weight: 500;
    color: #495057;
    padding-right: 20px;
    text-align: right;
    font-size: 0.95rem;
}

.heatmap-cells {
    display: flex;
    gap: 10px;
    flex: 1;
}

.heatmap-cell {
    flex: 1;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.heatmap-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.heatmap-legend {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legend-color {
    width: 100%;
    max-width: 600px;
    height: 30px;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .performance-table {
        font-size: 0.85rem;
    }
    
    .performance-table thead th,
    .performance-table tbody td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .heatmap-label {
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .heatmap-cell {
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .performance-table {
        font-size: 0.75rem;
    }
    
    .performance-table thead th,
    .performance-table tbody td {
        padding: 10px 5px;
        font-size: 0.75rem;
    }
    
    .heatmap-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .heatmap-label {
        min-width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    .heatmap-cells {
        width: 100%;
    }
    
    .heatmap-cell {
        height: 45px;
        font-size: 0.9rem;
    }
    
    .legend-color {
        height: 25px;
    }
    
    .legend-labels {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .performance-table {
        font-size: 0.7rem;
    }
    
    .performance-table thead th,
    .performance-table tbody td {
        padding: 8px 3px;
        font-size: 0.7rem;
    }
    
    .heatmap-cell {
        height: 40px;
        font-size: 0.85rem;
    }
}

/* 结语板块样式 */
.conclusion-content {
    position: relative;
}

.conclusion-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 80px;
    color: rgba(13, 110, 253, 0.1);
    font-family: Georgia, serif;
}

/* 性能提升可视化 */
.improvement-visual {
    padding: 30px 20px;
}

.improvement-item {
    margin-bottom: 20px;
}

.improvement-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 10px;
}

.improvement-bar {
    height: 60px;
    background: #f8f9fa;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.improvement-fill {
    height: 100%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    transition: width 1.5s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.improvement-fill.baseline {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.improvement-fill.wirebench {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    animation: fillAnimation 2s ease-out;
}

@keyframes fillAnimation {
    from {
        width: 0%;
    }
}

.improvement-arrow {
    text-align: center;
    padding: 20px 0;
    color: #28a745;
}

.improvement-arrow i {
    display: block;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.improvement-text {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 关键发现卡片 */
.finding-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.finding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.finding-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.finding-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.finding-icon.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.finding-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.finding-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.finding-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.finding-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f5576c;
    line-height: 1;
}

.finding-stat.success .stat-number {
    color: #00f2fe;
}

.finding-stat.info .stat-number {
    color: #764ba2;
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .improvement-visual {
        padding: 20px 10px;
    }
    
    .improvement-bar {
        height: 50px;
    }
    
    .improvement-fill {
        font-size: 1.1rem;
    }
    
    .improvement-arrow i {
        font-size: 2rem;
    }
    
    .improvement-text {
        font-size: 1rem;
    }
    
    .finding-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-unit {
        font-size: 1.2rem;
    }
}
