/* 产品详情页样式 - show_carbon.html */

/* 产品详情页 */
.product-detail-box { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 2px 12px rgba(45, 138, 95, 0.08); }

/* 产品头部：图片+基本信息 */
.product-header { display: flex; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #e8f2ed; margin-bottom: 30px; }
.product-thumb { width: 480px; height: 360px; flex-shrink: 0; border-radius: 12px; overflow: hidden; position: relative; background: #f0f0f0; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .tag { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #2d8a5f, #4ca97a); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; }

.product-basic { flex: 1; }
.product-basic h1 { font-size: 24px; color: #1a5c3e; margin-bottom: 16px; line-height: 1.4; }
.product-basic .desc { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 20px; }

.product-attrs { margin-bottom: 20px; }
.attr-row { display: flex; gap: 24px; margin-bottom: 16px; }
.attr-item { display: flex; align-items: center; font-size: 15px; min-width: 200px; }
.attr-item .label { color: #888; width: 90px; flex-shrink: 0; white-space: nowrap; }
.attr-item .label::after { content: '：'; }
.attr-item .value { color: #333; }
.attr-item .value.highlight-green { color: #2d8a5f; font-weight: 600; }
.attr-item .value.highlight-blue { color: #1890ff; font-weight: 600; }
.attr-item .value.highlight-orange { color: #fa8c16; font-weight: 600; }

.product-price { display: flex; align-items: baseline; gap: 8px; padding: 16px 20px; background: #f5f9f7; border-radius: 8px; margin-bottom: 20px; }
.product-price .label { font-size: 14px; color: #888; }
.product-price .value { font-size: 28px; font-weight: 700; color: #2d8a5f; }
.product-price .unit { font-size: 14px; color: #666; }

/* 碳汇统计数据 */
.carbon-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px; background: #f5f7fa; border-radius: 12px; margin-bottom: 30px; }
.carbon-stats .stat-item { text-align: center; padding: 16px; background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; }
.carbon-stats .stat-value { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 8px; }
.carbon-stats .stat-label { font-size: 13px; color: #888; }

/* 产品详情内容 */
.product-content { padding-top: 10px; }
.content-title { font-size: 18px; color: #1a5c3e; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e8f2ed; display: flex; align-items: center; gap: 10px; }
.content-title::before { content: ''; width: 4px; height: 18px; background: #2d8a5f; border-radius: 2px; }

.content-meta { display: flex; gap: 24px; margin-bottom: 20px; font-size: 13px; color: #888; }
.content-meta span { display: flex; align-items: center; gap: 4px; }

.content-body { font-size: 16px; line-height: 2; color: #444; }
.content-body p { margin-bottom: 16px; }
.content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }

/* 上下篇 */
.nav-links { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e8f2ed; }
.nav-links a { color: #666; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover { color: #2d8a5f; }
.nav-links .title { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

@media (max-width: 768px) {
    .product-header { flex-direction: column; }
    .product-thumb { width: 100%; height: 220px; }
    .attr-row { flex-direction: column; gap: 12px; }
    .carbon-stats { grid-template-columns: repeat(2, 1fr); }
}
