/* 首页样式 - 蓝色高端医疗风格 */
.container {
  background: linear-gradient(135deg, #f8fbff 0%, #e8f2ff 100%);
  min-height: 100vh;
}

/* 头部样式 */
.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 15px;
  box-shadow: 0 2px 20px rgba(42, 82, 152, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.title p {
  margin: 2px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 300;
}

.user-icon {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.user-icon:hover {
  transform: scale(1.05);
}

/* 横幅样式 */
.banner {
  background: linear-gradient(135deg, #667eea 0%, #00008B 100%);
  margin: 20px 15px;
  border-radius: 16px;
  padding: 25px 20px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.banner p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
  font-weight: 300;
}

/* 服务网格样式 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 15px;
  margin-bottom: 25px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 15px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 82, 152, 0.08);
  border: 1px solid rgba(42, 82, 152, 0.05);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 82, 152, 0.15);
  background: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
}

.service-icon {
  font-size: 24px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: white;
}

.service-card h3 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e3c72;
}

.service-card p {
  margin: 0;
  font-size: 11px;
  color: #666;
  line-height: 1.3;
}

/* 产品展示区域 */
.products-section {
  padding: 0 15px 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e3c72;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 1px;
}

.section-header p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* 产品列表样式 */
.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.product-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(42, 82, 152, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(42, 82, 152, 0.05);
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 82, 152, 0.15);
}

.product-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  color: #e4393c;
  font-weight: bold;
  font-size: 16px;
}

.no-products {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 14px;
  grid-column: 1 / -1;
  background: white;
  border-radius: 12px;
  border: 1px dashed #ddd;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .service-card {
    padding: 12px 6px;
  }
  
  .service-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .service-card h3 {
    font-size: 12px;
  }
  
  .service-card p {
    font-size: 10px;
  }
  
  .product-item img {
    height: 120px;
  }
}

@media (min-width: 414px) {
  .services-grid {
    gap: 15px;
  }
  
  .service-card {
    padding: 18px 10px;
  }
  
  .product-item img {
    height: 150px;
  }
}

/* 主内容区域调整 */
.main {
  padding: 0 0 calc(60px + constant(safe-area-inset-bottom) + 20px);
  padding: 0 0 calc(60px + env(safe-area-inset-bottom) + 20px);
  min-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}