/* ============================================================
   HuaQuan Homepage Redesign v1 — Homepage-only Design System
   Applied to 10 subsite index.html pages. Does NOT modify style.css.
   ============================================================ */
:root {
  --hq-primary: #0a1628;
  --hq-primary-light: #152238;
  --hq-secondary: #1a3a5c;
  --hq-accent: #e8830c;
  --hq-accent-hover: #c9700a;
  --hq-accent-light: #fff3e0;
  --hq-bg: #f0f2f5;
  --hq-surface: #ffffff;
  --hq-text: #1a1a2e;
  --hq-text-2: #4a5568;
  --hq-text-3: #718096;
  --hq-border: #e2e8f0;
  --hq-max: 1200px;
  --hq-radius: 8px;
  --hq-shadow: 0 4px 12px rgba(10,22,40,.08);
}

body {
  background: var(--hq-bg);
  color: var(--hq-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.hq-container { max-width: var(--hq-max); margin: 0 auto; padding: 0 20px; }
.hq-main { padding: 0 0 48px; }
.hq-main section { padding: 40px 0; border-bottom: 1px solid var(--hq-border); }
.hq-main section:last-of-type { border-bottom: none; }

.hq-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hq-accent); font-weight: 700;
  margin-bottom: 8px;
}
.hq-section-title { font-size: 26px; font-weight: 700; color: var(--hq-primary); margin-bottom: 6px; }
.hq-section-sub { color: var(--hq-text-2); font-size: 15px; margin-bottom: 24px; max-width: 760px; }
.hq-section-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }

