.visit-v2.visit-page,
.visit-v2 .visit-page { min-height: 100vh; background: #f0f2f5; padding-bottom: 24px; }

.visit-header {
  background: linear-gradient(180deg, #07c160 0%, #06ad56 100%);
  color: #fff;
}
.visit-header-compact {
  padding: 12px 14px;
}
.visit-store-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.visit-store-brief { flex: 1; min-width: 0; }
.visit-store-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.2);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.visit-store-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.visit-store-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.visit-header .store-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.visit-header .store-tag {
  display: inline-block;
  background: rgba(255,255,255,.22);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 0;
  flex-shrink: 0;
}
.visit-header .activity-text {
  font-size: 12px;
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
}
.visit-header .activity-text .visit-welfare-hint {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.visit-contact-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.visit-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,.18);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.visit-contact-chip:active { background: rgba(255,255,255,.28); }

.visit-photo-gallery-welfare {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #f0f0f0;
}
.visit-photo-gallery-welfare .visit-photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.visit-photo-gallery-welfare .visit-photo-slide.active { opacity: 1; }
.visit-photo-gallery-welfare .visit-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.visit-store-detail {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}
.visit-store-detail p { margin: 0 0 6px; }
.visit-store-detail a {
  color: #07c160;
  text-decoration: none;
}
.visit-promo-brief { font-size: 13px; color: #666; line-height: 1.55; margin: 0 0 12px; }

.visit-tabs {
  display: flex;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 40;
}
.visit-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  position: relative;
}
.visit-tab.active {
  color: #07c160;
}
.visit-tab.active::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  background: #07c160;
  border-radius: 3px 3px 0 0;
}
.visit-tab-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #ff6b35;
  border-radius: 10px;
  vertical-align: middle;
}

.visit-tab-panel { display: none; padding: 12px 14px; }
#tabPay.visit-tab-panel.active { padding-top: 10px; }
.visit-tab-panel.active { display: block; }

.visit-pay-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.visit-pay-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}
.visit-amount-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #07c160;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.visit-amount-prefix {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-right: 6px;
}
.visit-amount-input {
  flex: 1;
  border: none;
  font-size: 36px;
  font-weight: 700;
  color: #111;
  outline: none;
  min-width: 0;
  background: transparent;
}
.visit-amount-input::placeholder { color: #ccc; font-weight: 500; }

.visit-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.visit-quick-amt {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.visit-quick-amt:active,
.visit-quick-amt.selected {
  border-color: #07c160;
  background: #e8f8ef;
  color: #07c160;
}

.visit-pay-discount {
  font-size: 14px;
  color: #d46b08;
  font-weight: 600;
  min-height: 0;
  margin-bottom: 8px;
}
.visit-pay-discount:empty { display: none; }

.visit-channel-hint {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 14px;
  padding: 8px;
  background: #f8f8f8;
  border-radius: 8px;
}
.visit-channel-select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.visit-pay-card .btn-pay-main {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  cursor: pointer;
}
.visit-pay-card .btn-pay-main:active { opacity: 0.92; }
.visit-pay-footnote {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin: 12px 0 0;
  line-height: 1.5;
}
.visit-pay-coupons { margin-bottom: 10px; }
.visit-pay-coupon-label { font-size: 12px; color: #666; margin-bottom: 8px; font-weight: 600; }
.visit-pay-coupon-row { display: flex; flex-wrap: wrap; gap: 8px; }
.visit-pay-coupon-chip {
  border: 1px solid #ffd591;
  background: #fff7e6;
  color: #d46b08;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.visit-pay-coupon-chip.selected {
  border-color: #07c160;
  background: #e8f8ef;
  color: #07c160;
}
.visit-pay-coupon-chip.none {
  border-color: #e0e0e0;
  background: #fafafa;
  color: #888;
}

.visit-welfare-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  background: transparent;
  color: #07c160;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.visit-welfare-link.visit-back-pay {
  background: #fff;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.visit-welfare-intro {
  background: linear-gradient(135deg, #fff7e6, #fff);
  border: 1px solid #ffe7ba;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: center;
}
.visit-welfare-intro strong {
  display: block;
  font-size: 15px;
  color: #d46b08;
  margin-bottom: 4px;
}
.visit-welfare-intro span {
  font-size: 13px;
  color: #666;
}

/* 保留原有区块样式 */
.visit-ref-banner {
  background: linear-gradient(135deg, #ff6b35, #ff8f5a);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.visit-ref-banner:active { opacity: 0.92; }
.visit-ref-banner .arrow { font-size: 18px; opacity: 0.9; }

.visit-section { margin-bottom: 12px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.visit-section h3 { font-size: 16px; margin-bottom: 12px; color: #333; }
.activity-item { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.activity-item:last-child { border-bottom: none; }
.activity-item .title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.activity-item .desc { font-size: 13px; color: #666; }
.coupon-card {
  display: flex;
  align-items: stretch;
  border: 1px dashed #07c160;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8fff9;
}
.coupon-card:last-child { margin-bottom: 0; }
.coupon-card .value-box {
  width: 88px;
  background: #07c160;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  flex-shrink: 0;
}
.coupon-card .value-box .amount { font-size: 22px; font-weight: 700; line-height: 1.1; }
.coupon-card .value-box .unit { font-size: 11px; opacity: 0.9; }
.coupon-card .info { flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.coupon-card .coupon-claim-btn { margin: 8px 12px 8px 0; align-self: center; flex-shrink: 0; }
.visit-coupon-tip { font-size: 13px; color: #666; margin-bottom: 10px; padding: 8px 10px; background: #fff7e6; border-radius: 8px; }
.coupon-card .info .name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.coupon-card .info .rule { font-size: 12px; color: #888; }
.coupon-card.mine { border-color: #ff6b35; background: #fff8f5; }
.coupon-card.mine .value-box { background: #ff6b35; }

.visit-loading, .visit-error { text-align: center; padding: 60px 20px; color: #999; }
.visit-error { color: #e64340; }
.visit-empty-hint { font-size: 13px; color: #999; text-align: center; padding: 8px 0; }
.visit-promo-section { background: linear-gradient(180deg, #fff 0%, #f8fff9 100%); }
.visit-promo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.visit-promo-stat {
  background: #fff; border: 1px solid #e8f8ef; border-radius: 10px; padding: 12px; text-align: center;
}
.visit-promo-stat .label { font-size: 12px; color: #888; margin-bottom: 4px; }
.visit-promo-stat .value { font-size: 20px; font-weight: 700; color: #07c160; }
.visit-promo-stat .value.sub { font-size: 16px; }
.visit-promo-code {
  text-align: center; padding: 10px; background: #e8f8ef; border-radius: 8px;
  font-size: 13px; color: #333; margin-bottom: 12px;
}
.visit-promo-code strong { color: #07c160; font-size: 16px; letter-spacing: 1px; }
.visit-promo-actions { display: grid; gap: 8px; }
.visit-promo-actions.stores-action-tiered .btn-share-primary { font-size: 16px; padding: 14px; }
.visit-promo-actions.stores-action-tiered .btn-share-secondary { background: #fff; border: 1px solid #07c160; color: #07c160; }
.visit-promo-actions.stores-action-tiered .btn-share-ghost { color: #888; border-color: #ddd; font-size: 14px; }
.visit-promo-guest { text-align: center; padding: 8px 0; }
.visit-promo-guest p { font-size: 14px; color: #666; margin-bottom: 12px; line-height: 1.5; }
.visit-login-modal .sub { text-align: center; color: #666; font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.visit-login-actions { display: grid; gap: 10px; }
#visitLoginModal.modal { z-index: 350; }
