/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f8f8f8;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.app-container {
  max-width: 414px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background-color: #f8f8f8;
  padding-bottom: 60px; /* 为底部导航栏留出空间 */
}

/* 顶部标题区域 */
.header {
  background-color: #1CBBB4;
  color: white;
  padding: 20px 15px;
  position: relative;
  overflow: hidden;
}

/* 扁平风格的顶部 */
.header.flat {
  background-color: white;
  color: #333;
  padding: 0;
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* 背景轮播图 */
.header-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider-item.active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: white;
  width: 20px;
  border-radius: 4px;
}

/* 头部内容 */
.header-content {
  position: relative;
  z-index: 2;
  padding: 15px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3) 50%, transparent);
}

.header.flat .sub-title {
  background-color: rgba(28, 187, 180, 0.8);
  color: white;
  font-weight: 500;
}

.header.flat .date {
  color: white;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.header.flat .slogan {
  color: white;
  font-size: 14px;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.header.flat .invitation {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-icons {
  display: flex;
  gap: 15px;
}

.icon {
  font-size: 20px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.sub-title {
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 3px 15px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 15px;
}

.opening-info {
  font-size: 16px;
  line-height: 1.6;
}

.date {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.slogan, .invitation {
  font-size: 14px;
  margin-bottom: 3px;
}

.header.flat .date {
  color: #1CBBB4;
  font-size: 20px;
  margin-bottom: 5px;
}

.header.flat .slogan {
  color: #333;
  font-size: 14px;
  margin-bottom: 3px;
}

.header.flat .invitation {
  color: #666;
  font-size: 14px;
}

/* 区块标题样式 */
.section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 25px 15px 15px;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 18px;
  background-color: #1CBBB4;
  border-radius: 2px;
}

/* 核心功能区样式 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-3px);
}

/* 扁平式白色风格 */
.feature-grid.flat {
  gap: 20px;
  margin-bottom: 25px;
}

.feature-grid.flat .feature-item {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-grid.flat .feature-item::after {
  content: '';
  display: none;
}

.feature-grid.flat .feature-item:hover {
  border-color: #1CBBB4;
}

.feature-grid.flat .feature-item:hover::after {
  right: 15px;
  color: #1CBBB4;
  display: none;
}

.feature-grid.flat .feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  margin-bottom: 15px;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.feature-grid.flat .feature-item:hover .feature-icon {
  transform: scale(1.1);
}

/* 不同功能的图标背景色 */
.feature-grid.flat .feature-item:nth-child(1) .feature-icon {
  background-color: rgba(76, 175, 80, 0.1);
}

.feature-grid.flat .feature-item:nth-child(2) .feature-icon {
  background-color: rgba(255, 152, 0, 0.1);
}

.feature-grid.flat .feature-item:nth-child(3) .feature-icon {
  background-color: rgba(76, 175, 80, 0.15);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

.feature-grid.flat .feature-item:nth-child(3):hover .feature-icon {
  background-color: rgba(76, 175, 80, 0.25);
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.feature-grid.flat .feature-item:nth-child(4) .feature-icon {
  background-color: rgba(156, 39, 176, 0.1);
}

.feature-grid.flat .feature-content {
  text-align: center;
  width: 100%;
  padding-right: 0;
}

.feature-grid.flat .feature-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.feature-grid.flat .feature-desc {
  font-size: 12px;
  color: #999;
  opacity: 1;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
  margin: 0 auto;
  width: 100%;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
}

.feature-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 12px;
  opacity: 0.8;
  text-align: center;
}

/* 服务卡片样式 */
.service-list {
  padding: 0 15px;
}

.service-card {
  display: flex;
  background-color: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-price {
  font-size: 16px;
  color: #FF5722;
  font-weight: 500;
}

.service-time {
  font-size: 13px;
  color: #999;
}

/* 技师推荐样式 */
.technician-tabs {
  display: flex;
  background-color: white;
  margin: 0 15px 15px;
  border-radius: 20px;
  overflow: hidden;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  position: relative;
}

.tab.active {
  color: white;
  background-color: #1CBBB4;
  font-weight: 500;
}

.technician-list {
  padding: 0 15px;
}

.technician-item {
  background-color: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.technician-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.technician-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  position: relative;
}

.technician-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technician-gender {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: white;
}

.technician-gender.male {
  background-color: #2196F3;
}

.technician-gender.female {
  background-color: #E91E63;
}

.technician-info {
  flex: 1;
}

.technician-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.technician-exp {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.technician-specialty {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.technician-rating {
  font-size: 13px;
  color: #FF9800;
  margin-bottom: 8px;
}

.rating-value {
  color: #333;
}

.technician-cert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-tag {
  font-size: 12px;
  padding: 2px 8px;
  background-color: rgba(28, 187, 180, 0.1);
  color: #1CBBB4;
  border-radius: 4px;
}

/* 专业资质样式 */
.qualification-section {
  padding: 0 15px;
}

.qualification-item {
  background-color: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.qualification-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

.qualification-icon img {
  width: 100%;
  height: 100%;
}

.qualification-info {
  flex: 1;
}

.qualification-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}

.qualification-desc {
  font-size: 13px;
  color: #666;
}

/* 用户评价样式 */
.review-section {
  padding: 0 15px;
}

.review-summary {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-score {
  font-size: 36px;
  font-weight: bold;
  color: #FF9800;
  margin-bottom: 5px;
}

.review-stars {
  font-size: 18px;
  color: #FF9800;
  margin-bottom: 5px;
}

.review-count {
  font-size: 13px;
  color: #999;
}

.review-list {
  margin-bottom: 15px;
}

.review-item {
  background-color: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-user {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.review-user-info {
  flex: 1;
}

.review-username {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

.review-date {
  font-size: 12px;
  color: #999;
}

.review-rating {
  font-size: 12px;
  color: #FF9800;
}

.review-content {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.review-service {
  font-size: 12px;
  color: #666;
}

.more-reviews {
  text-align: center;
}

.more-btn {
  background-color: white;
  color: #1CBBB4;
  border: 1px solid #1CBBB4;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
}

/* 底部导航栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 414px;
  margin: 0 auto;
  height: 60px;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  color: #999;
}

.tab-icon {
  font-size: 24px;
  margin-bottom: 3px;
}

.tab-text {
  font-size: 12px;
}

.tab-item.active {
  color: #1CBBB4;
}

.tab-qrcode {
  position: relative;
}

.qrcode {
  width: 50px;
  height: 50px;
  background-color: #1CBBB4;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  position: absolute;
  bottom: 10px;
} 

/* 通用白色头黑字体标题样式 */
.white-header {
  background-color: #ffffff;
  color: #333;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.white-header .nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.white-header .title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.white-header .back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #333;
  text-decoration: none;
}

.white-header .back-icon {
  font-size: 20px;
}

.white-header .nav-icons {
  display: flex;
  gap: 15px;
}

.white-header .icon {
  font-size: 20px;
  color: #333;
} 