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

:root {
  --red: #e60012;
  --gold: #b8860b;
  --text: #1a1a1a;
  --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%;
}

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));
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
}

/* ===== 红色顶栏标题 ===== */
.page-title-header {
  background: linear-gradient(180deg, #e60012 0%, #d40011 100%);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  text-align: center;
}

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

/* ===== Banner ===== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 420;
  overflow: hidden;
  background: #2a1f14;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

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

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

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

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

/* ===== 筛选栏 ===== */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.filter-bar.is-stuck {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 4px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.filter-item svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.filter-item:active {
  color: var(--red);
}

/* ===== 场地列表 ===== */
.venue-list {
  background: #fff;
}

.venue-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px dashed #e0e0e0;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.venue-card:active {
  background: #fafafa;
}

.venue-card:last-child {
  border-bottom: none;
}

.venue-thumb {
  width: 88px;
  min-height: 88px;
  align-self: stretch;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.venue-body {
  flex: 1;
  min-width: 0;
}

.venue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.venue-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.venue-hours {
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.venue-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.venue-meta span + span::before {
  content: '·';
  margin: 0 4px;
  color: #ccc;
}

.venue-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.venue-tag {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.venue-price {
  flex-shrink: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}

.venue-price-label {
  color: var(--text-muted);
  font-size: 12px;
}

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

/* ===== 底部导航 ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: calc(var(--tab-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 200;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}

.tab-item svg {
  width: 22px;
  height: 22px;
}

.tab-item.active {
  color: var(--red);
}

.tab-item.active svg {
  stroke: var(--red);
  fill: var(--red);
}

.tab-item:not(.active) svg {
  fill: none;
}
