/* ============================================================
   HuaQuan Master V1.2 — container-generator.html (review pass 2)
   Compact industrial B2B; body axis 840px, data 1040px
   Fixes vs V1.1: datasheet spec table, FAQ hierarchy arrows,
   restrained outline CTA, tighter rhythm, RU hyphenation,
   mobile table no horizontal scroll.
   Loaded AFTER style.css + home.css; scoped to pilot page only.
   ============================================================ */

/* ---- Network bar / Site header: fix hover inside dark bars ---- */
.network-bar a,
.site-header .main-nav a { transition: color 150ms ease; }
.network-bar a:hover,
.site-header .main-nav a:hover { color: #ffffff; }
.network-bar a { opacity: .88; }
.network-bar a:hover { opacity: 1; }

/* ---- Breadcrumb: quiet, small ---- */
.breadcrumb { padding: .9rem 0 .4rem; font-size: .88rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-secondary); transition: color 150ms ease; }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---- Product hero: white strip + accent edge ---- */
.product-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  padding: 1.7rem clamp(1.4rem, 2.6vw, 2.6rem);
  margin: .3rem 0 1.5rem;
}
.product-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 2.3rem);
  letter-spacing: -.4px;
  line-height: 1.24;
  color: var(--color-primary);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.product-hero .hero-subtitle {
  margin: .65rem 0 0;
  max-width: 66ch;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
}

/* ---- Content column: dual-axis widths ---- */
.content-section { padding: .6rem 0 2.8rem; }
.content-section > p,
.content-section > h2,
.content-section > h3,
.content-section > h4,
.content-section > ul,
.content-section > ol,
.content-section > .faq-section,
.content-section > ul.related-link {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.content-section > .table-wrap { max-width: 1040px; }

/* ---- Typography rhythm: compact ---- */
.content-section h2 {
  position: relative;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.3rem 0 .95rem;
  padding-left: .85rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  bottom: .08em;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}
.content-section h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 1.5rem 0 .72rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.content-section p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* ---- Specification table: datasheet feel, not admin grid ---- */
.content-section .table-wrap {
  overflow-x: auto;
  margin: 1.4rem auto 2.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.content-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  table-layout: fixed;
}
.content-section thead th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .68rem 1rem;
  border-bottom: 2px solid rgba(255,255,255,.12);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content-section tbody td {
  padding: .68rem 1rem;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border-light);
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--color-text);
}
.content-section tbody tr:last-child td { border-bottom: 0; }
.content-section tbody td:first-child {
  width: 34%;
  background: #f4f7fb;
  color: #17233d;
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}
.content-section tbody td:last-child { color: var(--color-text-secondary); }

/* ---- Plain lists: square engineering markers ---- */
.content-section > ul:not(.related-link) {
  list-style: none;
  padding-left: .4rem;
  margin-bottom: 1.5rem;
}
.content-section > ul:not(.related-link) > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .42rem;
  line-height: 1.62;
}
.content-section > ul:not(.related-link) > li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.content-section ol li { margin-bottom: .42rem; line-height: 1.62; }

/* ---- Related links list ---- */
.content-section ul.related-link {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.content-section ul.related-link li { margin-bottom: .48rem; }
.content-section ul.related-link a {
  display: block;
  padding: .68rem 1.05rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-secondary);
  transition: border-color 150ms ease, border-left-color 150ms ease, padding-left 150ms ease;
}
.content-section ul.related-link a:hover {
  border-color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 1.3rem;
  color: var(--color-primary);
}

/* ---- FAQ: Q/A reference with clear hierarchy ---- */
.content-section .faq-section {
  margin: 1.2rem auto 2.2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.faq-section details { border-bottom: 1px solid var(--color-border); }
.faq-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem .15rem .85rem;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #17233d;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary:hover { color: var(--color-accent); }
.faq-section summary::after {
  content: "\25B8";
  flex: 0 0 auto;
  font-size: .85rem;
  line-height: 1.6;
  margin-top: .3rem;
  color: var(--color-accent);
  transition: transform 150ms ease;
}
.faq-section details[open] summary::after { transform: rotate(90deg); }
.faq-section details[open] > *:not(summary) {
  margin: 0;
  padding: .05rem .15rem 1.05rem .9rem;
  border-left: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: .98rem;
}
.faq-section details[open] p + p { margin-top: .7rem; }

/* ---- Content images ---- */
.content-section img {
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

/* ---- CTA: restrained contact strip, outline primary button ---- */
.cta-section {
  max-width: 840px;
  margin: 1.5rem auto 2.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
  text-align: left;
}
.cta-section h2 {
  color: var(--color-primary);
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 .3rem;
}
.cta-section p {
  color: var(--color-text-secondary);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}
.cta-section .btn-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  padding: .58rem 1.35rem;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  transition: background 150ms ease, color 150ms ease;
}
.cta-section .btn-cta:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .content-section { padding: .4rem 0 2.2rem; }
  .content-section h2 { font-size: 1.3rem; margin: 2.15rem 0 .9rem; padding-left: .75rem; }
  .content-section h3 { font-size: 1.14rem; margin: 1.4rem 0 .65rem; }
  .content-section table { font-size: .84rem; }
  .content-section thead th { font-size: .78rem; padding: .6rem .6rem; }
  .content-section tbody td { padding: .58rem .6rem; line-height: 1.5; }
  .content-section tbody td:first-child { width: 34%; }
  .breadcrumb { font-size: .84rem; }
  .cta-section {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 1.3rem 1.2rem;
    gap: 1rem;
  }
  .cta-section .btn-cta { align-self: flex-start; text-align: center; }
}

@media (max-width: 480px) {
  .product-hero { padding: 1.35rem 1.1rem; }
  .product-hero .hero-subtitle { font-size: .98rem; }
  .content-section p { font-size: .98rem; }
  .faq-section summary { font-size: 1rem; padding: .85rem .1rem .8rem; }
  .content-section table { font-size: .8rem; }
}
