/* 首页样式 */
.page {
  background-color: #f5f5f5;
  min-height: 100vh;
  height: 100vh;
  padding-top: 10px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 0;
  flex: 1;
  width: 50%;
}

.nav-item.active {
  color: #E61E25;
}

.nav-icon {
  font-size: 20px;
}

.nav-text {
  font-size: 12px;
  color: #666;
}

.nav-item.active .nav-text {
  color: #E61E25;
}

/* 区域选择栏容器 */
.region-bar-wrapper {
  position: relative;
  z-index: 1000;
  margin: 0 16px 12px;
}

/* 区域选择栏 */
.region-bar {
  display: inline-block;
  cursor: pointer;
  pointer-events: auto;
}

.region-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background-color: #f6f6f6;
  border: 1px solid #E61E25;
  cursor: pointer;
  pointer-events: auto;
}

.region-bar-text {
  font-size: 13px;
  color: #333;
}

.region-bar-arrow {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666;
}

/* 地图容器 */
.map-container {
  width: 100%;
  flex: 1;
  min-height: 0;
  background-color: white;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.map {
  width: 100%;
  height: 100%;
  background-color: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  position: relative;
  z-index: 1;
}

.map-popup {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.map-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  flex: 1;
  padding-right: 16px;
}

.map-popup-close {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 15px;
  background: #f2f2f2;
  color: #666;
  font-size: 20px;
  cursor: pointer;
}

.map-popup-sub {
  margin-top: 10px;
  font-size: 14px;
  color: #999;
  line-height: 1.4;
}

.map-popup-distance {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.map-popup-actions {
  margin-top: 18px;
}

.map-popup-btn {
  width: 100%;
  text-align: center;
  height: 40px;
  line-height: 40px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background-color: #ff3333;
  border: 2px solid #ff3333;
  cursor: pointer;
}

/* 加油站信息卡片 */
.station-info-card {
  background-color: white;
  border-radius: 12px;
  padding: 0px 12px;
  margin: 0 16px 12px;
  border: 1px solid #eee;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* 账户信息 */
.account-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 0;
  margin: 6px 0;
}

.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.info-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.info-amount {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.info-divider {
  width: 1px;
  height: 40px;
  background-color: #eee;
  margin: 0 8px;
}

.toup {
  background-color: #E61E25;
  color: white;
  font-size: 12px;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* 区域选择弹窗 */
.region-selector {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  height: 100%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.region-selector-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.region-selector-content {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 70%;
  display: flex;
  flex-direction: column;
}

.region-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.region-selector-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.region-selector-close {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 14px;
  background: #f2f2f2;
  color: #666;
  font-size: 18px;
  cursor: pointer;
}

.region-selector-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.region-selector-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.region-item {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.region-item:hover {
  background: #f9f9f9;
}

.region-item.selected {
  color: #E61E25;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .page {
    padding-top: 8px;
  }
  
  .station-info-card {
    margin: 0 12px 10px;
  }
  
  .map-popup {
    left: 16px;
    right: 16px;
    top: 16px;
    padding: 16px;
  }
}