/* ============================================================
   上海净信实业有限公司 · 产品自适应官网 全站样式
   主色 0B4B8F · 辅色亮蓝 2A7DE1 / 青色 00A6C6 · 底色 F5F7FA
   设计规范：卡片圆角 8px · 克制阴影 · 移动端优先
   ============================================================ */

:root {
  /* 色彩变量 */
  --jx-primary: #0B4B8F;
  --jx-primary-dark: #083a6e;
  --jx-primary-light: #2A7DE1;
  --jx-accent: #00A6C6;
  --jx-bg: #FFFFFF;
  --jx-bg-soft: #F5F7FA;
  --jx-bg-blue: #EAF1F9;
  --jx-text: #1F2D3D;
  --jx-text-muted: #5B6B7C;
  --jx-border: #E3E9F0;
  --jx-success: #1F9D6B;
  --jx-danger: #D64545;
  --jx-warning: #E6A23C;

  /* 圆角与阴影 */
  --jx-radius: 8px;
  --jx-shadow-sm: 0 1px 3px rgba(11, 75, 143, 0.08);
  --jx-shadow: 0 6px 18px rgba(11, 75, 143, 0.10);
  --jx-shadow-hover: 0 12px 28px rgba(11, 75, 143, 0.16);

  /* 间距 */
  --jx-space: 24px;
  --jx-space-lg: 48px;

  /* 字体 */
  --jx-font-base: clamp(14px, 0.9rem + 0.15vw, 16px);
}

/* ---------- 基础重置 ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--jx-font-base);
  line-height: 1.7;
  color: var(--jx-text);
  background: var(--jx-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--jx-primary-dark);
  font-weight: 700;
  line-height: 1.35;
}

/* 大标题采用 clamp 平滑缩放 */
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.0rem + 0.55vw, 1.4rem); }

a { color: var(--jx-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--jx-primary-light); }
img { max-width: 100%; height: auto; }

.text-muted { color: var(--jx-text-muted) !important; }
.bg-soft { background: var(--jx-bg-soft); }
.bg-blue { background: var(--jx-bg-blue); }
.primary-color { color: var(--jx-primary); }
.accent-color { color: var(--jx-accent); }

/* 版心 */
.container-jx { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1440px) { .container-jx { max-width: 1280px; } }
@media (max-width: 1199.98px) { .container-jx { padding: 0 32px; } }
@media (max-width: 991.98px) { .container-jx { padding: 0 24px; } }
@media (max-width: 767.98px) { .container-jx { padding: 0 16px; } }
@media (max-width: 479.98px) { .container-jx { padding: 0 12px; } }

