﻿
/* ---- CSS 变量定义 ---- */
:root {
    --red: #d93025;
    --font-gray: #666;
    --main-blue: #2261c2;
    --link-blue: #0056b3;
}

/* ---- 全局重置 ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li::marker {
    content: none;
}

.fr {
    float: right;
}

a {
    text-decoration: none;
    color: inherit;
    outline: none;
    font-style: normal;  /* 修复：Font-style → font-style */
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ---- 顶部链接栏 ---- */
.top-links-bar {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    padding: 6px 0;
}

.top-links-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links-bar a {
    margin-right: 16px;
    color: #666;
    text-decoration: none;
}

.loginbox a {
    margin-left: 16px;
}

.top-right {
    display: flex;
    align-items: center;
}

.social {
    margin-left: 12px;
    color: #007bff;
    text-decoration: none;
}

.btn-mode {
    margin-left: 12px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* ---- Logo + 搜索 ---- */
.header-main {
    background: linear-gradient(to right, #f0f8ff, #e6f7ff);
    padding: 50px 0;
}

.header-main .container {
    display: flex;
}

.logo-area {
    flex: 1;
}

.logo-area h1 {
    color: var(--main-blue);
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.logo-area p {
    font-size: 13px;
    letter-spacing: 0.2em;
}

.search-box {
    height: 48px;
    border: 1px solid #ccc;
    display: flex;
    background-color: #fff;
}

.search-box .text {
    width: 300px;
    border: none;
    background: none;
    text-indent: 1.5em;
}

.search-box .search-btn {
    line-height: 48px;
    padding: 0 8px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.oldmod {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 10px;
}

.oldmod div {
    background-color: #EC940A;
    height: 26px;
    line-height: 26px;
    text-align: center;
    padding: 0 15px;
    border-radius: 6px;
}

.oldmod div a {
    color: #fff;
}

.oldmod .oldbtn {
    margin-left: 15px;
}

/* ---- 主导航 ---- */
.main-nav {
    background: var(--main-blue);
}

.nav-items {
    display: flex;
    list-style: none;
    height: 50px;
}

.nav-items li {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border-left: 1px solid #fff;
}

.nav-items li img {
    width: 24px;
    vertical-align: sub;
    margin-right: 10px;
}

.nav-items li:last-child {
    border-right: 1px solid #fff;
}

.nav-items a {
    display: block;
    line-height: 50px;
    color: white;
    text-decoration: none;
    position: relative;
}

.nav-items a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- 红色头条横幅 ---- */
.red-banner .container {
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--main-blue);
    padding: 10px 0;
    color: white;
    margin-top: 20px;
}

.banner-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.text {
    flex: 1;
}

.text h2 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: '宋体';
}

.sub-links {
    display: flex;
    gap: 24px;
    font-size: 18px;
    justify-content: center;
}

.sub-links a {
    color: rgba(255, 255, 255, 0.9);
}

/* ---- 新闻英雄区：左图右文 ---- */
.news-hero {
    padding: 20px 0;
}

.news-grid {
    display: flex;
    justify-content: space-between;
}

/* 轮播容器（合并两处重复定义，保留 55%） */
.news-img-container {
    position: relative;
    width: 55%;
    height: 395px;
    overflow: hidden;
}

.carousel-window {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轨道：包含所有幻灯片，通过 transform 移动 */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* 单个幻灯片 */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
        object-fit: cover;
    object-position: center top;
    display: block;
}

/* 图片上的文字标题 */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 左右切换按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.15);
    color: white;
    border-radius: 37px;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s;
    border: none;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.img-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* 指示点容器（修复定位：right:0 + translateX(-50%) → left:50%） */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* ---- 新闻列表 ---- */
.news-list-wrapper {
    width: 43%;
}

/* 合并两处 .news-category 定义 */
.news-category {
    display: flex;
    margin-bottom: 4px;
    font-size: 14px;
    background-color: #F5F5F5;
    border-bottom: 1px solid #ccc;
}

.news-list {
    list-style: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-list a:hover {
    color: var(--link-blue);
}

.news-list li {
    padding: 8.5px 0;
    border-bottom: 1px dotted #eee;
    font-size: 16px;
}

.news-list a {
    color: #333;
    text-decoration: none;
}

/* 合并两处 .news-list span 定义，保留 14px */
.news-list span {
    float: right;
    color: #999;
    font-size: 14px;
}

/* Tab 之间清晰的界限 */
.news-category span {
    text-align: center;
    font-size: 20px;
    width: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease-in-out;
    position: relative;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
}

.news-category span:hover {
    color: var(--link-blue);
    background-color: rgba(0, 86, 179, 0.05);
}

.news-category span.active {
    color: #fff;
    font-weight: bold;
    background-color: var(--main-blue);
}

/* ---- 两并排窄横幅 ---- */
.promo-strip .container {
    display: flex;
    justify-content: space-between;
}

.promo-item {
    width: 590px;
    height: 82px;
    overflow: hidden;
}

.promo-item img {
    height: 100%;
    transition: transform 0.6s ease;  /* 新增：基础过渡，消除悬停突跳 */
}

.promo-item a:hover img {
    transform: scale(1.1);
}

/* ---- 政务公开：三栏布局 ---- */
.gov-open {
    padding: 20px 0;
}

.gov-open .cont-box {
    display: flex;
    justify-content: space-between;
}

.section-title {
    position: relative;
    height: 46px;
    line-height: 46px;
    text-indent: 55px;
    font-size: 28px;
    font-weight: bold;
    color: #2261C2;;
    border-bottom: 2px solid #dddddd;
    margin-bottom: 20px;
}

.section-title span {
    position: absolute;
    background-color: var(--main-blue);
    width: 46px;
    height: 46px;
    left: 0;
}

.section-title span img {
    top: 5px;
    left: 5px;
    position: absolute;
    width: 36px;
    height: 36px;
}

.col-left,
.col-middle {
    width: 39%;
    border: 1px solid #dddddd;
    padding: 10px;
}

.col-left h3,
.col-middle h3 {
    height: 44px;
    font-weight: bold;
    border-bottom: 1px solid #dddddd;
    font-size: 18px;
    color: var(--main-blue);
}

.col-left h3 a {
    color: var(--main-blue);
}

.col-right {
    width: 20%;
}

.file-list {
    list-style: none;
}

.file-list li {
    padding: 8px 0;
    font-size: 18px;
}

.file-list a {
    color: #333;
    text-decoration: none;
}

.file-list span {
    float: right;
    color: #999;
    font-size: 14px;
}

.quick-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.quick-icon-grid a {
    width: 112px;
    background: #FFFFFF;
    border: 1px solid #EDEDED;
    text-align: center;
    display: inline-block;
    height: 103px;
}

.quick-icon-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-icon-grid i {
    font-size: 24px;
    margin-top: 16px;
}

.quick-icon-grid span {
    color: #000;
    font-size: 14px;
}

/* ---- 政务服务 2×4 网格 ---- */
.gov-services .cont-box {
    display: flex;
    justify-content: space-between;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid #dddddd;
}

.service-item {
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    width: 165px;
    color: #6b6b6b;
}

.service-item:hover {
    transform: translateY(-4px);
}

.service-item i {
    font-size: 28px;
    display: block;
}

.service-item span {
    display: block;
    font-size: 14px;
}

.platform-link {
    font-size: 0;
    text-align: center;
}

.platform-link img {
    width: 440px;
    height: 120px;
}

/* ---- 三栏主体 ---- */
.three-col-main {
    padding: 30px 0;
}

.col {
    width: 587px;
}

.three-col-main .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}

.tab-panel {
    min-height: 150px;
}

.tab-panel ul {
    list-style: none;
}

/* 针对 three-col-main 中的 tab-panel 列表样式 */
.interaction-col .tab-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interaction-col .tab-panel li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 45px;
    border-bottom: 1px dashed #eaeaea;
    font-size: 18px;
}

