/* 自定义样式 */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #0ea5e9;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 自定义动画效果 */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

/* 自定义渐变背景 */
.custom-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 图片悬停效果 */
.img-hover {
  transition: all 0.3s ease;
}

.img-hover:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* 自定义卡片样式 */
.custom-card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.custom-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* 页面过渡动画 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* BIM模型旋转动画 */
.rotate-3d {
  animation: rotate3d 15s infinite linear;
  transform-style: preserve-3d;
}

@keyframes rotate3d {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to { transform: rotateY(360deg) rotateX(10deg); }
}

/* 建筑线条背景 */
.blueprint-bg {
  background-image: url('https://www.transparenttextures.com/patterns/blueprint-grid.png');
  background-color: #f0f9ff;
}

/* 项目卡片悬停效果 */
.project-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card img {
  transition: all 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* 技术图标动画 */
.tech-icon {
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: translateY(-5px);
  color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
}

/* 自定义按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-outline {
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

/* BIM图标样式 */
.bim-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* 建筑网格背景 */
.grid-bg {
  background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
                    linear-gradient(to right, #e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #f9fafb;
}

/* 3D效果卡片 */
.card-3d {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* 图片滤镜效果 */
.blueprint-filter {
  filter: sepia(50%) hue-rotate(190deg) saturate(200%);
}

/* 动态下划线 */
.dynamic-underline {
  position: relative;
}

.dynamic-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.dynamic-underline:hover::after {
  width: 100%;
} 