/*
Theme Name: Steel Pro
Description: 钢铁行业门户主题 1190px固定宽
Version: 1.4
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    background: #f5f5f5;
    font-size: 14px;
    line-height: 1.5;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover {
    color: #005bac;
}
ul {
    list-style: none;
}
img {
    border: 0;
    max-width: 100%;
    display: block;
    height: 40px;
}
.clearfix:after {
    content: "";
    display: block;
    clear: both;
}
/* 全局栅格 严格1190px居中 */
.w1190 {
    width: 1190px;
    margin: 0 auto;
}
.container-1190 {
    width: 1190px;
    margin: 0 auto;
    overflow: hidden;
}
/* 主内容区 固定1190px居中 */
.content-right {
    width: 1190px;
    margin: 0 auto;
    overflow: hidden;
}
/* 涨跌色 */
.up {
    color: #e60012 !important;
}
.down {
    color: #009944 !important;
}
/* 顶部城市导航 */
.top-city-bar {
    width: 100%;
    height: 30px;
    line-height: 30px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}
.top-city-bar .city-list a {
    margin: 0 0px;
    color: #666;
}
.top-city-bar .city-list a:hover {
    color: #005bac;
}
.top-city-bar .top-tools {
    float: right;
    color: #fff;
}
.top-city-bar .top-tools a {
    margin: 0 6px;
}
.top-city-bar .reg-btn {
    color: #e60012;
}

/* ========== 修改：主导航蓝条 固定1190px居中 ========== */
.main-header {
    width: 1190px;
    height: 40px;
    background: #005bac;
    line-height: 40px;
    margin: 0 auto;
}
.main-header .logo {
    float: left;
    width: 120px;
}
.main-header .logo span {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}
.main-header .main-nav {
    float: left;
    margin-left: 20px;
}
.main-header .main-nav li {
    float: left;
}
.main-header .main-nav li a {
    display: block;
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
}
.main-header .main-nav li a:hover {
    background: #004a94;
}
.main-header .header-search {
    float: right;
    margin-top: 7px;
}
.main-header .header-search input {
    width: 180px;
    height: 26px;
    border: 0;
    padding: 0 8px;
    font-size: 12px;
    float: left;
    outline: none;
}
.main-header .header-search button {
    width: 50px;
    height: 26px;
    border: 0;
    background: #ff9900;
    color: #fff;
    float: left;
    cursor: pointer;
}

