/* ============ 品牌色（钢蓝 + 橙色，延续旧站工业风） ============ */
:root {
  --brand: #205064;
  --brand-strong: #17414f;
  --brand-light: #e8f1f6;
  --accent: #ff5a00;
  --bg-soft: #f4f8fa;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #333; background: #fff; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-main { flex: 1; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main.site-main { flex: 1; }

/* ============ 头部 ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; min-height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--brand); }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-item { padding: 8px 14px; font-size: 15px; color: #444; border-radius: 6px; }
.nav-item:hover { color: var(--accent); }
.nav-item.active { color: var(--brand); font-weight: 600; background: var(--brand-light); }
.lang-btn { flex-shrink: 0; border: 1px solid #ddd; background: #fff; color: #555; padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #2b6a8f 0%, var(--brand) 55%, var(--brand-strong) 100%);
  color: #fff; text-align: center; padding: 88px 16px 64px;
}
.hero-tag {
  display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 20px;
  padding: 5px 18px; font-size: 13px; letter-spacing: 1px; opacity: .9; margin: 0 0 22px;
}
.hero h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: 2px; }
.hero-sub { font-size: 17px; opacity: .85; margin: 0 0 34px; letter-spacing: 1px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  display: inline-block; background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 12px 38px; border-radius: 30px; font-size: 15px; font-weight: 600; transition: opacity .2s;
}
.hero-btn:hover { opacity: .88; color: #fff; }
.hero-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.6); font-weight: 500; }
.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.18);
}
.stat b { display: block; font-size: 26px; color: #ffb38a; }
.stat span { font-size: 13px; opacity: .8; }

/* ============ 首页滚动横幅（沿用旧站 banner1/2/3） ============ */
.banner-show { position: relative; width: 100%; overflow: hidden; background: var(--brand); }
.banner-slides { position: relative; }
/* 第一张幻灯片在正常流中撑开高度，其余绝对定位交叉淡入 */
.banner-slides .slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; z-index: 0; transition: opacity .9s ease;
}
.banner-slides .slide:first-child { position: relative; }
.banner-slides .slide.active { opacity: 1; z-index: 1; }
.banner-slides .slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.banner-slides .slide:first-child img { height: auto; }
.banner-dots {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.banner-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: all .2s;
}
.banner-dots .dot:hover { background: rgba(255,255,255,.85); }
.banner-dots .dot.active { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 600px) {
  .banner-slides { height: 130px; }
  .banner-slides .slide, .banner-slides .slide:first-child { position: absolute; }
  .banner-dots { bottom: 8px; }
}

