/* ------------------ 基础样式与重置 ------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* UI图中的主要颜色定义 */
    --color-primary: #315DC4;
    /* 整体浅灰色背景 */
    --color-text-dark: #333;
    --color-text-light: #999;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

a:hover {
    color: var(--color-primary);
}

/* ------------------ 顶部 LOGO/导航 & 横幅 ------------------ */

.banner-container {
    background-image: url(../../images/fgf_bg.png);
    height: 474px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-text {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 5px;
}

/* ------------------ 主内容布局 ------------------ */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 54px;
}

/* 第一层布局：左图右列表 (使用 Flex 模拟 Grid 的两列) */
.top-content-layer {
    display: flex;
    padding-top: 54px;
}

.left-area {
    flex: 2.5;
    position: relative;
    min-height: 470px;
}

.left-area img {
    position: absolute;
    left: 36px;
    top: 50%;
    z-index: 1;
    width: calc(100% + 30px);
    height: 390px;
    transform: translateY(-50%);
    display: block;
    border-radius: 4px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.right-area {
    flex: 3;
    border: 4px solid transparent;
    background-color: #fff;
    border-radius: 50px 0 0 50px;
    position: relative;
    background-clip: padding-box;
    padding: 40px 36px 40px 90px;
}

.right-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -1;
    margin: -4px;
    border-radius: inherit;
    background: linear-gradient(to right, #96ACEA, #386BF5);
}

.top-box-title {
    position: absolute;
    right: 68px;
    top: -25px;
    display: flex;
    background: #fff;
    padding: 4px 24px;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}


/* 第二层布局：两列信息流 */
.bottom-content-layer {
    padding-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.info-box {
    display: flex;
    flex-direction: column;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #BFBFBF;
}

.title-section {
    position: relative;
    padding: 2px 16px;
    color: white;
    /* 防止左边超出 */
    margin-left: 10px;
}

.title-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, #5280EB, #2D60D6);
    z-index: -1;
    border-radius: 9px;
    transform: skew(-30deg);
}

.box-title {
    font-size: 24px;
    color: #fff;
    font-weight: bold;

}

.more-link {
    font-size: 18px;
    color: var(--color-text-light);
}

.bottom-content-layer .list {
    padding-top: 15px;
}

/* ------------------ 卡片和列表样式 ------------------ */

.right-area .list-container {
    width: 100%;
}

/* 列表项样式 */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-width: 0;
}

.item-text {
    flex-grow: 1;
    min-width: 0;
    margin-right: 10px;
    font-size: 18px;
    position: relative;
    padding-left: 20px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 0;
}

/* 列表前的小三角 (▶) */
.item-text::before {
    content: "▶";
    /* 小三角字符 */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    color: #CCCCCC;
    font-size: 18px;
}

.item-date {
    color: var(--color-text-light);
    flex-shrink: 0;
    font-size: 18px;
    min-width: 0;
}

/* 双随机一公开 */
.info-box:first-child .list {
    padding-top: 15px;
    /* 添加顶部内边距 */
}

.list-item-two {
    border-bottom: 1px dashed #C2C2C2;
    padding: 11px 0;
}

.list-item-two:last-child {
    border-bottom: none;
}

/* 政策文件 */
.list-file {
    background: #F4F4F4;
    padding: 15px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.list-file-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
}

.list-file-item .item-text {
    padding-left: 0;
}

.list-file-item .item-text::before {
    content: none;
}

/* ------------------ 响应式布局 (Responsive Design) ------------------ */

@media (max-width: 1400px) {
    .main-content {
        padding: 0 36px 54px;
    }
}

@media (max-width: 1100px) {
    .banner-text {
        font-size: 54px;
    }
}

@media (max-width: 992px) {
    .top-content-layer {
        flex-direction: column;
        gap: 36px;
        padding-top: 32px;
    }

    .left-area {
        flex: none;
        width: 100%;
        min-height: auto;
        /* **移除固定高度** */
        position: static;
        /* **移除相对定位，配合子元素调整** */
    }

    .left-area img {
        position: static;
        /* **取消绝对定位** */
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        /* 使用更常见的 16:9 比例，避免在小屏幕上拉伸过度 */
        object-fit: cover;
    }

    .right-area {
        flex: none;
        width: 100%;
        border-radius: 0;
        padding: 40px 5%;
    }

    .bottom-content-layer {
        grid-template-columns: 1fr;
    }

    .list-file {
        gap: 15px;
    }

    /* 调整手机端导航栏 */
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 5%;
        padding-right: 5%;
    }

    .nav-menu {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }

    .nav-menu a {
        margin-left: 0;
        margin-right: 10px;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .banner-text {
        font-size: 34px;
    }

    .main-content {
        max-width: 100%;
        padding: 30px 5%;
    }

    .left-area img {
        padding: 0;
    }

    .box-title {
        font-size: 18px;
    }

    .item-text, .item-date {
        font-size: 16px;
    }

    .top-box-title {
        font-size: 20px;
        top: -22px;
    }
}

@media (max-width: 480px) {
    .banner-text {
        font-size: 26px;
    }
}