.cases-page {
    max-width: 1800px;   /* 最大宽度限制 */
    margin: 0 auto;       /* 居中 */
    padding: 0 20px;      /* 两边留空 */
    box-sizing: border-box;
    display: block;       /* 确保不继承 flex */
}
.filters {
    background-color: var(--filter-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}


.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}
.filter-group {
    flex: 1;
    min-width: 300px;
}
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-dark);
}
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    color: var(--text-color);
    font-size: 1.2rem;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;  /* 垂直居中 */
}

.search-container input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    color: var(--text-color);
    font-size: 1.2rem;
}

.search-container input:focus {
    outline: 2px solid var(--accent-color);
}

.search-container button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-container button:hover {
    background-color: var(--accent-dark);
}


.export-btn {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.export-btn i {
    font-size: 20px;
}

.export-btn:hover {
    background: linear-gradient(135deg, #5aa0f0, #3c88d1);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.export-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.pagination-wrapper {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eaeaea;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.page-number:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.page-number.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-ellipsis {
    padding: 0 8px;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.page-size-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-controls {
        justify-content: center;
        gap: 15px;
    }

    .pagination-info {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .pagination-buttons {
        order: 1;
    }

    .pagination-size {
        order: 2;
    }

    .page-numbers {
        margin: 0 5px;
    }

    .page-number {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.case-tip {
    margin-left: 10px;
    font-size: 10px;
    color: #666;
}

.case-count {
    margin-left: 10px;
    margin-top: 18px;
    font-size: 20px;
    color: #666;
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}
.case-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
    overflow: hidden;
}
.case-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.case-title {
    font-size: 16px;          /* 标题字体大小 */
    font-weight: 600;         /* 稍微加粗 */
    color: #34495e;           /* 深色调文字 */
    margin: 8px 0;            /* 上下间距 */
    line-height: 1.4;         /* 行高 */
}

.case-title a {
    color: #2980b9;           /* 链接颜色 */
    text-decoration: none;    /* 去掉下划线 */
}

.case-title a:hover {
    text-decoration: underline; /* 悬停显示下划线 */
}



/* 案例编号 */
.case-number {
    display: inline-block;
    background: #eef2f7;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

.case-reason {
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.case-feature {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 12px;
    background-color: var(--accent-light);
    border-radius: 6px;
    display: inline-block;
}
.case-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}
.case-detail {
    margin-bottom: 15px;
}
.case-detail h4 {
    color: var(--accent-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}
.suggestion-item strong {
    color: var(--accent-dark);
}
.case-doi a {
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.case-doi a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.doi-label {
    font-weight: 600;
    color: var(--text-light);
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.3rem;
    opacity: 0.7;
    color: var(--text-light);
}

.modal {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* 比导航栏低 */
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
}
.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-row {
    display: flex;
    gap: 12px;    /* 两个按钮之间的间距 */
    align-items: center;
}