/* 产品详情页面样式 - 与首页风格统一 */

/* 页面整体布局 */
.product-detail-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 面包屑导航 */
.product-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0 15px 60px;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #6c757d;
    max-width: 100%;
}

.product-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #0056b3;
}

/* 产品标题区域 */
.product-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 40px 60px;
    border-radius: 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.product-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.product-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-change {
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.product-change.positive {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.product-change.negative {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.product-company {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* 图表区域 - 单独一行 */
.chart-section {
    margin-bottom: 30px;
    padding: 0 60px 0 60px;
    max-width: 100%;
}

/* 筛选器区域 - 单独一行 */
.filter-section {
    margin-bottom: 30px;
    padding: 0 60px 0 60px;
    max-width: 100%;
}

/* 主要内容区域 */
.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 60px 0 60px;
    max-width: 100%;
}

/* 导航标签 */
.product-nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    margin-top: 0;
    width: 100%;
    max-width: 600px;
    margin-left: 60px;
}

.product-nav-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #6c757d;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.product-nav-tabs a.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-nav-tabs a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #495057;
}

/* 价格信息卡片 */
.price-info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.price-info-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* 价格数据表格 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.price-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.price-table td {
    color: #6c757d;
    font-size: 14px;
}

.price-table .price-value {
    font-weight: 600;
    color: #2c3e50;
}

.price-table .change-positive {
    color: #28a745;
    font-weight: 600;
}

.price-table .change-negative {
    color: #dc3545;
    font-weight: 600;
}

/* 图表区域 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.chart-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.chart-iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
}

/* 新闻和相关信息 */
.product-secondary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 0 0 60px;
    max-width: 100%;
}

/* 新闻列表 */
.news-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.news-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f3f4;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.news-item a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.news-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* 相关产品 */
.related-products {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.related-products h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.related-table {
    width: 100%;
    border-collapse: collapse;
}

.related-table th,
.related-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.related-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.related-table td a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.related-table td a:hover {
    color: #0056b3;
}

.related-table .price {
    font-weight: 600;
    color: #2c3e50;
}

.related-table .change {
    font-weight: 600;
}

.related-table .change.positive {
    color: #28a745;
}

.related-table .change.negative {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-main-content {
        grid-template-columns: 1fr;
    }
    
    .product-secondary-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 0;
    }
    
    .product-breadcrumb {
        padding: 15px 0 15px 20px;
    }
    
    .product-header {
        padding: 25px 0 25px 20px;
    }
    
    .product-main-content,
    .product-secondary-content {
        padding: 0 0 0 20px;
    }
    
    .product-name {
        font-size: 24px;
    }
    
    .price-info-card,
    .chart-container,
    .news-section,
    .related-products {
        padding: 20px;
    }
}

/* 动画效果 */
.product-header,
.price-info-card,
.chart-container,
.news-section,
.related-products {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-header:hover,
.price-info-card:hover,
.chart-container:hover,
.news-section:hover,
.related-products:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 历史数据页面专用样式 */

/* 筛选器容器 */
.filter-container {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
}

.filter-container h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

/* 原来的筛选器样式 */
.mn_m_selr {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.mn_m_selr dl {
    margin: 0;
    padding: 0;
}

.mn_m_selr dd {
    margin: 0 0 12px 0;
    padding: 0;
    display: block;
}

.mn_m_selr dd:last-child {
    margin-bottom: 0;
}

.mn_m_selr dd span {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
    display: inline-block;
    min-width: 60px;
}

.mn_m_selr dd em {
    font-style: normal;
    display: block;
    margin-top: 4px;
}

.mn_m_selr dd label {
    display: inline-block;
    margin: 2px 0;
    padding: 0 6px; /* 不再使用左侧 padding，让隐藏的 input 占位 */
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-radius: 3px;
    line-height: 30px; /* 与精灵高度一致，文字垂直居中 */
    position: relative;
}

.mn_m_selr dd label:hover { /* do not override background-image from common.css */
    background-color: #e9ecef;
}

.mn_m_selr dd label.omm {
    background: #007bff;
    color: white;
}

.mn_m_selr dd label input[type="checkbox"] {
    display: inline-block;
    margin-right: 6px;
    width: 23px;
    height: 30px;
    vertical-align: middle;
    opacity: 0; /* 使用透明 input 占位，保持与精灵对齐 */
}

.mn_m_selr dd label.time-disabled{opacity:0.5;cursor:not-allowed}

/* 当某类筛选无可用选项时，强制隐藏该行 */
.mn_m_selr dd.hidden-row {
    display: none !important;
}

.mn_m_selr.hidden-all {
    display: none !important;
}

/* 筛选器分组 */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-group {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #6c757d;
    width: 100%;
}

.filter-option:hover {
    background: #e9ecef;
}

.filter-option.active {
    background: #007bff;
    color: white;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* 数据表格区域 */
.data-table-section {
    margin-top: 20px;
    padding: 0 60px 0 60px;
    max-width: 100%;
}

.data-table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

/* 原始表格样式优化 */
.rld_lut {
    margin-bottom: 15px;
}

.rld_lut table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rld_lut table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f4;
    text-align: left;
    vertical-align: middle;
}

.rld_lut table tr:first-child td {
    background: #f8f9fa;
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.rld_lut table tr:hover {
    background: #f8f9fa;
}

.rld_lut .slru_m {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.rld_lut .slru_m:hover {
    color: #0056b3;
}

.data-table-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* 已选筛选条件 */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.close-filter {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-filter:hover {
    opacity: 1;
}

/* 历史数据表格 */
.data-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.historical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.historical-table th,
.historical-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.historical-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.historical-table td {
    color: #6c757d;
    font-size: 14px;
}

.historical-table .price-value {
    font-weight: 600;
    color: #2c3e50;
}

.vendor-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.vendor-link:hover {
    color: #0056b3;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.page-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.page-btn:hover {
    background: #0056b3;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 原来的分页样式 */
.page_p {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.page_txt {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 10px;
    text-align: center;
}

.page_btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.page_btn:hover {
    background: #0056b3;
}

.wap_page {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.wap_page ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wap_page a {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.wap_page a:hover {
    background: #0056b3;
}

/* 响应式设计 - 历史数据页面 */
@media (max-width: 1024px) {
    .chart-section,
    .filter-section,
    .data-table-section {
        padding: 0 40px;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-option {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .chart-section,
    .filter-section,
    .data-table-section {
        padding: 0 20px;
    }
    
    .data-table-container {
        padding: 20px;
    }
    
    .filter-container {
        padding: 20px;
    }
    
    .historical-table {
        font-size: 12px;
    }
    
    .historical-table th,
    .historical-table td {
        padding: 8px 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}
