/* HUAYI_COOLING_FAN_HUB_V1 — scoped to the cooling fan topic page. */
.cf-page {
  --cf-ink: #173e60;
  --cf-copy: #405b72;
  --cf-link: #175e98;
  --cf-line: #d3e0ec;
  --cf-soft: #f2f6fa;
}

.cf-page .cf-hero {
  padding: 36px 0 42px;
  border-bottom: 1px solid var(--cf-line);
  background: #edf3f9;
}

.cf-page .cf-hero .container,
.cf-page main.container.cf-hub { max-width: 1120px; }

.cf-page .cf-eyebrow {
  display: block;
  margin: 0 0 14px;
  color: #315f86;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 1.4px;
}

.cf-page .cf-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  color: #123c65;
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cf-page .cf-lead {
  max-width: 880px;
  margin: 0;
  color: var(--cf-copy);
  font-size: 1.0625rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.cf-page .cf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cf-page .cf-button,
.cf-catalog-entry a.cf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 18px;
  border: 1px solid #185a9b;
  border-radius: 3px;
  background: #185a9b;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cf-page .cf-button.secondary {
  background: #fff;
  color: #185a9b;
}

.cf-page main.container.cf-hub {
  padding-top: 28px;
  padding-bottom: 60px;
}

.cf-page .cf-hub section {
  padding: 32px 0;
  border-bottom: 1px solid var(--cf-line);
}

.cf-page .cf-hub section[id],
.cf-page .cf-model-card[id],
.cf-page .cf-info-card[id],
.cf-page .cf-faq-grid article[id],
.cf-page .cf-reading-grid article[id] { scroll-margin-top: 110px; }

.cf-page .cf-hub h2 {
  margin: 0 0 20px;
  color: var(--cf-ink);
  font-size: 1.7rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cf-page .cf-hub h3 {
  margin: 0 0 12px;
  color: #17486f;
  font-size: 1.15rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cf-page .cf-hub p {
  margin: 0 0 16px;
  color: var(--cf-copy);
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.cf-page .cf-hub p:last-child { margin-bottom: 0; }

.cf-page .cf-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--cf-line);
}

.cf-page .cf-page-nav a,
.cf-page .cf-card-actions a:not(.cf-button),
.cf-page .cf-reading-grid a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 0;
  color: var(--cf-link);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.cf-page .cf-model-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.cf-page .cf-model-nav a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b8cddd;
  border-radius: 3px;
  background: #fff;
  color: #164e7b;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.cf-page .cf-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.cf-page .cf-model-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--cf-line);
  border-top: 3px solid #246da5;
  border-radius: 3px;
  background: #fff;
  overflow-wrap: anywhere;
}

.cf-page .cf-model-card h3 { font-size: 1.25rem; }
.cf-page .cf-model-card strong { color: #244e70; }
.cf-page .cf-model-card code {
  color: inherit;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 1em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cf-page .cf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 14px;
}

.cf-page .cf-note {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #cfdeeb;
  border-left: 3px solid #3779b8;
  border-radius: 2px;
  background: var(--cf-soft);
  color: var(--cf-copy);
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.cf-page .cf-info-grid,
.cf-page .cf-faq-grid,
.cf-page .cf-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.cf-page .cf-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cf-page .cf-info-card,
.cf-page .cf-faq-grid article,
.cf-page .cf-reading-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--cf-line);
  border-radius: 3px;
  background: var(--cf-soft);
  overflow-wrap: anywhere;
}