/* 价格指数栏 */
.price-index-bar {
    width: 100%;
    margin-bottom: 5px;
}
/* ========== 头条三栏核心布局 ========== */
.list-toutiao {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 2px;
}
/* 左侧广告栏 固定227px */
.toutiao-ad-left {
    width: 227px;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
    flex-shrink: 0;
}
/* 右侧广告栏 固定227px */
.toutiao-ad-right {
    width: 227px;
    padding: 10px;
    border-left: 1px solid #e0e0e0;
    box-sizing: border-box;
    flex-shrink: 0;
}
/* 中间区域 自适应宽度 + flex上下分布 底部广告贴底 */
.toutiao-main {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* 统一广告位尺寸 79px高 */
.side-ad {
    width: 100%;
    height: 79px;
    background: #f0f0f0;
    margin-bottom: 10px;
    overflow: hidden;
}
.side-ad:last-child {
    margin-bottom: 0;
}
.side-ad img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
/* 头条新闻样式 */
.toutiao-title {
    height: 30px;
    line-height: 30px;
    border-bottom: 2px solid #005bac;
    margin-bottom: 8px;
}
.toutiao-title .tit {
    font-size: 16px;
    font-weight: bold;
    color: #005bac;
}
.toutiao-title .more {
    float: right;
    font-size: 12px;
    color: #999;
}
/* ========== 修复：头条列表日期固定宽度 不被挤压 ========== */
.toutiao-list li {
    height: 28px;
    line-height: 28px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.toutiao-list li a {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.toutiao-list li .date {
    flex: 0 0 50px;
    width: 50px;
    text-align: right;
    color: #999;
    font-size: 12px;
}
/* 中间底部3个横向广告：带12px间距，和左右第5个广告高度一致 */
.middle-ads-row {
    width: 100%;
    overflow: hidden;
    height: 79px;
}
.middle-ads-row .ad-item {
    float: left;
    width: calc(33.3333% - 8px);
    height: 79px;
    overflow: hidden;
    margin-right: 12px;
    background: #f0f0f0;
}
.middle-ads-row .ad-item:last-child {
    margin-right: 0;
}
.middle-ads-row .ad-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}
/* ========== 三栏内容模块 优化版 ========== */
.list-part {
    margin-bottom: 10px;
    overflow: hidden;
}
.part-col {
    float: left;
    width: 388px;
    margin-right: 13px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
}
.part-col:last-child {
    margin-right: 0;
}
/* 栏目标题：上下双层结构 */
.part-title {
    display: block;
    padding: 0;
    border: none;
    background: #fff;
}
/* 上层：标题行 + 左侧缩小红蓝装饰条 + 右移 */
.part-title-head {
    line-height: 38px;
    padding-left: 25px;
    position: relative;
    border-bottom: 2px solid #005bac;
    background: #fff;
}
/* 红蓝装饰条：缩小尺寸 + 右移 + 垂直居中 */
.part-title-head::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 19px;
    background: linear-gradient(to bottom, #005bac 50%, #e60012 50%);
}
.part-title-head .tit {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 38px;
}
/* 下层：标签导航栏 紧凑版 */
.part-title-nav {
    height: 40px;
    line-height: 34px;
    padding: 0 8px;
    background: #ebf3f4;
}
.part-title-nav .tab {
    display: flex;
    align-items: center;
    height: 100%;
}
.part-title-nav .tab a {
    font-size: 14px;
    color: #333;
    padding: 3px 10px;
    line-height: 23px;
    border-radius: 2px;
}
.part-title-nav .tab a:hover {
    color: #005bac;
}
/* 激活标签：深蓝色方块白字 */
.part-title-nav .tab a.active {
    background: #1a52a5;
    color: #fff;
    font-weight: normal;
    border-radius: 2px;
}
/* ========== 修复：板块新闻列表日期固定宽度 不被挤压 ========== */
.news-list {
    padding: 10px 15px;
    min-height: 182px;
}
.news-list li {
    height: 30px;
    line-height: 26px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.news-list li a {
    flex: 1;
    min-width: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.news-list li a:hover {
    color: #005bac;
}
.news-list li .date {
    flex: 0 0 50px;
    width: 50px;
    text-align: right;
    color: #999;
    font-size: 12px;
}
/* 底部走势图区域 */
.mini-chart {
    position: relative;
    height: 138px;
    padding: 0;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
    overflow: hidden;
}
.mini-chart canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.mini-chart .chart-val {
    position: absolute;
    top: 6px;
    right: 15px;
    font-size: 14px;
    font-weight: bold;
}
.mini-chart .chart-foot {
    position: absolute;
    bottom: 4px;
    right: 15px;
    font-size: 12px;
    color: #999;
}
/* 板块底部广告 */
.col-ad {
    border-top: 1px solid #e8e8e8;
    background: #fff;
}
.col-ad img {
    width: 100%;
    height: 70px;
    display: block;
}

/* ========== 修改：页脚搜索蓝条 固定1190px居中 ========== */
.footer-search {
    width: 1190px;
    background: #005bac;
    padding: 15px 0;
    margin: 15px auto 0;
}
.footer-search .search-box {
    width: 600px;
    margin: 0 auto;
}
.footer-search input {
    width: 480px;
    height: 36px;
    border: 0;
    padding: 0 10px;
    font-size: 14px;
    float: left;
    outline: none;
}
.footer-search button {
    width: 100px;
    height: 36px;
    border: 0;
    background: #ff9900;
    color: #fff;
    float: left;
    cursor: pointer;
    font-size: 14px;
}

.footer-link {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.footer-link a {
    margin: 0 10px;
    color: #666;
}
.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #999;
    line-height: 2;
    background: #fff;
}
/* 面包屑 */
.breadcrumb {
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    color: #666;
    padding: 0 5px;
}
.breadcrumb a {
    color: #666;
}
.breadcrumb a:hover {
    color: #005bac;
}
/* 文章详情页 */
.article-detail {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 20px;
    margin-bottom: 10px;
}
.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.article-title {
    font-size: 22px;
    font-weight: bold;
    color: #111;
    line-height: 1.4;
    margin-bottom: 10px;
}
.article-meta {
    font-size: 12px;
    color: #999;
}
.article-meta span {
    margin-right: 15px;
}
.article-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.article-content p {
    margin-bottom: 15px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}
.article-tags {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}
.article-tags a {
    color: #005bac;
    margin: 0 5px;
}
.article-nav {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    overflow: hidden;
}
.article-nav .prev-post {
    float: left;
    width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-nav .next-post {
    float: right;
    width: 48%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-nav a {
    color: #333;
}
.article-nav a:hover {
    color: #005bac;
}
.pagination ul {
    display: inline-block;
    list-style: none;
}
.pagination li {
    display: inline-block;
    margin: 0 4px;
}
.pagination li a,
.pagination li span {
    display: block;
    padding: 4px 10px;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 13px;
    border-radius: 2px;
}
.pagination li a:hover {
    border-color: #005bac;
    color: #005bac;
}
.pagination li .current {
    background: #005bac;
    border-color: #005bac;
    color: #fff;
}
/* 钢材走势图轮播 - 高度修正，完整显示所有元素 */
.mini-chart-slider {
    position: relative;
    height: 145px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
    overflow: hidden;
}
.chart-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.4s ease;
}
.chart-slide {
    width: 33.3333%;
    height: 100%;
    position: relative;
    padding: 6px 15px 0;
    box-sizing: border-box;
    flex-shrink: 0;
}
.chart-slide-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    height: 20px;
    line-height: 20px;
}
.chart-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.chart-num {
    font-size: 14px;
    font-weight: bold;
}
.chart-num em {
    font-style: normal;
    font-size: 12px;
    margin-left: 6px;
}
.chart-line {
    width: 100%;
    height: 72px;
    display: block;
}
/* 底部信息：左更新日期、右近六月数据 */
.slide-footer {
    position: absolute;
    bottom: 6px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    height: 16px;
    line-height: 16px;
}
/* 轮播圆点 - 底部居中，和底部文字同层不重叠 */
.chart-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
    height: 10px;
    align-items: center;
}
.chart-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}
.chart-dots .dot.active {
    background: #005bac;
    width: 20px;
    border-radius: 5px;
}
/* 悬停提示框 */
.chart-tooltip {
    position: absolute;
    background: #666;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: left;
    pointer-events: none;
    z-index: 20;
    display: none;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
}
.chart-tooltip .tip-date {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}
.chart-tooltip .tip-price {
    font-size: 14px;
    font-weight: bold;
}
.chart-tooltip .tip-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #005bac;
    margin-right: 6px;
    vertical-align: middle;
}




/* 修复各板块底部广告位高度，和原设计尺寸一致 */
.col-ad {
    height: 70px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e1e1e1;
}

.col-ad a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}