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

.page {
  background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 100%);
  min-height: 100vh;
  font-family: 'Alibaba PuHuiTi 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 20px;
  overflow-x: hidden;
  padding-bottom: 80px; /* 为固定页脚留出空间 */
}

/* 头部区域 */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  margin-bottom: 30px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  background-color: #3e7bfa;
  color: white;
  padding: 8px 3px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.title {
  color: #2563eb;
  font-size: 24px;
  font-weight: 700;
}

/* 主要内容区域 */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 主标题区域 */
.hero-section {
  text-align: center;
  margin-bottom: 35px;
}

.hero-title {
  color: #1e3d59;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.5;
  max-width: 550px;
  margin: 0 auto;
}

/* 搜索框区域 */
.search-section {
  margin-bottom: 40px;
  text-align: center;
}

.search-image {
  max-width: 550px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* 内容网格布局 */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 35px;
  align-items: start;
}

/* 推荐问题区域 */
.recommended-section {
  border-radius: 12px;
  /* padding: 20px; */
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recommended-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-left: 10px;
  position: relative;
  z-index: 1;
  height: 30px; /* 固定高度确保对齐 */
}

.recommended-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 30px; /* 与高度一致 */
}

.recommended-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex: 1;
  object-fit: cover;
}

/* 服务导航区域 */
.services-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* height: 100%; */
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-left: 10px;
  height: 30px; /* 固定高度确保对齐 */
}

.services-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 30px; /* 与高度一致 */
}

.refresh-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  height: 30px; /* 与标题高度一致 */
}

.refresh-icon {
  width: 14px;
  height: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  flex: 1;
}

.service-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

/* 底部区域 */
.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.bottom-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
}

/* 页脚 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 15px 0;
  text-align: center;
  z-index: 1000;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #6B7280;
  font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .bottom-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 15px;
    padding-bottom: 80px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* 图片加载优化 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-image,
.recommended-image,
.service-image,
.bottom-image {
  animation: fadeIn 0.6s ease-out;
}