/* 政策法规页面专用样式 */


/* 标题部分 */
.title-section {
    margin-top: 10px;
    position: relative;
}

.title-section h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.title-line {
    width: 50px;
    height: 2px;
    background-color: white;
    margin-top: 10px;
}

/* 标题背景 */
.title-bg {
    display: none;
}


/* 政策法规列表样式 */
.policy-list {
    margin-top: 0;
}

.policy-item {
    /* padding: 15px; */
    position: relative;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    /* align-items: center; */
    transition: all 0.3s ease;
    /* height: 192px; */
    box-sizing: border-box;
    border-bottom: 1px solid #DDDDDD;
    padding-bottom: 32px;
}

/* .policy-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    border: none;
} */

.news-img {
    width: 340px;
    /* max-width: 340px; */
    height: 190px;
    position: relative;
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 政策法规日期样式 */
.policy-date {
    /* background-color: #d9534f; */
    /* color: white; */
    width: 60px;
    height: 60px;
    background: rgba(247, 156, 38, .9);
    position: absolute;
    left: -16px;
    bottom: 20px;
    /* padding: 10px; */
    border-radius: 0;
    text-align: center;
    margin-right: 15px;
    min-width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-day {
    display: block;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.date-year {
    display: block;
    font-size: 12px;
    /* margin-top: 5px; */
    color: #FFFFFF;
}

/* 政策法规内容样式 */
.policy-content {
    flex: 1;
    margin-left: 28px;
}

.policy-category {
    font-weight: 600;
    font-size: 20px;
    color: #333333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
}

.policy-title {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 政策法规分享样式 */
.policy-share {
    position: absolute;
    bottom: 32px;
    right: 0;
    display: flex;
    gap: 5px;
    color: #D20B17;
    font-size: 14px;
}

.share-icon {
    cursor: pointer;
    transition: color 0.3s ease;
}

.share-icon:hover {
    color: #d82b2b;
}


/* 新闻详情样式 */
.news-detail {
    background-color: #fff;
    padding: 0px;
    border-bottom: 1px solid var(--active-color);
}
.news-detail h2 {
    font-weight: 600;
    font-size: 26px;
    color: #111111;
    text-align: center;
}

.news-detail .news-info {
    display: flex;
    justify-content: space-between;
    color: #666;
}
.news-detail .news-info p {
    margin-top: 10px;
}
.news-content {
    padding: 20px 40px;
}
/* 响应式设计 - 适配三端 */
@media (max-width: 1200px) {
    .policy-list .row {
        margin-left: 0;
    }
    .policy-item {
        height: auto;
        min-height: 120px;
    }
    .news-img {
        width: 340px;
    }
}

@media (max-width: 768px) {
    /* 平板设备 - 768px */
    .policy-banner {
        height: 250px;
    }
    .news-content {
        padding: 0;
    }
    .news-img {
        width: 100%;
    }
    .policy-content {
        margin-left: 0;
        margin-top: 15px;
    }
    
    /* 内容区改为单列显示 */
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .policy-item {
        height: auto;
        min-height: 120px;
    }
}

@media (max-width: 375px) {
    .title-section h1 {
        font-size: 20px;
    }
    
    /* 卡片宽度自适应，单列堆叠 */
    .policy-item {
        height: auto;
        min-height: 100px;
        padding: 10px;
    }

    .news-img {
        width: 100%;
    }

    .policy-content {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* 日期和标题缩小 */
    .date-day {
        font-size: 20px;
    }
    
    .date-year {
        font-size: 9px;
    }
    
    .policy-title {
        font-size: 12px;
    }
    
}
