/* ============================================================
   重庆耀雄高科技有限公司 · 工业大风扇企业站
   样式表：单文件、无外部字体 / 无 CDN，适配桌面与移动端
   命名前缀 yx- 避免与建站系统既有样式冲突
   ============================================================ */
:root {
  --yx-primary: #0b4a6f;
  --yx-primary-dark: #083a57;
  --yx-primary-light: #e8f2f8;
  --yx-accent: #d9701a;
  --yx-accent-dark: #b85a10;
  --yx-text: #1d2c36;
  --yx-muted: #5b6b77;
  --yx-line: #dce6ec;
  --yx-soft: #f4f8fb;
  --yx-white: #fff;
  --yx-warn-bg: #fff8e9;
  --yx-warn-line: #e3b768;
  --yx-radius: 10px;
  --yx-shadow: 0 6px 24px rgba(11, 74, 111, .08);
  --yx-maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--yx-text);
  background: var(--yx-white);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yx-primary); text-decoration: none; }
a:hover { color: var(--yx-accent); }
h1, h2, h3, h4 { line-height: 1.35; color: var(--yx-primary-dark); margin: 0 0 .65em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .35em 0; }
strong { color: var(--yx-primary-dark); }
table { border-collapse: collapse; width: 100%; }

.yx-container { width: min(100% - 40px, var(--yx-maxw)); margin-inline: auto; }
.yx-narrow { max-width: 820px; }
.yx-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yx-center { text-align: center; }
.yx-center--actions { margin-top: 30px; }
.yx-center--actions .yx-btn + .yx-btn { margin-left: 12px; }
@media (max-width: 560px) {
  .yx-center--actions .yx-btn + .yx-btn { margin-left: 0; margin-top: 10px; }
}
.yx-fineprint { font-size: .875rem; color: var(--yx-muted); }
.yx-definition { font-size: 1.04rem; background: #fff; border-left: 4px solid var(--yx-accent); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 0; color: #324a59; }

/* ---------- 跳转链接（可访问性） ---------- */
.yx-skip { position: absolute; left: -9999px; top: 0; background: var(--yx-primary); color: #fff; padding: 10px 16px; z-index: 200; }
.yx-skip:focus { left: 12px; top: 12px; }

/* ---------- 公共页头 ---------- */
.yx-header { background: var(--yx-white); border-bottom: 1px solid var(--yx-line); position: sticky; top: 0; z-index: 100; }
.yx-header__inner { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.yx-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--yx-primary-dark); }
.yx-brand:hover { color: var(--yx-primary-dark); }
.yx-brand img { width: 44px; height: 44px; }
.yx-brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.yx-brand__text strong { font-size: 1.02rem; }
.yx-brand__text small { font-size: .72rem; color: var(--yx-muted); letter-spacing: .02em; }
.yx-nav { margin-left: auto; }
.yx-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.yx-nav__item { position: relative; }
.yx-nav__item > a { display: block; padding: 12px 11px; font-size: .94rem; color: var(--yx-text); white-space: nowrap; border-radius: 6px; }
.yx-nav__item > a:hover, .yx-nav__item.is-active > a { color: var(--yx-primary); background: var(--yx-primary-light); }
.yx-nav__item.is-active > a { font-weight: 700; }
.yx-submenu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 210px;
  background: #fff; border: 1px solid var(--yx-line); box-shadow: var(--yx-shadow);
  border-radius: 8px; padding: 8px; list-style: none; margin: 0;
}
.yx-nav__item:hover .yx-submenu, .yx-nav__item:focus-within .yx-submenu { display: block; }
.yx-submenu a { display: block; padding: 8px 10px; font-size: .9rem; border-radius: 5px; }
.yx-submenu a:hover { background: var(--yx-soft); }
.yx-header__tel { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; padding: 8px 14px; border-left: 1px solid var(--yx-line); }
.yx-header__tel span { font-size: .72rem; color: var(--yx-muted); }
.yx-header__tel strong { font-size: 1.05rem; color: var(--yx-accent); letter-spacing: .02em; }
.yx-menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--yx-line); background: #fff; border-radius: 8px; cursor: pointer; padding: 10px; }
.yx-menu-toggle span { display: block; height: 2px; background: var(--yx-primary); margin: 4px 0; border-radius: 2px; }