/* ============ 版块 ============ */
.section { padding: 48px 0; }
.section.gray, .gray { background: var(--bg-soft); }
.section-title { text-align: center; font-size: 26px; margin: 0 0 10px; color: var(--brand-strong); }
.section-title::after {
  content: ""; display: block; width: 36px; height: 3px;
  background: var(--accent); margin: 10px auto 0; border-radius: 2px;
}
.section-sub { text-align: center; color: #999; margin: 0 0 32px; font-size: 14px; }
.page-title { text-align: center; margin: 8px 0 28px; color: var(--brand-strong); font-size: 28px; }
.center { text-align: center; margin-top: 28px; }
.more-link { color: var(--brand); font-size: 14px; }
.more-link:hover { color: var(--accent); }
.about-brief { text-align: center; color: #666; max-width: 860px; margin: 0 auto; font-size: 15px; }
.empty { text-align: center; color: #999; padding: 60px 0; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 28px; }
}
.card {
  border: 1px solid #eee; border-radius: 8px; overflow: hidden;
  background: #fff; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f5f7fa; }
.card .body { padding: 12px 14px; }
.card .title { font-size: 15px; font-weight: 600; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .desc { font-size: 13px; color: #999; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 分类快捷入口 ============ */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 980px; margin: 0 auto 30px; }
.chip { padding: 6px 16px; border: 1px solid #d5e2ea; border-radius: 18px; font-size: 13px; color: #456; background: #fff; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ 产品页分类树（左侧大类/小类，可折叠） ============ */
.cat-layout { display: flex; gap: 28px; align-items: flex-start; }
.cat-side { width: 220px; flex-shrink: 0; }
.cat-main { flex: 1; min-width: 0; }
.cat-tree {
  border: 1px solid #e3edf2; border-radius: 10px; padding: 10px; background: #fbfdfe;
  position: sticky; top: 20px;
}
.cat-node {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 6px; font-size: 14px; color: #456; line-height: 1.3;
}
.cat-node:hover { background: var(--brand-light); color: var(--brand); }
.cat-node.active { background: var(--brand); color: #fff; }
.cat-node .cat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-node .cat-count {
  flex-shrink: 0; font-size: 12px; color: #9ab; background: #eef4f7;
  border-radius: 10px; padding: 1px 8px; min-width: 26px; text-align: center;
}
.cat-node.active .cat-count { background: rgba(255,255,255,.25); color: #fff; }
.cat-node.all { font-weight: 600; color: var(--brand); margin-bottom: 6px; }
.cat-row { display: flex; align-items: center; }
.cat-toggle {
  width: 22px; height: 30px; flex-shrink: 0; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; color: #8aa;
}
.cat-toggle .cat-arrow {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; margin-top: -2px;
}
.cat-group:not(.open) .cat-arrow { transform: rotate(-45deg); margin-top: 2px; }
.cat-group:not(.open) .cat-children { display: none; }
.cat-children { padding: 2px 0 6px 22px; }
.cat-node.child { font-size: 13px; padding: 7px 10px; }
.cat-node.parent { font-weight: 600; flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .cat-layout { flex-direction: column; }
  .cat-side { width: 100%; }
  .cat-tree { position: static; }
}

/* ============ 新闻列表 ============ */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item { display: flex; gap: 18px; padding: 18px 8px; border-bottom: 1px solid #f0f0f0; align-items: center; }
.news-item:hover h3 { color: var(--accent); }
.news-date {
  width: 64px; height: 64px; border: 1px solid #eee; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; background: #fafbfc;
}
.news-date b { font-size: 22px; color: var(--brand); line-height: 1.1; }
.news-date span { font-size: 12px; color: #999; }
.news-info { min-width: 0; }
.news-info h3 { font-size: 16px; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-info p { margin: 0; color: #999; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 详情页 ============ */
.breadcrumb { font-size: 13px; color: #999; margin: 0 0 24px; }
.breadcrumb a { color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
.main-img { width: 100%; border: 1px solid #eee; border-radius: 8px; aspect-ratio: 4/3; object-fit: contain; background: #fafbfc; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-item { width: 72px; height: 72px; object-fit: cover; border: 2px solid #eee; border-radius: 6px; cursor: pointer; }
.thumb-item.active, .thumb-item:hover { border-color: var(--accent); }
.detail-title { font-size: 26px; margin: 0 0 16px; color: var(--brand-strong); }
.model { font-size: 15px; color: #555; margin: 8px 0; }
.model b { color: var(--accent); }
.model a { color: var(--brand); }
.summary { color: #666; line-height: 1.8; margin: 20px 0; padding: 16px; background: var(--bg-soft); border-radius: 8px; }
.rich-tabs { margin-top: 40px; }
.rich-content { max-width: 960px; margin: 0 auto; }

/* ============ 富文本 ============ */
.rich { line-height: 1.8; word-break: break-word; }
.rich img { max-width: 100%; height: auto; margin: 8px 0; }
.rich p { margin: 0.6em 0; }
.rich table { border-collapse: collapse; width: 100%; }
.rich td, .rich th { border: 1px solid #ddd; padding: 6px 10px; }

/* ============ 文章/关于 ============ */
.article { max-width: 900px; margin: 0 auto; }
.article-title { font-size: 28px; text-align: center; margin: 0 0 12px; color: var(--brand-strong); }
.article-meta { text-align: center; color: #999; font-size: 13px; margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.about-content { min-height: 200px; }

/* ============ 下载列表 ============ */
.download-list { max-width: 900px; margin: 0 auto; }
.download-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 14px; background: #fff;
}
.download-item:hover { border-color: var(--brand-light); box-shadow: 0 4px 16px rgba(32,80,100,.08); }
.dl-info h3 { margin: 0 0 6px; font-size: 16px; }
.dl-info p { margin: 0; color: #999; font-size: 13px; }
.dl-btn {
  flex-shrink: 0; background: var(--brand); color: #fff; padding: 9px 26px;
  border-radius: 22px; font-size: 14px;
}
.dl-btn:hover { background: var(--accent); color: #fff; }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { color: var(--brand-strong); font-size: 20px; margin: 0 0 20px; }
.contact-info p { line-height: 2; color: #555; }
.contact-form label { display: block; font-size: 14px; margin-bottom: 14px; color: #444; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #d5dce3; border-radius: 6px; padding: 10px 12px; font-size: 14px;
  margin-top: 4px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); outline: none; }
.alert { max-width: 1000px; margin: 0 auto 20px; padding: 12px 18px; border-radius: 6px; }
.alert-ok { background: #e8f6ec; color: #25734a; border: 1px solid #bfe3cd; }
.alert-err { background: #fdecec; color: #b33b3b; border: 1px solid #f3c2c2; }

/* ============ 分页 ============ */
.pager { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.pager a {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dde5ea; border-radius: 6px; color: #555; font-size: 14px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ 页脚 ============ */
.site-footer { background: var(--brand-strong); color: #a8bcc8; padding: 40px 0 24px; margin-top: 64px; }
.footer-inner { text-align: center; font-size: 13px; line-height: 1.9; }
.f-name { color: #fff; font-size: 16px; margin: 0 0 8px; }
.f-line { margin: 0; }
.f-copy { margin: 12px 0 0; color: #7e97a4; }
.f-copy a { color: #7e97a4; }
.f-copy a:hover { color: #a8bcc8; }
