/* ==========================================
   产品行情详情页（SEO 落地页，跟随站点主题）
   ========================================== */

/* 面包屑（与主站标签页入口同风格，独立定义避免依赖分类页类名） */
.mian-bao-nav {
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.mian-bao-nav a {
    color: var(--text-secondary);
    text-decoration: none;
}

.mian-bao-nav a:hover {
    color: var(--theme-color, #16b777);
}

.mian-bao-nav .sep {
    margin: 0 6px;
}

.mian-bao-nav .current {
    color: var(--text-primary);
}

/* 标题区 */
.product-head {
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.product-sub {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 今日价卡片 */
.product-today {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.product-price-card {
    text-align: center;
}

.product-price-market {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-secondary);
}

.product-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.product-price-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--theme-color, #16b777);
    font-variant-numeric: tabular-nums;
}

.product-price-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-price-range {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 分区标题 */
.product-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

/* 周期卡片 */
.product-periods-card {
    margin-bottom: 15px;
}

.product-periods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product-period-item {
    text-align: center;
    padding: 12px 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
}

.product-period-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.product-period-price {
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.product-period-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.product-period-change {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}

.product-period-change.up { color: #e64545; }
.product-period-change.down { color: #16a34a; }

.product-period-date {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 趋势图卡片 */
.product-chart-card {
    margin-bottom: 15px;
}

.product-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.product-range-tabs {
    display: flex;
    gap: 6px;
}

.product-range-tab {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}

.product-range-tab:hover {
    color: var(--theme-color, #16b777);
    border-color: var(--theme-color, #16b777);
}

.product-range-tab.active {
    background: var(--theme-color, #16b777);
    border-color: var(--theme-color, #16b777);
    color: #fff;
}

.product-unit-tip {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-chart {
    width: 100%;
    height: 400px;
}

/* 行情解读 */
.product-interpretation {
    margin-bottom: 15px;
}

.product-interpretation p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-primary);
}

/* 历史价格表 */
.product-history-card {
    margin-bottom: 15px;
}

.product-table-wrap {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.product-table th,
.product-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.product-table th {
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--bg-secondary, transparent);
}

.product-table td.up { color: #e64545; }
.product-table td.down { color: #16a34a; }

/* 相关产品 */
.product-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-related-item {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all .2s;
}

.product-related-item:hover {
    color: var(--theme-color, #16b777);
    border-color: var(--theme-color, #16b777);
}

.product-disclaimer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin: 15px 0 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-periods {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-chart {
        height: 300px;
    }
}
