/* 采购门户的公共色板、栏目和阅读层级。 */
:root {
  --brand-red: #d63814;
  --brand-red-dark: #b32c10;
  --brand-soft: #fff3ed;
  --ink: #302c29;
  --navy: #211e1b;
  --navy-2: #322d29;
  --muted: #6e655d;
  --line: #e5dfd8;
  --line-dark: #d3c8bc;
  --soft: #f8f6f3;
  --editorial-link: #165e8e;
  --radius: 4px;
}

body { background: white; color: var(--ink); }
.site-header { background: white; border-top: 3px solid var(--brand-red); border-bottom: 1px solid var(--line); }
.site-header .brand strong { font-size: 1.18rem; letter-spacing: 0; }
.site-header .brand small { color: var(--muted); font-size: .72rem; letter-spacing: 0; }
.site-header .site-header__inner { min-height: 4.2rem; }
.site-header .header-cooperation-link { display: inline-flex; align-items: center; background: var(--brand-red); color: white; border: 0; border-radius: 3px; padding: .65rem 1rem; white-space: nowrap; }
.site-header .header-actions { display: flex; }
.site-header .main-nav a[aria-current="page"] { color: var(--brand-red-dark); }
.site-utility-bar { background: var(--soft); color: var(--muted); border-block-color: var(--line); }
.site-footer { background: var(--navy); color: #fff; }
.breadcrumbs a:hover, main a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--editorial-link); outline-offset: 3px; }

/* 导航、列表和工具共用宽栏。文章保持可阅读行宽。 */
.page-header, .compact-page-header, .articles-index__header, .article-category__header, .article-header,
.catalog-toolbar, .tool-hero { border-color: var(--line); box-shadow: none; }
.page-header h1, .compact-page-header h1, .articles-index__header h1, .article-category h1,
.tool-hero h1, .product-summary h1, .narrow-page h1, .not-found h1 {
  padding-inline-start: .7rem;
  border-inline-start: 4px solid var(--brand-red);
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.26;
  letter-spacing: -.015em;
}
.article-header { padding-bottom: 1.25rem; border-bottom: 2px solid var(--navy); }
.article-header h1 { color: var(--navy); font-size: clamp(1.55rem, 2.7vw, 2.4rem); line-height: 1.34; }
.evidence-article :is(h2,h3), .method-section h2, .block-heading h2 { color: var(--navy); }
.evidence-article h2, .method-section h2 { border-left: 3px solid var(--brand-red); padding-left: .65rem; }
.article-intro, .product-summary, .source-card, .unknown-card, .method-section,
.catalog-toolbar, .articles-index__directory, .selector-filter-panel, .selector-agent-bubble {
  border-radius: 4px;
  box-shadow: none;
}
.article-meta, .doc-meta, .state-text, .breadcrumbs { color: var(--muted); }
.evidence-article :is(p,li) a, .source-card a:not(.button-link), .article-layout aside a,
.catalog-row__action a, .selector-device-row__body a, .compact-page main a { color: var(--editorial-link); }
.product-summary, .catalog-toolbar, .selector-user-turn p { background: var(--soft); }
.catalog-row { position: relative; border-color: var(--line); }
.catalog-row:hover, .catalog-row:focus-within { background: #fcfaf7; }
.catalog-model-link { color: var(--navy); text-decoration: none; }
.catalog-model-link::after { content: ""; position: absolute; inset: 0; }
.catalog-row__action a { position: relative; z-index: 1; }
.catalog-row:focus-within, .selector-device-row:focus-within { outline: 2px solid var(--editorial-link); outline-offset: -2px; }
.selector-filter-submit, .selector-new-question button { border-radius: 3px; }
.selector-page .selector-filter-panel, .selector-page .selector-agent-bubble, .selector-device-row { border-color: var(--line); }
.selector-comparison-disclosure td a { display: block; color: var(--editorial-link); }
.selector-device-row__image { background: var(--soft); }
.selector-agent-turn table th, .field-evidence-list dt { background: var(--soft); }
main :is(#specifications,#source,#limits) { scroll-margin-top: 6rem; }
@media (min-width: 981px) {
  .site-header .main-nav .mobile-search-entry { display: none; }
  .site-header .site-header__inner { display: flex; justify-content: space-between; width: min(100% - 48px, 1152px); max-width: 1152px; padding-inline: 0; margin: auto; gap: clamp(16px,2vw,32px); }
  .site-header .main-nav { display: flex; justify-content: flex-start; gap: clamp(12px,1.5vw,24px); }
  .site-header .main-nav a { white-space: nowrap; }
  .site-header .menu-toggle { display: none; }
}
@media (max-width: 980px) {
  .site-header .site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; gap: .6rem; }
  .site-header .menu-toggle { display: inline-flex; order: 3; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .site-header .header-actions { display: flex; order: 2; flex: 0 0 auto; width: auto; margin-left: auto; }
  .site-header .header-actions form { display: none; }
  .site-header .main-nav { display: none; }
  .site-header.is-menu-open .main-nav { display: grid; position: absolute; top: 100%; inset-inline: 0; background: #fff; padding: .4rem 1rem; border-bottom: 1px solid var(--line); gap: 0; }
  .site-header.is-menu-open .main-nav a { padding: .65rem; }
  .site-header .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