/* ---------- 首屏 ---------- */
.yx-hero { background: linear-gradient(135deg, #f2f8fc 0%, #e6f1f8 55%, #f7fbfd 100%); border-bottom: 1px solid var(--yx-line); overflow: hidden; }
.yx-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-block: 58px; }
.yx-eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .08em; color: var(--yx-primary); background: #fff; border: 1px solid var(--yx-line); border-radius: 100px; padding: 5px 14px; margin-bottom: 18px; }
.yx-hero h1 { margin-bottom: .55em; }
.yx-hero__lead { font-size: 1.02rem; color: #324a59; max-width: 620px; }
.yx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.yx-hero__meta { font-size: .85rem; color: var(--yx-muted); margin: 0; }
.yx-hero__art img { width: 100%; max-width: 520px; height: 340px; object-fit: cover; object-position: right center; margin-inline: auto; border-radius: 12px; border: 1px solid #cfe0ea; box-shadow: 0 14px 32px rgba(11, 74, 111, .18); }

/* ---------- 内页标题区 ---------- */
.yx-page-head { background: var(--yx-soft); border-bottom: 1px solid var(--yx-line); padding: 30px 0 38px; }
.yx-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .85rem; color: var(--yx-muted); }
.yx-crumb__sep { color: #a9bac5; }
.yx-page-head h1 { margin-bottom: .4em; }
.yx-lead { font-size: 1.02rem; color: #324a59; max-width: 900px; margin: 0; }

/* ---------- 区块 ---------- */
.yx-section { padding: 56px 0; }
.yx-section--tight { padding: 34px 0; }
.yx-section--alt { background: var(--yx-soft); border-block: 1px solid #e9f0f5; }
.yx-section > .yx-container > h2:first-child { margin-bottom: .8em; }

/* ---------- 实体事实卡 ---------- */
.yx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.yx-fact { background: var(--yx-white); border: 1px solid var(--yx-line); border-left: 3px solid var(--yx-primary); border-radius: 8px; padding: 14px 16px; }
.yx-fact span { display: block; font-size: .8rem; color: var(--yx-muted); margin-bottom: 2px; }
.yx-fact strong { font-size: .98rem; }

/* ---------- 卡片与网格 ---------- */
.yx-grid { display: grid; gap: 20px; }
.yx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.yx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.yx-card { background: var(--yx-white); border: 1px solid var(--yx-line); border-radius: var(--yx-radius); padding: 22px; transition: box-shadow .2s, transform .2s; }
.yx-card:hover { box-shadow: var(--yx-shadow); transform: translateY(-2px); }
.yx-card img { width: 100%; height: 210px; object-fit: cover; border-radius: 7px; background: var(--yx-soft); margin-bottom: 16px; }
.yx-card .yx-img--contain { object-fit: contain; background: #fff; }
.yx-card__img img { margin-bottom: 16px; }
.yx-card__img:hover img { opacity: .92; }
.yx-card h3 { margin-bottom: .45em; }
.yx-card h3 a { color: var(--yx-primary-dark); }
.yx-card p { font-size: .94rem; color: var(--yx-muted); margin-bottom: .6em; }
.yx-card ul { font-size: .92rem; color: var(--yx-muted); margin-bottom: 0; }
.yx-card--scene { border-top: 3px solid var(--yx-accent); }
.yx-card--flat { box-shadow: none; }
.yx-card--soft { background: var(--yx-primary-light); border-color: #cfe2ee; }
.yx-card__tag { display: inline-block; font-size: .76rem; color: var(--yx-accent-dark); background: #fff3e6; border-radius: 4px; padding: 2px 9px; margin-bottom: 10px !important; }
.yx-card__img { display: block; }

/* ---------- 表格 ---------- */
.yx-table { font-size: .94rem; border: 1px solid var(--yx-line); border-radius: 8px; overflow: hidden; background: #fff; }
.yx-table caption { text-align: left; font-size: .85rem; color: var(--yx-muted); padding: 0 0 8px; }
.yx-table th, .yx-table td { border-bottom: 1px solid var(--yx-line); padding: 11px 14px; text-align: left; vertical-align: top; }
.yx-table thead th { background: var(--yx-primary-light); color: var(--yx-primary-dark); font-size: .9rem; }
.yx-table tbody th { width: 26%; font-weight: 600; color: var(--yx-primary-dark); background: #fbfdfe; }
.yx-table tbody tr:last-child th, .yx-table tbody tr:last-child td { border-bottom: 0; }
.yx-table-wrap { overflow-x: auto; }

/* ---------- 流程步骤 ---------- */
.yx-steps { list-style: none; counter-reset: yxstep; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.yx-steps li { counter-increment: yxstep; background: #fff; border: 1px solid var(--yx-line); border-radius: 8px; padding: 16px 16px 16px 52px; position: relative; margin: 0; font-size: .92rem; }
.yx-steps li::before { content: counter(yxstep, decimal-leading-zero); position: absolute; left: 14px; top: 16px; font-weight: 700; color: var(--yx-accent); font-size: 1.05rem; }
.yx-steps li strong { display: block; margin-bottom: 4px; }
.yx-steps li span { color: var(--yx-muted); }
.yx-steps--detail { grid-template-columns: 1fr; }
.yx-steps--detail li { padding-left: 62px; }
.yx-checklist { list-style: none; padding: 0; }
.yx-checklist li { position: relative; padding-left: 26px; margin: .7em 0; }
.yx-checklist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--yx-accent); }
.yx-taglist { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.yx-taglist li { background: #fff; border: 1px solid var(--yx-line); border-radius: 100px; padding: 6px 16px; font-size: .9rem; }

/* ---------- FAQ ---------- */
.yx-faq-list { display: grid; gap: 14px; }
.yx-faq-item { background: #fff; border: 1px solid var(--yx-line); border-radius: 8px; padding: 18px 20px; }
.yx-faq-item h3 { font-size: 1.02rem; margin-bottom: .4em; }
.yx-faq-item h3::before { content: "Q"; display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: var(--yx-primary); color: #fff; border-radius: 4px; font-size: .78rem; margin-right: 9px; vertical-align: 2px; }
.yx-faq-item p { margin: 0; color: #3b4f5b; font-size: .94rem; }

/* ---------- 已核实信息说明 ---------- */
.yx-note { background: var(--yx-primary-light); border: 1px solid #c9e0ee; border-left: 3px solid var(--yx-primary); border-radius: 8px; padding: 16px 20px; margin: 20px 0 0; font-size: .92rem; }
.yx-note > strong { display: block; color: var(--yx-primary-dark); margin-bottom: 4px; }
.yx-note p { margin: 0; color: #345266; }

/* ---------- 工程实景画廊 ---------- */
.yx-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.yx-gallery--2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.yx-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.yx-gallery figure { margin: 0; background: #fff; border: 1px solid var(--yx-line); border-radius: 10px; overflow: hidden; }
.yx-gallery a { display: block; overflow: hidden; }
.yx-gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .25s ease; }
.yx-gallery a:hover img { transform: scale(1.04); }
.yx-gallery--2 img { height: 300px; object-fit: contain; background: var(--yx-soft); }
.yx-gallery figcaption { font-size: .84rem; color: var(--yx-muted); padding: 10px 12px; border-top: 1px solid var(--yx-line); }

/* ---------- 单图配图 ---------- */
.yx-figure { margin: 0 0 1.4em; }
.yx-figure img { width: 100%; border-radius: 8px; border: 1px solid var(--yx-line); background: #fff; }
.yx-figure figcaption { font-size: .85rem; color: var(--yx-muted); margin-top: 8px; }
.yx-figure--inline { max-width: 700px; margin: 26px 0 0; }

/* ---------- 企业资质 ---------- */
.yx-cert { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.yx-cert figure { margin: 0; }
.yx-cert img { width: 100%; border: 1px solid var(--yx-line); border-radius: 8px; background: #fff; }
.yx-cert figcaption { font-size: .84rem; color: var(--yx-muted); text-align: center; margin-top: 8px; }
.yx-cert h3 { margin-bottom: .6em; }
.yx-cert .yx-table { font-size: .88rem; }
.yx-cert .yx-fineprint { margin-top: 14px; }

/* ---------- 宽参数表（横向滚动，不挤压） ---------- */
.yx-table--wide { min-width: 900px; font-size: .86rem; }
.yx-table--wide th, .yx-table--wide td { padding: 9px 10px; white-space: nowrap; }
.yx-table--wide tbody th { width: auto; }
.yx-table-wrap { margin-bottom: 14px; }

/* ---------- 提示 / 待补资料 ---------- */
.yx-todo { background: var(--yx-warn-bg); border: 1px dashed var(--yx-warn-line); border-radius: 8px; padding: 16px 20px; margin: 20px 0 0; font-size: .92rem; }
.yx-todo > strong { display: block; color: #8a5a10; margin-bottom: 4px; }
.yx-todo p { margin: 0; color: #6d5a3c; }

/* ---------- 按钮 / 链接 ---------- */
.yx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--yx-accent); color: #fff; border: 1px solid var(--yx-accent); border-radius: 7px; padding: 11px 22px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.yx-btn:hover { background: var(--yx-accent-dark); border-color: var(--yx-accent-dark); color: #fff; transform: translateY(-1px); }
.yx-btn--ghost { background: transparent; color: var(--yx-primary); border-color: var(--yx-primary); }
.yx-btn--ghost:hover { background: var(--yx-primary-light); color: var(--yx-primary-dark); border-color: var(--yx-primary); }
.yx-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.yx-textlink { font-size: .9rem; font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- CTA ---------- */
.yx-cta { background: var(--yx-primary); color: #fff; padding: 38px 0; }
.yx-cta h2 { color: #fff; margin-bottom: .3em; }
.yx-cta p { color: #cfe3ee; margin: 0; }
.yx-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.yx-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.yx-cta .yx-btn { background: #fff; color: var(--yx-primary-dark); border-color: #fff; }
.yx-cta .yx-btn:hover { background: #eaf4fa; color: var(--yx-primary-dark); }
.yx-cta .yx-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.yx-cta .yx-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 图文分栏 / 文章 ---------- */
.yx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.yx-split__art img { width: 100%; height: 330px; object-fit: cover; border-radius: 10px; background: var(--yx-soft); border: 1px solid var(--yx-line); }
.yx-split__art .yx-img--contain { object-fit: contain; background: #fff; }
.yx-article .yx-narrow > section { margin-bottom: 34px; }
.yx-article h2 { border-left: 4px solid var(--yx-accent); padding-left: 12px; }
.yx-article p { color: #304653; }
.yx-article ul { color: var(--yx-muted); }

/* ---------- 表单（本地草稿，不提交） ---------- */
.yx-form-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
#inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border: 1px solid var(--yx-line); border-radius: 10px; padding: 22px; }
.yx-field { display: flex; flex-direction: column; gap: 5px; }
.yx-field--full { grid-column: 1 / -1; }
.yx-field label { font-size: .88rem; font-weight: 600; color: var(--yx-primary-dark); }
.yx-field input, .yx-field select, .yx-field textarea { font: inherit; font-size: .94rem; color: var(--yx-text); border: 1px solid var(--yx-line); border-radius: 6px; padding: 9px 11px; background: #fff; width: 100%; }
.yx-field input:focus, .yx-field select:focus, .yx-field textarea:focus { outline: 2px solid var(--yx-primary-light); border-color: var(--yx-primary); }
.yx-form-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.yx-draft { background: #fff; border: 1px solid var(--yx-line); border-radius: 10px; padding: 18px; }
.yx-draft h3 { font-size: 1rem; }
.yx-draft pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: .88rem; line-height: 1.7; color: #3b4f5b; background: var(--yx-soft); border-radius: 6px; padding: 14px; margin: 0; min-height: 180px; }

/* ---------- 公共页脚 ---------- */
.yx-footer { background: #0d2b3e; color: #c4d6e0; padding: 44px 0 22px; font-size: .9rem; }
.yx-footer a { color: #c4d6e0; }
.yx-footer a:hover { color: #fff; }
.yx-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.yx-footer__brand strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.yx-footer__brand p { margin: 0 0 6px; }
.yx-footer__col h2 { color: #fff; font-size: .96rem; margin-bottom: 12px; }
.yx-footer__col h2 a { color: #fff; }
.yx-footer__col ul { list-style: none; padding: 0; margin: 0; }
.yx-footer__col li { margin: 5px 0; }
.yx-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.yx-footer__bottom p { margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .yx-header__tel { display: none; }
  .yx-nav__item > a { padding: 12px 8px; font-size: .88rem; }
}
@media (max-width: 900px) {
  .yx-menu-toggle { display: block; }
  .yx-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--yx-line); box-shadow: var(--yx-shadow); max-height: 75vh; overflow-y: auto; }
  .yx-nav.is-open { display: block; }
  .yx-nav__list { display: block; padding: 10px 20px 20px; }
  .yx-nav__item > a { padding: 11px 8px; border-bottom: 1px solid #eef3f6; }
  .yx-submenu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; background: transparent; }
  .yx-hero__inner { grid-template-columns: 1fr; padding-block: 38px; }
  .yx-hero__art { order: -1; }
  .yx-hero__art img { max-width: 340px; height: 250px; }
  .yx-facts, .yx-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .yx-footer__grid { grid-template-columns: 1fr 1fr; }
  .yx-form-wrap, .yx-split { grid-template-columns: 1fr; }
  .yx-gallery, .yx-gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .yx-cert { grid-template-columns: 1fr; }
  .yx-cert figure { max-width: 560px; }
}
/* 窄屏兜底：避免 grid 子项的最小内容宽度或表格长文本撑破容器 */
.yx-hero__inner > *, .yx-split > *, .yx-grid > *, .yx-form-wrap > *, .yx-cta__inner > * { min-width: 0; }

@media (max-width: 620px) {
  .yx-container { width: min(100% - 28px, var(--yx-maxw)); }
  .yx-table { table-layout: fixed; }
  .yx-table th, .yx-table td { word-break: break-word; }
  .yx-section { padding: 38px 0; }
  .yx-facts, .yx-grid--2, .yx-grid--3, .yx-footer__grid { grid-template-columns: 1fr; }
  .yx-gallery, .yx-gallery--2, .yx-gallery--4 { grid-template-columns: 1fr; }
  .yx-gallery img { height: 200px; }
  .yx-gallery--2 img { height: 250px; }
  .yx-hero__art img { height: 210px; }
  .yx-card img { height: 190px; }
  .yx-split__art img { height: 230px; }
  .yx-cta__inner { flex-direction: column; align-items: flex-start; }
  .yx-cta__actions, #inquiry-form { width: 100%; }
  #inquiry-form { grid-template-columns: 1fr; }
  .yx-form-actions { flex-direction: column; }
  .yx-table { font-size: .86rem; }
  .yx-table th, .yx-table td { padding: 9px 10px; }
  .yx-table tbody th { width: 38%; }
  .yx-brand__text strong { font-size: .9rem; }
  .yx-brand__text small { font-size: .66rem; }
}
@media print {
  .yx-header, .yx-footer, .yx-cta, .yx-menu-toggle, .yx-skip { display: none !important; }
  body { color: #000; }
}
