/* Complete redesign with all CSS embedded - matching reference image exactly */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background: linear-gradient(180deg, #0f1419 0%, #1a1f2e 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 70px;
}

/* Header */

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.location-icon {
  width: 20px;
  height: 20px;
}

.search-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Banner */
.banner-section {
  padding: 0;
  position: relative;
}

/* Modified announcement banner to scroll from bottom to top instead of left to right */
.announcement-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  height: 36px;
}
.notice-tag {
  height: 20px;
  line-height: 20px;
  padding: 0 5px 2px;
  margin-right: 8px;
  background-color: rgba(139, 92, 246, 0.6);
  color: #fff;
  border-radius: 10px 10px 10px 0;
  font-size: 12px;
  flex-shrink: 0;
}
/* Icon stays fixed, only text scrolls vertically */
.announcement-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding-left: 55px;
  position: relative;
}

.announcement-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  flex-shrink: 0;
  z-index: 2;
}

.announcement-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 36px;
  padding-right: 16px;
  animation: scrollUp 3s linear infinite;
}

/* Changed animation from horizontal to vertical scrolling with 1 second pause in the middle */
@keyframes scrollUp {
  0% {
    transform: translateY(100%);
  }
  33% {
    transform: translateY(0%);
  }
  66% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.banner-wrapper {
  position: relative;
  width: 100%;
  height: 180px; /* Increased banner height from 140px to 200px */
  /*  border-radius: 12px;*/
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
}

/* 修复 icon-buttons 样式，与 HTML 类名匹配 */
/* 重新设计 icon-buttons 区域，缩小尺寸，优化配色和布局 */
/* 恢复 icon-buttons 为一排四个的 flex 布局，修复 iPhone 重叠问题 */
.icon-buttons {
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: transparent;
  backdrop-filter: none;
  max-width: 100%;
}

.icon-btn {
  width: 23%;
  max-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

/* Reduce icon-btn height and position text at bottom of icon-circle */
.icon-btn:active {
  transform: scale(0.96);
}

/* 改为较小的方形，aspect-ratio保持正方形，圆角5px */
.icon-circle {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(30, 35, 50, 0.6) 0%, rgba(20, 25, 40, 0.8) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  position: relative;
  margin: 0 auto;
}

.icon-btn:hover .icon-circle {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
}

.icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Position span text at bottom of icon-circle */
.icon-btn span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 位置选择模态框样式 - 深色主题 */
.location-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f1419;
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.location-modal.active {
  display: flex;
}

.modal-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(13, 13, 25, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
  transition: box-shadow 0.3s ease;
}

.modal-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.modal-back:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.modal-back:active {
  transform: scale(0.95);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  flex: 1;
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 22px;
  position: static;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
}

/* 搜索框样式 */
.search-container {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box {
/*  display: flex;*/
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 10px;
}

.search-box .search-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 8px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #fff;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 未定位提示 */
.location-tip {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.location-tip-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 8px;
}

/* 热门城市区域 */
.hot-cities {
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 16px 0 12px 16px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.city-item {
  padding: 10px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  color: #fff;
  transition: background 0.2s;
}

.city-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 按省份查找区域 */
.provinces-section {
  margin-bottom: 20px;
}

.province-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #fff;
}

.loading,
.error {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  pointer-events: none;
}

.error {
  color: #ff4d4f;
}

.province-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.province-arrow {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* Recommendation Section */
.recommendation-section {
  padding: 0 16px 12px;
}

.recommendation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.recommendation-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.recommendation-more {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recommendation-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  border: none;
}

.recommendation-list::-webkit-scrollbar {
  display: none;
}

.recommendation-card {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.recommendation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommendation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recommendation-score {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(90deg, rgba(20, 20, 30, 0.9), rgba(40, 40, 60, 0.8));
  color: #00e5ff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: normal;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.2);
  z-index: 2;
}

.recommendation-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.recommendation-name {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  width: 100%;
}

.recommendation-price {
  background: rgba(20, 20, 30, 0.85);
  color: #ffd700;
  font-size: 9px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  padding: 0 10px;
  gap: 24px;
  border-bottom: none;
  background: rgba(15, 20, 25, 0.5);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
  width: 100%;
}

.nav-tabs.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(15, 20, 25, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-tab {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
  background: none;
  border: none;
}

.nav-tab.active {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  /* Adding gradient bottom border for active tab */
  border-bottom: 3px solid transparent;
  /* background-image: linear-gradient(rgba(15, 20, 25, 0.95), rgba(15, 20, 25, 0.95)),
    linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);*/
  background-image: linear-gradient(rgba(15, 20, 25, 0.95), rgba(15, 20, 25, 0.95)),
    linear-gradient(90deg, #7b61ff 0%, #a78bfa 50%, #e91e63 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.nav-tab.active::after {
  display: none;
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.content-slider {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
  min-height: auto;
}

.content-panel {
  width: 100%;
  flex-shrink: 0;
  min-height: auto;
}

/* Main Content */
.main-content {
  padding: 10px;
}

.video-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  /*  padding: 0 10px 10px;*/
}

.video-auth-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1a1f2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0;
  border: none;
}

.video-auth-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.video-auth-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(100, 100, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.video-auth-badge svg {
  width: 14px;
  height: 14px;
  fill: #a0a0ff;
}

.video-auth-booked {
  position: absolute;
  bottom: 68px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 2;
}

.video-auth-play {
  position: absolute;
  bottom: 68px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(20, 20, 30, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff8a65;
  z-index: 2;
}

.video-auth-play svg {
  width: 12px;
  height: 12px;
  fill: #ff8a65;
  margin-left: 2px;
}

.video-auth-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-auth-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 2px;
}

.video-auth-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
}

.video-auth-price-val {
  color: #00e5ff;
  font-weight: 600;
  font-size: 13px;
}

.video-auth-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.video-auth-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(30, 30, 40, 0.6);
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card {
  /*  background: linear-gradient(135deg, rgba(25, 30, 45, 0.6) 0%, rgba(20, 25, 38, 0.6) 100%);*/
  background: linear-gradient(90deg, rgba(60, 40, 80, 0.1) 0%, rgba(60, 40, 80, 0) 100%);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  border: 1px solid #3a3045;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #5a4065;
}

.service-image {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  margin-right: 10px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #fff;
}

.service-badge svg {
  width: 14px;
  height: 14px;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.service-title {
  padding-top:3px;
  padding-bottom:3px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(60, 40, 80, 0.8) 0%, rgba(60, 40, 80, 0) 100%);
  border: 1px solid rgba(100, 80, 120, 0.3);
  border-radius: 5px;
  padding-left: 5px;
  color: rgba(255, 200, 220, 0.9);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 100%;
}

.service-details {
  flex: 1;
}

.service-detail-item {
  margin-bottom: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
}

.service-detail-item:last-child {
  margin-bottom: 0;
}

.service-detail-label {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
  flex-shrink: 0;
}

.service-detail-value {
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
}

.star {
  width: 14px;
  height: 14px;
  fill: #ffa500;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-stats {
  display: flex;
  justify-content: space-between;
  gap: 0;
  font-size: 14px;
  color: #fff;
  width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.stat-item svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  right: 16px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.search-input-wrapper {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(109, 40, 217, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 5px;
  padding: 5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-input-wrapper:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.2) 100%);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #fff;
  padding: 0;
}

.search-keyword {
    margin-top：10px;
    font-size:14px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.app-container{
	margin-top: 50px;
}
.search-button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.search-button:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: scale(1.05);
}

.search-button:active {
  transform: scale(0.95);
}

.search-button svg {
  width: 20px;
  height: 20px;
  color: #fff;
}