/* 各品类行情页：概览、资讯与报价表沿用同一条内容边界。 */
.product-market-page { background: #f8fbfd; color: #0b3158; }
.product-market-page .shell { width: min(1200px, calc(100% - 60px)); }
.product-market-page main.market-main { width: 100%; }
.product-market-page .market-hero {
    min-height: 138px;
    padding: 20px max(30px, calc((100% - 1200px) / 2));
    background-position: center 55%;
}
.product-market-page .market-hero h1 { font-size: clamp(34px, 3.4vw, 48px); }
.product-market-page .market-hero p { font-size: 16px; }
.product-market-page .market-hero .overview { min-width: 450px; }

.pe-content { width: min(1200px, calc(100% - 60px)); margin-inline: auto; }
.pe-category-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.pe-category-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.pe-category-links a {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-width: 100px; min-height: 38px; padding: 7px 18px;
    border: 1px solid #d9e4f0; border-radius: 5px; background: #fff;
    color: #0d3a67; font-size: 14px; line-height: 1; white-space: nowrap;
}
.pe-category-links a:hover { border-color: #91b0cc; background: #eff6fc; }
.pe-category-links a[aria-current] { border-color: #0b385e; background: #0b385e; color: #fff; font-weight: 700; }
.pe-category-links a[aria-current]::after { position: absolute; right: 38%; bottom: -1px; left: 38%; height: 3px; background: #f5b63e; content: ""; }
.pe-category-updated { flex: none; color: #68809a; font-size: 12px; white-space: nowrap; }

.pe-overview-grid { display: grid; grid-template-columns: minmax(0, 2.75fr) minmax(310px, 1fr); gap: 12px; align-items: stretch; }
.pe-market-overview, .pe-related-news { min-width: 0; min-height: 236px; padding: 10px 14px 12px; background: #fff; border-radius: 5px; }
.pe-market-overview h2, .pe-related-heading h2, .product-market-page .panel-heading h2 {
    display: flex; align-items: center; gap: 15px; color: #092f56;
    font-size: 21px; line-height: 1.3; font-weight: 780;
}
.pe-market-overview h2::before, .pe-related-heading h2::before, .product-market-page .panel-heading h2::before {
    display: block; flex: none; width: 5px; height: 25px; border-radius: 2px; background: #f0b443; content: "";
}
.pe-feature-layout { display: grid; grid-template-columns: 140px minmax(190px, .8fr) minmax(320px, 1.3fr); gap: 30px; align-items: center; margin-top: 12px; }
.pe-feature-image { width: 140px; height: 143px; border-radius: 9px; object-fit: cover; }
.pe-feature-details { min-width: 0; align-self: center; }
.pe-feature-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.pe-feature-name strong { color: #0b3159; font-size: 21px; line-height: 1.2; }
.pe-feature-name span { padding: 4px 11px; border-radius: 4px; background: #dcefff; color: #0b4f8a; font-size: 12px; }
.pe-feature-details dl { display: grid; gap: 6px; }
.pe-feature-details dl div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; gap: 3px; }
.pe-feature-details dt { color: #52708f; font-size: 13px; }
.pe-feature-details dd { color: #0d3258; font-size: 14px; font-weight: 650; min-width: 0; }
.pe-feature-details .pe-feature-price dd { color: #092e56; font-size: 24px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.pe-feature-details .pe-feature-price small { font-size: 12px; font-weight: 650; white-space: nowrap; }
.pe-feature-details .pe-feature-price a, .pe-chart-empty a { color: #0e5794; font-size: 14px; }
.pe-feature-details .pe-feature-change { font-variant-numeric: tabular-nums; }
.pe-feature-details .pe-change-up { color: #c83735; }
.pe-feature-details .pe-change-down { color: #129560; }
.pe-feature-details .pe-change-flat { color: #59748e; }
.pe-feature-chart { min-width: 0; align-self: stretch; }
.pe-feature-chart h3 { margin: 1px 0 2px; color: #0a335c; font-size: 13px; font-weight: 750; }
.pe-feature-chart svg { display: block; width: 100%; max-height: 156px; overflow: visible; }
.pe-chart-grid line { stroke: #e0eaf3; stroke-width: .9; }
.pe-chart-grid text { fill: #6b85a2; font-size: 10px; font-variant-numeric: tabular-nums; }
.pe-chart-line { fill: none; stroke: #153e6c; stroke-width: 1.4; }
.pe-chart-dot { fill: #efae36; stroke: #efae36; }
.pe-chart-value { fill: #173d66; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pe-chart-date { fill: #69829d; font-size: 10px; font-variant-numeric: tabular-nums; }
.pe-chart-empty, .pe-feature-empty { display: flex; align-items: center; min-height: 135px; color: #6c8198; font-size: 13px; }

.pe-related-news { display: flex; flex-direction: column; }
.pe-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pe-related-heading a { color: #0b5c9a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pe-related-heading a:hover { text-decoration: underline; }
.pe-related-news ul { display: grid; gap: 13px; margin: 17px 0 8px; padding: 0 8px; list-style: none; }
.pe-related-news li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; font-size: 12px; }
.pe-related-news li time { color: #64809b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pe-related-news li a { overflow: hidden; color: #123b63; text-overflow: ellipsis; white-space: nowrap; }
.pe-related-news li a:hover { color: #0c64a2; text-decoration: underline; }
.pe-related-news .pe-related-empty { color: #71879e; }
.pe-related-image { flex: 1; min-height: 74px; margin-top: auto; border-radius: 5px; background: #eaf5fb url("home-hero-background.png") right bottom / 300% auto no-repeat; }

.product-market-page .quote-panel { width: min(1200px, calc(100% - 60px)); margin: 10px auto 32px; border: 0; border-radius: 0; background: transparent; }
.product-market-page .panel-heading { justify-content: flex-start; padding: 4px 0 12px; gap: 25px; }
.product-market-page .panel-heading h2 { font-size: 21px; }
.product-market-page .panel-heading p { display: none; }
.product-market-page .view-switch { gap: 13px; padding: 0; border-radius: 0; background: transparent; }
.product-market-page .view-switch a { position: relative; min-width: 94px; padding: 8px 18px; border: 1px solid #dae5f0; border-radius: 5px; background: #fff; color: #0d3b6a; font-size: 13px; text-align: center; }
.product-market-page .view-switch a:hover { background: #eef6fc; }
.product-market-page .view-switch a[aria-current] { border-color: #0b385e; background: #0b385e; color: #fff; }
.product-market-page .view-switch a[aria-current]::after { position: absolute; right: 38%; bottom: -1px; left: 38%; height: 3px; background: #f5b63e; content: ""; }
.product-market-page .quote-filters { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.product-market-page .quote-filters:not(.catalog-filters) { position: relative; }
.product-market-page .filter-fields:not(.catalog-fields) { grid-template-columns: minmax(250px, 1.5fr) minmax(190px, 1fr) minmax(255px, 1.1fr) max-content; gap: 20px; align-items: center; }
.product-market-page .filter-fields .field { display: flex; align-items: center; gap: 9px; }
.market-index .quote-filters .filter-fields > .field:has(select[name="category"]) { display: none; }
.product-market-page .filter-fields .field label { flex: none; margin: 0; color: #24476c; font-size: 12px; }
.product-market-page .field input, .product-market-page .field select { height: 36px; padding-inline: 10px; background: #fff; }
.product-market-page .filter-fields .filter-actions { align-self: center; }
.product-market-page .filter-actions { gap: 10px; }
.product-market-page .filter-actions button { min-width: 94px; }
.product-market-page .filter-actions a { display: inline-flex; align-items: center; justify-content: center; min-width: 85px; height: 36px; padding: 0 12px; border: 1px solid #d9e4ee; border-radius: 5px; background: #fff; color: #1c4977; }
.product-market-page .filter-toggle-row { position: static; justify-content: center; align-items: center; gap: 9px; width: 100%; height: 20px; min-height: 20px; margin: 1px 0 0; }
.product-market-page .filter-toggle-row::before, .product-market-page .filter-toggle-row::after { flex: 1; height: 1px; background: #dce8f3; content: ""; }
.product-market-page .quote-filters:not(.filters-collapsed) .filter-toggle-row { margin-top: -11px; }
.product-market-page .filter-toggle { color: #0e4c80; font-size: 12px; }
.product-market-page .choice-filters { margin-top: 10px; padding: 6px 12px; border: 1px solid #dce8f3; border-radius: 5px; background: #fff; }
.product-market-page .choice-filter { padding-block: 5px; }
.product-market-page .table-meta { padding: 14px 0 12px; color: #365878; }
.product-market-page .table-meta strong { color: #0c345d; }
.product-market-page .table-scroll { overflow-x: auto; border: 1px solid #dce7f1; border-radius: 5px; background: #fff; }
.product-market-page .quote-date-table { min-width: 900px; }
.product-market-page .quote-date-table th { color: #1a4068; background: #f6f9fc; }
.product-market-page .quote-date-table td { color: #26496b; }
.product-market-page .quote-date-table .quote-day-highlight { background: #e8f4fd; }
.product-market-page .quote-date-table .quote-day-highlight .price { color: #10375e; font-weight: 750; }
.product-market-page .quote-day-select { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; white-space: nowrap; cursor: pointer; }
.product-market-page .quote-day-select:hover { color: #0c5a95; }
.product-market-page .quote-day-select:focus-visible { outline: 2px solid #0c5a95; outline-offset: 2px; border-radius: 2px; }
.product-market-page .quote-date-table tbody tr:has(.quote-compare-option:checked) { background: #eff7fd; }
.product-market-page .quote-date-table tbody tr:hover { background: #f5faff; }
.product-market-page .quote-date-table .product-cell strong { color: #0c355d; }
.product-market-page .quote-date-table .price { font-size: 12px; }
.product-market-page .pagination { justify-content: center; padding: 18px 0; }
.product-market-page .pagination .page-size { margin-right: auto; }
.product-market-page .pagination a { min-width: 30px; text-align: center; }
.product-market-page .pagination a:hover { border-color: #b8cede; }

@media (max-width: 1180px) {
    .pe-overview-grid { grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); }
    .pe-feature-layout { grid-template-columns: 110px minmax(160px, 1fr); gap: 15px; }
    .pe-feature-image { width: 110px; height: 120px; }
    .pe-feature-chart { grid-column: 1 / -1; }
    .pe-feature-chart svg { height: 135px; }
    .product-market-page .filter-fields:not(.catalog-fields) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .product-market-page .shell, .pe-content, .product-market-page .quote-panel { width: calc(100% - 36px); }
    .product-market-page .market-hero { padding-inline: 18px; }
    .pe-overview-grid { grid-template-columns: 1fr; }
    .pe-feature-layout { grid-template-columns: 120px minmax(0, 1fr) minmax(260px, 1.2fr); }
    .pe-feature-image { width: 120px; height: 130px; }
    .pe-feature-chart { grid-column: auto; }
    .pe-related-news { min-height: 185px; }
}
@media (max-width: 660px) {
    .product-market-page .market-hero { min-height: 0; }
    .product-market-page .market-hero .overview { min-width: 0; }
    .pe-category-strip { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 13px; }
    .pe-category-links { gap: 6px; }
    .pe-category-links a { min-width: 0; min-height: 34px; padding-inline: 12px; font-size: 12px; }
    .pe-feature-layout { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
    .pe-feature-image { width: 90px; height: 105px; }
    .pe-feature-name strong { font-size: 18px; }
    .pe-feature-details dl div { grid-template-columns: 68px minmax(0, 1fr); }
    .pe-feature-details .pe-feature-price dd { font-size: 19px; }
    .pe-feature-chart { grid-column: 1 / -1; }
    .product-market-page .panel-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .product-market-page .filter-fields:not(.catalog-fields) { grid-template-columns: 1fr; gap: 9px; }
    .product-market-page .quote-filters:not(.catalog-filters) { padding-right: 0; }
    .product-market-page .filter-toggle-row { height: 20px; margin-top: 1px; }
    .product-market-page .filter-fields .filter-actions { justify-self: stretch; }
    .product-market-page .pagination .page-size { width: 100%; }
}
