/* =====================================================
   公司官网 前台样式
   主色：深空蓝 #0A1628 / #1A2A4A   点缀：金色 #C9A227 / 科技蓝 #3A6BF0
   ===================================================== */
:root {
  --navy-dark: #0A1628;
  --navy: #1A2A4A;
  --navy-light: #24385f;
  --gold: #C9A227;
  --gold-light: #e0bc4f;
  --tech-blue: #3A6BF0;
  --bg-light: #f5f7fb;
}

body {
  font-family: "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: #2c3e50;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy) 100%);
  box-shadow: 0 2px 12px rgba(10, 22, 40, .35);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-brand { padding: 6px 0; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  background: rgba(255,255,255,.06);
  margin-right: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 18px; font-weight: 600; color: #fff; }
.brand-slogan { font-size: 11px; color: rgba(255,255,255,.65); }
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  padding: 10px 16px;
  transition: color .2s;
}
.navbar-dark .navbar-nav .nav-link:hover { color: var(--gold-light); }
.navbar-dark .navbar-nav .nav-link.active { color: var(--gold); font-weight: 600; }

/* ---------- 首页轮播 ---------- */
.hero-carousel .hero-img { height: 520px; object-fit: cover; }
.hero-carousel .carousel-caption { background: rgba(10,22,40,.55); border-radius: 8px; padding: 14px 28px; }
.hero-carousel .carousel-caption h2 { color: #fff; letter-spacing: 1px; }
.hero-carousel .carousel-caption p { color: var(--gold-light); margin: 0; }

/* ---------- 首页标语区 ---------- */
.hero-intro {
  background: var(--bg-light);
  border-bottom: 1px solid #e9edf5;
}
.hero-title { font-size: 34px; font-weight: 700; color: var(--navy); letter-spacing: 2px; }
.hero-slogan { color: var(--tech-blue); font-size: 16px; letter-spacing: 3px; margin-bottom: 0; }

/* ---------- 区块标题 ---------- */
.section-title {
  position: relative;
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* ---------- 产品卡片 ---------- */
.product-card {
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10,22,40,.12);
}
.product-card .product-thumb { height: 200px; overflow: hidden; }
.product-card .product-thumb img,
.product-card .card-img-top { width: 100%; height: 200px; object-fit: cover; }
.product-card .card-title { font-size: 17px; font-weight: 600; }
.product-card .product-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: filter .2s, transform .15s;
}
.btn-gold:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn-outline-gold {
  color: var(--gold);
  border: 1px solid var(--gold);
  background: transparent;
  font-weight: 600;
  transition: all .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ---------- 页内横幅（产品中心等） ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #2a3f6d);
  color: #fff;
  padding: 56px 0 48px;
}
.page-banner h1 { font-weight: 700; letter-spacing: 3px; }
.page-banner p { color: var(--gold-light); letter-spacing: 2px; margin: 0; }

/* ---------- 产品详情 ---------- */
.main-image-wrap {
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.main-image { width: 100%; border-radius: 6px; }
.thumb-list { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-item {
  width: 72px;
  height: 72px;
  border: 2px solid #e6ebf4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active, .thumb-item:hover { border-color: var(--gold); }
.spec-table th { background: var(--bg-light); font-weight: 600; color: var(--navy); }
.detail-card {
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  padding: 28px;
  background: #fcfdfe;
  line-height: 1.9;
}

/* ---------- 富文本内容 ---------- */
.rich-text { line-height: 1.9; color: #3a4657; }
.rich-text img { max-width: 100%; height: auto; border-radius: 6px; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { color: var(--navy); margin-top: 1.2em; }
.rich-text a { color: var(--tech-blue); }
.rich-text table { width: 100%; border-collapse: collapse; }
.rich-text table td, .rich-text table th { border: 1px solid #dee4ef; padding: 8px 12px; }

/* ---------- 下载表格 ---------- */
.download-table thead th { background: var(--navy); color: #fff; border-color: var(--navy); }
.download-table tbody tr:hover { background: #f2f6ff; }

/* ---------- 联系卡片 ---------- */
.contact-card { border: 1px solid #e6ebf4; border-radius: 10px; }
.contact-card .card-title { color: var(--navy); font-weight: 700; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.92);
  padding: 44px 0 24px;
  margin-top: 40px;
}
.site-footer h5 { color: var(--gold-light); font-weight: 600; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,.92); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 24px 0 16px; }
.site-footer .text-muted { color: #fff; }
.site-footer .footer-icp { color: #fff !important; }
.site-footer a.footer-icp { color: #fff !important; text-decoration: none; transition: color .2s; }
.site-footer a.footer-icp:hover { color: var(--gold-light) !important; }
.site-footer .footer-gov img { height: 15px; width: auto; display: inline-block; vertical-align: middle; }

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
  .hero-carousel .hero-img { height: 320px; }
  .hero-title { font-size: 26px; }
  .brand-slogan { display: none; }
}
@media (max-width: 575.98px) {
  .hero-carousel .hero-img { height: 220px; }
  .page-banner { padding: 36px 0 30px; }
  .page-banner h1 { font-size: 24px; }
}
