/* =================
   煤源详情页面样式
   ================= */

/* 详情头部 */
.detail-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 40px 0; 
    margin-bottom: 30px; 
}

.detail-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.detail-title { 
    font-size: 32px; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

.detail-subtitle { 
    font-size: 16px; 
    opacity: 0.9; 
}

/* 详情主体 */
.detail-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
    margin-bottom: 40px; 
}

/* 主要信息卡片 */
.main-info { 
    background: white; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.1); 
}

/* 侧边栏信息 */
.sidebar-info { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.info-section { 
    margin-bottom: 30px; 
}

.info-section:last-child { 
    margin-bottom: 0; 
}

.section-title { 
    font-size: 18px; 
    font-weight: bold; 
    color: #333; 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid #f0f0f0; 
}

.specs-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}

.spec-item { 
    background: #f8f9fa; 
    border-radius: 8px; 
    padding: 15px; 
    text-align: center; 
}

.spec-label { 
    font-size: 13px; 
    color: #666; 
    margin-bottom: 5px; 
}

.spec-value { 
    font-size: 18px; 
    font-weight: bold; 
    color: #333; 
}

/* 操作卡片 */
.action-card { 
    background: white; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.1); 
}

.price-card { 
    background: white; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.1); 
    text-align: center; 
}

.price-label { 
    color: #909399; 
    font-size: 14px; 
    margin-bottom: 10px; 
}

.price-value { 
    font-size: 36px; 
    font-weight: bold; 
    color: #f5576c; 
    margin-bottom: 5px; 
}

.price-unit { 
    color: #909399; 
    font-size: 14px; 
}

/* 基本信息项 */
.info-item { 
    padding: 12px 0; 
    border-bottom: 1px solid #f0f0f0; 
    display: flex; 
}

.info-item:last-child { 
    border-bottom: none; 
}

.info-label { 
    width: 120px; 
    color: #909399; 
    font-size: 14px; 
}

.info-value { 
    flex: 1; 
    color: #333; 
    font-size: 14px; 
}

/* 详细说明 */
.description { 
    line-height: 1.8; 
    color: #666; 
    font-size: 15px; 
}

.action-btn { 
    width: 100%; 
    padding: 15px; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s; 
    margin-bottom: 10px; 
}

.btn-primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); 
}

.btn-outline { 
    background: white; 
    color: #4E8EF7; 
    border: 2px solid #4E8EF7; 
}

.btn-outline:hover { 
    background: #f0f5ff; 
    transform: translateY(-2px); 
}

.btn-outline.favorited { 
    background: #fff0f0; 
    color: #f5576c; 
    border-color: #f5576c; 
}

/* 联系信息 */
/* 元数据信息 */
.detail-meta { 
    display: flex; 
    gap: 20px; 
    font-size: 14px; 
    color: rgba(255,255,255,0.9); 
}

.detail-meta span { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* 相关推荐 */
.recommendations { 
    background: white; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.1); 
}

.rec-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}

.rec-item { 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 15px; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.rec-item:hover { 
    border-color: #667eea; 
    box-shadow: 0 4px 12px rgba(0,0,0,.1); 
    transform: translateY(-2px); 
}

.rec-name { 
    font-size: 16px; 
    font-weight: bold; 
    margin-bottom: 8px; 
}

.rec-specs { 
    font-size: 13px; 
    color: #666; 
    margin-bottom: 8px; 
}

.rec-price { 
    font-size: 18px; 
    font-weight: bold; 
    color: #f5576c; 
}

/* =================
   煤源详情响应式布局
   ================= */

/* 平板端适配 */
@media (max-width: 992px) {
    .detail-header {
        padding: 30px 0;
    }
    
    .detail-title {
        font-size: 26px;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .detail-header {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .detail-container {
        padding: 0 15px;
    }
    
    .detail-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .detail-meta {
        flex-wrap: wrap;
        gap: 10px 15px;
        font-size: 13px;
    }
    
    /* 主内容区域 */
    .detail-content {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .main-info {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    /* 侧边栏改单列 */
    .sidebar-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 区块标题 */
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .info-section {
        margin-bottom: 20px;
    }
    
    /* 煤质指标网格 */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .spec-item {
        padding: 12px 10px;
        border-radius: 6px;
    }
    
    .spec-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .spec-value {
        font-size: 16px;
    }
    
    /* 基本信息项 */
    .info-item {
        padding: 10px 0;
        flex-wrap: wrap;
    }
    
    .info-label {
        width: 100px;
        font-size: 13px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    /* 价格卡片 */
    .price-card {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .price-label {
        font-size: 13px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .price-unit {
        font-size: 13px;
    }
    
    /* 操作卡片 */
    .action-card {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    /* 详细说明 */
    .description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 相关推荐 */
    .recommendations {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .rec-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rec-item {
        padding: 12px;
    }
    
    .rec-name {
        font-size: 15px;
    }
    
    .rec-specs {
        font-size: 12px;
    }
    
    .rec-price {
        font-size: 16px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .detail-title {
        font-size: 18px;
    }
    
    .detail-meta {
        font-size: 12px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .spec-item {
        padding: 10px 8px;
    }
    
    .spec-value {
        font-size: 14px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        width: 100%;
    }
}
