/* ============================================
   通星防爆科技有限公司 官网样式
   深蓝科技风 · 响应式
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", -apple-system, "PingFang SC", sans-serif;
  background: #081422;
  color: #cfe3f5;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: #060f1c; border-bottom: 1px solid #12324d; font-size: 13px; color: #7fa3bf; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; flex-wrap: wrap; gap: 4px; }
.topbar .hotline b { color: #3db8ff; }

/* ---------- 导航 ---------- */
.header { background: #0b1a2b; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #12324d; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 46px; width: auto; }
.logo .logo-text { line-height: 1.3; }
.logo .logo-text .cn { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 1px; white-space: nowrap; }
.logo .logo-text .en { font-size: 11px; color: #3db8ff; letter-spacing: 2px; white-space: nowrap; }
.nav-menu { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.nav-menu a { display: block; padding: 7px 11px; border-radius: 6px; color: #cfe3f5; font-size: 14px; transition: all .2s; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: #123a58; }
.nav-toggle { display: none; background: none; border: 1px solid #3db8ff; color: #3db8ff; font-size: 22px; padding: 4px 12px; border-radius: 6px; cursor: pointer; }

/* ---------- Banner ---------- */
.banner { position: relative; height: 520px; padding: 0 !important; overflow: hidden; box-sizing: border-box; background: linear-gradient(135deg, #0b1a2b 0%, #0d2840 55%, #123a58 100%); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,15,28,.88) 0%, rgba(6,15,28,.45) 55%, rgba(6,15,28,.15) 100%);
  display: flex; align-items: center;
}
.banner .banner-mask .container { width: 100%; }
.banner h2 { font-size: 42px; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.banner h2 span { color: #3db8ff; }
.banner p { font-size: 18px; color: #d5e8f7; max-width: 640px; margin-bottom: 22px; }
.btn { display: inline-block; padding: 11px 28px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: all .2s; }
.btn-blue { background: #3db8ff; color: #081422; }
.btn-blue:hover { background: #5cc6ff; }
.btn-ghost { border: 1px solid #3db8ff; color: #3db8ff; }
.btn-ghost:hover { background: #123a58; color: #fff; }

/* ---------- 区块标题 ---------- */
.section { padding: 56px 0; }
.section-alt { background: #0b1a2b; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h3 { font-size: 28px; color: #fff; letter-spacing: 2px; }
.section-head h3 span { color: #3db8ff; }
.section-head .sub { color: #7fa3bf; margin-top: 8px; font-size: 14px; }
.section-head .line { width: 56px; height: 3px; background: linear-gradient(90deg, #3db8ff, #0a84cf); margin: 14px auto 0; border-radius: 2px; }

/* ---------- 认证服务（证书卡片） ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert-card {
  background: #0d2034; border: 1px solid #12324d; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: all .25s;
}
.cert-card:hover { transform: translateY(-4px); border-color: #3db8ff; box-shadow: 0 8px 24px rgba(10,132,207,.25); }
.cert-visual { height: 132px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cert-visual img { width: 100%; height: 100%; object-fit: cover; }
.cert-visual .c-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(61,184,255,.18), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(10,132,207,.22), transparent 55%),
    linear-gradient(135deg, #0d2840, #0a1b30);
}
.cert-visual .c-badge {
  position: relative; width: 74px; height: 96px; background: #eef6fd; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #bcd9ec;
}
.cert-visual .c-badge .c-mark { width: 34px; height: 18px; background: #0a84cf; border-radius: 3px; }
.cert-visual .c-badge .c-lines { width: 46px; height: 3px; background: #c9dce8; border-radius: 2px; }
.cert-visual .c-badge .c-lines.short { width: 30px; }
.cert-info { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.cert-info h4 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.cert-info p { font-size: 13px; color: #8fb3cc; flex: 1; }
.cert-info .cert-more { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.cert-info .cert-more .tel { color: #6fe08a; font-weight: 700; font-size: 15px; }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card {
  background: #0d2034; border: 1px solid #12324d; border-radius: 10px; overflow: hidden;
  display: flex; min-height: 210px; transition: all .25s;
}
.case-card:hover { border-color: #3db8ff; box-shadow: 0 8px 24px rgba(10,132,207,.22); }
.case-text { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.case-text h4 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.case-text .tag { font-size: 12px; color: #3db8ff; background: rgba(61,184,255,.12); border: 1px solid rgba(61,184,255,.3); padding: 3px 10px; border-radius: 4px; display: inline-block; margin-bottom: 10px; width: fit-content; }
.case-text p { font-size: 13px; color: #8fb3cc; }
.case-text .spec { margin-top: 12px; font-size: 13px; color: #6fe08a; }
.case-img { width: 46%; min-height: 210px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 关于 / 优势 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.about-wrap .about-text h3 { font-size: 26px; color: #fff; margin-bottom: 16px; }
.about-wrap .about-text p { color: #9db8cd; margin-bottom: 14px; font-size: 14px; }
.about-wrap .about-img { border-radius: 10px; overflow: hidden; border: 1px solid #12324d; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card { background: #0d2034; border: 1px solid #12324d; border-radius: 10px; padding: 24px 20px; text-align: center; transition: all .25s; }
.adv-card:hover { border-color: #3db8ff; transform: translateY(-4px); }
.adv-card .icon { font-size: 34px; margin-bottom: 12px; }
.adv-card h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.adv-card p { color: #8fb3cc; font-size: 13px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: #0d2034; border: 1px solid #12324d; border-radius: 10px; padding: 20px; transition: all .25s; display: flex; flex-direction: column; }
.news-card:hover { border-color: #3db8ff; transform: translateY(-3px); }
.news-card .date { font-size: 12px; color: #5f86a3; margin-bottom: 8px; }
.news-card h4 { font-size: 15px; color: #fff; margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 13px; color: #8fb3cc; flex: 1; }
.news-card .more-link { margin-top: 12px; color: #3db8ff; font-size: 13px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: #0d2034; border: 1px solid #12324d; border-radius: 10px; padding: 26px 24px; text-align: center; }
.contact-card .icon { font-size: 30px; margin-bottom: 12px; }
.contact-card h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.contact-card .val { color: #3db8ff; font-size: 18px; font-weight: 700; word-break: break-all; }
.contact-card .val a:hover { color: #6fe08a; }
.contact-card .note { color: #5f86a3; font-size: 12px; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.footer { background: #060f1c; border-top: 1px solid #12324d; padding: 34px 0 22px; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .f-col h5 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer .f-col p, .footer .f-col a { color: #7fa3bf; font-size: 13px; display: block; margin: 5px 0; }
.footer .f-col a:hover { color: #3db8ff; }
.footer .f-logo img { height: 42px; }
.footer .copyright { text-align: center; color: #4d6b84; font-size: 12px; margin-top: 24px; border-top: 1px solid #0d2034; padding-top: 16px; }

/* ---------- 内页横幅 ---------- */
.page-banner { padding: 56px 0; background: linear-gradient(135deg, #081422, #0b1a2b 60%, #0d2840); border-bottom: 1px solid #12324d; }
.page-banner h1 { font-size: 30px; color: #fff; letter-spacing: 2px; }
.page-banner h1 span { color: #3db8ff; }
.page-banner .crumb { color: #7fa3bf; font-size: 13px; margin-top: 8px; }
.page-banner .crumb a:hover { color: #3db8ff; }

/* ---------- 内页内容 ---------- */
.page-content { padding: 44px 0 60px; }
.rich-text h3 { color: #fff; font-size: 20px; margin: 26px 0 12px; }
.rich-text h4 { color: #6fe08a; font-size: 16px; margin: 18px 0 8px; }
.rich-text p { color: #9db8cd; font-size: 14px; margin: 10px 0; }
.rich-text ul { padding-left: 22px; }
.rich-text ul li { color: #9db8cd; font-size: 14px; margin: 6px 0; list-style: disc; }
.rich-text .hl { color: #3db8ff; font-weight: 600; }

/* ---------- 流程 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.flow-step { background: #0d2034; border: 1px solid #12324d; border-radius: 10px; padding: 20px; text-align: center; position: relative; }
.flow-step .num { width: 34px; height: 34px; line-height: 34px; border-radius: 50%; background: #3db8ff; color: #081422; font-weight: 700; margin: 0 auto 10px; }
.flow-step h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.flow-step p { color: #8fb3cc; font-size: 13px; }

/* ---------- 新闻列表/详情 ---------- */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item { background: #0d2034; border: 1px solid #12324d; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: all .2s; }
.news-item:hover { border-color: #3db8ff; }
.news-item .t { color: #dcebf7; font-size: 15px; }
.news-item .d { color: #5f86a3; font-size: 12px; white-space: nowrap; }
.article { max-width: 900px; margin: 0 auto; background: #0d2034; border: 1px solid #12324d; border-radius: 10px; padding: 30px 34px; }
.article h1 { font-size: 24px; color: #fff; margin-bottom: 10px; }
.article .meta { color: #5f86a3; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid #12324d; margin-bottom: 20px; }

/* ---------- 图片画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.gallery.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-item { border-radius: 10px; overflow: hidden; border: 1px solid #12324d; background: #fff; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 权威认证机构 ---------- */
.auth-wrap { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.auth-logo { width: 100%; max-width: 720px; }
.auth-logo img { width: 100%; border-radius: 10px; border: 1px solid #12324d; }
.auth-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; max-width: 900px; }
.auth-certs img { width: 100%; border-radius: 8px; border: 1px solid #12324d; background: #fff; }

/* ---------- 导航下拉 ---------- */
.nav-item { position: relative; }
.nav-item:hover .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #0d2034; border: 1px solid #12324d; border-radius: 8px; min-width: 150px;
  padding: 8px 0; box-shadow: 0 10px 28px rgba(0,0,0,.45); z-index: 200;
}
.dropdown a { display: block; padding: 9px 18px; color: #cfe3f5; font-size: 14px; white-space: nowrap; text-align: left; border-radius: 4px; }
.dropdown a:hover { color: #3db8ff; background: #123a58; }

/* ---------- 栏目分类（内页） ---------- */
.cat-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cat-list a { padding: 8px 18px; border: 1px solid #12324d; border-radius: 6px; color: #8fb3cc; font-size: 14px; background: #0d2034; transition: all .2s; }
.cat-list a:hover, .cat-list a.active { color: #081422; background: #3db8ff; border-color: #3db8ff; }

/* ---------- 详情/列表补充 ---------- */
.page-banner .crumb span { color: #7fa3bf; }
.article .meta i { color: #3db8ff; font-style: normal; }
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rich-text table td, .rich-text table th { border: 1px solid #12324d; padding: 8px 12px; color: #9db8cd; font-size: 14px; }
.rich-text table th { color: #fff; background: #0d2034; }
.pagination { text-align: center; margin-top: 26px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 7px 14px; border: 1px solid #12324d; border-radius: 6px; color: #8fb3cc; font-size: 13px; background: #0d2034; }
.pagination a:hover, .pagination span.current { color: #081422; background: #3db8ff; border-color: #3db8ff; }

/* ---------- 留言表单 ---------- */
.msg-form { max-width: 720px; margin: 26px auto 0; background: #0d2034; border: 1px solid #12324d; border-radius: 10px; padding: 26px 30px; }
.msg-item { margin-bottom: 16px; }
.msg-item label { display: block; color: #cfe3f5; font-size: 14px; margin-bottom: 6px; }
.msg-item label .red { color: #ff7b7b; margin-left: 4px; }
.msg-input { width: 100%; background: #081422; border: 1px solid #12324d; border-radius: 6px; color: #cfe3f5; padding: 10px 12px; font-size: 14px; box-sizing: border-box; }
.msg-input:focus { outline: none; border-color: #3db8ff; }
textarea.msg-input { min-height: 110px; resize: vertical; }
.msg-form .btn { border: none; cursor: pointer; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .nav { flex-wrap: nowrap; }
  .logo .logo-text .en { display: none; }
  .logo img { height: 38px; }
  .logo .logo-text .cn { font-size: 15px; }
  .nav-menu a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 992px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .auth-certs { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 768px) {
  .banner { height: 380px; }
  .banner h2 { font-size: 26px; }
  .banner p { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0b1a2b;
    flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid #12324d;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; text-align: center; padding: 11px 0; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { flex-direction: column; }
  .case-img { width: 100%; min-height: 190px; }
  .about-wrap { grid-template-columns: 1fr; }
  .logo .logo-text .en { display: none; }
  .topbar .hotline { font-size: 12px; }
}
