/* 布局与页头页脚（移植自旧站 style.css，去除 IE6 补丁，改用 Bootstrap 栅格） */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-song);
    font-size: var(--font-size-base);
    color: var(--c-text);
    background: url(/images/body.jpg) repeat-x top center #f4f4f4;
}

a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-orange); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
img { border: 0; max-width: 100%; color: transparent; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }
/* 旧站没有 Bootstrap reboot 的标题样式（Bootstrap 会给标题 font-weight:500、line-height:1.2 与流式字号）：
   标题字重/行高恢复为旧站继承行为，各行内已有显式字号，未显式设置的按旧站（UA 默认）处理 */
h1, h2, h3, h4, h5, h6 { font-weight: bold; line-height: inherit; }

/* ===== 旧站盒模型兼容 =====
   旧站 style.css 没有全局 box-sizing 重置（默认 content-box），
   而 Bootstrap 5 全局为 border-box，会让「定宽 + 内边距/边框」的旧组件内容区缩小 2~16px
   （推广图/项目缩略图被裁、Tab 条变矮、logo 被切）。
   以下为旧站移植的定宽组件，统一恢复 content-box 以保证 1:1 尺寸。 */
#header .top,
.hometop,
.page-banner,
.box1,
.box1 .title,
.box1 .main,
.box2 .main,
.fl ul,
.fl li,
.pic li,
.layout-left,
.layout-right { box-sizing: content-box; }

.site-wrap {
    max-width: var(--site-width);
    margin: 0 auto;
}

/* ===== 头部（与旧站一致：固定 160px，底部对齐 nav.png 精灵图，白卡片+灰色圆角条由精灵图提供） ===== */
#header {
    max-width: var(--site-width);
    height: 160px;
    margin: 0 auto;
    background: url(/images/nav.png) no-repeat bottom center;
    overflow: hidden;
    position: relative;
    z-index: 20;
}
#header .top {
    height: 55px;
    padding: 26px 10px 0;
    overflow: hidden;
}
#header .logo {
    float: left;
    display: block;
    width: 406px;
    height: 39px;
    background: url(/images/logo.png) no-repeat;
    overflow: hidden;
    text-indent: -9999px;
}
#header .lng {
    float: right;
    padding-top: 25px;
    color: #fff;
}
#header .lng li { float: left; }
#header .lng li a { padding: 0 10px; color: #fff; }

.nav { width: var(--site-width); height: 46px; position: relative; }
.nav > ul { height: 46px; overflow: hidden; }
.nav .nav-item {
    float: left;
    padding-left: 1px;
    background: url(/images/nava.gif) no-repeat left center;
}
.nav .nav-item.none { padding-left: 0; background: none; }
.nav .nav-item > a {
    display: block;
    padding: 0 24px;
    font-weight: bold;
    font-size: 14px;
    line-height: 46px;
    color: var(--c-nav);
    white-space: nowrap;
}

/* 二级菜单行：与旧站 #meun02 结构一致（ul#mbN 由服务端决定显示，鼠标滑过由 showM 切换） */
#meun02 { height: 28px; padding: 0; background: none; border: 0; }
#meun02 ul { margin: 0; padding: 0 33px; }
#meun02 li { float: left; color: #999; line-height: 28px; }
#meun02 li a { font-size: 12px; padding-left: 5px; padding-right: 15px; }
#meun02 li a:hover { color: var(--c-orange); }
.hide { display: none; }

/* ===== 主体容器 ===== */
#center {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 8px 0 15px;
    border-bottom: 2px solid var(--c-line);
    background: url(/images/center.png) repeat-y top center;
    position: relative;
    /* 不用 overflow:hidden：首页轮播箭头需按原站外移 30px 显示，溢出由 ::after 清除浮动处理 */
}
#center::after { content: ""; display: block; clear: both; }

