/* 能华远供 /yg —— 工业风静态站样式 */
:root {
  --navy: #0d2b4e;
  --navy-2: #123a63;
  --ink: #17222e;
  --gray: #5a6b7b;
  --line: #e2e8ef;
  --bg: #f5f7fa;
  --orange: #e2621b;
  --orange-2: #f0842f;
  --green: #1a7f5a;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(13, 43, 78, .06);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
p { margin: 0 0 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f2;
  font-size: 13px;
  line-height: 28px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #eaf3ff; }
.topbar b { color: #ffd9b3; font-weight: 600; }

header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-2), var(--orange));
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
}
.logo strong { display: block; font-size: 18px; color: var(--navy); line-height: 1.2; letter-spacing: .5px; }
.logo span { display: block; font-size: 11px; color: var(--gray); letter-spacing: .5px; }

nav.main { margin-left: auto; }
nav.main ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: #22384f; font-size: 15px;
}
nav.main a:hover, nav.main a.on { background: #eef4fb; color: var(--navy-2); }
nav.main a.cta { background: var(--orange); color: #fff; }
nav.main a.cta:hover { background: var(--orange-2); color: #fff; }

.tel { font-size: 13px; color: var(--gray); text-align: right; line-height: 1.35; flex: none; }
.tel b { display: block; font-size: 20px; color: var(--orange); letter-spacing: .5px; }

.menu-btn { display: none; }

/* ---------- 面包屑 ---------- */
.crumb { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--gray); }
.crumb .wrap { padding: 10px 20px; }
.crumb a { color: var(--gray); }
.crumb span { margin: 0 6px; color: #9fb0c0; }

/* ---------- 英雄区 ---------- */
.hero {
  background:
    radial-gradient(900px 380px at 78% 10%, rgba(226, 98, 27, .22), transparent 60%),
    linear-gradient(120deg, #0b2440 0%, #12375d 58%, #17456f 100%);
  color: #eaf2fb;
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  padding-top: 54px; padding-bottom: 54px; align-items: center;
}
.hero .eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .12); color: #ffd9b3;
  font-size: 12px; letter-spacing: 1px; margin-bottom: 14px;
}
.hero h1 { font-size: 34px; line-height: 1.35; margin: 0 0 14px; color: #fff; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: #ffc38a; }
.hero p.lead { font-size: 15.5px; color: #c9dcf0; margin-bottom: 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .figure { position: relative; }
.hero .figure img { border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.hero .figure .tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(9, 30, 52, .82); color: #eaf2fb;
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  backdrop-filter: blur(4px);
}

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-2); color: #fff; }
.btn.ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn.line { border-color: var(--navy-2); color: var(--navy-2); background: #fff; }
.btn.line:hover { background: #eef4fb; }

/* 数据条 */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats div { padding: 22px 18px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 26px; color: var(--navy); line-height: 1.2; }
.stats b i { font-style: normal; font-size: 15px; color: var(--gray); margin-left: 2px; }
.stats span { font-size: 13px; color: var(--gray); }

/* ---------- 区块 ---------- */
section.block { padding: 52px 0; }
section.block.alt { background: var(--bg); }
.sec-head { margin-bottom: 26px; }
.sec-head .kicker { color: var(--orange); font-size: 13px; letter-spacing: 1.5px; font-weight: 600; }
.sec-head h2 { font-size: 26px; margin: 6px 0 8px; color: var(--navy); letter-spacing: .5px; }
.sec-head p { color: var(--gray); margin: 0; max-width: 860px; }

.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.card p { color: var(--gray); font-size: 14px; margin: 0; }
.card .num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 6px;
  background: #eef4fb; color: var(--navy-2); font-weight: 700; font-size: 14px;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.card a.more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--orange); }

/* 分类卡 */
.cat-card { display: flex; gap: 14px; align-items: flex-start; }
.cat-card .ico {
  flex: none; width: 46px; height: 46px; border-radius: 9px;
  background: linear-gradient(135deg, #eef4fb, #dfeaf7);
  color: var(--navy-2); font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.cat-card ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--gray); }
.cat-card li { padding: 2px 0; }

/* 产品卡 */
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.p-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 43, 78, .12); }
.p-card .ph { background: #f2f5f9; aspect-ratio: 4 / 3; overflow: hidden; }
.p-card .ph img { width: 100%; height: 100%; object-fit: contain; }
.p-card .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card h3 { font-size: 15px; margin: 0; line-height: 1.5; }
.p-card h3 a { color: var(--ink); }
.p-card h3 a:hover { color: var(--orange); }
.p-card .model { font-size: 12px; color: var(--orange); letter-spacing: .3px; }
.p-card .desc { font-size: 13px; color: var(--gray); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .foot { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: #8a9aab; display: flex; justify-content: space-between; }

/* 参数表 */
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.tb th, table.tb td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
table.tb thead th { background: #eef3f9; color: var(--navy); font-weight: 600; }
table.tb tbody tr:nth-child(even) td { background: #fafcfe; }
table.tb td:first-child { width: 190px; color: #33475c; background: #f7f9fc; font-weight: 500; }

/* 对比表 */
.compare th:first-child, .compare td:first-child { width: 150px; }

/* ---------- 详情页 ---------- */
.page-head { background: linear-gradient(180deg, #f7f9fc, #fff); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.page-head h1 { font-size: 28px; margin: 0 0 8px; color: var(--navy); line-height: 1.4; }
.page-head .sub { color: var(--gray); font-size: 14px; }
.page-head .meta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 栏目 / 内容页 banner（由 yg_bannerize 自动挂 class 与配图） ---------- */
.page-head.bn {
  position: relative; overflow: hidden;
  padding: 44px 0 42px; min-height: 224px;
  background:
    radial-gradient(560px 200px at 6% 108%, rgba(18, 58, 99, .09), rgba(18, 58, 99, 0) 70%),
    linear-gradient(100deg, #eef4fb 0%, #f8fbfe 46%, #ffffff 74%);
}
.page-head.bn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(13, 43, 78, .55) 0%, rgba(47, 107, 168, .35) 40%, rgba(47, 107, 168, 0) 72%);
}
.page-head.bn .bn-img {
  position: absolute; top: 50%; right: max(20px, calc((100% - 1200px) / 2 + 20px));
  transform: translateY(-50%);
  height: min(calc(100% - 26px), 204px); width: auto; max-width: 34%;
  object-fit: contain; object-position: center;
  background: #fff; padding: 9px; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(13, 43, 78, .10), 0 0 0 1px rgba(13, 43, 78, .05);
  pointer-events: none; user-select: none;
}
.page-head.bn h1, .page-head.bn .sub, .page-head.bn .meta { position: relative; z-index: 1; }
.page-head.bn h1 { max-width: 64%; }
.page-head.bn .sub { max-width: 60%; }

@media (max-width: 860px) {
  .page-head.bn { padding: 26px 0 24px; min-height: 0; }
  .page-head.bn .bn-img { display: none; }
  .page-head.bn h1, .page-head.bn .sub { max-width: 100%; }
}
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  background: #eef4fb; color: var(--navy-2); font-size: 12px;
}
.chip.hot { background: #fdeee3; color: var(--orange); }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: 34px; padding: 30px 0 56px; align-items: start; }
.detail .main-col { min-width: 0; }
.detail .side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

.p-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.p-hero .big { background: #f2f5f9; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.p-hero .big img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.p-hero .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-hero .thumbs img { border: 1px solid var(--line); border-radius: 8px; background: #f2f5f9; aspect-ratio: 1/1; object-fit: contain; }

.lead-box {
  background: #f7f9fc; border-left: 4px solid var(--orange);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 24px; font-size: 14.5px; color: #33475c;
}

.article h2 {
  font-size: 21px; color: var(--navy); margin: 34px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.article h3 { font-size: 16px; color: var(--navy-2); margin: 20px 0 8px; }
.article p { color: #2c3e50; }
.article ul, .article ol { color: #2c3e50; }
.article ul li, .article ol li { margin-bottom: 6px; }
.article .checks { list-style: none; padding: 0; }
.article .checks li { position: relative; padding-left: 24px; }
.article .checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700;
}

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.toc b { display: block; font-size: 13px; color: var(--gray); margin-bottom: 8px; letter-spacing: 1px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 13.5px; }
.toc li { padding: 2px 0; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin: 0 0 10px; color: var(--navy); }
.side-card .tel-big { font-size: 24px; color: var(--orange); font-weight: 700; letter-spacing: .5px; }
.side-card p { font-size: 13px; color: var(--gray); margin: 4px 0; }
.side-card ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.side-card li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border-bottom: 0; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; background: #fff;
}
.faq details[open] { border-color: #c9d9ea; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q "; color: var(--orange); font-weight: 700; }
.faq details p { margin: 10px 0 0; color: #35495e; font-size: 14px; }

/* 表单 */
.inquiry { background: linear-gradient(135deg, #0d2b4e, #17456f); color: #eaf2fb; border-radius: 12px; padding: 26px; }
.inquiry h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.inquiry p.tip { color: #b9cfe6; font-size: 13px; margin-bottom: 16px; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inquiry label { display: block; font-size: 12.5px; color: #c9dcf0; margin-bottom: 4px; }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid #2b4f75;
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; font-family: inherit;
}
.inquiry input::placeholder, .inquiry textarea::placeholder { color: #8fabc7; }
.inquiry textarea { min-height: 92px; resize: vertical; }
.inquiry .full { grid-column: 1 / -1; }
.inquiry button { margin-top: 6px; width: 100%; }
.inquiry .ok { display: none; background: rgba(26, 127, 90, .25); border: 1px solid #2f9b74; padding: 10px 12px; border-radius: 6px; font-size: 13.5px; margin-top: 10px; }

/* 相关产品 */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* 内链云 */
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a {
  display: inline-block; padding: 5px 11px; border-radius: 6px; background: #f2f6fa;
  font-size: 13px; color: #2a4560; border: 1px solid #e4ecf4;
}
.link-cloud a:hover { background: #fdeee3; border-color: #f6cdb0; color: var(--orange); }

/* 页脚 */
footer.site { background: #0a2038; color: #a9c0d6; font-size: 13.5px; padding: 40px 0 20px; margin-top: 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
footer.site h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .5px; }
footer.site a { color: #a9c0d6; }
footer.site a:hover { color: #ffc38a; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 3px 0; }
footer.site .bottom { border-top: 1px solid #1b3550; margin-top: 26px; padding-top: 14px; font-size: 12.5px; color: #7f9ab3; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 浮动询价 */
.float-cta {
  position: fixed; right: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 8px;
}
.float-cta a {
  background: var(--orange); color: #fff; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; box-shadow: 0 6px 18px rgba(226, 98, 27, .35); text-align: center;
}
.float-cta a.gray { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* 列表页筛选 */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar a { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.filter-bar a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 提示条 */
.notice { background: #fff8ef; border: 1px solid #f6dcbf; border-radius: 8px; padding: 12px 16px; font-size: 13.5px; color: #8a5a22; margin: 16px 0; }

/* 方案页 */
.solution-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }

@media (max-width: 1000px) {
  .hero .wrap, .detail, .p-hero, .solution-hero { grid-template-columns: 1fr; }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .detail .side { position: static; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
  nav.main.open { display: block; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; box-shadow: var(--shadow); }
  nav.main.open ul { flex-direction: column; }
  .menu-btn { display: inline-block; margin-left: auto; background: #eef4fb; border: 0; border-radius: 6px; padding: 8px 12px; font-size: 14px; color: var(--navy); }
  .tel { display: none; }
}

/* ---------- 技术文章 ---------- */
.p-hero.single { grid-template-columns: 1fr; }
.p-hero.single .big img { aspect-ratio: 16 / 9; object-fit: cover; }

.n-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; height: 100%;
}
.n-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 43, 78, .12); }
.n-card .ph { display: block; background: #eef3f8; aspect-ratio: 16 / 9; overflow: hidden; }
.n-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.n-card .bd { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.n-card .meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #8a9aab; flex-wrap: wrap; }
.n-card h3 { font-size: 16px; margin: 0; line-height: 1.55; }
.n-card h3 a { color: var(--ink); }
.n-card h3 a:hover { color: var(--orange); }
.n-card .desc { font-size: 13.5px; color: var(--gray); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-card .more { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--orange); }

.n-card.big { flex-direction: row; align-items: stretch; }
.n-card.big .ph { flex: 0 0 46%; aspect-ratio: auto; }
.n-card.big .bd { padding: 24px 26px; gap: 10px; justify-content: center; }
.n-card.big h3 { font-size: 22px; line-height: 1.45; }
.n-card.big .desc { font-size: 14.5px; -webkit-line-clamp: 4; }

.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pager a, .pager span {
  display: inline-block; min-width: 36px; text-align: center; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; color: var(--navy-2); background: #fff;
}
.pager a:hover { border-color: #c3d4e6; background: #f7fafd; }
.pager span.on { background: var(--navy); border-color: var(--navy); color: #fff; }

ul.flat { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
ul.flat li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e6edf5; }
ul.flat li:last-child { border-bottom: 0; }
ul.flat li span { color: #8a9aab; font-size: 12.5px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .n-card.big { flex-direction: column; }
  .n-card.big .ph { flex: none; aspect-ratio: 16 / 9; }
  .n-card.big .bd { padding: 16px 18px; }
  .n-card.big h3 { font-size: 18px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 25px; }
  .hero .wrap { padding-top: 34px; padding-bottom: 34px; }
  .grid.c3, .grid.c4, .grid.c2, .rel-grid { grid-template-columns: 1fr; }
  section.block { padding: 34px 0; }
  .sec-head h2 { font-size: 21px; }
  .page-head h1 { font-size: 22px; }
  .inquiry .row { grid-template-columns: 1fr; }
  table.tb { font-size: 13px; }
  table.tb td:first-child { width: 120px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .float-cta { right: 10px; bottom: 12px; }
}
