/* 基础自定义样式 */
html, body {
  scroll-behavior: smooth;
}

/* 主题色：现代化深色系，适合专业企业站点 */
:root {
  --brand-primary: #1a2b47; /* 主色：深蓝色 */
  --brand-primary-dark: #0f1a2d; /* 深色 */
  --brand-accent: #3498db; /* 辅助色：亮蓝色 */
  --brand-bg: #f8f9fa; /* 背景浅灰 */
  --brand-text: #ffffff; /* 文字白色 */
  --brand-text-light: #f8f9fa; /* 浅色文字 */
}

.hero.is-home {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--brand-text);
  padding: 4rem 0;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero.is-home .title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color: var(--brand-text);
}

.hero.is-home .subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  color: var(--brand-text-light);
}

.hero.is-home .lang-note {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 2rem;
  color: var(--brand-text-light);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--brand-primary);
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 3px;
}

.card .tag {
  margin-bottom: 0.5rem;
}

/* 分类页面样式 */
#categories-wrap .box {
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--brand-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#categories-wrap .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

#categories-wrap .box h3 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

#categories-wrap .box ul {
  columns: 2;
  column-gap: 2rem;
}

#categories-wrap .box li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

#categories-wrap .box li:last-child {
  border-bottom: none;
}

#categories-wrap .box li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

#categories-wrap .box li a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  #categories-wrap .box ul {
    columns: 1;
  }
  
  .hero.is-home {
    padding: 2rem 0;
  }
  
  .hero.is-home .title {
    font-size: 2rem;
  }
}

/* 证书详情页面样式 */
.cert-detail-section {
  margin-top: 2rem;
}

.cert-detail-section .tag {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.cert-detail-section .box {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-detail-section .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.cert-detail-section .box h2, .cert-detail-section .box h3 {
  color: var(--brand-primary);
  position: relative;
  padding-bottom: 10px;
}

.cert-detail-section .box h2::after, .cert-detail-section .box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 3px;
}

.cert-detail-section ul {
  list-style: none;
  padding-left: 0;
}

.cert-detail-section ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.cert-detail-section ul li:before {
  content: "•";
  color: var(--brand-accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-right: 0.5em;
}

.cert-detail-section ul li:last-child {
  border-bottom: none;
}

.cert-detail-section ul li a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cert-detail-section ul li a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Bulma navbar 主色 */
.navbar.is-primary {
  background: var(--brand-primary) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 将菜单置右，语言选择与背景融合 */
.navbar .navbar-item.lang-select .select select {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.navbar .navbar-item.lang-select .select:after {
  border-color: #fff; /* 下拉箭头颜色 */
}
/* 修复语言选择下拉菜单的文字和背景颜色 */
.navbar .navbar-item.lang-select .select select option {
  background-color: #fff;
  color: #333;
}

/* 导航文字与 hover 效果 */
.navbar-item, .navbar-link {
  color: #fff !important;
}
.navbar-link:hover, .navbar-item:hover {
  background-color: rgba(255,255,255,0.12) !important;
}
/* 调整菜单居中显示 */
.navbar-start {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-item.is-active {
  font-weight: bold;
  background-color: rgba(255,255,255,0.18) !important;
}

/* 修复下拉菜单文字颜色 */
.navbar-dropdown .navbar-item {
  color: #333 !important;
}
.navbar-dropdown .navbar-item:hover {
  background-color: #f5f5f5 !important;
  color: var(--brand-primary) !important;
}
/* 修复分类菜单下拉选项的背景色问题 */
.navbar-link.is-active,
.navbar-link:focus,
.navbar-link:focus-within,
.navbar-link:hover,
.navbar-item.has-dropdown:focus .navbar-link,
.navbar-item.has-dropdown:hover .navbar-link,
.navbar-item.has-dropdown.is-active .navbar-link {
  background-color: var(--brand-primary-dark) !important;
}

/* 页面背景与卡片优化 */
body {
  background-color: var(--brand-bg);
}
.card {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 主页业务介绍区块 */
.home-intro {
  padding: 3rem 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 2rem 0;
}
.home-intro .intro-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--brand-primary);
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.home-intro .intro-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 3px;
}

.home-intro .intro-content {
  color: #3c4b5d;
  font-size: 1rem;
  line-height: 1.7;
}

.home-intro .intro-content ul {
  margin-top: 1rem;
}

.home-intro .intro-content ul li {
  margin-bottom: 0.5rem;
}

.lang-note {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 分类页面标题样式 */
#category-title {
  color: var(--brand-primary);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
}

#category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 3px;
}

/* 面包屑导航样式 */
.breadcrumb a {
  color: var(--brand-accent);
}

.breadcrumb a:hover {
  color: var(--brand-primary);
}

/* 按钮样式优化 */
.button.is-primary {
  background-color: var(--brand-accent);
  border-color: transparent;
  color: #fff;
}

.button.is-primary:hover {
  background-color: #2980b9;
  border-color: transparent;
  color: #fff;
}