.interaction-col .tab-panel li:last-child {
    border-bottom: none;
}

.interaction-col .tab-panel li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 10px;
    transition: color 0.2s;
}

.interaction-col .tab-panel li a:hover {
    color: var(--red);
}

.interaction-col .tab-panel li a::before {
    content: "· ";
    color: #999;
    margin-right: 5px;
}

.interaction-col .tab-panel li .timer {
    color: #999;
    font-size: 14px;
    min-width: 60px;
    text-align: right;
}

/* ---- 信息服务 / 科普卡片 ---- */
.kepu-cards ul {
    list-style: none;
    padding: 15px;          /* 修复：去除重复 padding 声明 */
    margin: 0;
    border: 1px solid #dddddd;
}

.kepu-cards li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 45px;
    border-bottom: 1px dashed #eaeaea;
    font-size: 18px;
}

.kepu-cards li:last-child {
    border-bottom: none;
}

.kepu-cards li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 10px;
    transition: color 0.2s;
}

.kepu-cards li a:hover {
    color: var(--red);
}

.kepu-cards li .timer {
    color: #999;
    font-size: 14px;
    min-width: 60px;
    text-align: right;
}

a.morobtn {
    background: var(--link-blue);
    float: right;
    margin-top: 11px;
    border: 1px solid #ccc;
    border-radius: 43px;
    font-size: 14px;
    padding: 0 6px;
    color: #fff;
}

