/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #363636; /* 深空灰 */
}

/* 实力文字样式 */
.strength-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #012da7; /* 克莱因蓝 */
  background-color: rgba(1, 45, 167, 0.05); /* 克莱因蓝浅色背景 */
  padding: 1rem;
  border-left: 4px solid #ff7f00; /* 赤橙色左边框 */
  margin: 1rem 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* 一键拨号按钮 - 微信绿色样式 */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #07c160; /* 微信绿色 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.call-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.call-button i {
  color: white;
  font-size: 24px;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  padding: 0 15px;
}

/* 页眉优化 */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.site-header .header-top {
  min-height: 80px;
}

.site-header .logo-container {
  flex-shrink: 0;
}

.site-header .logo-placeholder {
  width: 60px;
  height: 60px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
}

.site-header .company-name {
  font-weight: bold;
  color: #363636;
}

.site-header .phone-container {
  display: flex;
  align-items: center;
}

.site-header .phone-icon {
  color: #ff7f00;
}

.site-header .phone-number {
  font-weight: bold;
  color: #ff7f00;
}

/* 头部导航 */
header {
  background-color: #012da7; /* 克莱因蓝 */
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar {
  padding: 0.5rem 0;
  min-height: 60px; /* 确保导航栏有最小高度 */
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap; /* 防止品牌名称换行 */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px; /* 限制品牌名称最大宽度 */
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 导航链接样式优化 */
.navbar-nav {
  flex-wrap: nowrap; /* 防止导航项换行 */
  align-items: center; /* 垂直居中对齐 */
}

.nav-item {
  white-space: nowrap; /* 防止导航项文本换行 */
  margin: 0 2px; /* 添加项之间的间距 */
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s;
  padding: 0.5rem 0.75rem; /* 调整内边距 */
  font-size: 0.95rem; /* 稍微减小字体大小 */
  border-radius: 0.25rem; /* 添加圆角 */
  margin: 0 1px; /* 添加链接之间的间距 */
}

.nav-link:hover {
  color: #fff !important;
  background-color: #fd7e14; /* 橙色悬停背景 */
}

.nav-link.active {
  background-color: #fd7e14; /* 橙色激活状态背景 */
}

/* 主要内容区域 */
main {
  min-height: calc(100vh - 140px);
  padding: 2rem 0;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: transparent;
  padding: 0;
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(1, 45, 167, 0.1); /* 克莱因蓝阴影 */
}

.card-header {
  border-bottom: 1px solid rgba(0,0,0,.125);
  font-weight: 500;
  background-color: #f8f9fa;
}

.card-footer {
  border-top: 1px solid rgba(0,0,0,.125);
  background-color: #fff;
}

/* 产品卡片 */
.product-card {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  border-color: #012da7; /* 克莱因蓝边框 */
  box-shadow: 0 0.5rem 1rem rgba(1, 45, 167, 0.15); /* 克莱因蓝阴影 */
}

.product-card .card-img-top {
  background-color: #f8f9fa;
  height: 200px;
  object-fit: cover;
}

.product-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #012da7; /* 克莱因蓝标题 */
}

.product-card .card-text {
  font-size: 0.9rem;
  color: #363636; /* 深空灰文本 */
}

/* 列表组 */
.list-group-item {
  border-left: none;
  border-right: none;
  border-radius: 0 !important;
  color: #363636; /* 深空灰 */
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item.active {
  background-color: #ff7f00; /* 赤橙色 */
  border-color: #ff7f00; /* 赤橙色 */
  color: #fff;
}

/* 英雄区域 */
.bg-primary {
  background-color: #012da7 !important; /* 克莱因蓝 */
}

.text-primary {
  color: #ff7f00 !important; /* 赤橙色 */
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.min-vh-50 {
  min-height: 50vh;
}

.display-4 {
  font-size: 2.5rem;
}

.display-5 {
  font-size: 2rem;
}

.btn {
  border-radius: 0.375rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: #ff7f00; /* 赤橙色 */
  border-color: #ff7f00; /* 赤橙色 */
  color: #fff;
}

.btn-primary:hover {
  background-color: #e67200; /* 深一些的赤橙色 */
  border-color: #d96c00; /* 深一些的赤橙色 */
  color: #fff;
}

.btn-light {
  background-color: #fff;
  border-color: #fff;
  color: #ff7f00; /* 赤橙色 */
}

.btn-light:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #ff7f00; /* 赤橙色 */
}

.btn-warning {
  background-color: #ff7f00; /* 赤橙色 */
  border-color: #ff7f00; /* 赤橙色 */
  color: #fff;
}

.btn-warning:hover {
  background-color: #e67200; /* 深一些的赤橙色 */
  border-color: #d96c00; /* 深一些的赤橙色 */
  color: #fff;
}

.btn-outline-primary {
  border-color: #ff7f00; /* 赤橙色 */
  color: #ff7f00; /* 赤橙色 */
}

.btn-outline-primary:hover {
  background-color: #ff7f00; /* 赤橙色 */
  color: #fff !important;
}

.btn-outline-warning {
  border-color: #ff7f00; /* 赤橙色 */
  color: #ff7f00; /* 赤橙色 */
}

.btn-outline-warning:hover {
  background-color: #ff7f00; /* 赤橙色 */
  color: #fff !important;
}

.btn-outline-light:hover {
  color: #ff7f00 !important; /* 赤橙色 */
  background-color: #fff;
}

/* 特色区域 */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* 产品区域 */
.bg-light {
  background-color: #f8f9fa !important;
}

/* 城市服务区域 */
.btn-outline-primary {
  border-color: #ff7f00; /* 赤橙色 */
  color: #ff7f00; /* 赤橙色 */
}

.btn-outline-primary:hover {
  background-color: #ff7f00; /* 赤橙色 */
  color: #fff !important;
}

/* 页脚 */
footer {
  background-color: #363636; /* 深空灰 */
  color: #fff;
}

footer a {
  transition: color 0.3s;
}

footer a:hover {
  color: #ff7f00 !important; /* 赤橙色 */
}

footer .city-list h6 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

footer .city-list a {
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

footer .province-group {
  margin-bottom: 1rem;
}

footer .province-group h6 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

/* 省份分站链接样式 */
footer .province-links a {
  font-size: 0.9rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 127, 0, 0.1);
  border-radius: 0.25rem;
  transition: all 0.3s;
}

footer .province-links a:hover {
  background-color: rgba(255, 127, 0, 0.3);
  transform: translateY(-2px);
}

.text-muted {
  color: #6c757d !important;
}

.border-secondary {
  border-color: #6c757d !important;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .min-vh-50 {
    min-height: auto;
  }
  
  .navbar-collapse {
    background-color: rgba(1, 45, 167, 0.1); /* 克莱因蓝半透明背景 */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .container-fluid {
    padding: 0 10px;
  }
  
  main {
    padding: 1rem 0;
  }
  
  /* 移动端页眉优化 */
  .site-header .header-top {
    min-height: 60px;
    padding: 10px 0;
  }
  
  .site-header .logo-placeholder {
    width: 40px;
    height: 40px;
  }
  
  .site-header .logo-placeholder i {
    font-size: 1.2rem;
  }
  
  .site-header .company-name {
    font-size: 1.2rem;
  }
  
  .site-header .phone-icon {
    font-size: 1.2rem;
  }
  
  .site-header .phone-number {
    font-size: 1.1rem;
  }
  
  /* 移动端省份分站链接 */
  footer .province-links a {
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 575.98px) {
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.375rem 1rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .text-center {
    text-align: center !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-4 {
    margin-top: 1.5rem !important;
  }
  
  .product-card .card-img-top {
    height: 180px !important;
  }
  
  /* 移动端导航栏优化 */
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
    max-width: 200px;
  }
  
  /* 移动端页眉优化 */
  .site-header .header-top {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .site-header .logo-container,
  .site-header .phone-container {
    justify-content: center;
  }
  
  .site-header .company-name {
    font-size: 1.1rem;
    margin-top: 5px;
  }
  
  .site-header .phone-number {
    font-size: 1rem;
  }
  
  /* 移动端页脚城市列表优化 */
  footer .city-list h6 {
    font-size: 0.85rem;
  }
  
  footer .city-list a {
    font-size: 0.8rem;
    margin-right: 0.3rem;
  }
}

@media (max-width: 414px) {
  .container {
    padding: 0 10px;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
  
  .display-5 {
    font-size: 1.25rem;
  }
  
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .gap-3 {
    gap: 1rem;
  }
  
  .product-card .card-img-top {
    height: 150px !important;
  }
  
  /* 超小屏幕导航栏优化 */
  .navbar-brand {
    max-width: 150px;
    font-size: 1.1rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }
  
  /* 移动端页眉优化 */
  .site-header .logo-placeholder {
    width: 35px;
    height: 35px;
  }
  
  .site-header .logo-placeholder i {
    font-size: 1rem;
  }
  
  .site-header .company-name {
    font-size: 1rem;
  }
  
  .site-header .phone-icon {
    font-size: 1rem;
  }
  
  .site-header .phone-number {
    font-size: 0.9rem;
  }
  
  /* 移动端页脚城市列表优化 */
  footer .city-list h6 {
    font-size: 0.8rem;
  }
  
  footer .city-list a {
    font-size: 0.75rem;
    margin-right: 0.25rem;
  }
  
  footer .province-group {
    margin-bottom: 0.75rem;
  }
  
  footer .province-group h6 {
    margin-bottom: 0.25rem;
  }
  
  /* 超小屏幕省份分站链接 */
  footer .province-links a {
    font-size: 0.75rem;
    margin-right: 0.2rem;
    margin-bottom: 0.15rem;
    padding: 0.1rem 0.25rem;
  }
}