/* 全局样式重置和基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础字体和颜色设置 */
body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #0F4C81;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

/* 段落样式 */
p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* 链接样式 - 移除过渡效果 */
a {
  color: #0F4C81;
  text-decoration: none;
}

a:hover {
  color: #1E88E5;
}

/* 按钮基础样式 - 移除过渡效果 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: #0F4C81;
  color: white;
}

.btn-primary:hover {
  background-color: #1E88E5;
}

.btn-secondary {
  background-color: #1E88E5;
  color: white;
}

.btn-secondary:hover {
  background-color: #0F4C81;
}

.btn-outline {
  background-color: transparent;
  color: #0F4C81;
  border: 2px solid #0F4C81;
}

.btn-outline:hover {
  background-color: #0F4C81;
  color: white;
}

/* 卡片基础样式 - 移除过渡效果 */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-primary {
  background-color: #0F4C81;
  color: white;
}

.tag-secondary {
  background-color: #1E88E5;
  color: white;
}

.tag-accent {
  background-color: #FF9800;
  color: white;
}

.tag-neutral {
  background-color: #F5F7FA;
  color: #666;
}

/* 输入框样式 - 移除过渡效果 */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1E88E5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* 分隔线 */
.divider {
  height: 1px;
  background-color: #E2E8F0;
  margin: 2rem 0;
}

/* 工具类 */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #0F4C81 0%, #1E88E5 100%);
}

/* 移除动画类 - 确保静态显示 */
.fade-in {
  opacity: 1;
}

.slide-up {
  opacity: 1;
  transform: none;
}

/* 响应式字体大小调整 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* 自定义滚动条 - 移除悬停效果 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 加载动画 */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #20388E;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 图片占位符 */
.image-placeholder {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* 移除了空规则集 */
.img-placeholder {
  background-color: #F5F7FA;
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  display: none;
}

/* 产品与服务模块样式 */
#products {
  background-color: #fff;
}

/* 产品标签页按钮样式 */
.product-tab-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-tab-btn.active {
  background-color: #20388E;
  color: white;
}

.product-tab-btn:hover:not(.active) {
  background-color: #e0e7ff;
}

/* 产品标签页内容样式 */
.product-tab-content {
  display: block;
  opacity: 1;
}

.product-tab-content.hidden {
  display: none;
  opacity: 0;
}

/* 产品卡片样式 */
.product-card {
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-card img {
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* 服务项目卡片样式 */
.service-item {
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 咨询按钮样式 */
.consult-btn {
  transition: all 0.3s ease;
}

.consult-btn:hover {
  transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-tab-btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  #tab3 .grid {
    grid-template-columns: 1fr;
  }
  
  #tab3 .rounded-lg {
    height: auto;
    margin-top: 2rem;
  }
  
  #tab4 .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}