.kepu-cards .card {
    height: 102px;
    margin-bottom: 15px;
}

.kepu-cards .card img {
    width: 100%;
    height: 100%;
}

.kepu-cards .card:last-child {
    margin-bottom: 0;
}

/* ---- Tab 按钮（合并两处 .tab-btn.active 定义） ---- */
.tab-btn {
    padding: 11px 16px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 18px;
    width: 33.33%;
}

.tab-btn a {
    color: #666666;
}

.tab-btn.active {
    font-weight: bold;
    background: var(--link-blue);
}

.tab-btn.active a {
    color: white;
}

.tab-content ul {
    list-style: none;
}

.tab-content li {
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
}

/* ---- 专题专栏 ---- */
.special-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.special-grid a img {
    width: 100%;
}

/* ---- 底部链接 ---- */
.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--link-blue);
    margin-bottom: 20px;
}

.footer-links select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    flex: 1;
}

/* ---- 底部 ---- */
.site-footer {
    color: #666666;
    padding: 12px 0 20px;
}

.site-footer .info-box {
    display: flex;
    justify-content: space-between;
}

.footer-info p {
    font-size: 16px;
    margin-bottom: 3px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}


.main {
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
}

.path {
    line-height: 50px;
    border-bottom: 1px solid #e6e6e6;
    padding-left: 15px;
    font-size: 15px;
}

.path a {
    font-size: 15px;
}

