/* 全局样式 */
:root {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #4cc9f0;
  --warning-color: #ffbe0b;
  --danger-color: #fb5607;
  --max-width: 1200px;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* 导航栏 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  margin: 0 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 英雄区域 */
.hero-section {
  padding-top: 7rem;
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #ffffff, #f0f5ff);
  overflow: hidden;
  position: relative;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
}

/* 章节样式 */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-weight: 700;
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 30px;
}

.section-description {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #666;
}

/* 关于我们 */
.about-section {
  padding: 100px 0;
}

.feature-box {
  padding: 20px;
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* 产品展示 */
.product-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-info h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.product-info p {
  margin-bottom: 15px;
  color: #666;
}

/* 服务项目 */
.service-card {
  padding: 30px 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background-color: rgba(58, 134, 255, 0.1);
}

/* 联系我们 */
.contact-info li {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  margin-bottom: 15px;
}

.contact-info i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 3px;
  min-width: 24px;
}

.address-container, .tel-container {
  display: flex;
  flex-direction: column;
}

.address-container p, .tel-container p {
  margin: 0;
  margin-bottom: 5px;
}

.address-container p:last-child, .tel-container p:last-child {
  margin-bottom: 0;
}

/* 全新的社交图标样式，避免被Bootstrap覆盖 */
.social-links {
  display: flex;
  gap: 15px;
}

/* 基本图标样式 */
.social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary-color);
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  border: none;
  box-shadow: none;
}

/* 特定图标样式 */
.social-wechat,
.social-tiktok,
.social-meituan {
  background-color: rgba(58, 134, 255, 0.1);
}

/* 悬停效果，只改变Y轴位置 */
.social-icon:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
  background-color: rgba(58, 134, 255, 0.1);
}

/* 移除原有冲突样式 */
.social-links a:hover,
.social-links a:focus,
.social-links a:active {
  background-color: rgba(58, 134, 255, 0.1) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* 响应式调整 */
@media (max-width: 991px) {
  .hero-section {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-image {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .service-card, .product-card {
    margin-bottom: 30px;
  }
}

/* 添加平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

/* 按钮样式增强 */
.btn {
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #2a75e8;
  border-color: #2a75e8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* 表单样式 */
.form-control, .form-select {
  height: 50px;
  border-radius: 10px;
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(58, 134, 255, 0.25);
}

textarea.form-control {
  height: auto;
}

/* 加载动画 */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 