* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: #eaf7ff;
  color: #101828;
  font-size: 14px;
  overflow-x: hidden;
}

#app {
  height: 100%;
  width: 100%;
  position: relative;
}

.page {
  display: none;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 60px;
}

.page.active {
  display: block;
}

/* Tab栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #8b98aa;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.tab-item span {
  font-size: 11px;
  font-weight: 600;
}

.tab-item.active {
  color: #1468ff;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 公共样式 - 从小程序转换 */
.v13-page {
  min-height: 100vh;
  background: radial-gradient(circle at 18% 0, #fff 0, #dff3ff 36%, #f7fcff 74%), linear-gradient(180deg, #dff3ff, #fff);
  padding: 0 0 80px;
  box-sizing: border-box;
  overflow: hidden;
}

.v13-section-title {
  font-size: 15px;
  font-weight: 900;
  margin: 14px 19px 7px;
  color: #101828;
}

.v13-glass {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 9px 24px rgba(59, 128, 196, 0.16);
  backdrop-filter: blur(9px);
}

.v13-card {
  margin: 0 15px 10px;
}

.v13-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v13-muted {
  color: #667085;
  font-size: 11px;
}

.v13-blue {
  color: #1468ff;
}

.v13-btn {
  height: 27px;
  min-width: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #52bdff, #075fff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(20, 104, 255, 0.24);
  font-size: 11px;
  padding: 0 9px;
}

.v13-gold {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7d8, #ffba33);
  color: #2b1a00;
  font-weight: 900;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-line;
  box-shadow: 0 5px 11px rgba(165, 105, 0, 0.24);
  font-size: 11px;
}

.v13-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 0 15px 11px;
}

.v13-product-card {
  height: 165px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #fff, 0 7px 16px rgba(80, 130, 190, 0.15);
}

.v13-product-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #4db5ff, #1168ff);
  color: #fff;
  border-radius: 4px 9px 9px 4px;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
}

.v13-product-img {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  width: 95px;
  height: 78px;
  object-fit: contain;
}

.v13-product-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 46px;
  font-size: 13px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v13-product-sub {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 32px;
  font-size: 11px;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v13-price {
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: #ff3b1f;
  font-size: 17px;
  font-weight: 900;
}

.v13-buy {
  position: absolute;
  right: 8px;
  bottom: 9px;
  background: linear-gradient(135deg, #51b8ff, #0864ff);
  color: #fff;
  border-radius: 12px;
  height: 24px;
  line-height: 24px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 5px 10px rgba(20, 104, 255, 0.22);
}

.v13-coupon {
  min-height: 62px;
  margin: 0 15px 10px;
  border-radius: 13px;
  background: linear-gradient(135deg, #168cff, #0764ff);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 9px 21px rgba(20, 104, 255, 0.3);
  box-sizing: border-box;
}

.v13-coupon-title {
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.v13-coupon-sub {
  font-size: 12px;
  margin-top: 4px;
}

.v13-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
  margin: 0 15px 10px;
}

.v13-benefit {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
}

.v13-benefit-icon {
  width: 29px;
  height: 29px;
  flex: none;
}

.v13-benefit-title {
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

.v13-benefit-sub {
  font-size: 11px;
  color: #667085;
  margin-top: 2px;
}

.v13-station-list {
  padding: 9px 10px;
  margin: 0 15px 10px;
}

.v13-station {
  display: grid;
  grid-template-columns: 23px 1fr 48px 55px;
  gap: 6px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(20, 104, 255, 0.11);
}

.v13-station:last-child {
  border-bottom: none;
}

.v13-station-index {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #55bdff, #0b63ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
}

.v13-station-name {
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

.v13-order-panel {
  padding: 11px;
  margin: 0 15px 10px;
}

.v13-order-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 12px;
  text-align: center;
}

.v13-order-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  display: block;
}

.v13-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  margin: 0 15px 10px;
  text-align: center;
}

.v13-tool-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 5px;
  display: block;
}

.v13-member {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr;
  gap: 9px;
  padding: 12px;
  margin: 0 15px 10px;
  background: linear-gradient(135deg, rgba(255, 244, 219, 0.94), rgba(255, 255, 255, 0.82));
}

.v13-member-title {
  font-size: 17px;
  font-weight: 900;
  color: #8a5b15;
}

.v13-bar {
  height: 5px;
  background: #e8d5b5;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}

.v13-bar-inner {
  height: 100%;
  background: #1a73ff;
  border-radius: 5px;
}

.v13-member-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 10px;
  color: #5a4022;
}

.v13-mini-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 9px;
  margin: 0 15px 10px;
}

.v13-mini-card {
  min-height: 94px;
  padding: 10px;
  border-radius: 12px;
  box-sizing: border-box;
}

.v13-water-card {
  background: linear-gradient(135deg, #168cff, #79d4ff);
  color: #fff;
  box-shadow: 0 9px 21px rgba(20, 104, 255, 0.25);
}

.v12-bottom-space {
  height: 60px;
}

.v12-slice {
  width: 100%;
  display: block;
}

.v12-card-slice {
  width: calc(100% - 30px);
  margin: 0 15px 9px;
  border-radius: 13px;
  display: block;
  box-shadow: 0 8px 21px rgba(59, 128, 196, 0.13);
}

/* JH_WATER_BG_THREE_END_V1：H5 首页/换水/商城/我的统一水感背景 */
:root {
  --jh-water-page-bg: url('../assets/backgrounds/jh-water-page-bg.jpg');
}
html, body, #app {
  background: #eef9ff var(--jh-water-page-bg) center top / 100% auto no-repeat;
}
.page {
  background: transparent;
}
.v13-page {
  background-image: linear-gradient(180deg, rgba(234,247,255,0.54) 0%, rgba(247,252,255,0.42) 46%, rgba(255,255,255,0.64) 100%), var(--jh-water-page-bg);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}
.tab-bar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 28px rgba(42,117,190,0.12);
}