.channel-wrap {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

.channel-list {
    width: 290px;
    line-height: 60px;
    text-align: center;
}

.channel-list p {
    color: #fff;
    font-size: 22px;
    line-height: 55px;
    background-color: var(--main-blue);
}

.channel-list a {
    display: block;
    margin: 0 auto;
    border-bottom: 1px solid #ffffff;
    background: #f6f6f6;
    font-size: 18px;
    text-align: left;
    padding: 0 20px;
    position: relative;
    transition: all .3s;
}

.channel-list a.active,
.channel-list a:hover {
    color: #2261C2;;
    padding-left: 35px;
    background: #dbe9ff;
}

.channel-list a.active:after,
.channel-list a:hover:after {
    display: block;
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid var(--red);
    border-color: transparent transparent transparent var(--red);
    right: 4%;
    top: 50%;
    margin-top: -5px;
    background: none;
}

.channel-contents {
    width: 815px;
    padding-right: 20px;
}

.channel-title {
    height: 45px;
    box-sizing: border-box;
    border-bottom: 1px solid #e6e6e6;
}

.channel-title span {
    display: inline-block;
    font-size: 20px;
    color: var(--font-gray);
    font-weight: 600;
    padding: 0 5px;
    border-bottom: 3px solid var(--link-blue);
    line-height: 43px;
}

.content-list {
    padding: 20px 0;
}

.content-list li {
    line-height: 43px;
    padding-left: 15px;
    background: url(../images/2022/li-bg.png) left center no-repeat;
    transition: all .2s;
}

.content-list li span {
    float: right;
    font-size: 14px;
    color: #adadad;
}

.content-list li:hover {
    padding-left: 20px;
    box-shadow: 0 0 11px -2px #cbcbcb;
}

.page-nav {
    text-align: center;
    font-size: 15px;
    margin: 20px 0;
}

.page-nav a {
    display: inline-block;
    padding: 3px 7px;
    margin: 0 2px;
    border: 1px solid #e0e0e0;
}

.page-nav a.on {
    border: none;
    color: var(--red);
    font-weight: 600;
}

.maincolor {
    background: #efefef;
    padding-bottom: 30px;
}

/* ---- 频道表格 ---- */
.channel-title i {
    display: inline-block;
    font-size: 18px;
    color: var(--font-gray);
    font-weight: 400;
    padding: 0 5px;
    line-height: 43px;
}

.channeltable ul {
    overflow: hidden;
}

.channeltable ul .thead span {
    display: block;
    font-weight: 700;
    background-color: #e6e6e6;
    border: 1px transparent #000;
}

.channeltable {
    border: 1px solid #e6e6e6;
}

.channeltable .w1 { width: 10%; }
.channeltable .w2 { width: 50%; padding: 0 5px; overflow: hidden; }
.channeltable .w3 { width: 25%; }
.channeltable .w4 { width: 15%; }

.channeltable ul li span {
    float: left;
    display: block;
    width: 341px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-bottom: 1px solid #e6e6e6;
    border-left: 1px solid #e6e6e6;
}

/* ---- 文章详情页 ---- */
.maintext {
    padding: 20px;
}

.maintext h4 {
    padding: 20px 0;
    font-size: 25px;
    width: 755px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5em;
}

.maintext .times {
    padding: 10px;
    background-color: rgb(237 236 236);
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.mainp {
    padding: 20px;
}

.mainp p {
    line-height: 2em;
    text-indent: 2em;
    color: #666;
    margin-bottom: 15px;
}

.moremods {
    padding: 40px 0;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    color: #666;
}

.moremods .dayin {
    margin-left: 40px;
    color: #666;
}

.moremods,
.abtext,
.nxtext {
    margin-bottom: 20px;
}

/* ---- 搜索页 ---- */
.search-result {
    padding: 36px;
    background-color: #fff;
}

.search-list li {
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.search-list li + li .partitions {
    border-top: 1px solid #d3d3d3;
}

.search-list h2 {
    margin-bottom: 28px;
    font-size: 20px;
    color: #025293;
    line-height: 36px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-list h2 em {
    padding: 0 8px;
    color: #2261C2;;
    font-size: 14px;
    display: inline-block;
    border: 1px solid #2261C2;;
    border-radius: 3px;
    margin-right: 12px;
    line-height: 24px;
    vertical-align: middle;
    font-style: normal;
}

.search-list .des {
    overflow: hidden;
}

.search-list .des > img {
    float: left;
    width: 173px;
    height: 115px;
    margin-right: 15px;
    object-fit: contain;
}

.search-list .des > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 57px;
    text-overflow: ellipsis;
    line-height: 26px;
    color: #333;
    margin-bottom: 10px;
}

.search-list .des > img + p {
    margin-top: 10px;
}

.search-list .des > span {
    color: #999;
    margin-top: 10px;
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
}

.search-list .des > span + span {
    float: right;
}

.search-none {
    width: 300px;
    margin: 0 auto;
}

.search-none .title {
    margin-top: 38px;
    font-weight: bold;
    color: #333;
    line-height: 22px;
    margin-bottom: 12px;
}

.search-none li {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 30px;
}

.search-loading {
    text-align: center;
    padding: 50px 0;
    line-height: 50px;
}


/* letter_content start*/
.letter-msg,
.reply-msg{
    margin-bottom: 25px;
}
.letter-msg p,
.reply-msg p{
    line-height: 45px;
    height: 45px;
    background: #0666B0;
    color: #fff;
    font-size: 18px;
    padding: 0 15px;
}

.letter-msg table td,
.reply-msg table td{
    line-height: 30px;
    padding: 7px;

}
.letter-msg table td.msg-title,
.reply-msg table td.msg-title{
    width: 10%;
    border-bottom: 1px solid #d6d6d6;
    border-left: 1px solid #d6d6d6;
    text-align: center;
}
.letter-msg table td.msg-value,
.reply-msg table td.msg-value{
    width: 90%;
    border: 1px solid #d6d6d6;
    border-top: none;
    word-break: break-all;
}
.letter-msg table{
    width: 100%;
}
/* letter_content end */