/* Minimal research workspace: typography, open surfaces and sharp edges. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: #172c46;
  background: #ffffff;
  --surface: #ffffff;
  --muted: #5e7189;
  --line: #dbe5f0;
  --ink: #172c46;
  --accent: #1765d1;
  --accent-hover: #1253ae;
  --accent-active: #10458f;
  --control-line: #91a6bf;
  --accent-soft: #eaf3ff;
}
* { box-sizing: border-box; }
.mobile-demand, .attribute-methodology { display: none; }
.supplier-chart-scroll { max-width: 100%; }
/* Keep phone-only SVGs hidden even when shared chart rules set display:block. */
#supplier-analysis-chart .supplier-horizontal { display: none; }
.supplier-chart-hint { display: none; margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.supplier-chart-detail { display: none; margin: 8px 0 0; padding: 12px; background: #f1f6fc; border-radius: 8px; white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.supplier-column { cursor: pointer; }
.supplier-column:focus-visible { outline: none; stroke: var(--accent); stroke-width: 1; }
@media print { .supplier-chart-scroll { overflow: visible; } .supplier-chart-scroll svg { min-width: 0 !important; } .supplier-chart-hint { display: none; } }
.attribute-selection, .attribute-mobile-key { display: none; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
.fee-source-link { margin-left: 6px; color: #175cd3; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fee-source-link:hover { color: #1849a9; }
.fee-source-link:focus-visible { outline: 2px solid #175cd3; outline-offset: 3px; border-radius: 2px; }
button, a, input, select, summary { transition: background .16s, color .16s, border-color .16s; }
h1, h2, p { margin-top: 0; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 80px; padding: 20px 5vw; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: flex-end; gap: 12px; font-size: 25px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.brand-logo { display: block; width: 180px; max-width: 50vw; height: auto; flex-shrink: 0; object-fit: contain; }
.brand-name {
  display: inline-block;
  white-space: nowrap;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 1.16em;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--accent);
}
.brand-subtitle { margin-bottom: 5px; color: var(--muted); font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.header-note { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
main { flex: 1; width: 100%; padding: 36px 5vw 64px; }
.entry-view { max-width: 1200px; margin: 0 auto; }
.data-expansion-map { position: relative; margin-bottom: 40px; }
.data-expansion-map h2 { position: absolute; z-index: 1; top: 20px; left: 20px; margin: 0; font-size: 24px; font-weight: 600; line-height: 1.4; }
.data-expansion-map img { display: block; width: 100%; height: auto; }
.entry-heading { margin-bottom: 24px; }
.entry-heading h1 { font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: -.04em; margin-bottom: 8px; }
.entry-heading p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.form-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 20px; row-gap: 24px; padding-top: 24px; }
/* 独立市场热点：状态提示与可横向滚动的数据表。 */
.market-trends { margin-top: 40px; }
.trends-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 20px; }
.trends-heading h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.trends-heading h2::before { content: ""; display: inline-block; width: 3px; height: 15px; margin-right: 12px; background: var(--accent); vertical-align: -1px; }
.trends-status { font-size: 12px; color: var(--muted); }
.trends-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.trends-content { min-height: 360px; display: grid; place-items: center; padding: 32px; background: var(--surface); border-block: 1px solid var(--line); }
.trends-empty { text-align: center; color: var(--muted); font-size: 15px; letter-spacing: .04em; line-height: 1.8; margin: 0; }
.trends-empty span { display: block; font-size: 12px; letter-spacing: 0; margin-top: 8px; }
.market-trends > .source-note { margin: 0 0 16px; }
.trends-content.has-data { display: block; min-height: 0; padding: 0; border-top: 0; }
.trends-scroll { width: 100%; min-width: 0; overflow-x: auto; }
.trends-filter { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.trends-category-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.trends-category-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; max-width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.trends-category-button:hover { border-color: var(--accent); color: var(--accent); }
.trends-category-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.trends-category-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.trends-category-count { padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.trends-category-button[aria-pressed="true"] .trends-category-count { background: #ffffff26; color: #fff; }
.trends-filter-summary { color: var(--muted); font-size: 12px; }
.market-insight-card { margin: 0 0 28px; padding: 22px 26px; background: #f5f9ff; border-radius: 6px; }
.market-insight-card .report-heading { flex-wrap: wrap; }
.market-insight-points { padding-left: 22px; margin: 20px 0 0; }
.market-insight-points li { padding: 0 0 16px 6px; line-height: 1.8; font-size: 14px; }
.market-insight-points li:last-child { padding-bottom: 0; }
.market-insight-points li::marker { color: var(--accent); font-weight: 600; }
.market-insight-points p { margin: 4px 0 0; overflow-wrap: anywhere; }
.market-insight-points .insight-evidence { font-size: 12px; color: var(--muted); }
.trends-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 13px; }
.trends-table caption { text-align: left; padding: 16px; color: var(--muted); font-size: 12px; }
.trend-keywords > caption { padding: 4px 0 20px; }
.trends-table-title { margin: 0; color: var(--accent); font-family: Georgia, "Songti SC", "STSong", serif; font-size: 24px; font-weight: 800; letter-spacing: .04em; line-height: 1.4; }
.trends-table th, .trends-table td { padding: 16px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.trends-table th { white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--accent-soft); }
.trends-table th:first-child, .trends-table td:first-child { text-align: left; width: 36%; }
.trends-table td:first-child { overflow-wrap: anywhere; }
.trends-table td:not(:first-child) { white-space: nowrap; }
.trends-table strong { display: block; font-weight: 600; line-height: 1.6; }
.trends-table td span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.6; }
.trends-table tr:last-child td { border-bottom: 0; }
.trend-keywords { min-width: 0; table-layout: fixed; }
.trend-keywords > tbody > tr > td { vertical-align: top; padding: 18px 8px; }
.trend-keywords > thead > tr > th:first-child, .trend-keywords > tbody > tr > td:first-child { width: 28%; }
.trend-keywords > thead > tr > th:nth-child(2), .trend-keywords > tbody > tr > td:nth-child(2),
.trend-keywords > thead > tr > th:nth-child(3), .trend-keywords > tbody > tr > td:nth-child(3) { text-align: center; }
.trend-keywords > tbody > tr > td:nth-child(3) { white-space: normal; }
.trend-keyword-button { display: block; border: 0; padding: 0 0 8px; min-height: 44px; background: none; color: var(--accent); font: inherit; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.trend-keyword-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.trend-keyword-line .trend-keyword-button { padding: 0; min-width: 0; }
.trend-research-button { flex-shrink: 0; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.trend-research-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.trend-research-button:focus-visible, .trend-keyword-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.trend-keywords > tbody > tr:not(.trend-detail):hover { background: #f8fbff; }
.trend-keyword-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.trends-table .trend-tag { display: block; width: fit-content; max-width: 100%; margin: 0 auto 8px; padding: 4px 8px; background: var(--accent-soft); border-radius: 3px; font-size: 11px; color: var(--ink); white-space: normal; }
.trends-table .trend-rank-change { font-size: 11px; line-height: 1.8; margin: 0 0 4px; }
.trends-table .trend-movement { display: inline; margin: 0; }
.trends-table .trend-movement.is-rising { font-size: 16px; white-space: nowrap; display: inline-block; padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.trend-product-link { display: inline-block; padding: 12px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.trend-product-link:hover { color: var(--ink); }
.trends-table progress { display: block; width: 90px; max-width: 100%; height: 6px; margin: 10px 0 0 auto; accent-color: var(--accent); }
.trend-thumbnail { width: 40px; min-height: 40px; display: grid; place-items: center; white-space: normal; font-size: 10px; line-height: 1.5; color: var(--muted); }
.trend-thumbnail img { width: 40px; height: 40px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 3px; }
.trend-keywords > tbody > .trend-detail > td { padding: 16px 24px 24px; background: #f5f9ff; max-width: none; }
.trend-products { min-width: 0; table-layout: fixed; max-width: 900px; margin: 0; background: white; border: 1px solid var(--line); }
.trend-products th:first-child, .trend-products td:first-child { width: 30%; }
.trend-products td { vertical-align: middle; }
.trend-products .trend-thumbnail { margin-left: auto; width: 64px; min-height: 64px; }
.trend-products img { width: 64px; height: 64px; }
.form-card .error-message { grid-column: 1 / -1; margin: 0; }
label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
label span { color: var(--muted); font-size: 12px; font-weight: 400; }
input, select { display: block; width: 100%; min-width: 0; min-height: 50px; border: 1px solid var(--control-line); border-radius: 2px; background: var(--surface); color: var(--ink); padding: 12px 14px; font-size: 15px; }
select { appearance: none; cursor: pointer; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23172c46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select:invalid { color: #667b94; }
select option { color: var(--ink); }
input::placeholder { color: #667b94; opacity: 1; }
input:hover, select:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: none; border-color: var(--accent); }
.keyword-field { min-width: 0; }
.field { min-width: 0; }
.field-hint { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }
.top-products { margin: 36px 0 44px; }
.profit-estimate { margin: 32px 0; scroll-margin-top: 28px; }
.profit-chart-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profit-chart-header h3 { font-size: 15px; margin: 0; }
.high-match-summary { margin: 14px 0 4px; padding: 18px 22px; border: 1px solid #b9d4ff; border-radius: 10px; background: linear-gradient(135deg, #f2f7ff, #f8fffc); color: #12345a; box-shadow: 0 3px 10px #1637610d; font-size: 20px; line-height: 1.5; font-weight: 800; font-variant-numeric: tabular-nums; }
.profit-chart { overflow-x: auto; margin-top: 16px; border: 1px solid #e0eafb; border-radius: 10px; background: #fbfdff; }
.profit-chart svg { display: block; width: 100%; height: 460px; }
.report-back-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 30; min-height: 44px; padding: 10px 14px; border: 1px solid #d9e5f8; border-radius: 22px; background: #fff; color: #175cd3; box-shadow: 0 3px 14px #16376118; font-size: 12px; font-weight: 600; }
.report-back-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media print { .report-back-top { display: none !important; } }
.price-comparison-mobile { display: none; }
.price-point-card { display: flex; align-items: center; gap: 6px; height: 78px; box-sizing: border-box; padding: 6px; background: #fff; border: 1px solid #d9e5f8; border-left: 3px solid #246ce0; border-radius: 8px; box-shadow: 0 2px 6px #1637610d; font-size: 10px; }
.supplier-point-card { border-left-color: #079779; }
.amazon-point-card { height: 92px; }
.price-point-sales { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.price-point-card > div:last-child { flex: 1; min-width: 0; }
.price-point-image { flex: 0 0 42px; height: 48px; margin-top: 12px; display: grid; place-items: center; font-size: 9px; color: var(--muted); }
.price-point-image img { width: 42px; height: 48px; object-fit: contain; }
.price-point-card span { color: #246ce0; font-size: 9px; }
.supplier-point-card span { color: #087654; }
.price-point-card a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.35; margin: 2px 0; font-size: 10px; }
.price-point-card a[href]:hover { text-decoration: underline; color: var(--accent); }
.price-point-card a { color: var(--ink); font-weight: 600; }
.price-point-card strong { color: #246ce0; font-size: 12px; }
.supplier-point-card strong { color: #087654; }
.profit-chart g:focus { outline: 2px solid var(--accent); }
.profit-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.profit-legend span:first-child { color: #246ce0; }
.profit-legend span:nth-child(2) { color: #079779; }
.profit-status { padding: 24px; border: 1px dashed #cfdef3; border-radius: 10px; background: #f7faff; color: var(--muted); font-size: 14px; }
.profit-status.is-gap-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; width: fit-content; max-width: 100%; margin: 12px 0 24px; padding: 16px 20px; border: 1px solid #e0e8f2; border-left: 3px solid #5590da; border-radius: 8px; background: #f8fafd; }
.gap-estimate-label { color: #405773; font-size: 14px; font-weight: 600; }
.gap-estimate-amount { color: #183b63; font-size: 28px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gap-estimate-basis { flex-basis: 100%; color: #64748b; font-size: 12px; line-height: 1.6; }
.product-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 0; list-style: none; }
.product-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e0eafb; border-radius: 8px; background: linear-gradient(135deg, #fff 70%, #f5f8ff); box-shadow: 0 2px 6px #16376108; }
.product-card-image { flex: 0 0 52px; height: 58px; display: grid; place-items: center; padding: 2px; border-radius: 6px; background: #fff; color: #64748b; font-size: 11px; }
.product-card-image img { width: 100%; height: 100%; max-height: 54px; object-fit: contain; }
.product-card-body { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2px 8px; }
.product-card-rank { grid-column: 2; grid-row: 1; color: #175cd3; background: #eaf2ff; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.product-card h3 { grid-column: 1 / -1; grid-row: 1; min-width: 0; margin: 0 82px 0 0; font-size: 13px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-card-rank { justify-self: end; display: inline-flex; align-items: center; gap: 4px; }
.product-card-sales { grid-column: 1; grid-row: 2; margin: 0; color: #47617f; font-size: 11px; white-space: nowrap; }
.product-card-sales strong { color: #087654; font-size: 15px; font-variant-numeric: tabular-nums; }
.product-card .field-hint { grid-column: 2; grid-row: 2; margin: 0; font-size: 11px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-card .field-hint:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.product-card a { grid-column: 2; grid-row: 3; justify-self: end; display: inline-block; padding: 4px 0; color: #175cd3; font-size: 11px; font-weight: 600; white-space: nowrap; }
.product-card a:focus-visible { outline: 2px solid #175cd3; outline-offset: 3px; }
@media screen and (max-width: 760px) { .product-card-grid { grid-template-columns: 1fr; } }
@media screen and (max-width: 480px) { .product-card { padding: 8px; gap: 8px; } .product-card-image { flex-basis: 44px; height: 50px; } .product-card-image img { max-height: 46px; } }
.form-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 0; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: white; font-size: 14px; font-weight: 500; }
.form-bottom .primary-button { min-height: 50px; white-space: nowrap; gap: 24px; }
.primary-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary-button:active { background: var(--accent-active); border-color: var(--accent-active); }
.primary-button span { font-size: 20px; line-height: 1; }
.source-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 16px 0 0; }
.error-message { color: #a32935; font-size: 13px; line-height: 1.8; margin: 16px 0 0; }
.section-index { display: block; color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: .05em; }
.state-view { max-width: 680px; margin: 36px auto; }
.state-card { border-top: 2px solid var(--ink); padding: 32px 0; }
.state-card h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.4; letter-spacing: -.04em; margin: 18px 0 16px; }
.context { color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
#waiting-message { font-size: 14px; line-height: 1.8; margin: 32px 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; list-style: none; padding: 0; margin: 24px 0; counter-reset: step; text-align: left; }
.steps strong { font-weight: 500; }
.steps .step-status { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.steps li.skipped { border-color: var(--line); opacity: .75; }
.waiting-progress-heading { display: flex; justify-content: space-between; margin-top: 24px; color: var(--muted); font-size: 12px; }
#waiting-progress { color: var(--accent); font-variant-numeric: tabular-nums; }
#waiting-progress-bar { display: block; width: 100%; height: 5px; margin-top: 10px; appearance: none; border: 0; border-radius: 5px; overflow: hidden; background: var(--line); }
#waiting-progress-bar::-webkit-progress-bar { background: var(--line); }
#waiting-progress-bar::-webkit-progress-value { background: var(--accent); }
#waiting-progress-bar::-moz-progress-bar { background: var(--accent); }
.steps li { flex: 1; border: 0; border-radius: 10px; padding: 14px; background: #f7f9fc; color: var(--muted); font-size: 12px; line-height: 1.8; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); margin-right: 8px; font-variant-numeric: tabular-nums; }
.steps li.active { background: #edf4ff; color: var(--accent); font-weight: 600; }
.steps li.done { color: var(--ink); }
#waiting-view { max-width: 820px; }
#waiting-view .state-card { border-top: 0; background: white; border-radius: 18px; padding: 36px; }
.waiting-expectation { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: #f3f7fd; }
.waiting-expectation p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.waiting-expectation #waiting-estimate { color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.waiting-expectation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.waiting-home { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid #cbdaf5; border-radius: 8px; background: white; color: var(--accent); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.waiting-home:hover { background: #eaf1ff; border-color: var(--accent); }
.waiting-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.waiting-foot { color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-button { border: 0; border-radius: 2px; background: none; color: var(--accent); font-size: 13px; padding: 12px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.text-button:hover { color: var(--ink); }
#failure-message { color: var(--muted); line-height: 1.9; margin: 24px 0 32px; overflow-wrap: anywhere; }
.result-view { max-width: 1320px; margin: 0 auto; }
.report-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 36px; align-items: start; }
.report-content { min-width: 0; }
.report-toc { position: sticky; top: 28px; padding: 12px 0; }
.report-toc-heading { padding: 0 14px; margin: 0 0 16px; color: #8293a8; font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.report-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.report-toc li + li { margin-top: 6px; }
.report-toc a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-left: 2px solid transparent; margin-left: -1px; border-radius: 0 7px 7px 0; color: var(--muted); font-size: 13px; }
.report-toc a:hover { background: #f5f8fd; color: var(--accent); }
.report-toc a[aria-current="location"] { background: #edf4ff; border-left-color: var(--accent); color: var(--accent); font-weight: 600; }
.report-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#top-products, #sales-report, #hot-product-report { scroll-margin-top: 28px; }
@media screen and (max-width: 1000px) {
  .report-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .report-toc { position: static; padding: 0; }
  .report-toc-heading { margin-bottom: 8px; }
  .report-toc ol { display: flex; gap: 8px; overflow-x: auto; border-left: 0; }
  .report-toc li + li { margin-top: 0; }
  .report-toc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; margin-left: 0; }
  .report-toc a[aria-current="location"] { border-bottom-color: var(--accent); }
}
.result-navigation { display: flex; align-items: center; gap: 12px; margin: -12px 0 22px -10px; font-size: 13px; }
.back-navigation { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #58718e; font: inherit; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s; }
.back-navigation svg { width: 18px; height: 18px; flex-shrink: 0; }
.back-navigation:hover { background: #edf4ff; color: #1765d8; }
.back-navigation:active { background: #e1edff; }
.back-navigation:focus-visible { outline: 2px solid #2879e8; outline-offset: 3px; }
.navigation-divider { color: #c1cedd; }
.navigation-current { color: #8293a8; }
@media (prefers-reduced-motion: reduce) { .back-navigation { transition: none; } }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.result-heading h1 { font-size: 36px; letter-spacing: -.04em; margin: 12px 0; }
.result-heading p { margin: 0; }
.secondary-button { border: 1px solid var(--control-line); background: transparent; color: var(--ink); border-radius: 2px; min-height: 44px; padding: 12px 18px; font-size: 13px; white-space: nowrap; }
.secondary-button:hover { border-color: var(--ink); background: var(--ink); color: white; }
.metrics { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(max-content, 1.8fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.metric-card { min-width: 0; padding: 24px 20px; border-right: 1px solid var(--line); }
.metric-card:first-child { padding-left: 0; }
.metric-card:last-child { border-right: 0; }
.metric-card span, .metric-card small { display: block; font-size: 12px; color: var(--muted); }
.metric-card strong { display: block; font-size: clamp(22px, 2.6vw, 32px); font-weight: 550; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 16px 0 8px; overflow-wrap: anywhere; }
.metric-card:nth-child(2) strong, #unit-profit { white-space: nowrap; overflow-wrap: normal; font-size: clamp(18px, 2.2vw, 28px); overflow-x: auto; }
.report-card { padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.report-heading h2 { font-size: 18px; font-weight: 600; margin: 0; }
.tag { color: var(--muted); font-size: 12px; }
.sales-report { margin-bottom: 32px; }
#sales-coverage { margin: 12px 0 0; }
.sales-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; margin: 20px 0; }
.sales-layout > div { min-width: 0; }
.chart-title { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.sales-chart { min-width: 0; overflow-x: auto; }
.sales-chart svg { display: block; width: 100%; min-width: 460px; }
.sales-insight { padding: 22px; background: #f3f7ff; border-left: 3px solid #3984e8; border-radius: 0 12px 12px 0; }
.sales-insight-label { color: #2464b7; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
#sales-summary { margin: 12px 0; font-size: 16px; line-height: 1.8; color: var(--ink); white-space: pre-line; }
.sales-insight .field-hint { margin-bottom: 0; }
@media screen and (max-width: 760px) { .sales-layout { grid-template-columns: 1fr; gap: 14px; } }
.report-details { color: var(--muted); font-size: 12px; }
.report-details summary { width: fit-content; padding: 12px 0; }
.report-details summary:hover { color: var(--ink); }
footer { padding: 20px 5vw; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }
@media screen and (max-width: 1000px) {
  .form-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .form-bottom .primary-button { width: 100%; }
}
@media screen and (max-width: 800px) {
  main { padding: 32px 24px 48px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card { padding: 20px 16px; }
  .metric-card:first-child { padding-left: 16px; }
  .metric-card:nth-child(3) { border-right: 0; }
  .metric-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .metric-card:last-child { grid-column: span 2; }
}
@media screen and (max-width: 480px) {
  .site-header { min-height: 68px; padding: 18px 20px; }
  .brand { gap: 14px; font-size: 20px; }
  .header-note { display: none; }
  main { padding: 28px 20px 40px; }
  .entry-heading { margin-bottom: 20px; }
  .entry-heading h1 { font-size: 26px; }
  .entry-heading p { font-size: 13px; }
  .form-card { grid-template-columns: 1fr; gap: 20px; }
  input, select { font-size: 16px; }
  .form-bottom { padding-top: 0; }
  .market-trends { margin-top: 32px; }
  .trends-heading { padding: 20px 0 16px; }
  .trends-content { min-height: 300px; padding: 24px; }
  .state-view { margin-top: 8px; }
  .steps { gap: 10px; }
  .steps li::before { display: block; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(3) { border-right: 1px solid var(--line); }
  .metric-card:nth-child(even) { border-right: 0; }
  .metric-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric-card:last-child { grid-column: 1 / -1; }
  .report-heading { flex-wrap: wrap; }
  footer { padding: 18px 20px; font-size: 10px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media screen and (max-width: 640px) {
  #waiting-view .state-card { padding: 24px 16px; }
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.amazon-fee-estimate { margin-top: 20px; }
.amazon-fee-estimate > .field-hint { margin: 0 0 12px; line-height: 1.8; }
.amazon-fee-estimate > .fee-table-scroll { margin-top: 24px; }
.fee-estimate-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fee-estimate-actions h3 { margin: 0; font-size: 17px; }
.fee-estimate-actions .field-hint { margin: 0; }
.unit-profit-summary { margin: 20px 0 0; padding: 20px 22px; border: 1px solid #9fd8c4; border-radius: 10px; background: linear-gradient(135deg, #f0fbf7, #f6f9ff); color: #075f4b; box-shadow: 0 3px 10px #1637610d; font-size: 20px; line-height: 1.5; font-weight: 800; font-variant-numeric: tabular-nums; }
.unit-profit-summary .unit-profit-label { font-size: 14px; color: #000; }
.report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.report-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.report-action svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.report-action-export { color: #fff; background: #175cd3; border-color: #175cd3; box-shadow: 0 3px 8px #175cd322; }
.report-action-export:hover:not(:disabled) { background: #124bb0; border-color: #124bb0; }
.report-action:focus-visible { outline: 3px solid #90b9fb; outline-offset: 3px; }
@media (max-width: 480px) { .report-actions { width: 100%; } .report-action { flex: 1; padding-inline: 12px; } }
.fee-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.fee-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.fee-table caption { text-align: left; padding: 16px; font-weight: 600; }
.fee-table th, .fee-table td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.fee-table thead th { background: var(--accent-soft); }
.fee-table tbody th { font-weight: 500; }
.fee-table th:nth-child(2), .fee-table td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-table thead th:nth-child(3), .fee-table thead th:nth-child(4), .fee-table td:nth-child(3), .fee-table td:nth-child(4) { white-space: nowrap; }
.fee-table td:last-child { min-width: 240px; overflow-wrap: anywhere; }
@media screen and (max-width: 600px) { .fee-table { font-size: 16px; } }

@page { size: A4 landscape; margin: 12mm; }
@media print {
  :root, body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body { display: block; min-height: 0; }
  .site-header, footer, #input-view, #waiting-view, #failure-view,
  .report-toc, .result-navigation, .report-actions,
  main { padding: 0; }
  .result-view, .report-content { width: 100%; max-width: none; margin: 0; }
  .report-layout { display: block; }
  .result-heading { flex-direction: row; }
  .metrics { grid-template-columns: .8fr 1.5fr 1fr 1fr minmax(max-content, 1.8fr); break-inside: avoid; }
  .profit-chart, .sales-chart, .fee-table-scroll { overflow: visible; }
  .profit-chart svg, .sales-chart svg { min-width: 0; max-width: 100%; }
  .profit-chart, .sales-chart, .product-card, .unit-profit-summary,
  .market-insight-points li { break-inside: avoid; }
  h2, h3, .report-heading, .profit-chart-header { break-after: avoid; }
  .fee-table { min-width: 0; }
  .fee-table td:last-child { min-width: 0; }
  .fee-table thead { display: table-header-group; }
  .fee-table tr { break-inside: avoid; }
  .product-card h3 { white-space: normal; overflow: visible; }
}

.market-tabs { display: flex; gap: 28px; margin-bottom: 20px; }
.market-tabs [role="tab"] { min-width: 64px; min-height: 44px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.market-tabs [aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.market-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.market-tabs [role="tab"]:disabled { cursor: wait; opacity: .65; }

.trend-keywords > thead > tr > th { padding: 14px 8px; white-space: normal; overflow-wrap: anywhere; }
.trend-keywords > tbody > tr > td { white-space: normal; overflow-wrap: anywhere; }
.trend-keywords > thead > tr > th:nth-child(2) { width: 22%; }
.trend-keywords > thead > tr > th:nth-child(3) { width: 15%; }
.trend-keywords > thead > tr > th:nth-child(4) { width: 23%; }
.trend-keywords > thead > tr > th:nth-child(5) { width: 12%; }
.trend-products th, .trend-products td { white-space: normal !important; overflow-wrap: anywhere; }
.trend-products .trend-thumbnail, .trend-products img { max-width: 100%; }

/* 需求洞察沿用报告卡片；两条曲线用颜色和线型共同区分。 */
.demand-insight { margin-bottom: 28px; scroll-margin-top: 100px; }
.demand-conclusions { margin-top: 24px; }
.demand-conclusions p { line-height: 1.8; }
.demand-rankings:has(> [hidden]) > .demand-ranking-panel:not([hidden]) { grid-column: 1 / -1; }
.demand-rankings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 24px 0 32px; }
.demand-ranking-panel { min-width: 0; }
.demand-ranking-panel .report-heading { height: 44px; }
.demand-ranking-panel .report-heading h3 { margin: 0; }
.demand-ranking-panel .amazon-ranking-row { grid-template-columns: 22px minmax(0, 1.5fr) minmax(40px, 1fr) 66px; gap: 8px; padding: 8px; min-height: 72px; }
@media screen and (max-width: 1000px) {
  .demand-rankings { grid-template-columns: minmax(0, 1fr); }
}
.amazon-ranking { list-style: none; padding: 0; margin: 20px 0 0; }
.amazon-ranking-row { display: grid; grid-template-columns: 28px minmax(140px, 1fr) minmax(80px, 2fr) 90px; gap: 16px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; }
.amazon-ranking-row:nth-child(odd) { background: #f8fafc; }
.amazon-ranking-number { color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.amazon-ranking-keyword { font-size: 13px; overflow-wrap: anywhere; }
.amazon-ranking-translation { display: block; margin-top: 4px; color: #718096; font-size: 11px; line-height: 1.5; }
.demand-ranking-summary { color: #334155; font-size: 14px; line-height: 24px; min-height: 24px; margin: 12px 0; }
.amazon-seed { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: #e9edff; color: #4356b5; font-size: 11px; }
.amazon-ranking-track { height: 8px; background: #edf0f7; border-radius: 8px; overflow: hidden; }
.amazon-ranking-bar { display: block; height: 100%; border-radius: inherit; background: #6475d6; }
.amazon-ranking-value { text-align: right; color: #334155; font-size: 13px; font-variant-numeric: tabular-nums; }
@media screen and (max-width: 600px) {
  .demand-ranking-panel .amazon-ranking-row { grid-template-columns: 24px minmax(0, 1fr) 76px; gap: 8px; }
  .amazon-ranking-track { grid-row: 2; grid-column: 2 / 4; }
  .amazon-ranking-value { grid-row: 1; grid-column: 3; }
}
.demand-insight .report-heading { flex-wrap: wrap; gap: 12px; }
.demand-insight h3 { font-size: 16px; margin: 24px 0 8px; }
.demand-chart-scroll { overflow-x: auto; margin-top: 18px; padding: 12px 4px 2px; border: 1px solid #edf0f5; border-radius: 14px; background: linear-gradient(180deg, #fafbfd, #fff 75%); }
.demand-chart-scroll svg text { font-family: inherit; font-variant-numeric: tabular-nums; }
.demand-point { opacity: 0; cursor: crosshair; }
.demand-point.is-visible, .demand-point:hover, .demand-point:focus { opacity: 1; }
.demand-point:focus-visible { outline: 2px solid #94a3b8; outline-offset: 3px; }
.demand-hover-target { cursor: crosshair; }
.demand-hover-target:focus-visible { outline: none; stroke: #94a3b8; stroke-width: 1; }
@media print { .demand-hover, .demand-hover-target { display: none; } }
.demand-chart-scroll svg { display: block; width: 100%; min-width: 960px; height: auto; }
@media print {
  .demand-chart-scroll { overflow: visible; }
  .demand-chart-scroll svg { min-width: 0; }
}

.profit-cny { display: inline-block; font-size: 12px; font-weight: 400; color: #778397; vertical-align: baseline; }
#unit-profit { display: flex; align-items: baseline; gap: 6px; overflow: visible; }
#unit-profit .profit-cny { display: inline-block; flex: 0 0 auto; white-space: nowrap; letter-spacing: normal; }

.amazon-ranking-row[hidden] { display: none; }
.ranking-expand { display: block; margin: 16px auto 0; padding: 10px 20px; border: 0; border-radius: 8px; background: #f4f7fb; color: #526b8a; font: inherit; font-size: 13px; cursor: pointer; }
.ranking-expand:hover { background: #eaf0f8; }
.ranking-expand:focus-visible { outline: 2px solid #175cd3; outline-offset: 3px; }

@media print {
  .report-content button, #profit-status, #fee-estimate-status,
  #hot-feature-status, #attribute-chart .attribute-filters > span,
  #feature-detail { display: none !important; }
  #attribute-chart .attribute-filter { display: inline-flex !important; }
  .demand-rankings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-content { display: block; }
  .report-card, .demand-insight { margin-bottom: 28px; }
  .demand-chart-scroll, #attribute-chart .attribute-frame,
  .sales-insight, .amazon-ranking-row, .product-card { break-inside: avoid; }
  #attribute-chart #feature-grid { max-width: none; }
  #attribute-chart .attribute-plot svg { display: block; height: auto; width: 100%; }
  .fee-table-scroll { overflow: visible; }
  #unit-profit { overflow: visible; }
  .fee-estimate-actions { break-before: page; break-after: avoid; }
  .fee-table caption { break-after: avoid; }
}

/* 双列商品卡片，销量趋势由标签展开。 */
.product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-history-row { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid #e0eafb; border-radius: 12px; overflow: hidden; background: #fff; }
.product-history-row .product-card { min-width: 0; border: 0; border-radius: 0; padding: 6px 10px; box-shadow: none; gap: 10px; background: #fff; }
.product-history-row .product-card-image { flex-basis: 60px; height: 70px; }
.product-history-row .product-card-image img { max-height: 70px; }
.product-history-row .product-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 6px; }
.product-history-row .product-card h3 { grid-column: 1 / -1; grid-row: 1; margin: 0 65px 0 0; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; font-size: 13px; }
.product-history-row .product-card .field-hint { grid-column: 1 / -1; grid-row: 3; white-space: normal; overflow-wrap: anywhere; }
.product-history-row .product-card .field-hint:nth-of-type(3) { grid-row: 4; }
.product-history-row .product-card-sales { grid-column: 1 / -1; grid-row: 2; }
.product-history-row .product-trend-control { grid-column: 1; grid-row: 5; }
.product-history-row .product-card a { grid-column: 2; grid-row: 5; padding: 3px 0; }
.product-sales-history { min-width: 0; padding: 18px 20px 12px; }
.product-history-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-history-header h4 { margin: 0; font-size: 14px; }
.product-history-readout { font-size: 12px; color: #4f68d8; font-variant-numeric: tabular-nums; }
.product-sales-history svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.product-sales-history svg:focus-visible { outline: 2px solid #4f68d8; outline-offset: 3px; }
.product-history-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }
.product-history-empty { display: grid; place-items: center; min-height: 170px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .product-card-grid { grid-template-columns: minmax(0, 1fr); }
  .product-history-row .product-card { padding: 6px 10px; }
  .product-sales-history { padding: 16px 12px 12px; }
}
.product-trend-badge { min-height: 30px; padding: 4px 8px; border: 1px solid currentColor; border-radius: 18px; font-size: 12px; font-weight: 700; cursor: pointer; }
.trend-up { color: #087654; background: #e9f8f1; }
.trend-down { color: #b33e42; background: #fff0f0; }
.trend-volatile { color: #936016; background: #fff6e4; }
.trend-stable { color: #315da5; background: #edf3ff; }
.trend-unknown { color: #65758b; background: #f2f5f8; }
.product-trend-badge:focus-visible { outline: 2px solid #175cd3; outline-offset: 3px; }
.product-trend-popup { position: fixed; inset: auto; margin: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-sizing: border-box; padding: 0; border: 1px solid #dbe4f0; border-radius: 12px; background: white; color: var(--ink); box-shadow: 0 12px 40px #172d4d30; }
.product-trend-popup::backdrop { background: transparent; }
.product-trend-reason { padding: 0 20px 16px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media print { .report-content .product-trend-badge { display: inline-block !important; } .product-trend-popup { display: none !important; } }

.growth-conclusion-star { margin-right: 6px; color: #a86b00; font-size: 1.1em; }
#hot-product-points .growth-conclusion strong { color: #805200; }

/* Keep the market popup below its trigger, independent of OS select menus. */
.market-select { position: relative; }
.market-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--control-line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 15px; text-align: left; }
.market-select-value { color: #667b94; }
.market-select-trigger[data-selected] .market-select-value { color: var(--ink); }
.market-select-trigger:hover { border-color: var(--ink); }
.market-select-trigger:focus, .market-select-trigger[aria-expanded="true"] { border-color: var(--accent); outline: none; box-shadow: none; }
.market-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.market-select-options { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 100%; max-height: 240px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 6px 18px #172c461f; }
.market-select-options [role="option"] { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 10px; border-radius: 3px; font-size: 15px; cursor: pointer; }
.market-select-options [role="option"]:hover, .market-select-options .is-active { background: var(--accent-soft); color: var(--accent); }
.market-select-check { visibility: hidden; color: var(--accent); }
.market-select-options [aria-selected="true"] .market-select-check { visibility: visible; }
@media (max-width: 600px) { .market-select-trigger, .market-select-options [role="option"] { font-size: 16px; } }

.next-actions-content { line-height: 1.7; overflow-wrap: anywhere; padding: 16px 0; }
.next-action-decision { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 20px; }
.next-actions-content .next-action-conclusion { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.4; }
.next-action-evidence { margin: 0; color: var(--muted); font-size: 14px; }
.next-action-research { margin-top: 20px; padding: 20px 24px; border-radius: 10px; background: var(--accent-soft); }
.next-action-research h3 { max-width: 100%; margin: 0; padding: 0; background: transparent; color: var(--accent-hover); font-size: 16px; font-weight: 700; line-height: 1.5; }
.next-action-research p { margin: 0; font-size: 14px; color: var(--muted); }
.next-action-keywords { list-style: none; padding: 0; margin: 12px 0 0; }
.next-action-keywords > li { display: grid; grid-template-columns: minmax(0, 1fr) 180px 180px; align-items: start; gap: 12px 24px; padding: 20px 0; font-size: 14px; }
.next-action-keyword-identity { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.next-action-keyword-name { font-weight: 600; color: var(--ink); }
.next-action-growth { display: grid; gap: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.next-action-growth span { color: var(--muted); font-size: 12px; }
.next-action-growth strong { font-size: 22px; line-height: 1.3; }
.next-action-growth-up { color: #18734b; }
.next-action-growth-down { color: #b33e35; }
.next-action-growth-neutral { color: var(--muted); }
@media (max-width: 700px) {
  .next-action-keywords > li { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .next-action-keyword-identity { grid-column: 1 / -1; }
  .next-action-growth { text-align: left; }
}
.next-action-research-button { border: 0; padding: 6px 0; min-height: 36px; background: transparent; color: var(--accent); font-size: 12px; white-space: nowrap; }
.next-action-research-button:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.next-action-research-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.next-action-advice { padding-left: 20px; margin: 16px 0 0 25px; font-size: 14px; }
@media (max-width: 600px) {
  .next-action-decision { align-items: flex-start; flex-direction: column; padding-bottom: 16px; }
  .next-actions-content .next-action-conclusion { font-size: 17px; }
  .next-action-research { margin-top: 16px; padding: 16px; }
}

.related-trends-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.related-trends-table th, .related-trends-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #e6edf5; overflow-wrap: anywhere; }
.related-trends-table th:first-child { width: 50%; }
#next-actions .report-heading { flex-wrap: wrap; }

.next-action-conclusion::before { content: "💡"; display: inline-block; width: 17px; margin-right: 8px; }
.next-actions-content .next-action-advice-title { margin: 16px 0 0 25px; font-size: 15px; font-weight: 600; }
.next-action-advice-title + .next-action-advice { margin-top: 6px; }

.attribute-tooltip { position: fixed; z-index: 1000; pointer-events: none; max-width: min(360px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: hidden; padding: 12px 16px; border: 1px solid #dce6f3; border-radius: 8px; background: #fff; color: #18314f; box-shadow: 0 6px 24px #18314f24; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }

/* 管理员看板复用工作台卡片；图表同时提供可读数据。 */
#analytics { --analytics-accent: #285ed4; }
.analytics-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.analytics-day-input { display:inline-flex; align-items:center; gap:8px; color:#24344b; }
.analytics-range-modes { display:inline-flex; gap:4px; padding:3px; background:#eaf0f8; border-radius:9px; }
#analytics .analytics-range-modes button { padding:8px 12px; border:0; border-radius:6px; background:transparent; color:#526174; font-size:14px; cursor:pointer; }
#analytics .analytics-range-modes button[aria-pressed="true"] { background:white; color:#245acb; box-shadow:0 1px 4px #16376115; }
.analytics-custom-fields { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; max-width:100%; }
#analytics .analytics-custom-fields input { width:220px; max-width:100%; min-height:40px; margin:0; padding:8px 10px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#24344b; font-size:14px; }
#analytics .analytics-day-input input { width:88px; min-height:40px; margin:0; padding:8px 10px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#24344b; font-size:16px; text-align:center; }
.analytics-toolbar select { min-height:40px; padding:8px 30px 8px 12px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#24344b; }
.analytics-section { margin-top:28px; }
.analytics-section + .analytics-section { margin-top:40px; padding-top:24px; border-top:1px solid #dbe3ec; }
.analytics-section h2 { font-size:22px; margin:0 0 12px; }
.analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.analytics-trends { grid-template-columns:repeat(3,minmax(0,1fr)); }
.analytics-card { min-width:0; padding:20px; margin-bottom:16px; }
.analytics-card h3 { font-size:16px; margin:0 0 16px; }
.analytics-total { font-size:28px; font-variant-numeric:tabular-nums; }
.analytics-card svg { display:block; width:100%; margin-top:12px; }
.analytics-card svg text { font-size:11px; fill:#526174; }
.analytics-note { color:#526174; font-size:13px; line-height:1.7; }
.analytics-bars { list-style:none; padding:0; margin:0; display:grid; gap:14px; max-height:420px; overflow:auto; }
.analytics-bar-label { display:flex; gap:12px; justify-content:space-between; font-size:13px; line-height:1.5; }
.analytics-bar-label span { overflow-wrap:anywhere; }
.analytics-bar-label strong { flex-shrink:0; font-variant-numeric:tabular-nums; }
.analytics-track { height:6px; background:#edf1f7; margin-top:6px; border-radius:3px; overflow:hidden; }
.analytics-track span { display:block; height:100%; background:var(--analytics-accent); }
#analytics-status { color:#526174; font-size:13px; }
@media (max-width:1000px) { .analytics-trends { grid-template-columns:1fr; } }
@media (max-width:650px) { .analytics-grid { grid-template-columns:1fr; } .analytics-card { padding:16px; } }
#analytics .analytics-toolbar label { margin:0; }
#analytics .analytics-toolbar select { width:auto; min-width:130px; appearance:auto; }
#analytics-refresh { border:0; border-radius:8px; min-height:40px; padding:9px 16px; background:var(--analytics-accent); color:white; cursor:pointer; font-weight:600; }
#analytics-refresh:hover { background:#1e4caf; }
#analytics-refresh:focus-visible { outline:2px solid var(--analytics-accent); outline-offset:3px; }
@media (max-width:680px) {
  .workbench-sidebar nav { flex-wrap:wrap; }
  .workspace-nav-link { white-space:nowrap; flex-shrink:0; }
}
.analytics-card > div > .analytics-toolbar { margin:16px 0; }
#analytics .analytics-toolbar select { max-width:100%; }
.analytics-card .analytics-grid > .analytics-card { border:1px solid #e0e7ef; }

.analytics-chart h3 { font-size:14px; margin-bottom:10px; }
.analytics-chart .analytics-total { font-size:22px; }
.analytics-chart .analytics-note { font-size:12px; }
.analytics-legend { display:flex; flex-wrap:wrap; gap:8px 18px; min-width:0; border:0; padding:8px 0 14px; margin:12px 0 0; }
.analytics-legend legend { font-size:13px; font-weight:600; padding:0; }
#analytics .analytics-legend-item { display:inline-flex; align-items:center; gap:7px; margin:0; min-height:32px; max-width:100%; font-size:12px; font-weight:400; cursor:pointer; }
#analytics .analytics-legend-item input { appearance:auto; display:inline-block; width:14px; min-width:14px; height:14px; min-height:14px; margin:0; padding:0; accent-color:var(--analytics-accent); }
.analytics-legend-item > span:last-child { overflow-wrap:anywhere; min-width:0; }
.analytics-legend-item:has(input:not(:checked)) > span { opacity:.45; }
.analytics-legend-swatch { width:22px; flex-shrink:0; border-top:2px solid; }

.analytics-chart { position:relative; }
.analytics-chart svg:focus-visible { outline:2px solid var(--analytics-accent); outline-offset:3px; border-radius:4px; }
.analytics-detail-panel { height:176px; margin-top:8px; border-top:1px solid #e5ebf3; }
.analytics-detail-panel:has(> [hidden])::before { content:'悬浮图表查看当天数据'; display:block; padding:12px 0; color:#526174; font-size:12px; }
.analytics-tooltip { width:100%; height:100%; overflow:auto; padding:12px 0; font-size:12px; color:#24344b; }
.analytics-tooltip > strong { position:sticky; top:-12px; display:block; padding:4px 0; background:#fff; }
.analytics-tooltip-row { display:flex; align-items:center; gap:8px; margin-top:8px; }
.analytics-tooltip-row > span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.analytics-tooltip-row strong { white-space:nowrap; }
.analytics-tooltip-detail { margin:3px 0 0 30px; font-size:11px; color:#526174; }
.analytics-interface-purpose { font-size:11px; color:#526174; font-weight:400; }
.pdf-save-dialog { width:min(420px, calc(100vw - 32px)); box-sizing:border-box; padding:24px; border:0; border-radius:18px; color:#172c46; }
.pdf-save-dialog::backdrop { background:#172c4670; }
.pdf-save-dialog h2 { margin:0 0 12px; font-size:20px; }
.pdf-save-dialog p { font-size:14px; line-height:1.7; }
.pdf-save-dialog button, .pdf-save-dialog a { display:block; width:100%; box-sizing:border-box; padding:12px; margin-top:12px; text-align:center; font-size:15px; border-radius:10px; }
.pdf-save-dialog [hidden] { display:none; }
.pdf-save-dialog button { border:0; cursor:pointer; }
.pdf-save-dialog .pdf-share { background:#1769e0; color:white; }
.pdf-save-dialog .pdf-close { background:#f0f4fa; color:#47617f; }
.pdf-save-message:empty { display:none; }

/* 趋势全屏只重新绘制已有数据，不发起采集；竖屏设备采用横向画布。 */
.demand-expand { display: none; }
.demand-fullscreen { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: #fff; color: var(--ink); overflow: hidden; }
.demand-fullscreen::backdrop { background: #fff; }
body:has(.demand-fullscreen[open]), body:has(.research-confirm-dialog[open]) { overflow: hidden; }
.demand-landscape { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); box-sizing: border-box; }
.demand-fullscreen-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 0 4px; margin-bottom: 16px; }
.demand-fullscreen-header h2 { margin: 0; font-size: 16px; }
.demand-fullscreen-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: #64748b; font: inherit; cursor: pointer; }
.demand-fullscreen-close:active { background: #f1f5f9; color: #334155; }
@media (hover: hover) { .demand-fullscreen-close:hover { background: #f1f5f9; color: #334155; } }
.demand-fullscreen-chart { flex: 1; min-height: 0; }
.demand-fullscreen .demand-chart-scroll { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; box-sizing: border-box; }
.demand-fullscreen .demand-chart-scroll::before { display: none; }
.demand-fullscreen .demand-chart-scroll svg { width: 100%; height: 100%; min-width: 0; }
.demand-fullscreen :focus-visible, .research-confirm-dialog :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (orientation: portrait) {
  .demand-landscape { position: absolute; left: 50%; top: 50%; width: 100dvh; height: 100vw; transform: translate(-50%, -50%) rotate(90deg); }
}
.research-confirm-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #dbe3ee; border-radius: 16px; color: var(--ink); box-sizing: border-box; overflow-y: auto; box-shadow: 0 24px 80px #14243c30; }
.research-confirm-dialog::backdrop { background: #15223866; }
.research-confirm-dialog form { display: grid; gap: 20px; }
.research-confirm-dialog h2 { margin: 0; font-size: 21px; }
.research-confirm-dialog .field { display: grid; gap: 8px; }
.research-confirm-dialog label { font-size: 14px; font-weight: 600; }
.research-confirm-dialog input:not([type="hidden"]), .research-confirm-dialog .market-select-trigger { width: 100%; min-height: 46px; border: 1px solid #dbe3ee; border-radius: 8px; padding: 12px 14px; background: #fbfcfe; color: var(--ink); font: inherit; font-size: 16px; box-sizing: border-box; }
.research-confirm-dialog .field-validation { margin: 0; color: #be4e4e; font-size: 13px; }
.research-confirm-dialog .market-select-options { position: static; margin-top: 6px; }
.research-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; }
.research-confirm-actions button { min-height: 44px; padding: 12px 20px; font-size: 15px; border-radius: 8px; cursor: pointer; }
.research-confirm-cancel { border: 1px solid #dbe3ee; background: white; color: var(--muted); }
@media print { .demand-expand, .demand-fullscreen, .research-confirm-dialog { display: none !important; } }

/* 表单只高亮原边框；覆盖弹窗通用焦点圈，不改变边框宽度或控件尺寸。 */
:is(body, #auth-dialog, #user-action-dialog, #credits-dialog) :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea, [role="combobox"]):focus,
#user-action-dialog #user-role-trigger:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--accent);
}
:is(body, #auth-dialog, #user-action-dialog, #credits-dialog) :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea, [role="combobox"])[aria-invalid="true"]:focus {
  border-color: #ce7777;
}

.attribute-plot-wrap { position: relative; }
.attribute-expand-toolbar { position: absolute; top: 0; right: 12px; z-index: 1; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) { overflow: hidden; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) > .attribute-legend,
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-directory,
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-mobile-key,
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-filters > .text-muted,
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) #feature-detail { display: none; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-frame { border: 0; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-filters { padding: 0 8px; gap: 8px; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-filter { min-height: 32px; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-plot { padding: 0; }
.demand-fullscreen :is(#attribute-chart, .attribute-fullscreen-chart) .attribute-selection { display: block; margin: 0 8px; font-size: 12px; line-height: 1.4; max-height: 60px; overflow: auto; white-space: pre-line; }

/* 同页市场榜单，类目榜暂时隐藏 */
.market-boards { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; align-items: start; }
.market-board-column { min-width: 0; }
.market-board-heading { position: relative; min-height: 44px; padding: 0 0 14px 52px; }
.market-board-icon { position: absolute; left: 0; top: 1px; box-sizing: border-box; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #edf3ff; }
.board-column-1 .market-board-icon { background: #f2edfc; }
.board-column-2 .market-board-icon { background: #eaf7f1; }
.market-board-heading-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.market-board-heading h3 { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
.market-board-heading p { margin: 5px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.market-board-badge { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #4268a3; background: #eaf1ff; border-radius: 6px; padding: 4px 7px; }
.board-column-1 .market-board-badge { color: #6e55a1; background: #eee9fa; }
.board-column-2 .market-board-badge { color: #21704b; background: #e3f3ea; }
.market-board-body { min-width: 0; padding: 0; }
.market-board-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.market-board-body .trends-empty { padding: 30px 8px; font-size: 13px; line-height: 1.7; }
/* 关键词保留原有数据与商品展开操作，采用纵向条目呈现。 */
.board-keywords > .trend-keywords { display: block; width: 100%; min-width: 0; border: 0; counter-reset: keyword-rank; }
.board-keywords > .trend-keywords > caption, .board-keywords > .trend-keywords > thead { display: none; }
.board-keywords > .trend-keywords > tbody { display: block; }
.board-keywords > .trend-keywords > tbody > tr:not(.trend-detail) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 0 0 10px; padding: 12px; border: 1px solid #e4eaf2; border-radius: 12px; background: #fff; box-shadow: 0 2px 5px #18314f03; counter-increment: keyword-rank; }
.board-keywords > .trend-keywords > tbody > tr:not(.trend-detail)::before { content: "TOP " counter(keyword-rank, decimal-leading-zero); position: absolute; top: 12px; left: 12px; line-height: 28px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #647991; }
.board-keywords > .trend-keywords > tbody > tr:nth-child(-n+3)::before { color: #2468d8; }
.board-keywords > .trend-keywords > tbody > tr > td { border: 0; padding: 0; text-align: left; min-width: 0; white-space: normal; font-size: 12px; }
.board-keywords > .trend-keywords > tbody > tr > td:first-child { grid-column: 1; grid-row: 1; width: auto; padding-left: 48px; }
.board-keywords .trend-keyword-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
.board-keywords .trend-keyword-name { display: block; margin: 0; min-height: 28px; width: auto; font-size: 13px; font-weight: 600; line-height: 28px; text-align: left; color: var(--ink); overflow-wrap: anywhere; }
.market-board-body .trend-research-button { flex-shrink: 0; font-size: 11px; min-height: 28px; padding: 3px 0; }
.board-keywords .trend-secondary { margin-top: 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.board-keywords > .trend-keywords > tbody > tr > td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: center; }
.board-keywords > .trend-keywords > tbody > tr > td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: start; text-align: right; padding: 0; border: 0; }
.board-keywords > .trend-keywords > tbody > tr > td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
.board-keywords .trend-rank-change { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 0; font-size: 10px; color: var(--muted); }
.board-keywords .trend-movement { display: inline-block; margin: 0; font-size: 13px; padding: 1px 5px; border-radius: 5px; }
.board-keywords .trend-tag, .rising-product-category { display: inline-block; padding: 2px 5px; margin: 0; border-radius: 3px; font-size: 10px; font-weight: 400; line-height: 1.6; background: #f4f6f9; color: #6a7b92; }
.board-keywords > .trend-keywords > tbody > tr > td:nth-child(4)::before { content: '周 搜索量 / 购买率'; display: block; font-size: 10px; color: var(--muted); margin-bottom: 1px; }
.board-keywords .trend-detail:not([hidden]) { display: block; overflow-x: auto; }
.board-keywords .trend-detail > td { display: block; }
.board-keywords .trend-products { min-width: 520px; }
.category-board-grid, .rising-products-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.category-board-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px; border: 1px solid #e4eaf2; border-radius: 12px; background: #fff; box-shadow: 0 2px 5px #18314f03; }
.category-board-card .category-board-heading { display: contents; }
.category-board-heading .rising-product-position { grid-column: 1; grid-row: 1; }
.category-board-heading .trends-category-count { grid-column: 3; grid-row: 1; }
.category-board-heading, .rising-product-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.rising-product-position { flex: none; color: #647991; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.category-board-card:nth-child(-n+3) .rising-product-position, .rising-product-card:nth-child(-n+3) .rising-product-position { color: #2468d8; }
.trends-category-count { font-size: 10px; color: #7053a0; border-radius: 5px; padding: 3px 6px; background: #f3effb; }
.category-board-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: var(--ink); }
.category-board-keywords { grid-column: 1 / -1; list-style: none; padding: 4px 0 0; margin: 0; border-top: 1px solid #f0f3f7; }
.category-board-keywords li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.category-board-keywords li[hidden] { display: none; }
.category-board-keyword { min-width: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; font-weight: 500; }
.category-board-keyword-cn { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--muted); }
.category-board-more { grid-column: 1 / -1; justify-self: start; width: auto; min-height: 24px; margin-top: 0; padding: 4px 0; border: 0; background: none; font-size: 11px; color: #647991; cursor: pointer; }
.category-board-more:hover { color: var(--accent); }
.rising-product-card { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 10px; padding: 12px; border: 1px solid #e4eaf2; border-radius: 12px; background: #fff; box-shadow: 0 2px 5px #18314f03; }
.rising-product-heading { grid-column: 1 / -1; }
.rising-product-category { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.rising-product-card .trend-thumbnail { position: relative; grid-column: 1; grid-row: 2 / 4; display: block; width: 72px; height: 86px; min-height: 0; overflow: hidden; border-radius: 8px; background: #f8fafc; }
.rising-product-card .trend-thumbnail img { position: absolute; inset: 0; display: block; box-sizing: border-box; width: 100%; height: 100%; max-width: 100%; max-height: 100%; padding: 6px; object-fit: contain; border: 0; border-radius: 0; mix-blend-mode: multiply; }
.rising-product-title { grid-column: 2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 38px; max-height: 38px; margin: 0; white-space: normal; font-size: 12px; font-weight: 500; line-height: 19px; color: var(--ink); overflow-wrap: anywhere; }
.rising-product-ranks { grid-column: 2; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.rising-product-ranks div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rising-product-ranks span { font-size: 10px; color: var(--muted); }
.rising-product-ranks strong { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.rising-product-ranks .rising-product-change { flex-shrink: 0; font-size: 16px; font-weight: 600; color: #166534; white-space: nowrap; }

.market-board-body .trend-detail:not([hidden]) { margin: -6px 0 10px; padding: 8px; border: 1px solid #e4eaf2; border-radius: 10px; background: #fff; }
@media (max-width: 1100px) {
  .market-boards { gap: 12px; }
  .category-board-card { grid-template-columns: auto minmax(0, 1fr); }
  .category-board-heading .trends-category-count { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .rising-product-card { grid-template-columns: 52px minmax(0, 1fr); }
  .rising-product-card .trend-thumbnail { width: 52px; height: 76px; }
}
@media (max-width: 900px) {
  .market-boards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rising-product-card { grid-template-columns: 72px minmax(0, 1fr); }
  .rising-product-card .trend-thumbnail { width: 72px; height: 86px; }
  .board-keywords > .trend-keywords > tbody > tr > td::before { content: none; }
  .board-keywords > .trend-keywords > tbody > tr > td:nth-child(4)::before { content: '周 搜索量 / 购买率'; }
  .board-keywords > .trend-keywords > tbody > tr > td { order: 0; }
}

.report-feedback { position:fixed; right:max(16px, env(safe-area-inset-right)); bottom:calc(76px + env(safe-area-inset-bottom, 0px)); z-index:30; display:flex; width:fit-content; max-width:calc(100vw - 32px); box-sizing:border-box; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; margin:0; padding:8px 12px; border:1px solid #dce4ef; border-radius:999px; background:#fff; box-shadow:0 4px 18px #16376114; }
.report-feedback p { margin:0; font-size:14px; font-weight:500; color:#334155; }
.report-feedback-buttons { display:flex; gap:0; }
.report-feedback-buttons button { display:grid; place-items:center; width:34px; min-width:34px; height:44px; padding:10px 6px; border:0; border-radius:6px; background:transparent; color:var(--feedback-color); cursor:pointer; }
#report-feedback-up { --feedback-color:#15803d; --feedback-background:#f0fdf4; }
#report-feedback-down { --feedback-color:#dc2626; --feedback-background:#fef2f2; }
.report-feedback-buttons svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.report-feedback-buttons button:hover:not(:disabled), .report-feedback-buttons button[aria-pressed="true"] { color:var(--feedback-color); background:transparent; }
.report-feedback-buttons button:hover:not(:disabled) svg, .report-feedback-buttons button[aria-pressed="true"] svg { fill:currentColor; }
.report-feedback-buttons button:focus-visible { outline:2px solid var(--feedback-color); outline-offset:3px; }
.report-feedback-buttons button:disabled { cursor:default; opacity:.6; }
#report-feedback-status { flex-basis:100%; text-align:center; font-size:13px; color:#64748b; }
#report-feedback-status:empty { display:none; }
.research-record-feedback { display:inline-flex; vertical-align:middle; margin-left:8px; }
.research-record-feedback svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.research-record-feedback.feedback-up { color:#15803d; }
.research-record-feedback.feedback-down { color:#dc2626; }
@media print { .report-feedback { display:none; } }