.cf-page .cf-reading-grid article {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.cf-page .cf-reading-grid span {
  display: block;
  margin-bottom: 10px;
  color: #4f6b82;
  font-size: .875rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.cf-page .cf-reading-grid article > a {
  align-self: flex-start;
  margin-top: auto;
}

.cf-page .cf-reading-grid h3 a { font: inherit; }

.cf-page .cf-hub .cf-source {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--cf-line);
  border-left: 3px solid #3779b8;
  border-radius: 3px;
  background: #f2f6fb;
}

.cf-page .cf-model-card:target,
.cf-page .cf-info-card:target,
.cf-page .cf-faq-grid article:target,
.cf-page .cf-reading-grid article:target {
  outline: 2px solid #457ea8;
  outline-offset: 4px;
  background: #edf5ff;
}

.cf-page .cf-page-nav a:hover,
.cf-page .cf-model-nav a:hover,
.cf-page .cf-card-actions a:not(.cf-button):hover,
.cf-page .cf-reading-grid a:hover {
  color: #103e68;
  text-decoration-thickness: 2px;
}

.cf-page .cf-hero a:focus-visible,
.cf-page .cf-hub a:focus-visible,
.cf-catalog-entry a:focus-visible {
  outline: 3px solid #0b4d85;
  outline-offset: 4px;
  border-radius: 2px;
}

html:has(body.cf-page) { scroll-behavior: auto; }

/* The product-center entry may be outside main and does not require body.cf-page. */
.cf-catalog-entry {
  padding: 44px 0;
  border-top: 1px solid #d3e0ec;
  border-bottom: 1px solid #d3e0ec;
  background: #edf3f9;
}

.cf-catalog-entry .container { max-width: 1120px; }

.cf-catalog-entry h2 {
  margin: 0 0 18px;
  color: #173e60;
  font-size: 1.7rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cf-catalog-entry p {
  max-width: 900px;
  margin: 0 0 20px;
  color: #405b72;
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .cf-page .cf-model-grid,
  .cf-page .cf-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cf-page .cf-hero { padding: 26px 0 32px; }
  .cf-page .cf-hero h1 { font-size: 1.75rem; }
  .cf-page .cf-lead { font-size: 1rem; }
  .cf-page .cf-actions { flex-direction: column; align-items: stretch; }
  .cf-page main.container.cf-hub { padding-top: 14px; padding-bottom: 42px; }
  .cf-page .cf-page-nav { gap: 8px 16px; }
  .cf-page .cf-hub section { padding: 26px 0; }
  .cf-page .cf-hub h2 { font-size: 1.4rem; }
  .cf-page .cf-model-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cf-page .cf-model-nav a { min-height: 52px; padding: 11px 12px; }
  .cf-page .cf-model-grid,
  .cf-page .cf-info-grid,
  .cf-page .cf-faq-grid,
  .cf-page .cf-reading-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cf-page .cf-model-card,
  .cf-page .cf-info-card,
  .cf-page .cf-faq-grid article,
  .cf-page .cf-reading-grid article { padding: 20px; }
  .cf-page .cf-note { padding: 16px 18px; }
  .cf-page .cf-hub .cf-source { padding: 20px; }
  .cf-catalog-entry { padding: 32px 0; }
  .cf-catalog-entry h2 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-page *,
  .cf-page *::before,
  .cf-page *::after { animation: none; transition: none; }
}

/* Compact, fully rendered directory; filtering is progressive enhancement. */
.cf-page .cf-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; margin: 4px 0 2px !important; font-size: .875rem; line-height: 1.7; }
.cf-page .cf-status-label { display: inline-block; padding: 3px 8px; border: 1px solid #b9d0e1; border-radius: 3px; background: #edf5fc; color: #204f72; font-size: .8125rem; font-weight: 600; }
.cf-page .cf-status-label.pending { border-color: #cbd5dd; background: #f2f4f6; color: #40586b; }
.cf-page .cf-manual-status { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-height: 44px; max-width: 100%; color: #175e98; text-decoration: underline; text-underline-offset: 4px; }
.cf-page .cf-status-row small { font-size: .8125rem; overflow-wrap: anywhere; }
.cf-page .cf-scope-controls { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 0; margin: 18px 0; border: 0; }
.cf-page .cf-scope-controls legend { width: 100%; padding: 0; margin-bottom: 10px; color: #173e60; font-weight: 600; }
.cf-page .cf-filter .cf-scope-option { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; min-width: 0; max-width: 100%; margin: 0; padding: 10px 14px; border: 1px solid #adbfce; border-radius: 3px; background: #fff; color: #244f70; font-size: .9375rem; cursor: pointer; overflow-wrap: anywhere; }
.cf-page .cf-filter .cf-scope-controls input[type=radio] { flex: none; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #175e98; }
.cf-page .cf-scope-option:has(input:checked) { background: #e8f2fd; border-color: #2471a6; }
.cf-page .cf-scope-option:focus-within { outline: 3px solid #0b4d85; outline-offset: 3px; }
.cf-page .cf-filter-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.cf-page .cf-filter-share p { margin: 0; }
.cf-page .cf-filter-share button { min-height: 44px; padding: 8px 12px; border: 1px solid #829db3; border-radius: 3px; background: #fff; color: #175e98; font: inherit; cursor: pointer; }
.cf-page #cf-copy-value { display: block; width: 100%; margin-top: 12px; font-size: .875rem; }
.cf-page .cf-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; align-items: center; }
.cf-page .cf-hero-layout > * { min-width: 0; }
.cf-page .cf-picture { margin: 0; padding: 18px; border: 1px solid var(--cf-line); background: #fff; }
.cf-page .cf-picture img { display: block; width: 100%; height: auto; object-fit: contain; }
.cf-page .cf-picture figcaption { margin-top: 12px; font-size: .8125rem; color: #526b7d; line-height: 1.7; }
.cf-page .cf-hero-layout > div > p:not(.cf-lead) { color: var(--cf-copy); font-size: 1rem; line-height: 1.9; }
.cf-page .cf-model-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
.cf-page .cf-model-nav a { flex-wrap: wrap; gap: 0 12px; }
.cf-page .cf-model-nav span { font-size: .8125rem; font-weight: 400; }
.cf-page [hidden] { display: none !important; }
.cf-page .cf-filter { padding: 22px; margin: 20px 0 28px; border: 1px solid var(--cf-line); background: #f2f6fa; }
.cf-page .cf-filter label { display: block; margin-bottom: 10px; color: var(--cf-ink); font-weight: 600; }
.cf-page .cf-filter-controls { display: flex; gap: 12px; align-items: stretch; }
.cf-page .cf-filter input { min-width: 0; flex: 1; min-height: 48px; border: 1px solid #829db3; border-radius: 3px; padding: 10px 14px; color: #173e60; font: inherit; background: #fff; }
.cf-page .cf-filter input::placeholder { color: #566d80; }
.cf-page .cf-filter button { min-height: 48px; min-width: 110px; padding: 10px 16px; border: 1px solid #185a9b; border-radius: 3px; color: #185a9b; font: inherit; font-weight: 600; background: #fff; cursor: pointer; }
.cf-page .cf-filter p { font-size: .875rem; margin: 10px 0 0; }
.cf-page #cf-filter-status { font-weight: 600; color: #17486f; }
.cf-page .cf-directory-group { margin: 28px 0; scroll-margin-top: 110px; }
.cf-page .cf-directory-group > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-bottom: 12px; border-bottom: 2px solid #407ba8; }
.cf-page .cf-directory-group > h3 span { font-size: .875rem; color: #526b7d; font-weight: 400; }
.cf-page .cf-directory-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 22px; }
.cf-page .cf-model-row { min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--cf-line); scroll-margin-top: 110px; }
.cf-page .cf-model-row h4 { margin: 0; font-family: Consolas, 'Cascadia Mono', monospace; font-size: 1.125rem; line-height: 1.65; font-weight: 600; color: #173e60; overflow-wrap: anywhere; }
.cf-page .cf-model-row .cf-card-actions { padding-top: 4px; gap: 4px 24px; }
.cf-page .cf-model-row:target { outline: 2px solid #457ea8; outline-offset: 4px; background: #edf5ff; }
.cf-page .cf-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.cf-page .cf-checklist article { display: flex; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--cf-line); }
.cf-page .cf-checklist article > div { min-width: 0; }
.cf-page .cf-step { color: #3779b8; font-size: 1.125rem; font-weight: 600; }
.cf-page .cf-text-link, .cf-page .cf-source p a, .cf-page .cf-note a { display: inline-flex; align-items: center; min-height: 44px; color: #175e98; font-weight: 600; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.cf-page input:focus-visible, .cf-page button:focus-visible { outline: 3px solid #0b4d85; outline-offset: 3px; }
@media (max-width:1000px) {
 .cf-page .cf-hero-layout { grid-template-columns: minmax(0,1fr) 230px; gap: 24px; }
 .cf-page .cf-directory-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .cf-page .cf-model-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
 .cf-page .cf-hero-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .cf-page .cf-picture { max-width: 290px; }
 .cf-page .cf-directory-list { grid-template-columns: minmax(0,1fr); }
 .cf-page .cf-model-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .cf-page .cf-checklist { grid-template-columns: minmax(0,1fr); }
 .cf-page .cf-filter { padding: 18px; }
 .cf-page .cf-filter-controls { flex-wrap: wrap; }
 .cf-page .cf-filter input { flex-basis: 100%; }
}

