/* ============================================================
   广州市前言计算机科技有限公司 - 新版样式
   设计规范还原自 www.ebus.cn 模板（Bootstrap 风格蓝色主题）
   自包含，无外部依赖，离线可用
   ============================================================ */

:root {
  --dark-blue: #4b5c7f;      /* 主色：深蓝灰（深色分区背景） */
  --tint-blue: #d7e3f4;      /* 浅蓝分区背景 */
  --accent: #3058a8;         /* 强调蓝：标题/链接 */
  --accent-light: #4986ff;   /* 亮蓝：hover */
  --text: #333;
  --muted: #999;
  --navbar-h: 80px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  background: #fff;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); text-decoration: none; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------------- 固定顶部导航 ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: #fff;
  height: var(--navbar-h);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand { display: flex; align-items: center; }
.navbar-brand .logo { height: 52px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 0 22px;
  line-height: var(--navbar-h);
  color: var(--text);
  font-size: 16px;
  transition: color .2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--accent); }

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}

.nav-menu li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 9px 22px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-menu li a:hover { background: var(--tint-blue); color: var(--accent); }

/* 移动端汉堡按钮 */
.navbar-toggle {
  display: none;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #888;
  border-radius: 1px;
}

.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }

/* ---------------- 轮播图 ---------------- */
.owl-container {
  position: relative;
  overflow: hidden;
  background: var(--dark-blue);
}

.owl-container .slide {
  display: none;
  position: relative;
}

.owl-container .slide.current { display: block; animation: slideFade .8s ease; }

@keyframes slideFade {
  from { opacity: .25; }
  to   { opacity: 1; }
}

.owl-container .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 14%;
  text-align: center;
  pointer-events: none;
}

.carousel-caption .caption-title {
  display: inline-block;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  letter-spacing: 2px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align: center;
  z-index: 5;
}

.carousel-dots span {
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s;
}

.carousel-dots span.current { background: #fff; }

/* ---------------- 分区 ---------------- */
.section {
  padding-top: 80px;
  padding-bottom: 50px;
  color: var(--text);
}

.section.dark_blue {
  background-color: var(--dark-blue);
  color: #fff;
}

.section.tint_blue {
  background-color: var(--tint-blue);
  color: #000;
}

.section.dark_blue .section-desc { color: #fff; }

.section-title {
  margin: 0 0 30px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

.section-desc {
  max-width: 1080px;
  margin: 0 auto;
  line-height: 2;
}

.block-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1080px;
  margin: 30px auto 0;
}

.box-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .1);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

.box-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.box-item .caption-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

.box-item .caption-desc { font-size: 14px; color: #555; }
.box-item .caption-desc img { margin: 0 auto 14px; }

/* 深色分区内的卡片 */
.dark_blue .box-item {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
}

.dark_blue .box-item .caption-title { color: #fff; }
.dark_blue .box-item .caption-desc { color: rgba(255, 255, 255, .85); }
.dark_blue .box-item a { color: #a8c4ff; }

/* ---------------- 产品详情页 ---------------- */
.page-hero {
  background: var(--dark-blue);
  color: #fff;
  padding: 130px 0 40px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: 1px;
}

.page-hero .crumb { font-size: 14px; color: rgba(255, 255, 255, .75); }
.page-hero .crumb a { color: #c7d6f2; }

.page-body { padding: 60px 0 70px; }

.page-body h2 {
  font-size: 20px;
  color: var(--accent);
  margin: 44px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

.page-body h3 { font-size: 17px; color: var(--dark-blue); margin: 28px 0 10px; }
.page-body p { margin: 10px 0; line-height: 2; }

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}

.figure-grid img {
  width: 100%;
  background: #f7f9fc;
  border: 1px solid #e3eaf4;
  border-radius: 4px;
  padding: 8px;
}

/* 型号卡片列表 */
.model-card {
  background: #f7f9fc;
  border: 1px solid #e3eaf4;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 14px 0;
}

.model-card .model-name {
  font-weight: 700;
  color: var(--dark-blue);
  font-size: 16px;
  margin: 0 0 6px;
}

.model-card p { margin: 4px 0; font-size: 14px; color: #555; }

/* 色卡展示 */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.color-grid figure { margin: 0; text-align: center; }
.color-grid img { border: 1px solid #e3eaf4; border-radius: 4px; background: #fff; padding: 6px; }
.color-grid figcaption { font-size: 13px; color: #555; margin-top: 6px; }

/* 联系提示条 */
.contact-bar {
  margin-top: 40px;
  background: var(--tint-blue);
  border-radius: 4px;
  padding: 18px 24px;
  font-weight: 700;
  color: var(--dark-blue);
}

/* ---------------- 页脚 ---------------- */
footer {
  border-top: 1px solid #e7e7e7;
  padding: 30px 0 20px;
  background: #fff;
}

footer ul { padding-left: 0; margin: 0; }

footer ul li {
  list-style-type: none;
  padding: 5px 3px;
  color: var(--dark-blue);
  font-size: 16px;
}

footer ul li a { color: var(--muted); }
footer img { max-width: 150px; }

.copyright {
  padding-top: 15px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

.copyright a { color: var(--muted); }

/* ---------------- 回到顶部 ---------------- */
#backtop {
  position: fixed;
  right: 24px;
  bottom: 40px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark-blue);
  color: #fff;
  text-align: center;
  line-height: 44px;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  cursor: pointer;
  z-index: 900;
}

#backtop.show { opacity: .8; visibility: visible; }
#backtop:hover { opacity: 1; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .navbar { height: auto; min-height: 56px; }
  .navbar .container { flex-wrap: wrap; }
  .navbar-brand { padding: 10px 0; }
  .navbar-brand .logo { height: 38px; }

  .navbar-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--dark-blue);
    align-items: stretch;
  }

  .nav-menu.open { display: flex; }

  .nav-menu > li > a {
    line-height: 1.2;
    padding: 14px 25px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-menu > li > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, .12);
    box-shadow: none;
    display: none;
  }

  .nav-menu li:hover .dropdown-menu,
  .nav-menu li.open .dropdown-menu { display: block; }

  .dropdown-menu li a { color: #c7d6f2; padding-left: 40px; }

  .carousel-caption .caption-title { font-size: 22px; }

  /* 手机端轮播图加高：裁切显示，避免图片过扁 */
  .owl-container .slide img {
    height: 460px;
    object-fit: cover;
  }

  .block-wrapper { grid-template-columns: 1fr; }

  .section { padding-top: 50px; }
  .page-hero { padding: 110px 0 30px; }
  .page-body h2 { font-size: 18px; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .carousel-caption .caption-title { font-size: 18px; }
  .owl-container .slide img { height: 340px; }
}