.page-banner { width: 980px; padding: 0 11px 8px; }
/* 内页 banner：980×200，右下角数字分页（对应旧站 Inc/banner.asp 的 ul_change_a2），无左右箭头 */
#topBanner,
#topBanner .carousel-item img { height: 200px; object-fit: cover; }
#topBanner .carousel-indicators {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: auto;
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    opacity: .8;
    white-space: nowrap;
    z-index: 3;
    /* 去掉模板换行产生的 inline-block 间隙 */
    font-size: 0;
}
#topBanner .carousel-indicators [data-bs-target] {
    display: inline-block;
    box-sizing: content-box;
    width: auto;
    height: auto;
    margin: 0 0 0 5px;
    padding: 2px 7px;
    border: 1px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: bold 12px/16px Arial, "宋体";
    text-indent: 0;
    opacity: 1;
    cursor: pointer;
}
#topBanner .carousel-indicators .active { border-color: #fff; background: #fff; color: #000; }

.layout-main { padding: 0; }
.layout-left {
    float: left;
    /* 与原站一致：内容区 208px + 左内边距 11px = 219px（content-box） */
    width: var(--left-width);
    padding-left: 11px;
}
.layout-right {
    float: right;
    /* 与原站一致：内容区 762px + 右内边距 11px = 773px（content-box） */
    width: var(--right-width);
    padding-right: 11px;
}

/* ===== 左侧栏 ===== */
.fl {
    width: 208px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    background: url(/images/lt1b.gif) no-repeat bottom;
}
.fl .t {
    width: 208px;
    height: 35px;
    text-indent: 14px;
    font-weight: bold;
    font-size: 14px;
    line-height: 34px;
    color: #fff;
    background: url(/images/lt1.gif) no-repeat;
}
.fl ul { width: 190px; padding: 5px 9px 0; background: #f4f4f4; }
.fl li {
    width: 170px;
    height: 30px;
    padding-left: 20px;
    font-size: 12px;
    line-height: 30px;
    border-top: 1px dashed #aaa;
    background: url(/images/lli_a.gif) no-repeat 8px 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fl li.none { border-top: 0; }

.pic { float: left; width: 208px; overflow: hidden; }
.pic li { width: 208px; height: 65px; padding-bottom: 6px; overflow: hidden; }
.pic li img { width: 208px; height: 65px; object-fit: cover; }

/* ===== 右内容区 ===== */
.nr { width: 100%; overflow: hidden; }
.nr .t {
    width: 100%;
    height: 35px;
    text-indent: 14px;
    font-weight: bold;
    font-size: 14px;
    line-height: 34px;
    color: #fff;
    background: url(/images/rt2.gif) no-repeat;
    background-size: 762px 35px;
}
.nr .t span { float: right; padding-right: 14px; font-size: 12px; line-height: 34px; }
.nr .t span a { color: #fff; }
.nr .main {
    width: 100%;
    border: 1px solid var(--c-line-2);
    border-top: 0;
    background: #fff;
}
.nr .main .txt {
    padding: 25px;
    font-size: 12px;
    line-height: 22px;
    color: var(--c-text-gray);
    overflow: hidden;
}
.nr .main .txt img { max-width: 100%; height: auto; }
.nr .main .newslist {
    padding: 15px 24px 15px 16px;
    overflow: hidden;
}
.nr .main .newslist li {
    height: 26px;
    padding-left: 20px;
    font-size: 12px;
    line-height: 26px;
    background: url(/images/li_a.gif) no-repeat 0 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nr .main .newslist li span { float: right; color: var(--c-text-light); }
.nolist { height: 80px; text-align: center; padding-top: 50px; color: #999; }

/* ===== 页脚 ===== */
#footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10px 0 20px;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
    color: var(--c-text-gray);
}
#footer a { color: var(--c-text-gray); }
#footer .police-link {
    display: inline-flex;
    align-items: center;
    height: 20px;
    line-height: 20px;
}
#footer .police-link img { float: left; }
#footer .police-link span { margin-left: 5px; color: #939393; }

/* 漂浮广告 */
.float-ad {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    background: #fff;
    padding: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    max-width: 240px;
}
.float-ad img { display: block; width: 100%; }
.float-ad-close {
    position: absolute;
    top: -1px;
    right: -1px;
    display: block;
    padding: 0 4px;
    font-size: 12px;
    color: #f00;
    background: #fff;
}
