:root {
  --primary-color: #e53e3e;
  --secondary-color: #f5f0e6;
  --dark-color: #333333;
  --light-color: #f8f8f8;
}

body {
  font-family: 'Noto Serif SC', serif;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* 导航栏样式 */
nav {
  transition: all 0.3s ease;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 首屏大图文字 */
.hero-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 移动端菜单 */
#mobile-menu {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

#mobile-menu a {
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

#mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), #f56565);
  transition: all 0.3s ease;
}

#mobile-menu a:hover {
  color: #ffffff !important;
}

#mobile-menu a:hover::after {
  width: 50%;
}

/* 板块图片样式 */
.section-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 服务体系图片样式 */
#services .section-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#services .section-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* 品牌初心 · 关于我们区域图片样式 */
#about .image-text-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about .image-text-image .section-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 核心优势特色图片样式 */
.advantages-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 图片文字组合 */
.image-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-text-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.image-text-content {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.image-text-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* 网格布局 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.masonry-item {
    break-inside: avoid;
}

.masonry-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

/* 网格布局 */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.asymmetric-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.asymmetric-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 板块标题样式 */
.section-title {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    text-align: center;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .image-text-row {
    flex-direction: column !important;
  }
  
  .image-text-content, .image-text-image {
    min-width: 100%;
  }
  
  /* 服务体系图片在平板设备上的调整 */
  #services .section-image {
    max-height: 400px;
  }
  
  /* 瀑布流布局在平板设备上的调整 */
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* 不对称网格在平板设备上的调整 */
  .asymmetric-grid {
    grid-template-columns: 1fr;
  }
  
  .asymmetric-item.featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  /* 平板设备上减少板块标题下方的留白 */
  .section-title {
    margin-bottom: 1.2rem;
  }
  
  /* 平板设备上减少板块上下内边距 */
  .py-16 {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
  
  .py-20 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .premium-card {
    padding: 1.8rem;
  }
  
  .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  /* 移动端导航栏 */
  nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  .image-text-row {
    gap: 1.5rem;
  }
  
  /* 服务体系图片在手机设备上的调整 */
  #services .section-image {
    max-height: 300px;
    border-radius: 8px;
  }
  
  /* 瀑布流布局在手机设备上的调整 */
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .masonry-item:nth-child(2) {
    grid-row: auto;
  }
  
  /* 手机设备上减少板块上下内边距 */
  .py-16 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .py-20 {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }
  
  /* 服务体系图片在小屏幕设备上的调整 */
  #services .section-image {
    max-height: 250px;
  }
  
  /* 小屏幕设备上进一步减少板块上下内边距 */
  .py-16 {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  
  .py-20 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* 简单的显示效果 */
.fade-in {
  opacity: 1;
}

.slide-in-up {
  opacity: 1;
}

/* 章节间距 */
section {
  scroll-margin-top: 80px;
}

/* 简单的卡片效果 */
.card-hover {
  transition: all 0.3s ease;
}

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

/* 简单背景 */
.gradient-bg {
  background-color: #f5f0e6;
}