.imgback{
    width: 100%;
    position: relative;
}
.imgback img{
    width: 100%;
}
.main{
    display: flex;
    width: 80%;
    height: auto;
    position: relative;
    top: -7vw;
    background-color: rgb(255, 255, 255);
}

h1 {
    font-size: 36px;
    margin-bottom: 12px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* 主网格布局 */
.main {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列布局 */
    grid-template-rows: auto auto;
    gap: 25px;
  }
/* 第二行采用独立的三列网格容器 */
.row-2-container {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 三列等宽 */
    gap: 25px;
  }
/* 所有区块样式 */
.block {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* 区块标题样式 */
.block-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3d7c;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 3px solid #3a70c9;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #ffd700;
}

/* 更多跳转按钮（双层箭头） */
.more-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #4a7bde;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.more-btn:hover {
    color: #1a3d7c;
}

.double-arrow {
    display: inline-block;
    position: relative;
    margin-left: 8px;
}

.double-arrow::before,
.double-arrow::after {
    content: '›';
    position: absolute;
    font-size: 20px;
    line-height: 1;
}

.double-arrow::before {
    right: 6px;
}

.double-arrow::after {
    right: 0;
}

/* 新闻图片区块 */
.newimg {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding: 20px;
    text-align: center;
}

.newimg .block-title {
    border-bottom: none;
    margin-bottom: 15px;
}

.newimg .block-title::after {
    display: none;
}

.news-img {
    width: 100%;
    height: 340px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.news-img:hover {
    transform: scale(1.01);
}

.img-caption {
    font-size: 16px;
    color: #555;
    padding: 0 15px;
}

/* 工作动态和通知公告区块 */
.gzdt{
    grid-column: 2 / 3;
}

.gzdt {
    grid-row: 1 / 2;
}

.tzgg {
    grid-row: 1;
}

/* 安全教育和服务指南 */
.aqjy {
    grid-column: 2;
}

.fwzn {
    grid-column: 3;
}

/* 新闻列表样式 */
.news-list {
    list-style: none;
}

.news-item {
    padding: 16px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f4fb;
}

.news-item:last-child {
    border-bottom: none;
}

/* NEW标签（工作动态前3项） */
.new-tag {
    background: #ff4757;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.news-text {
    font-weight: 500;
    flex-grow: 1;
    color: #333;
}

.news-text:hover {
    color: #1a3d7c;
    cursor: pointer;
}

.news-date {
    background: #1a3d7c;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

/* 没有日期的新闻项样式 */
.no-date .news-item {
    padding: 12px 0;
}

.no-date .news-text {
    padding-left: 0;
    font-size: 15px;
}
/* ===== 文章列表样式 ===== */
.wp_article_list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Microsoft YaHei', sans-serif;
}

.list_item {
    padding: 12px 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.pr_fields {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}

.Article_Title a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 80%;
    display: inline-block;
}

.Article_Title a:hover {
    color: #1a73e8;
}

.Article_PublishDate {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.Article_Index {
    background: #1a73e8;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}
.more {
    text-align: right;
    margin-top: 15px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
}

.block.tzgg .wp_article_list,
.block.aqjy .wp_article_list,
.block.fwzn .wp_article_list {
    width: 100%;
}

.block.tzgg .list_item,
.block.aqjy .list_item,
.block.fwzn .list_item {
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}
.block.gzdt .Article_Index,
.block.tzgg .Article_Index,
.block.aqjy .Article_Index,
.block.fwzn .Article_Index {
    display: none;
}

.block.tzgg .Article_Title a,
.block.aqjy .Article_Title a,
.block.fwzn .Article_Title a {
    color: #333;
    font-size: 15px;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.5;
}

.block.tzgg .Article_Title a:hover,
.block.aqjy .Article_Title a:hover,
.block.fwzn .Article_Title a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.block.tzgg .Article_PublishDate,
.block.aqjy .Article_PublishDate,
.block.fwzn .Article_PublishDate {
    color: #888;
    font-size: 13px;
    display: block;
}

.block.tzgg .more,
.block.aqjy .more,
.block.fwzn .more {
    margin-top: 15px;
    text-align: right;
}

.block.tzgg .more-link,
.block.aqjy .more-link,
.block.fwzn .more-link {
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
}

.block.tzgg .more-link:hover,
.block.aqjy .more-link:hover,
.block.fwzn .more-link:hover {
    text-decoration: underline;
}

    /* 响应式设计 */
@media (max-width: 1200px) {
    .main, .row-2-container {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .row-2-container {
        grid-template-columns: 1fr;
    }
    
    .newimg, .gzdt, .row-2-container > .block {
        grid-column: 1;
    }
    
    .newimg { grid-row: 1; }
    .gzdt { grid-row: 2; }
    .row-2-container { grid-row: 3; }
    
    .tzgg::after {
        display: none;
    }
    
    .news-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .block {
        padding: 22px;
    }
    
    .block-title {
        font-size: 20px;
    }
    
    .news-img {
        height: 260px;
    }
    
    .news-item {
        flex-wrap: wrap;
    }
    
    .news-date {
        margin-left: auto;
        margin-top: 10px;
    }
    
    .row-2-container .block {
        padding: 22px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 22px 15px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .block {
        padding: 20px;
        border-radius: 12px;
    }
    
    .news-img {
        height: 220px;
    }
    
    .block-title {
        font-size: 19px;
    }
    
    .news-text {
        font-size: 16px;
    }
    
    .more-btn {
        font-size: 14px;
    }
}
