/* 主页专用样式 */

/* 行业资讯板块 */
.industry-news-section {
    background-color: #ffffff;
    padding: 12.5px 0;
    margin-bottom: 10px;
}

.industry-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
}

.industry-news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 3px solid #951D1D;
}

.industry-news-section .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #951D1D;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    margin: 0;
}

.industry-news-section .more-link {
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.industry-news-section .more-link:hover {
    opacity: 0.7;
}

/* 资讯网格布局 */
.industry-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 资讯卡片 */
.industry-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image .news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industry-card:hover .news-img {
    transform: scale(1.05);
}

/* 图片上的遮罩层 */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%);
    padding: 20px 15px 15px;
    display: flex;
    align-items: flex-end;
}

.overlay-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.industry-card:hover .overlay-title {
    color: #FCCA00;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999999;
    padding: 12px 15px;
    background-color: #ffffff;
    border-top: 1px solid #EEEEEE;
}

.card-date::before {
    content: '📅 ';  /* 日期 emoji */
    margin-right: 4px;
}

.card-source::before {
    content: '📰 ';  /* 来源 emoji */
    margin-right: 4px;
}

/* 响应式设计 - PC端大屏 (891px-1400px) */
@media (min-width: 891px) and (max-width: 1400px) {
    .industry-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 删除 @media (max-width: 768px) - 移动端样式在 mobile-pure.css */

/* 主要内容区域 */
.main-content {
    padding: 0;
    background-color: #f5f5f5;
}

/* 煤种Tab切换组件 */
.coal-type-tabs {
    max-width: 1800px;
    margin: 20px auto;
    padding: 0 60px;
}

.tabs-container {
    display: flex;
    gap: 10px;
    background-color: #f5f6fa;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

.tab-item {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.tab-item:hover {
    border-color: #951D1D;
    color: #951D1D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(149, 29, 29, 0.1);
}

.tab-item.active {
    background: linear-gradient(135deg, #951D1D 0%, #c0392b 100%);
    border-color: #951D1D;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(149, 29, 29, 0.3);
}

.tab-icon {
    font-size: 20px;
}

.tab-text {
    font-size: 16px;
}

/* 动力煤市场板块 */
.coal-market {
    max-width: 1800px;
    margin: 15px auto;
    padding: 0 60px;
}

.market-header {
    position: relative;
    padding-top: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.market-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.market-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
}

/* 市场涨跌ICON */
.trend-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    position: relative;
    background-color: #ff4d4f;
    border-radius: 50%;
}

.trend-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #ffffff;
}

/* 分割线 - 默认动力煤颜色 */
.divider-line {
    height: 5px;
    background-color: #951D1D;
    position: relative;
    flex: 1;
    margin: 0 30px;
}

/* NB指数区域外层 - 居中 */
.nb-index-section-inline {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* NB指数内联样式 */
.nb-index-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 40px;
    background-color: #951D1D;
    border-radius: 8px;
    height: 130px;
    min-width: 1200px;
}

/* 各煤种背景色 */
.coking-coal-bg {
    background-color: #727272 !important;
}

.anthracite-coal-bg {
    background-color: #817F26 !important;
}

.coke-bg {
    background-color: #951D1D !important;
}

.semicoke-bg {
    background-color: #4F4F4F !important;
}

.briquette-bg {
    background-color: #215476 !important;
}

/* NB指数容器 - 默认动力煤颜色 */
.nb-index-container {
    width: 1159px;
    height: 124px;
    background-color: #951D1D;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-radius: 8px;
    position: relative;
}

/* 炼焦煤颜色 #727272 */
.coal-market.coking-coal .divider-line {
    background-color: #727272 !important;
}

/* 无烟煤颜色 #817F26 */
.coal-market.anthracite-coal .divider-line {
    background-color: #817F26 !important;
}

/* 焦炭颜色 #951D1D */
.coal-market.coke-market .divider-line {
    background-color: #951D1D !important;
}

/* 兰炭颜色 #4F4F4F */
.coal-market.semicoke-market .divider-line {
    background-color: #4F4F4F !important;
}

/* 块煤颜色 #215476 */
.coal-market.briquette-market .divider-line {
    background-color: #215476 !important;
}

/* 动力煤专区链接 */
.market-zone {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    color: #1890ff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.market-zone:hover {
    opacity: 0.8;
}

/* 向右箭头ICON */
.arrow-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.arrow-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #1890ff;
}

/* 动力煤NB指数模块 */
.nb-index-section {
    max-width: 1800px;
    margin: 10px auto;
    padding: 0 60px;
    display: flex;
    justify-content: center;
}

/* 左侧Logo */
.nb-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nb-logo-img {
    height: 70px;
    width: auto;
}

/* 右侧指数卡片区 */
.index-carousel-home {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    position: relative;
}

/* 首页轮播按钮 */
.carousel-btn-home {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #951D1D 0%, #6C1515 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn-home:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(149, 29, 29, 0.4);
}

.carousel-btn-home:active {
    transform: scale(0.95);
}

.carousel-btn-home:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn-home:disabled:hover {
    transform: none;
    box-shadow: none;
}

.index-cards {
    flex: 1;
    display: flex;
    gap: 15px;
    margin: 0;
    position: relative;
    overflow: hidden;
    height: 70px;
}

/* 卡片容器动画 */
.index-cards-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* 上下滑动动画 */
@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.index-cards.slide-out {
    animation: slideOutDown 0.5s ease-out forwards;
}

.index-cards.slide-in {
    animation: slideInUp 0.5s ease-out forwards;
}

/* 单个指数卡片 */
.index-card {
    width: 200px;
    height: 70px;
    background-color: #CECECE;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 4px 12px 8px;
    position: relative;
}

/* 港口名称 */
.port-name {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin-bottom: 6px;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
}

/* 价格和涨跌信息区 */
.change-info {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

/* 价格 */
.price {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    line-height: 1;
}

/* 涨跌信息列 */
.change-info > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* 涨跌数值 */
.change-value {
    font-size: 18px;
    font-weight: bold;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    line-height: 1;
    position: relative;
    top: -2px;
}

/* 涨跌百分比 - 隐藏 */
.change-percent {
    display: none;
}

/* 下跌样式-绿色 */
.change-value.down,
.change-percent.down {
    color: #00AA00;
}

/* 上涨样式-红色 */
.change-value.up,
.change-percent.up {
    color: #FF0000;
}

/* 三个平行模块 */
.three-modules {
    max-width: 1800px;
    margin: 20px auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    top: -10px;
}

/* 单个模块盒子 */
.module-box {
    height: 410px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 模块标题 */
.module-title {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    border-bottom: 2px solid #951D1D;
    padding-bottom: 10px;
}

/* 图表容器 */
.chart-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#priceChart {
    max-width: 100%;
    max-height: 100%;
}

/* 图例 */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666666;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* 市场速递模块内容 */
.news-list-module {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.news-item-module {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #E0E0E0;
}

.news-item-module:last-child {
    border-bottom: none;
}

.news-title-module {
    font-size: 15px;
    color: #333333;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    cursor: pointer;
    transition: color 0.3s;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.news-title-module:hover {
    color: #951D1D;
}

.news-date-module {
    font-size: 13px;
    color: #666666;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    white-space: nowrap;
    margin-left: 10px;
}

/* 更多链接容器 */
.more-link-container {
    text-align: right;
    margin-top: 10px;
}

.more-link-blue {
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    transition: opacity 0.3s;
}

.more-link-blue:hover {
    opacity: 0.8;
}

/* Banner横幅 */
.banner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    max-height: 158px; /* 与图片实际高度一致 */
    padding: 0; /* 确保无内边距 */
    margin-top: 0 !important; /* 不需要负margin */
    line-height: 0; /* 消除行高影响 */
    display: block; /* 块级元素 */
    position: relative; /* 确保层级 */
}

.banner-img {
    width: 100%;
    height: 158px; /* 与实际图片高度一致 */
    object-fit: contain; /* 等比例缩放 */
    object-position: center; /* 居中显示 */
    background: transparent; /* 透明背景,不遮挡页眉 */
    display: block;
    margin: 0; /* 确保无间距 */
    padding: 0; /* 确保无内边距 */
    vertical-align: top; /* 防止图片底部间隙 */
}

/* Banner轮播区域高度限制 */
.banner-carousel {
    max-height: 230px !important;
    background: #f5f5f5 !important;
}

.banner-slide img {
    height: 230px !important;
    object-fit: contain !important; /* 等比例缩放 */
    object-position: center !important;
    background: #f5f5f5 !important;
}

/* 通用板块样式 */
.market-news,
.chart-section {
    background-color: #ffffff;
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
    border-radius: 5px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 18px;
    color: #333333;
    font-weight: bold;
}

.more-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    color: #ff0000;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    color: #333333;
    font-size: 14px;
    cursor: pointer;
}

.news-title:hover {
    color: #ff0000;
}

.news-date {
    color: #999999;
    font-size: 13px;
    white-space: nowrap;
}

/* 图表区域 */
.chart-container {
    height: 300px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.chart-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 16px;
}

/* 三栏信息 */
.info-columns {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-block {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
}

/* 页脚 */
/* 页脚样式 */
.footer {
    background-color: #333333;
    color: #ffffff;
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
}

/* 顶部区域 - Logo、公司名、链接 */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* 左侧Logo和公司名 */
.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 80px;
    height: 80px;
}

.footer-company {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
}

/* 右侧信息区 */
.footer-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #FCCA00;
}

.footer-email {
    color: #ffffff;
    font-size: 16px;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
}

/* 分割线 */
.footer-divider {
    height: 1px;
    background-color: #555555;
    margin: 20px 0;
}

/* 底部标语 */
.footer-slogan {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #CCCCCC;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    padding-top: 10px;
}

/* 删除 @media (max-width: 768px) - 移动端样式在 mobile-pure.css */

/* 炼焦煤颜色强制覆盖 - 放在最后确保最高优先级 */
.coal-market.coking-coal .divider-line {
    background-color: #4F4F4F !important;
}

.coking-coal-nb .nb-index-container {
    background-color: #4F4F4F !important;
}

/* 广告位区域 */
.ad-section {
    max-width: 1800px;
    margin: 20px auto; /* 从30px减少到20px */
    padding: 0 60px;
}

.ad-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* 从20px减少到15px */
}

.ad-item {
    display: block;
    width: 100%;
    height: 120px; /* 从180px减少到120px */
    overflow: hidden;
    border-radius: 6px; /* 从8px减少到6px */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* 减弱阴影 */
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-item:hover {
    transform: translateY(-2px); /* 从3px减少到2px */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); /* 减弱悬浮阴影 */
}

.ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
