/* ====== 基础 ====== */
:root {
  --primary: #1554b3;
  --primary-dark: #0f3f88;
  --primary-light: #e8f0fb;
  --ink: #1f2a37;
  --muted: #5b6b7c;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(23, 43, 77, .06);
  --shadow-hover: 0 8px 24px rgba(23, 43, 77, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.text-center { text-align: center; }
.empty { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.link { color: var(--primary); }

/* ====== 按钮 ====== */
.btn {
  display: inline-block; padding: 9px 20px; border-radius: 6px; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: .2s; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; margin-bottom: 10px; }

/* ====== 头部 ====== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 1; min-width: 0; }
.brand:hover { color: var(--primary); }
.brand-logo { height: 40px; flex: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; letter-spacing: 1px; flex: none;
}
.brand-text { min-width: 0; overflow: hidden; }
.brand-text strong {
  display: block; font-size: 17px; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text em {
  display: block; font-style: normal; font-size: 12px; color: var(--muted);
  max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; flex-shrink: 0; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 10px 10px; color: var(--ink); font-size: 14px; border-radius: 6px; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a.active { color: var(--primary); background: var(--primary-light); }
.caret { font-size: 10px; color: var(--muted); }
.sub-nav {
  position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav-item.has-children:hover .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.sub-nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta { margin-left: 6px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--ink); white-space: nowrap;
}
.lang-icon { width: 16px; height: 16px; flex: none; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 20px; padding: 4px 10px; cursor: pointer; }

/* ====== 通用区块 ====== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-title { text-align: center; font-size: 26px; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; }
.section-more { text-align: center; margin-top: 28px; }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: .2s; display: block; color: var(--ink);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #cdd9ea; transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

/* ====== 首页 Hero ====== */
.hero {
  background: linear-gradient(120deg, #0f3f88 0%, #1554b3 60%, #1e6ad1 100%);
  color: #fff; background-size: cover; background-position: center;
}
.hero-inner { padding: 84px 20px; text-align: center; }
.hero h1 { color: #fff; font-size: 36px; margin-bottom: 18px; }
.hero-sub { color: #dbe7f8; font-size: 17px; max-width: 820px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* 优势卡片 */
.advantage-card { position: relative; padding-top: 26px; }
.adv-num { position: absolute; top: -14px; left: 22px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; }
.advantage-card h3 { font-size: 16px; }
.advantage-card p { color: var(--muted); font-size: 14px; }

/* 产品入口 */
.product-entry img { border-radius: 6px; margin-bottom: 12px; height: 120px; object-fit: cover; width: 100%; }
.product-entry .more { color: var(--primary); font-size: 13px; }
.product-entry h3 { font-size: 16px; }

/* 定制条 */
.customize-band { background: linear-gradient(120deg, #123c7a, #1a63c4); border-radius: 12px; padding: 44px; color: #fff; }
.customize-text { max-width: 760px; }
.customize-band h2 { color: #fff; }
.customize-band p { color: #dbe7f8; }
.customize-band .tag { display: inline-block; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 14px; }
.customize-band .btn-primary { background: #fff; color: var(--primary-dark); }
.customize-band .btn-primary:hover { background: #e8f0fb; }

/* 询价条 */
.inquiry-band { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 44px; background: var(--bg-alt); }
.inquiry-band h2 { margin-bottom: 10px; }
.inquiry-band p { color: var(--muted); max-width: 720px; margin: 0 auto 22px; }

/* 案例卡片 */
.case-industry { color: var(--primary); font-size: 13px; }

/* ====== 内页 Hero ====== */
.page-hero { background: linear-gradient(120deg, #0f3a7d, #1a63c4); color: #fff; padding: 46px 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #d5e3f7; margin: 0; max-width: 820px; }
.crumbs { font-size: 13px; color: #b9cdea; margin-bottom: 12px; }
.crumbs a { color: #d5e3f7; }
.crumbs span { margin: 0 6px; color: #8fb0dc; }
.crumbs em { font-style: normal; color: #fff; }

/* ====== 产品 ====== */
.cat-block { margin-bottom: 46px; }
.cat-head { border-left: 4px solid var(--primary); padding-left: 14px; margin-bottom: 20px; }
.cat-head h2 { margin: 0 0 4px; font-size: 21px; }
.cat-head p { margin: 0; color: var(--muted); font-size: 14px; }
.cat-more { margin-top: 16px; }
.product-card h3 { font-size: 16px; }
.product-card .model { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-sm { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 4px; }

/* 规格表 */
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.spec-table th { background: var(--bg-alt); width: 180px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.spec-table tr:nth-child(even) td { background: #fafbfd; }
.product-block { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.product-block:last-child { border-bottom: none; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.thumb-row img { width: 140px; height: 100px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.dl { margin: 10px 0 0; }

/* 详情布局 */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; }
.detail-summary { font-size: 16px; color: #374151; }
.detail-html { margin-top: 20px; }
.side-box { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--bg); }
.side-box h3 { margin-top: 0; }
.side-meta { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.side-meta li { padding: 6px 0 6px 18px; position: relative; }
.side-meta li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.gallery img { border: 1px solid var(--line); border-radius: 6px; height: 110px; object-fit: cover; }

/* 两栏 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-top { align-items: start; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ====== 文章 / 单页 ====== */
.article h2 { margin-top: 1.6em; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: .4em; }

/* ====== 案例 ====== */
.case-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.case-block:last-of-type { border-bottom: none; }
.case-dl { display: grid; grid-template-columns: 100px 1fr; gap: 8px 18px; margin: 0; }
.case-dl dt { color: var(--primary); font-weight: 600; }
.case-dl dd { margin: 0; color: #374151; }

/* ====== FAQ ====== */
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-q { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.faq-a { color: #374151; margin: 0; }

/* ====== 联系 / 表单 ====== */
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contact-list span { color: var(--muted); width: 84px; flex: none; }
.wechat-img { width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.map-embed { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.inquiry-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: var(--shadow); }
.form-hint { color: var(--muted); font-size: 14px; }
.inquiry-form .form-row { margin-bottom: 16px; }
.inquiry-form .form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.inquiry-form .req { color: #d93025; }
.inquiry-form input[type=text], .inquiry-form textarea, .inquiry-form input[type=file] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.field-tip { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row input { max-width: 180px; }
.captcha-q { background: var(--bg-alt); padding: 8px 14px; border-radius: 6px; font-weight: 700; letter-spacing: 1px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-msg { font-size: 14px; }
.form-msg.ok { color: #0a7d33; }
.form-msg.err { color: #d93025; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; }
.alert-ok { background: #e7f6ec; color: #0a7d33; border: 1px solid #b7e2c4; }

/* ====== 搜索 ====== */
.result-list { list-style: none; padding: 0; }
.result-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-list small { color: var(--muted); }
.result-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.err-code { font-size: 72px; color: var(--primary); margin: 0 0 10px; }

/* ====== 页脚 ====== */
.site-footer { background: #17212f; color: #aab6c6; padding: 46px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.footer-col a { color: #aab6c6; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 14px; }
.footer-contact li { padding: 3px 0; }
.footer-qr { width: 110px; margin-top: 12px; border-radius: 6px; }
.footer-links { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2a3646; font-size: 13px; }
.footer-links a { color: #aab6c6; }
.footer-links .sep { margin: 0 8px; color: #3a4759; }
.footer-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2a3646; font-size: 13px; }
.footer-bottom p { margin: 4px 0; }
.footer-note { color: #7d8a9c; }

/* ====== 响应式 ====== */
@media (max-width: 1280px) {
  .brand-text em { display: none; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .header-right { gap: 6px; }
  .lang-switch { padding: 7px 10px; font-size: 13px; }
  .lang-icon { width: 15px; height: 15px; }
}
@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .hero-inner { padding: 54px 20px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .inquiry-form .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .customize-band, .inquiry-band { padding: 26px; }
  .section { padding: 38px 0; }
}
