*{margin:0px; padding:0px;}
body{font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu; font-size:16px; line-height:170%;background: url(../images/top.jpg) top center no-repeat;}
ul,ol,li{list-style:none;}
img{border:none;}
a{text-decoration:none; color:#666666; cursor:pointer;}
a:hover{color:#01652d; text-decoration:none;}
.clear-both{clear:both; height:0; overflow: hidden;}
.left{float:left}
.right{float: right;}
#container{padding: 25px 20px 20px 20px;width: 1200px;margin: 0 auto;background-color: #FFFFFF;clear: both;}
.title{border-bottom:2px solid #0b67b1; height:53px; overflow:visible;background:#EFF1F2;}
.title span{float:left; padding:0 30px; line-height:53px; height:65px; font-size:16px; cursor:pointer;}
.title span.on{background:url(../images/con_tab.png) no-repeat bottom center #0b67b1; color:#fff;}
.title a{font-size: 13px;float: right;}
#footer{text-align: center;margin: 30px 0px;width: 100%;color: #FFFFFF;}
.top{overflow: hidden;clear: both;margin-top: 15px;height: auto;}
.top dl{width:18%;display: block; margin:10px; float:left;}
.top dl dd{text-align: center;line-height: 30px;}
.top dl dt{text-align: center;cursor: pointer;}
.top dl dt img{height:180px;width:auto;} 
.box{width: 1200px; margin: 0 auto;}
.box .branch,.box .contbox{text-align: center;} 
.branch ul.border_line li{float: left; width: 200px; text-align: center;} 
.branch ul.border_line li p{width: 100%; margin: 5px auto; height: 42px; font-size: 18px;line-height: 42px;} 
.branch ul.border_line li img{width: 146px; height: 146px;} 
.mask{position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, .5); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000); width: 100%; height: 100%; display: none; cursor:default;z-index: 9999;} 
.mask .mask_with{position: relative;width: 650px; height: 380px; background-color: white; margin: 0 auto; margin-top: 100px;} 
.mask img{width: 210px !important; height: 210px !important; margin-top: 10px;} 
.close{width: 60px !important; height: 2.5rem !important;line-height: 2.5rem; cursor:pointer;position: absolute;right: 10px;} 
.mask p{width: 100% !important; font-size: 16px !important; line-height: 42px;} 
.mask .mask_title{color: rgb(53, 139, 204); margin-bottom: 15px; border-bottom: 2px solid rgb(239, 239, 239); font-size: 24px !important; height: 60px;line-height: 60px;} 
.mask .mask_cont{padding:10px;margin:0 auto;height:70%;width:90%;}
.mask .mask_cont a{display: inline-block;float: left;height:35px;line-height: 35px;width:100%;text-align: left;background: url(../images/list.png) no-repeat 4px center;padding-left: 16px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
.branch ul li{cursor: pointer;} 
.border_line{border-bottom:1px #777777 dashed; margin-bottom:20px;display: inline-block;width: 100%;clear: both;}
.footer{background-color: #0c6fc0;margin-top:20px;margin-bottom:0;padding-top:20px;padding-bottom:20px;z-index: 0;position: relative;}
.footer a{color: #FFFFFF;}
.footer a:hover{color: #d09d22;}
.footer_wzbs{position: absolute; left: 0; top: 10px; width:200px; text-align:right;}
.footer_wzbs img{vertical-align: middle;}
.footer .footer-list{width: 1040px;margin: 0 auto;position: relative;}
.footer .footer-list p{text-align: center;line-height: 25px}
.footer .footer-list ul{text-align: center;padding: 5px 0;}
.footer .footer-list ul span{width: 1px;height: 15px;vertical-align: middle;margin: 0 10px;background: #105a9f;display: block;display: inline-block}
.footer .footer-list ul li{display: inline;line-height: 36px}
.footer .footer-list ul li a{color: #105a9f;font-size: 14px;vertical-align: middle}
.footer_txt{text-align: center;}
.footer_nav{margin: 10px auto;color:#FFFFFF;}
.footer_nav a{margin:0 10px;}
.footer .copyright{line-height: 24px;}
.footer .copyright span{color: #FFFFFF;font-size: 13px;}

.picScroll{ position:relative;  height:150px; padding: 10px 0 10px 42px;  background:#fff; margin-bottom:10px; overflow:hidden;   }
.picScroll ul{ overflow:hidden; zoom:1; }
.picScroll ul li{ float:left; margin: 0 6px;  width:122px; overflow:hidden; display:inline;position: relative; }
.picScroll ul li img{ width:122px; height:150px; }
.picScroll ul li a p{display: block;position: absolute;bottom: 30px;left: 30%;color: #A61415;font-weight: 600;}
.picScroll .prev,
.picScroll .next{ position:absolute;  left:10px; top: 60px; display:block; width:18px; height:28px; overflow:hidden; background:url(../images/icons.png) -40px 0 no-repeat; cursor:pointer;  }
.picScroll .next{ left:auto; right:10px; background-position:-120px 0; }
.picScroll .prevStop{ background-position:0 0; }
.picScroll .nextStop{ background-position:-80px 0; }
.con_list li{height:40px; line-height:40px; padding-left:16px; background:url(../images/list.png) no-repeat 4px center; border-bottom:1px solid #f2f2f2;width:47%;float:left;}
.con_list li:nth-child(2n){float:right;}
.con_list li a{color:#333; float:left;width: 70%;height: 41px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;text-align: left;}
.con_list li span{float:right; color:#bababa;}
.con_list{border-bottom:none;}
.title2{border-bottom: 2px #e2e2e2 solid;padding-bottom: 5px;margin-bottom: 20px;}
.title2 span{padding-bottom: 5px;border-bottom-width: 3px;border-bottom-style: solid;border-bottom-color: #024dca;}

.carousel-ind {position:relative;top:-15px;width:100%;line-height:0!important;text-align:right;font-size:0;}
.carousel-ind ul.carousel-ul {display:inline-block; padding:5px; background-color:rgba(0,0,0,.2); border-radius:10px; -webkit-transition-duration:.3s; transition-duration:.3s;}
.carousel-ind ul.carousel-ul li {display:inline-block; width:10px; height:10px; margin:0 3px; font-size:14px; background-color:#e2e2e2; background-color:rgba(255,255,255,.5); border-radius:50%; cursor:pointer; -webkit-transition-duration:.3s; transition-duration:.3s;}
.carousel-ind ul.carousel-ul li.data-this {background-color:#999;}
.carousel-dataview>* { display:none; background-color:#f8f8f8; transition-duration:.3s; -webkit-transition-duration:.3s;height: 100%;}
.carousel-dataview>.data-this { display:block;}
.logo{position: relative;overflow: hidden;width: 100%;height: 24.375rem;clear: both;}
.logo a{display: inline-block;width: 100%;height: 40%;}


/* ========== 预算决算列表页自定义样式 ========== */

/* 部门和镇街容器 - 每行6个 */
#deptlist, #townlist { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px;
}

.box-item { 
    position: relative; 
    display: inline-block; 
    width: calc((100% - 50px) / 6); /* 每行6个，减去5个间距 */
    margin: 0;
    cursor: pointer; 
}

.item-title { 
    font-size: 16px; 
    padding: 5px 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    display: block; 
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-item.active .item-title { 
    background-color: #fff; 
    color: #cc0000; 
    border-color: #cc0000; 
}

/* 遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

/* 弹框 - 屏幕中央固定定位 */
.alert-box { 
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 999; 
    width: 600px; 
    height: 400px; 
    background: #fff; 
    border: 1px solid #ccc; 
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
    padding: 15px;
    overflow: hidden;
}

.alert-title { 
    font-size: 18px; 
    font-weight: bold; 
    margin-bottom: 10px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 5px; 
}

.alert-close { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    cursor: pointer; 
    font-size: 20px; 
    color: #999; 
    z-index: 1000;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.alert-close:hover {
    background: #f0f0f0;
    color: #cc0000;
}

.alert-content { 
    height: 340px; 
    overflow-y: auto; 
}

.alert-content ul { 
    margin: 0; 
    padding: 0; 
}

.alert-content ul li { 
    list-style: none; 
    line-height: 30px; 
    border-bottom: 1px dashed #eee; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.alert-content ul li .item-title { 
    flex: 1; 
    text-align: left !important; 
    border: none !important; 
    padding: 0 0 0 5px !important;
    display: inline !important;
    white-space: normal; 
    overflow: visible;
}

.alert-content ul li a { 
    text-decoration: none; 
    color: #333; 
}

.alert-content ul li a:hover { 
    color: #cc0000; 
}

.alert-content .item-time { 
    flex-shrink: 0; 
    color: #999; 
    font-size: 12px; 
    text-align: right; 
}

/* 响应式：小屏幕每行3个 */
@media (max-width: 1200px) {
    .box-item { 
        width: calc((100% - 20px) / 3); 
    }
}

/* 响应式：小屏幕弹框宽度 */
@media (max-width: 768px) {
    .alert-box {
        width: 90%;
        max-width: 500px;
    }
}
/* ========== 预算决算公开页面响应式适配 ========== */

/* 平板及以下（最大宽度 1200px） */
@media screen and (max-width: 1200px) {
    #container {
        width: 96% !important;
        padding: 15px !important;
        box-sizing: border-box;
    }

    .box {
        width: 100% !important;
    }

    /* 年份轮播区域 */
    .picScroll {
        padding-left: 30px;
        padding-right: 30px;
        height: auto;
    }

    .picScroll ul li {
        width: 100px;
    }

    .picScroll ul li img {
        width: 100px;
        height: auto;
    }

    .picScroll .prev,
    .picScroll .next {
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
    }

    /* 县级列表 */
    .con_list li {
        width: 100% !important;
        float: none !important;
        padding-left: 20px;
        box-sizing: border-box;
    }

    .con_list li a {
        width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 部门和镇街容器 gap 调整 */
    #deptlist, #townlist {
        gap: 8px;
    }

    .alert-content .item-time { 
        margin-left: 0 !important;
    }
}

/* 手机设备（最大宽度 768px） */
@media screen and (max-width: 768px) {
    body {
        background-size: 100% auto !important;
        background-position: top center !important;
    }

    .logo {
        height: auto !important;
        min-height: 150px;
    }

    .logo a {
        height: auto !important;
        display: block;
        background-size: contain;
    }

    #container {
        width: 100% !important;
        padding: 10px !important;
        margin-top: 0;
    }

    .title2 span {
        font-size: 18px;
    }

    /* 年份轮播 */
    .picScroll {
        padding-left: 20px;
        padding-right: 20px;
    }

    .picScroll ul li {
        width: 80px;
        margin: 0 4px;
    }

    .picScroll ul li img {
        width: 80px;
        height: auto;
    }

    .picScroll ul li a p {
        font-size: 12px;
        bottom: 20px;
        left: 25%;
    }

    /* 标签页 */
    .title {
        height: auto;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .title span {
        display: inline-block;
        float: none;
        padding: 0 15px;
        font-size: 14px;
    }

    /* 县级列表 */
    .con_list li {
        line-height: 36px;
        height: auto;
        padding-left: 16px;
    }

    .con_list li a {
        width: 65%;
        font-size: 13px;
    }

    .con_list li span {
        font-size: 11px;
    }

    /* 部门和镇街容器 */
    #deptlist, #townlist {
        gap: 8px;
        margin: 10px !important;
    }

    .item-title {
        font-size: 13px;
        padding: 6px 8px;
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
    }

    /* 弹窗 */
    .alert-box {
        width: 80% !important;
        max-width: 400px;
        max-height: 500px;
        padding: 12px;
    }

    .alert-title {
        font-size: 16px;
        padding-right: 30px;
    }

    .alert-content {
        height: calc(100% - 60px);
    }

    .alert-content ul li {
        flex-wrap: wrap;
        line-height: 1.4;
        padding: 8px 0;
    }

    .alert-content ul li .item-title {
        width: 100%;
        margin-bottom: 4px;
    }

    .alert-content .item-time {
        width: 100%;
        text-align: left;
        margin-left: 0;
        font-size: 11px;
    }

    .alert-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 18px;
    }
}
@media screen and (max-width: 560px) {
    .logo {
        min-height: 100px;
    }
}
/* 超小屏（最大宽度 480px） */
@media screen and (max-width: 480px) {
    .box-item {
        width: 100% !important; /* 每行1个 */
    }

    .picScroll ul li {
        width: 70px;
    }

    .picScroll ul li img {
        width: 70px;
    }

    .con_list li a {
        width: 60%;
        font-size: 12px;
    }

    .title span {
        padding: 0 12px;
        font-size: 13px;
    }

    .alert-box {
        width: 80% !important;
    }
}

/* 底部 footer 移动端适配 */
@media screen and (max-width: 768px) {
    .footer .footer-list {
        width: 96% !important;
        padding: 0 2%;
    }

    .footer_wzbs {
        position: static !important;
        width: auto !important;
        text-align: center !important;
        margin-top: 15px;
    }

    .footer_txt {
        text-align: center;
    }

    .footer_nav a {
        display: inline-block;
        margin: 0 6px;
        font-size: 12px;
    }

    .footer .copyright span {
        font-size: 11px;
        display: block;
        line-height: 1.6;
    }
}