* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background-color: #f4f5f7;
  font-size: 14px;
  color: #333;
}

/* 顶部标题栏 */
.header {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 99;
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 26px;
  border-radius: 13px;
  background-color: #f2f2f2;
  background-image: radial-gradient(circle at 20px 50%, #999 3px, transparent 3px),
                    radial-gradient(circle at 40px 50%, #999 3px, transparent 3px);
  background-repeat: no-repeat;
}

/* 轮播图容器 */
.carousel-wrap {
  position: relative;
  width: 100%;
}
.layui-carousel {
  width: 100% !important;
}
.layui-carousel [carousel-item] > * {
  background-size: cover;
  background-position: center;
}

/* 轮播项样式 */
.banner-item {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.banner-item > img {max-width: 100%; height: auto;}
.banner-item1 {
  background: #39a864;
}
.banner-item2 {
  background: linear-gradient(90deg, #2196f3, #1565c0);
}
.banner-item3 {
  background: linear-gradient(90deg, #ff7043, #e64a19);
}
.banner-tag {
  position: absolute;
  top: 25px;
  right: -8px;
  background: linear-gradient(135deg, #ff4081, #e91e63);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 28px;
  transform: rotate(15deg);
  letter-spacing: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.banner-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: 
    radial-gradient(circle at 15% 40%, rgba(255,255,255,0.1) 20px, transparent 21px),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.1) 15px, transparent 16px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.1) 25px, transparent 26px);
}

/* 搜索栏 */
.search-bar {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0px 15px;
  /* background-color: #fff; */
  gap: 10px;
  margin: 0 12px;
  /* border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
}
.search-bar::before {
  /* content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #2196F3 0%, #FFC107 50%, #4CAF50 100%); */
}

/* 城市定位 */
.city-select {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  cursor: pointer;
  padding: 0 2px;
  line-height: 36px;
  gap: 3px;
}
.city-select .city-icon {
  font-size: 16px;
  color: #ffb400;
}

/* 搜索框 */
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 18px;
  background-color: #f5f5f5;
  padding: 0 40px 0 15px;
  font-size: 13px;
  outline: none;
  color: #333;
}
.search-input::placeholder {
  color: #bbb;
}
.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFB400;
  font-size: 18px;
  cursor: pointer;
}

/* 轮播指示器 */
.layui-carousel .layui-carousel-ind {
  bottom: 70px;
}
.layui-carousel .layui-carousel-ind ul {
  background-color: rgba(0,0,0,0.1);
}
.layui-carousel .layui-carousel-ind li {
  background-color: rgba(255,255,255,0.5);
}
.layui-carousel .layui-carousel-ind li.layui-this {
  background-color: #fff;
}

/* 通用卡片 */
.section {
  margin: 10px 12px;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px 15px 10px;
  overflow: hidden;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.section-right {
  font-size: 13px;
  color: #999;
  cursor: pointer;
}

/* 套餐推荐 */
.package-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.package-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.package-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.package-avatar > img{max-width: 100%; height: auto;}
.avatar-yellow {
  background: linear-gradient(180deg, #ffd54f 0%, #ffb300 100%);
}
.avatar-purple {
  background: linear-gradient(180deg, #ce93d8 0%, #9c27b0 100%);
}
.avatar-orange {
  background: linear-gradient(180deg, #ffcc80 0%, #ff9800 100%);
}

.package-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.package-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}
.package-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.package-price {
  font-size: 20px;
  color: #ffb400;
  font-weight: bold;
  line-height: 1.2;
}
.package-price::before {
  content: '¥';
  font-size: 14px;
  margin-right: 1px;
}
.package-order {
  font-size: 12px;
  color: #999;
}
.view-more {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
}

/* 机构筛选栏 */
.filter-bar {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 -15px 15px;
  padding: 0 15px;
}
.filter-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}
.filter-item i {
  font-size: 10px;
  color: #bbb;
  transition: transform 0.2s;
}
.filter-item.active {
  color: #ffb400;
}
.filter-item.active i {
  color: #ffb400;
  transform: rotate(180deg);
}

/* 机构列表 */
.org-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.org-item {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.org-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.org-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: bold;
}
.org-logo > img{max-width: 100%; height: auto;}
.logo-meinian {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
}
.logo-aikang {
  background: linear-gradient(135deg, #ff7043, #e64a19);
}
.logo-ruici {
  background: linear-gradient(135deg, #26a69a, #00796b);
}
.logo-huajian {
  background: linear-gradient(135deg, #ff8a65, #f4511e);
}
.org-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.org-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.org-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}
.org-address {
  font-size: 12px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* 底部导航栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #999;
  font-size: 11px;
  cursor: pointer;
}
.tab-item i {
  font-size: 24px;
  line-height: 1;
}
.tab-item.active {
  color: #ffb400;
}

/* 下拉菜单样式 */
.layui-dropdown {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.layui-dropdown dd {
  font-size: 14px;
}
.layui-dropdown dd.layui-this {
  background-color: #fff8e1;
  color: #ffb400;
}