/* ---------- 按钮 ---------- */
.btn-jx {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--jx-radius); font-weight: 600;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-jx-primary { background: var(--jx-primary); color: #fff; border-color: var(--jx-primary); }
.btn-jx-primary:hover { background: var(--jx-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--jx-shadow); }
.btn-jx-outline { background: transparent; color: var(--jx-primary); border-color: var(--jx-primary); }
.btn-jx-outline:hover { background: var(--jx-primary); color: #fff; }
.btn-jx-light { background: #fff; color: var(--jx-primary); border-color: var(--jx-border); }
.btn-jx-light:hover { border-color: var(--jx-primary); color: var(--jx-primary); }
.btn-jx-accent { background: var(--jx-accent); color: #fff; }
.btn-jx-accent:hover { background: var(--jx-primary); color: #fff; }

/* ---------- 区块标题 ---------- */
.section-head { margin-bottom: 32px; }
.section-head .section-kicker {
  color: var(--jx-primary); font-weight: 700; letter-spacing: 1px;
  font-size: .8rem; text-transform: uppercase; margin-bottom: 6px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--jx-text-muted); max-width: 720px; margin: 0; }

.section { padding: var(--jx-space-lg) 0; }
@media (max-width: 767.98px) { .section { padding: 36px 0; } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--jx-border);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: var(--jx-shadow-sm);
  transition: box-shadow .3s ease;
}
.navbar-jx { padding: 0; }
.navbar-jx .navbar-brand img { height: 44px; width: auto; }
.navbar-jx .nav-link {
  color: var(--jx-text); font-weight: 500; padding: 18px 14px;
  position: relative; font-size: 15px;
}
.navbar-jx .nav-link:hover, .navbar-jx .nav-link.active { color: var(--jx-primary); }
.navbar-jx .nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px;
  height: 2px; background: var(--jx-primary); border-radius: 2px;
}
.navbar-jx .dropdown-menu {
  border: none; border-radius: var(--jx-radius); box-shadow: var(--jx-shadow);
  padding: 8px; min-width: 220px;
}
.navbar-jx .dropdown-item { border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.navbar-jx .dropdown-item:hover { background: var(--jx-bg-blue); color: var(--jx-primary); }
.navbar-jx .dropdown-item .small { color: var(--jx-text-muted); }
.navbar-topbar {
  background: var(--jx-primary-dark); color: #cfdff0; font-size: 13px;
}
.navbar-topbar a { color: #e6f0fb; }
.navbar-topbar .sep { color: rgba(255,255,255,.35); margin: 0 10px; }
.navbar-tools { display: flex; align-items: center; gap: 12px; }
.search-btn, .lang-btn { background: none; border: none; color: var(--jx-text); font-size: 1.1rem; }
.navbar-phone { color: var(--jx-primary); font-weight: 700; font-size: 15px; }

/* 移动端抽屉 */
.offcanvas-jx { width: 300px !important; }

/* ---------- 面包屑 ---------- */
.breadcrumb-jx {
  background: var(--jx-bg-soft); border-bottom: 1px solid var(--jx-border);
  padding: 14px 0; font-size: 14px;
}
.breadcrumb-jx .breadcrumb { margin: 0; }
.breadcrumb-jx .breadcrumb-item + .breadcrumb-item::before { content: "›"; }
.breadcrumb-jx a { color: var(--jx-text-muted); }
.breadcrumb-jx .breadcrumb-item.active { color: var(--jx-primary); }

/* ---------- 轮播 Banner ---------- */
.hero-carousel .carousel-item { position: relative; }
.hero-slide {
  height: 520px; display: flex; align-items: center;
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,75,143,.88), rgba(11,75,143,.35) 60%, rgba(0,0,0,0)); }
.hero-slide .hero-content { position: relative; z-index: 2; max-width: 640px; color: #fff; padding: 40px 0; }
.hero-slide .hero-tag {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px;
}
.hero-slide h1 { color: #fff; margin-bottom: 16px; }
.hero-slide p { color: #eaf1f9; font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }
.hero-slide .btn-jx { margin-right: 10px; }
@media (max-width: 991.98px) { .hero-slide { height: 420px; } }
@media (max-width: 767.98px) {
  .hero-slide { height: auto; min-height: 380px; padding: 30px 0; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(11,75,143,.92), rgba(11,75,143,.6)); }
}
.hero-carousel .carousel-indicators { bottom: 18px; }
.hero-carousel .carousel-indicators button { width: 26px; height: 4px; border-radius: 2px; background-color: #fff; opacity: .5; }
.hero-carousel .carousel-indicators button.active { opacity: 1; background: var(--jx-accent); }

/* ---------- 应用领域卡片 ---------- */
.domain-card {
  background: #fff; border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
  padding: 26px 22px; height: 100%; transition: all .25s ease;
}
.domain-card:hover { box-shadow: var(--jx-shadow-hover); transform: translateY(-4px); border-color: var(--jx-primary-light); }
.domain-card .domain-icon {
  width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--jx-bg-blue); color: var(--jx-primary); font-size: 1.6rem; margin-bottom: 16px;
}
.domain-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.domain-card p { color: var(--jx-text-muted); font-size: 14px; margin-bottom: 12px; }
.domain-card a.more { font-size: 14px; font-weight: 600; }

/* 合规提示条 */
.compliance-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--jx-bg-blue); border: 1px solid #cfe0f2; color: var(--jx-primary-dark);
  border-radius: var(--jx-radius); padding: 10px 16px; font-size: 13px; margin-top: 20px;
}
.compliance-bar i { color: var(--jx-accent); }
@media (max-width: 767.98px) { .compliance-bar { flex-wrap: wrap; } }

/* ---------- 产品卡片 ---------- */
.product-card {
  background: #fff; border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all .25s ease;
}
.product-card:hover { box-shadow: var(--jx-shadow-hover); transform: translateY(-4px); }
.product-card .product-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .product-model { color: var(--jx-primary); font-weight: 700; font-size: 14px; }
.product-card h3 { font-size: 1.05rem; margin: 4px 0 10px; }
.product-card .product-features { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.product-card .product-features li { font-size: 13.5px; color: var(--jx-text-muted); padding: 3px 0; }
.product-card .product-features li::before { content: "✓"; color: var(--jx-accent); margin-right: 8px; font-weight: 700; }
.product-card .compliance-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
  color: var(--jx-primary); background: var(--jx-bg-blue); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}

/* ---------- 特色/数据模块 ---------- */
.feature-card {
  background: #fff; border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
  padding: 26px; height: 100%; transition: all .25s ease;
}
.feature-card:hover { box-shadow: var(--jx-shadow-hover); }
.feature-card .feature-icon { font-size: 2rem; color: var(--jx-primary); margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--jx-text-muted); font-size: 14px; margin: 0; }

.stat-item { text-align: center; padding: 12px; }
.stat-item .stat-num { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 800; color: var(--jx-primary); line-height: 1.1; }
.stat-item .stat-label { color: var(--jx-text-muted); font-size: 14px; margin-top: 4px; }

/* ---------- 新闻/案例卡片 ---------- */
.news-card, .case-card {
  background: #fff; border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all .25s ease;
}
.news-card:hover, .case-card:hover { box-shadow: var(--jx-shadow-hover); transform: translateY(-4px); }
.news-card .news-thumb, .case-card .case-thumb { aspect-ratio: 16/9; overflow: hidden; }
.news-card .news-thumb img, .case-card .case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-thumb img, .case-card:hover .case-thumb img { transform: scale(1.05); }
.news-card .news-body, .case-card .case-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-date, .case-card .case-tag { font-size: 13px; color: var(--jx-text-muted); }
.news-card h3, .case-card h3 { font-size: 1.02rem; margin: 8px 0; line-height: 1.5; }
.news-card p, .case-card p { font-size: 14px; color: var(--jx-text-muted); margin-bottom: 12px; }

/* ---------- 合作伙伴 ---------- */
.partner-logo {
  filter: grayscale(1); opacity: .75; transition: all .25s ease;
  display: flex; align-items: center; justify-content: center; height: 80px;
  border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; border-color: var(--jx-primary-light); }

/* ---------- CTA 引导区块 ---------- */
.cta-block {
  background: linear-gradient(120deg, var(--jx-primary), var(--jx-primary-light));
  border-radius: 12px; padding: 44px 40px; color: #fff; position: relative; overflow: hidden;
}
.cta-block::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-block h2 { color: #fff; }
.cta-block p { color: #d9e6f5; margin: 8px 0 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a2f57; color: #b9cade; font-size: 14px; }
.site-footer a { color: #b9cade; }
.site-footer a:hover { color: #fff; }
.site-footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.site-footer .footer-brand img { height: 40px; }
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links i { color: var(--jx-accent); margin-right: 8px; font-size: 12px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
.site-footer .footer-bottom a { color: #8fb3d8; }

/* ---------- 悬浮工具条 ---------- */
.float-toolbar {
  position: fixed; right: 20px; bottom: 24px; z-index: 1050; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease;
}
.float-toolbar.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-toolbar a {
  width: 46px; height: 46px; border-radius: 12px; background: var(--jx-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: var(--jx-shadow); transition: all .25s ease;
}
.float-toolbar a:hover { background: var(--jx-accent); color: #fff; transform: translateY(-3px); }
@media (max-width: 767.98px) { .float-toolbar { right: 14px; bottom: 18px; } .float-toolbar a { width: 42px; height: 42px; } }

/* ---------- 表单 ---------- */
.form-jx .form-control, .form-jx .form-select {
  border-radius: var(--jx-radius); border-color: var(--jx-border); padding: 10px 14px; font-size: 15px;
}
.form-jx .form-control:focus, .form-jx .form-select:focus {
  border-color: var(--jx-primary-light); box-shadow: 0 0 0 .2rem rgba(11,75,143,.12);
}
.form-jx label { font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.form-jx .required::after { content: " *"; color: var(--jx-danger); }
.form-jx .form-text { font-size: 12.5px; color: var(--jx-text-muted); }
.invalid-feedback { font-size: 13px; }
.contact-card {
  background: #fff; border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
  padding: 24px; height: 100%; transition: all .25s ease;
}
.contact-card:hover { box-shadow: var(--jx-shadow-hover); }
.contact-card .contact-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--jx-bg-blue); color: var(--jx-primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: var(--jx-text-muted); margin: 0; font-size: 14px; }

/* ---------- 产品详情页 ---------- */
.gallery-main { aspect-ratio: 1/1; border: 1px solid var(--jx-border); border-radius: var(--jx-radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb { aspect-ratio: 1/1; border: 2px solid var(--jx-border); border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .7; }
.gallery-thumbs .thumb.active { border-color: var(--jx-primary); opacity: 1; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.sticky-anchor-wrap { position: relative; }
.anchor-nav { position: sticky; top: 62px; z-index: 1020; background: #fff; border: 1px solid var(--jx-border); border-radius: var(--jx-radius); padding: 8px; }
.anchor-nav .nav-link { color: var(--jx-text-muted); font-size: 14px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.anchor-nav .nav-link:hover, .anchor-nav .nav-link.active { background: var(--jx-bg-blue); color: var(--jx-primary); }
.anchor-target { scroll-margin-top: 72px; }

/* 参数表 */
.param-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.param-table th, .param-table td { border: 1px solid var(--jx-border); padding: 10px 14px; text-align: left; }
.param-table th { background: var(--jx-bg-blue); color: var(--jx-primary-dark); width: 30%; font-weight: 600; }
.param-table tr:nth-child(even) td { background: var(--jx-bg-soft); }
@media (max-width: 575.98px) {
  .param-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .param-table { min-width: 520px; }
}

/* 对比表 */
.compare-table { font-size: 14px; }
.compare-table th, .compare-table td { text-align: center; padding: 12px; vertical-align: middle; }
.compare-table .feature-col { text-align: left; color: var(--jx-text-muted); }
.compare-table thead th { background: var(--jx-primary); color: #fff; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: #cfe0f2; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--jx-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--jx-primary-light);
}
.timeline-item .tl-year { font-weight: 800; color: var(--jx-primary); font-size: 1.15rem; }
.timeline-item h3 { font-size: 1.02rem; margin: 2px 0 6px; }
.timeline-item p { color: var(--jx-text-muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.accordion-jx .accordion-item { border: 1px solid var(--jx-border); border-radius: var(--jx-radius); margin-bottom: 12px; overflow: hidden; }
.accordion-jx .accordion-button { font-weight: 600; color: var(--jx-text); padding: 16px 20px; background: #fff; }
.accordion-jx .accordion-button:not(.collapsed) { background: var(--jx-bg-blue); color: var(--jx-primary); box-shadow: none; }
.accordion-jx .accordion-button:focus { box-shadow: none; }

/* ---------- 文章正文 ---------- */
.article-body { font-size: 15.5px; line-height: 1.9; }
.article-body h2 { margin: 28px 0 14px; font-size: 1.35rem; }
.article-body h3 { margin: 22px 0 10px; font-size: 1.15rem; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin-bottom: 16px; padding-left: 22px; }
.article-body blockquote { border-left: 4px solid var(--jx-primary); background: var(--jx-bg-soft); padding: 12px 18px; border-radius: 0 6px 6px 0; color: var(--jx-text-muted); }
.article-body figure { margin: 20px 0; text-align: center; }
.article-body figcaption { font-size: 13px; color: var(--jx-text-muted); margin-top: 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0; }
.article-body th, .article-body td { border: 1px solid var(--jx-border); padding: 10px; }
.article-body th { background: var(--jx-bg-blue); }
.article-meta { color: var(--jx-text-muted); font-size: 14px; }

/* ---------- 案例数据表 ---------- */
.case-info-table td { padding: 10px 14px; border-bottom: 1px solid var(--jx-border); font-size: 14.5px; }
.case-info-table td:first-child { color: var(--jx-text-muted); width: 130px; }

/* ---------- 占位图样式 ---------- */
.img-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #dbe7f4, #eef4fb); color: var(--jx-primary);
  width: 100%; height: 100%; min-height: 120px;
}
.img-placeholder .ph-label { font-weight: 700; }
.img-placeholder .ph-sub { font-size: 12px; color: var(--jx-text-muted); margin-top: 4px; }

/* ---------- 分页 ---------- */
.pagination-jx .page-link { color: var(--jx-primary); border-color: var(--jx-border); margin: 0 3px; border-radius: 6px; min-width: 40px; text-align: center; }
.pagination-jx .page-item.active .page-link { background: var(--jx-primary); border-color: var(--jx-primary); }
.pagination-jx .page-item.disabled .page-link { color: #b0bcc8; }

/* ---------- 滚动入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 无障碍：focus ---------- */
a:focus-visible, button:focus-visible, .form-control:focus, .form-select:focus {
  outline: 3px solid rgba(42,125,225,.5); outline-offset: 2px;
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 通用工具 ---------- */
.page-title-bar { padding: 40px 0 8px; }
@media (max-width: 767.98px) { .page-title-bar { padding: 26px 0 4px; } }
.list-dot { list-style: none; padding-left: 0; }
.list-dot li { padding: 4px 0; font-size: 14.5px; color: var(--jx-text-muted); }
.list-dot li::before { content: "▸"; color: var(--jx-primary-light); margin-right: 8px; }