/* Hero variants */
.hq-hero { background: linear-gradient(135deg, #0a1628 0%, #152238 60%, #1a3a5c 100%); color: #fff; padding: 64px 0; }
.hq-hero .hq-container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hq-hero--center { display: block; text-align: center; }
.hq-hero--center .hq-container { display: block; }
.hq-hero--center .hq-hero-actions { justify-content: center; }
.hq-hero h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
.hq-hero .hq-hero-sub { font-size: 17px; color: rgba(255,255,255,.85); max-width: 620px; }
.hq-hero--center .hq-hero-sub { margin: 0 auto 24px; }
.hq-hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hq-hero-actions .hq-btn { min-width: 210px; }
.hq-hero-media { text-align: center; }
.hq-hero-media img { max-width: 100%; max-height: 320px; border-radius: 12px; }

/* Buttons */
.hq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .2s, transform .1s;
}
.hq-btn--accent { background: var(--hq-accent); color: #fff; }
.hq-btn--accent:hover { background: var(--hq-accent-hover); }
.hq-btn--outline { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.hq-btn--outline:hover { background: rgba(255,255,255,.12); }
.hq-btn--dark { background: var(--hq-primary); color: #fff; }
.hq-btn--dark:hover { background: var(--hq-secondary); }
.hq-btn--ghost { border: 1px solid var(--hq-border); color: var(--hq-secondary); background: #fff; }
.hq-btn--ghost:hover { border-color: var(--hq-accent); color: var(--hq-accent); }

/* Cards / Grid */
.hq-grid { display: grid; gap: 20px; }
.hq-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hq-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hq-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hq-grid--6 { grid-template-columns: repeat(6, 1fr); }

.hq-card {
  background: var(--hq-surface); border: 1px solid var(--hq-border);
  border-radius: var(--hq-radius); padding: 22px; box-shadow: var(--hq-shadow);
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
a.hq-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(10,22,40,.13); border-color: var(--hq-accent); }
.hq-card h3 { font-size: 16px; color: var(--hq-primary); }
.hq-card p { font-size: 13.5px; color: var(--hq-text-2); flex: 1; }
.hq-card .hq-card-meta { font-size: 12px; color: var(--hq-text-3); }
.hq-card-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--hq-accent-light); border-radius: 8px; font-size: 20px; font-weight: 800; color: var(--hq-accent); margin-bottom: 4px; }

/* Product card with image */
.hq-product-card { padding: 0; overflow: hidden; }
.hq-product-card .hq-pc-img { background: #f7f9fb; border-bottom: 1px solid var(--hq-border); text-align: center; padding: 12px; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.hq-product-card .hq-pc-img img { max-height: 96px; max-width: 100%; }
.hq-product-card .hq-pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.hq-product-card .hq-pc-model { font-size: 15px; font-weight: 700; color: var(--hq-primary); }
.hq-product-card .hq-pc-spec { font-size: 13px; color: var(--hq-text-2); }
.hq-product-card .hq-pc-link { color: var(--hq-accent); font-weight: 700; font-size: 13px; text-decoration: none; margin-top: 6px; }

/* Image gallery tiles */
.hq-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hq-gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--hq-border); background: #fff; text-decoration: none; color: inherit; }
.hq-gallery a img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #f0f2f5; }
.hq-gallery a .hq-g-cap { padding: 8px 10px; font-size: 12.5px; color: var(--hq-text); line-height: 1.35; }

/* Search-like panel (static, non-functional by design) */
.hq-search-panel {
  background: var(--hq-surface); border: 1px solid var(--hq-border); border-radius: 10px;
  box-shadow: var(--hq-shadow); padding: 26px; margin-top: -34px; position: relative; z-index: 5;
}
.hq-search-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.hq-search-tab {
  padding: 9px 18px; border-radius: 30px; border: 1px solid var(--hq-border); background: #fff;
  color: var(--hq-secondary); font-weight: 600; font-size: 14px; text-decoration: none; transition: all .15s;
}
.hq-search-tab:hover, .hq-search-tab.active { background: var(--hq-primary); border-color: var(--hq-primary); color: #fff; }

/* Steps / Diagnostics */
.hq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.hq-step { background: #fff; border: 1px solid var(--hq-border); border-radius: 8px; padding: 20px; position: relative; }
.hq-step::before { counter-increment: step; content: counter(step); position: absolute; top: 14px; right: 16px; font-size: 34px; font-weight: 800; color: var(--hq-accent-light); }
.hq-step h3 { font-size: 15px; color: var(--hq-primary); margin-bottom: 6px; }
.hq-step p { font-size: 13.5px; color: var(--hq-text-2); }

/* Symptom list (support) */
.hq-symptom-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hq-symptom-list a {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--hq-border);
  border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--hq-text); font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s;
}
.hq-symptom-list a:hover { border-color: var(--hq-accent); background: var(--hq-accent-light); }
.hq-symptom-list .hq-sym { width: 34px; height: 34px; border-radius: 50%; background: var(--hq-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* FAQ accordion preview */
.hq-faq-list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.hq-faq-item { background: #fff; border: 1px solid var(--hq-border); border-radius: 8px; padding: 18px 22px; }
.hq-faq-item h3 { font-size: 15.5px; color: var(--hq-primary); margin-bottom: 4px; }
.hq-faq-item p { font-size: 13.5px; color: var(--hq-text-2); }
.hq-faq-item a { color: var(--hq-accent); font-weight: 700; font-size: 13px; text-decoration: none; }

/* Table (engines compare) */
.hq-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--hq-border); border-radius: 8px; }
.hq-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.hq-table th, .hq-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hq-border); }
.hq-table th { background: var(--hq-primary); color: #fff; font-weight: 600; }
.hq-table tr:last-child td { border-bottom: none; }
.hq-table td:first-child { font-weight: 700; color: var(--hq-secondary); }

/* Document rows (library) */
.hq-doc-list { display: grid; gap: 10px; }
.hq-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--hq-border); border-radius: 8px; padding: 14px 18px; }
.hq-doc-row .hq-doc-name { font-weight: 700; color: var(--hq-primary); font-size: 14.5px; }
.hq-doc-row .hq-doc-tags { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.hq-tag { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 20px; background: var(--hq-bg); color: var(--hq-text-2); border: 1px solid var(--hq-border); }
.hq-tag--brand { background: var(--hq-accent-light); color: var(--hq-accent); border-color: #f3d9b6; }
.hq-doc-row a { color: var(--hq-accent); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }

/* News cards */
.hq-news-card { background: #fff; border: 1px solid var(--hq-border); border-radius: 8px; overflow: hidden; box-shadow: var(--hq-shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .2s; }
.hq-news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(10,22,40,.13); }
.hq-news-card .hq-nc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hq-news-card .hq-nc-date { font-size: 12px; color: var(--hq-text-3); text-transform: uppercase; letter-spacing: .05em; }
.hq-news-card h3 { font-size: 15.5px; color: var(--hq-primary); line-height: 1.35; }
.hq-news-card p { font-size: 13px; color: var(--hq-text-2); flex: 1; }
.hq-news-card .hq-nc-more { color: var(--hq-accent); font-weight: 700; font-size: 13px; }

/* Featured story */
.hq-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; background: #fff; border: 1px solid var(--hq-border); border-radius: 10px; overflow: hidden; box-shadow: var(--hq-shadow); }
.hq-featured .hq-fs-body { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hq-featured h2 { font-size: 22px; color: var(--hq-primary); line-height: 1.3; }
.hq-featured p { color: var(--hq-text-2); font-size: 14.5px; }

/* Project cards */
.hq-project-card { padding: 0; overflow: hidden; }
.hq-project-card .hq-pc-img { background: #f7f9fb; border-bottom: 1px solid var(--hq-border); min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.hq-project-card .hq-pc-img img { max-height: 84px; max-width: 100%; }
.hq-project-card .hq-pc-body { padding: 16px 18px; }
.hq-project-card h3 { font-size: 15px; color: var(--hq-primary); }
.hq-project-card p { font-size: 12.5px; color: var(--hq-text-3); }

/* Callout / CTA band */
.hq-cta-band { background: var(--hq-primary); color: #fff; border-radius: 10px; padding: 34px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hq-cta-band h2 { font-size: 20px; margin-bottom: 4px; }
.hq-cta-band p { color: rgba(255,255,255,.8); font-size: 14px; }

/* Header/footer polish */
.site-header, .network-bar { background: var(--hq-primary); }
.network-bar { border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .logo img { max-height: 44px; }
.hq-site-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--hq-accent); text-transform: uppercase; margin-left: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .hq-hero .hq-container { grid-template-columns: 1fr; }
  .hq-hero-media { display: none; }
  .hq-grid--3, .hq-grid--4, .hq-grid--6, .hq-steps, .hq-symptom-list, .hq-gallery { grid-template-columns: repeat(2, 1fr); }
  .hq-featured { grid-template-columns: 1fr; }
  .hq-section-title { font-size: 22px; }
  .hq-hero h1 { font-size: 28px; }
}
@media (max-width: 600px) {
  .hq-grid--3, .hq-grid--4, .hq-grid--6, .hq-steps, .hq-symptom-list, .hq-gallery { grid-template-columns: 1fr; }
  .hq-search-panel { padding: 18px; }
  .hq-cta-band { padding: 24px 20px; }
}

/* ============================================================
   Header/Footer Redesign v2 (2026-08-24)
   - Network bar: full-width dark strip, horizontal links
   - Site header: clean white bar with logo + main nav
   - Footer: full-width dark background, narrowed centered content
   ============================================================ */

/* ---- Network bar ---- */
.network-bar {
  background: var(--hq-primary);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
.network-bar .container {
  max-width: var(--hq-max);
  margin: 0 auto;
  padding: 0 20px;
}
.network-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  overflow-x: auto;
  white-space: nowrap;
  height: 36px;
}
.network-nav li { list-style: none; }
.network-nav a {
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.network-nav a:hover,
.network-nav a.active { color: var(--hq-accent); }
.network-nav .mall-link {
  color: var(--hq-accent);
  font-weight: 700;
}

/* ---- Site header ---- */
.site-header {
  background: var(--hq-primary);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: sticky;
  top: 36px;
  z-index: 999;
  height: 64px;
  width: 100%;
}
.site-header .container {
  max-width: var(--hq-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { max-height: 44px; width: auto; }
.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.main-nav li { list-style: none; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--hq-accent);
  border-bottom-color: var(--hq-accent);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--hq-primary);
  color: rgba(255,255,255,.72);
  margin-top: 0;
  padding: 0;
  width: 100%;
}
.site-footer .footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 20px 26px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 26px;
}
.site-footer .footer-col h4 {
  color: #ffffff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.site-footer .footer-col p { font-size: .85rem; line-height: 1.7; margin-bottom: 8px; }
.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col li { margin-bottom: 8px; }
.site-footer .footer-col a {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: .85rem;
  transition: color .15s;
}
.site-footer .footer-col a:hover { color: var(--hq-accent); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.site-footer .footer-links { margin-top: 10px; }
.site-footer .footer-links a {
  color: var(--hq-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
}
.site-footer .footer-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .network-bar { position: static; line-height: 1.5; }
  .site-header { position: static; top: 0; }
  .main-nav { gap: 1rem; }
  .network-nav { gap: .7rem; flex-wrap: wrap; height: auto; min-height: 36px; padding: 4px 0; overflow: visible; white-space: normal; }
  .network-nav a { line-height: 1.5; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-header { height: 56px; }
  .site-header .logo img { max-height: 36px; }
  .main-nav { gap: .8rem; }
  .main-nav a { font-size: .85rem; }
  .network-nav { gap: .5rem; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-container { padding: 32px 16px 20px; }
}

/* ============================================================
   Header Fix v3 (2026-08-24) — main-nav horizontal list
   Fix: .main-nav ul was block-level (vertical li), now flex row
   ============================================================ */
.main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { list-style: none; margin: 0; }
.main-nav a { white-space: nowrap; }

/* ============================================================
   Hero Title Fix v3.1 (2026-08-24) — hero h1 white text
   Fix: style.css global h1 color(var(--color-primary) dark blue)
   overrode .hq-hero color:#fff inheritance; force white here.
   ============================================================ */
.hq-hero h1 { color: #ffffff; }

/* ==== UX refinement v20260905t (catalog pilot) ==== */
/* CTA band vertical alignment: neutralise inherited p bottom margin */
.hq-cta-band p { margin-bottom: 0; }
.hq-cta-band .hq-btn { flex-shrink: 0; }

/* Footer: unified column header baseline anchor */
.site-footer .footer-col h4 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 16px;
}
.site-footer .footer-col ul { margin-top: 2px; }

/* Home hero contrast polish (deep background, light text) */
.hq-hero h1 { text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hq-hero-sub { color: rgba(255,255,255,0.95); text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Cards: equalise vertical rhythm, push meta to bottom for uniform look */
.hq-card p { flex: 1 1 auto; margin: 0; }

/* Slightly more breathing room between cards */
@media (min-width: 601px) {
  .hq-grid { gap: 24px; }
}
@media (max-width: 600px) {
  .hq-grid { gap: 16px; }
}

/* ---- Mobile header & nav wrap (v20260905t catalog pilot) ---- */
@media (max-width: 980px) {
  .main-nav ul { flex-wrap: wrap; row-gap: 2px; justify-content: center; }
}
@media (max-width: 600px) {
  .site-header { height: auto; min-height: 56px; }
  .main-nav a { font-size: .85rem; }
}

/* ---- Mobile nav items: prevent shrink-overlap, allow real wrap (v20260905t) ---- */
@media (max-width: 600px) {
  .network-bar { height: auto; line-height: 1.5; }
  .network-nav li, .main-nav li { flex-shrink: 0; }
  .network-nav { row-gap: 2px; }
  .main-nav { flex-wrap: wrap; row-gap: 2px; }
}
