/* ===== 首页 banner 下方主内容区 ===== */
/* 区域背景使用 bg.png（服务器路径：与 css 同在 static 下，用相对 ../images/ 解析） */
.main-area {
    background: #eef1f6 url(../images/bg.png) no-repeat center top;
    background-size: cover;
    padding: 40px 0 50px;
    flex: 1 1 0%;
    width: 100%;
    box-sizing: border-box;
}

.main-area .container {
    width: 1400px;
    max-width: calc(100% - 80px);
    margin: 0 auto;
}

/* 一行两列：左「信息公开目录」740 、右「重点领域信息公开」630（按 fr 比例分配，响应式不写死像素） */
.main-row {
    display: grid;
    grid-template-columns: minmax(0, 740fr) minmax(0, 630fr);
    gap: 30px;
    align-items: stretch;
}

/* ===== 信息公开目录 卡片 ===== */
.directory-card {
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 26px 30px 30px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2458AA;
    line-height: 1;
    margin-bottom: 24px;
}

/* 卡片标题行：左侧标题 + 右侧「更多」 */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.card-head .card-title {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.card-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    color: #888;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.card-more:hover {
    color: #2458AA;
}

.card-more::after {
    content: "›";
    font-size: 16px;
    line-height: 1;
}

/* 3 列宫格：高度锁死为原来 3 行（9 宫格），第 10、11 项靠纵向滚动查看 */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    /* 3 行 item(74) + 2 道间距(18) = 258，与原先 9 项可视高度一致 */
    max-height: calc(74px * 3 + 18px * 2);
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

/* 细滚动条（WebKit） */
.directory-grid::-webkit-scrollbar {
    width: 6px;
}

.directory-grid::-webkit-scrollbar-thumb {
    background: #c3cede;
    border-radius: 3px;
}

.directory-grid::-webkit-scrollbar-track {
    background: transparent;
}

.directory-grid {
    scrollbar-width: thin;
    scrollbar-color: #c3cede transparent;
}

/* 单个目录项：浅蓝圆角块 + 图标 + 文字 */
.directory-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 74px;
    padding: 0 12px;
    background: #eaf0fb;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.directory-item img {
    width: 26px;
    height: 26px;
    display: block;
    flex: 0 0 auto;
    transition: filter 0.25s ease;
}

.directory-item span {
    line-height: 1.3;
}

.directory-item:hover {
    background: #2458AA;
    color: #fff;
    transform: translateY(-2px);
}

/* hover 时把彩色图标强制变白（无需额外的白色图） */
.directory-item:hover img {
    filter: brightness(0) invert(1);
}

/* ===== 重点领域信息公开 卡片 ===== */
.focus-card {
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 26px 30px 30px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

/* 2x2 图片网格 */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.focus-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.focus-item img {
    width: 100%;
    display: block;
    aspect-ratio: 2.4 / 1;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.focus-item:hover img {
    transform: scale(1.06);
}

/* 图片底部蓝色缎带标签（背景 jux.png） */
.focus-label {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 34px;
    line-height: 34px;
    padding: 0 36px 0 16px;
    color: #fff;
    font-size: 15px;
    background: url(../images/jux.png) no-repeat left center / 100% 100%;
}

/* ===== 第二行：重要信息公开 + 右侧受理/友情 ===== */
.info-row {
    display: grid;
    grid-template-columns: minmax(0, 740fr) minmax(0, 630fr);
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
}

/* 重要信息公开 卡片 */
.news-card {
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 26px 30px 20px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.news-list {
    list-style: none;
}

.news-item > a {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e3e6ec;
    color: #333;
}

.news-item:last-child > a {
    border-bottom: 0;
}

/* 日期徐章：上蓝下浅 */
.news-date {
    flex: 0 0 auto;
    width: 48px;
    margin-right: 18px;
    text-align: center;
}

.news-date .day {
    display: block;
    background: #2458AA;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    padding: 4px 0;
    border-radius: 4px 4px 0 0;
}

.news-date .mon {
    display: block;
    background: #eef2fa;
    color: #2458AA;
    font-size: 12px;
    line-height: 1.4;
    padding: 2px 0;
    border-radius: 0 0 4px 4px;
    font-style: normal;
}

.news-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-arrow {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #bbb;
    font-size: 20px;
    line-height: 1;
}

.news-item > a:hover .news-title,
.news-item > a:hover .news-arrow {
    color: #2458AA;
}

/* 右侧两列（受理/友情）占位，下一步开发 */
.side-col {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 带蓝色头部的面板卡片 */
.panel-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.panel-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    background: #2458AA;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
}

.panel-head img {
    width: 20px;
    height: 20px;
    display: block;
}

.panel-body {
    flex: 1 1 auto;
    padding: 20px;
    margin-top: 10px;
}

/* 信息公开受理：联系信息 */
.contact-body p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 19px;
}

.contact-body p:last-child {
    margin-bottom: 0;
}

/* 友情链接：带小圆点的列表 */
.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 21px;
}

.link-list li:last-child {
    margin-bottom: 0;
}

.link-list a {
    position: relative;
    display: block;
    padding-left: 16px;
    font-size: 15px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #c3cede;
}

.link-list a:hover {
    color: #2458AA;
}

.link-list a:hover::before {
    background: #2458AA;
}

/* ===== 底部 footer ===== */
.site-footer {
    background: #2458AA;
    padding: 32px 0;
}

.site-footer .container {
    width: 1400px;
    max-width: calc(100% - 80px);
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 54px;
    width: auto;
    display: block;
}

.footer-info {
    color: #fff;
    font-size: 14px;
    line-height: 2;
}

.footer-info p {
    margin: 0;
}

/* ===== 响应式：平板 / 手机 ===== */
@media (max-width: 1200px) {
    .main-area .container,
    .site-footer .container {
        max-width: calc(100% - 40px);
    }

    .main-row,
    .info-row {
        gap: 20px;
    }

    .side-col {
        gap: 20px;
    }

    .directory-card,
    .focus-card,
    .news-card {
        padding: 22px 20px 24px;
    }
}

@media (max-width: 992px) {
    .main-area {
        padding: 24px 0 36px;
    }

    .main-area .container,
    .site-footer .container {
        max-width: calc(100% - 24px);
    }

    .main-row,
    .info-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }

    .main-row {
        margin-top: 0;
    }

    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* 仍只露出约 3 行，其余滚动 */
        max-height: calc(64px * 3 + 12px * 2);
    }

    .directory-item {
        height: 64px;
        font-size: 14px;
        gap: 8px;
        padding: 0 8px;
    }

    .directory-item img {
        width: 22px;
        height: 22px;
    }

    .focus-grid {
        gap: 12px;
    }

    .focus-label {
        height: 30px;
        line-height: 30px;
        font-size: 13px;
        padding: 0 28px 0 12px;
    }

    .side-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .panel-head {
        font-size: 16px;
        height: 44px;
    }

    .contact-body p {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .link-list li {
        margin-bottom: 14px;
    }

    .link-list a {
        white-space: normal;
    }

    .news-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
    }

    .site-footer {
        padding: 24px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-logo {
        height: 44px;
    }

    .footer-info {
        font-size: 12px;
        line-height: 1.8;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .directory-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-height: calc(72px * 3 + 10px * 2);
    }

    .directory-item {
        flex-direction: column;
        height: auto;
        min-height: 72px;
        padding: 10px 6px;
        font-size: 13px;
    }

    .news-date {
        width: 42px;
        margin-right: 12px;
    }

    .news-date .day {
        font-size: 16px;
    }

    .news-arrow {
        display: none;
    }
}
