/* ========== 全局 ========== */
body {
    background: #c5e5f5 url(../images/bg.png) repeat-y center;
    font-size: 0.9rem;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* ========== 头部 ========== */
.header {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
}
.header-inner {
    max-width: 990px;
    margin: 0 auto;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    background: rgba(0, 0, 0, .15);
    font-size: 13px;
    padding-left: 16px;
    padding-right: 16px;
}
.header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 16px;
}
.system-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}
.header-title h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 400;
    color: #fff;
}

/* ========== 语言切换 ========== */
.lang-switch a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    padding: 2px 6px;
}
.lang-switch a.active {
    color: #fff;
    font-weight: 700;
}
.lang-switch .lang-divider {
    color: rgba(255, 255, 255, .4);
    margin: 0 2px;
}

/* ========== Banner ========== */
.banner {
    max-width: 990px;
    margin: 0 auto;
    overflow: hidden;
}
.banner-img {
    width: 100%;
    height: 300px;
    display: block;
}

/* ========== 主内容区 ========== */
.main-content {
    max-width: 990px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ========== 项目介绍 ========== */
.intro-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 24px;
    margin-bottom: 20px;
}
.intro-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.intro-logo {
    width: 80px;
    height: 80px;
}
.intro-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.intro-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a5276;
}
.intro-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #888;
}
.intro-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
.intro-text p {
    margin: 0 0 8px 0;
    text-align: justify;
}
.intro-text p:last-child {
    margin-bottom: 0;
}
.intro-text strong {
    color: #1a5276;
}

/* ========== 年度按钮 ========== */
.year-bar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.year-bar .year-btn {
    border-radius: 20px;
}

/* ========== 表格卡片 ========== */
.table-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
}
.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.table-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
}

/* ========== 表格 ========== */
.case-table th {
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}
.case-table td {
    vertical-align: middle;
    font-size: 14px;
}
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, .05);
}

/* ========== 描述展开/折叠 ========== */
.desc-cell {
    color: #2980b9;
}
.desc-toggle {
    cursor: pointer;
    user-select: none;
}
.desc-toggle:hover {
    text-decoration: underline;
}
.desc-row {
    background: #f8f9fa;
}
.desc-row td {
    border-top: none;
}
.intro-desc {
    padding: 12px 20px !important;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* ========== 分页 ========== */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    gap: 8px;
    font-size: 14px;
    color: #666;
}
.pag-link {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2980b9;
    text-decoration: none;
    transition: all .2s;
}
.pag-link:hover {
    background: #2980b9;
    color: #fff;
    border-color: #2980b9;
    text-decoration: none;
}
.pag-disabled {
    padding: 6px 14px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #ccc;
}

/* ========== 加载 ========== */
#loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #999;
}
#casesContainer {
    display: block;
}

/* ========== 底部 ========== */
.footer {
    max-width: 990px;
    margin: 24px auto 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
}
.footer-logo {
    width: 28px;
    height: 28px;
    opacity: .7;
}
.footer-text {
    font-size: 13px;
    color: #888;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .header-title h1 {
        font-size: 18px;
    }
    .main-content {
        padding: 12px 8px;
    }
    .banner-img {
        height: auto;
    }
}
