*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e60012;
  --red-light: #ff4d4f;
  --orange: #ff6a00;
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #eee;
  --bg: #f5f5f5;
  --tab-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom));
}

body.panel-open {
  overflow: hidden;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
}

.loading,
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== 顶栏（对齐 mobile mine-header） ===== */
.page-header {
  background: linear-gradient(180deg, #e60012 0%, #d40011 100%);
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  text-align: center;
}

.page-header h1 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

/* ===== 轮播 Hero（对齐 mobile/home） ===== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 520;
  overflow: hidden;
  background: #222;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.hero-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots .dot.active {
  background: #fff;
  width: 8px;
  border-radius: 4px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

.location-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.icon-loc {
  width: 16px;
  height: 16px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 7px 14px;
  min-width: 0;
}

.icon-search {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* ===== 横幅（对齐 mobile promo-banner） ===== */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, #e60012, #ff3344);
}

.promo-text {
  flex: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* ===== 区块面板 ===== */
.section-panel {
  margin: 10px 12px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.section-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 15px;
  font-weight: 600;
}

.section-panel-head button {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.section-panel-body {
  padding: 12px 14px;
}

.section-panel-body.collapsed {
  max-height: 88px;
  overflow: hidden;
}

/* ===== 标签药丸（对齐 package-filter pkg-tag） ===== */
.tag-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.tag-scroll::-webkit-scrollbar {
  display: none;
}

.pkg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pkg-tag {
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.pkg-tag.active {
  color: var(--red);
  background: #fff5f5;
  border-color: var(--red);
}

.expert-tag {
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(90deg, #4169e1, #5b7fe8);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== 名酒横滑（单层 flex，与 tag-scroll 同模式） ===== */
.wine-scroll-outer {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.wine-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}

.wine-scroll::-webkit-scrollbar {
  display: none;
}

.wine-item {
  flex: 0 0 64px;
  width: 64px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wine-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

.wine-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  gap: 8px;
}

.filter-bar label {
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.filter-bar input[type="date"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  min-width: 0;
}

.filter-sep {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 城市弹窗（对齐 location 遮罩） ===== */
.loc-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}

.loc-mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loc-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 400px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.loc-city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loc-city-item {
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
  border-radius: 20px;
  cursor: pointer;
}

.loc-city-item:active {
  background: #fff5f5;
  color: var(--red);
}

/* ===== 地图占位 ===== */
.map-box {
  height: 200px;
  background: linear-gradient(180deg, #e8f4ea, #d4ead8);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-size: 32px;
}

.map-label {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px;
  border-radius: 6px;
}
