/* ========================================
   演出代抢服务 - 全局样式（票星球风格）
   手机优先 | 紫色渐变主调 | 白底 | 最大750px
   ======================================== */

/* ===== CSS 变量 ===== */
:root {
  --primary: #A855F7;
  --primary-dark: #7C3AED;
  --primary-darker: #6D28D9;
  --primary-light: #F3E8FF;
  --primary-soft: #F5F3FF;
  --accent-pink: #EC4899;
  --accent-blue: #3B82F6;
  --danger: #EE0A24;
  --danger-bg: #FFF1F0;
  --success: #07C160;
  --warning: #FF976A;
  --text-main: #1F1F1F;
  --text-secondary: #666666;
  --text-desc: #999999;
  --text-light: #BFBFBF;
  --bg-page: #F5F5F5;
  --bg-white: #FFFFFF;
  --border: #F0F0F0;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 16px rgba(139, 92, 246, 0.08);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.18);
  --gradient-primary: linear-gradient(135deg, #A855F7 0%, #8B5CF6 50%, #EC4899 100%);
  --gradient-purple: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
  --gradient-pink: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  --max-width: 750px;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== App 容器 ===== */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

/* ===== 页面系统 ===== */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 70px;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== 顶部导航栏 ===== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.nav-bar .nav-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-bar .nav-back svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.nav-bar .nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding-right: 32px;
}

.nav-bar .nav-right {
  width: 32px;
  flex-shrink: 0;
  font-size: 13px;
  cursor: pointer;
}

/* ===== 首页紫色头部 ===== */
.home-header {
  background: var(--gradient-primary);
  border-radius: 0 0 24px 24px;
  padding: 16px 16px 24px;
  position: relative;
  overflow: hidden;
}

.home-header::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.home-header::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.home-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-logo-icon {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.home-tagline {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.home-search-box {
  background: #fff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.home-search-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

.home-search-input {
  flex: 1;
  margin-left: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  background: transparent;
}

.home-search-input::placeholder {
  color: var(--text-light);
}

.home-search-only {
  padding: 12px 16px;
}

.home-search-only .home-search-input {
  margin-left: 0;
  color: var(--text-main);
  font-size: 15px;
}

.home-search-scan {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 18px;
}

/* ===== 分类标签 ===== */
.category-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 16px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  background: #fff;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.category-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* ===== Banner ===== */
.banner-carousel {
  padding: 10px 16px;
}

.banner-card {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.banner-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.banner-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.banner-subtitle {
  font-size: 13px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* ===== 金刚区快捷入口 ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fff;
  margin: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin: 12px 16px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title .fire-icon {
  color: #FF5722;
  font-size: 16px;
}

.card-title .more-link {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-label .required {
  color: var(--danger);
  margin-right: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

.form-textarea {
  height: auto;
  min-height: 80px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23969799' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== 按钮 ===== */
.btn {
  display: block;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.btn-primary:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #D8B4FE;
  color: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-danger {
  background: var(--gradient-pink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.btn-outline-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
  box-shadow: none;
}

.btn-row {
  display: flex;
  gap: 12px;
}

.btn-row .btn {
  flex: 1;
}

.btn-sm {
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  border-radius: 18px;
  padding: 0 18px;
  width: auto;
  display: inline-block;
}

/* ===== 文字样式 ===== */
.text-danger {
  color: var(--danger);
  font-weight: 600;
}

.text-danger-bold {
  color: var(--danger);
  font-weight: 700;
  font-size: 15px;
}

.text-warning {
  color: var(--warning);
  font-weight: 500;
}

.text-gray {
  color: var(--text-secondary);
  font-size: 13px;
}

.text-gray-sm {
  color: var(--text-secondary);
  font-size: 12px;
}

.text-highlight {
  color: var(--primary);
  font-weight: 600;
}

.text-large {
  font-size: 18px;
  font-weight: 700;
}

.text-xxl {
  font-size: 24px;
  font-weight: 700;
}

/* ===== 警告提示框 ===== */
.alert-box {
  background: var(--danger-bg);
  border: 1px solid #FFCCC7;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 16px;
  font-size: 13px;
  color: var(--danger);
  line-height: 1.8;
  font-weight: 500;
}

.alert-box.alert-purple {
  background: var(--primary-soft);
  border-color: #E9D5FF;
  color: var(--primary-dark);
}

.alert-box.alert-purple .text-danger {
  color: var(--danger);
}

/* ===== 首页内容入口 / 播报 / 巡演合集 ===== */
.home-content-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 16px; }
.home-content-entry { min-height: 92px; padding: 14px 12px; border-radius: 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 6px 16px rgba(74, 30, 125, .08); }
.home-content-entry.sale-entry { background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%); color: #9F1239; }
.home-content-entry.tour-entry { background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); color: #3730A3; }
.content-entry-icon { width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255,255,255,.72); border-radius: 10px; font-size: 17px; }
.home-content-entry strong { display: block; font-size: 15px; line-height: 1.3; }
.home-content-entry span { display: block; margin-top: 5px; font-size: 11px; line-height: 1.35; opacity: .78; }
.home-content-entry b { position: absolute; right: 11px; bottom: 10px; font-size: 11px; font-weight: 600; opacity: .75; }
.content-page-intro { margin: 12px 16px; padding: 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-dark); }
.content-page-intro strong { display: block; font-size: 15px; }
.content-page-intro span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.55; color: #6D28D9; }
.content-stream-list { padding: 0 16px 20px; }
.content-stream-card { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.content-stream-date { width: 56px; flex: 0 0 56px; text-align: center; color: var(--primary-dark); }
.content-stream-date b { display: block; font-size: 12px; line-height: 1.45; }
.content-stream-date span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-muted); }
.content-stream-cover { width: 54px; height: 68px; overflow: hidden; border-radius: 9px; background: #EEE8FF; display: grid; place-items: center; font-size: 20px; flex: 0 0 54px; }
.content-stream-cover img, .tour-collection-cover img { width: 100%; height: 100%; object-fit: cover; }
.content-stream-info { min-width: 0; flex: 1; }
.content-stream-info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.45; }
.content-stream-info span, .content-stream-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.content-stream-info small { color: var(--danger); }
.content-stream-card > i { font-style: normal; color: #B9ABC9; font-size: 20px; }
.tour-collection-card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tour-collection-cover { width: 82px; height: 104px; flex: 0 0 82px; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg,#DDD6FE,#C4B5FD); display: grid; place-items: center; font-size: 28px; }
.tour-collection-info { min-width: 0; flex: 1; }
.tour-collection-info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; line-height: 1.45; }
.tour-collection-info > span { display: block; margin: 6px 0 9px; font-size: 11px; line-height: 1.45; color: var(--text-muted); }
.tour-session-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-session-chips button { border: 0; border-radius: 999px; padding: 5px 8px; background: #F3E8FF; color: #7E22CE; font-size: 10px; cursor: pointer; }

/* ===== 实时同步状态 ===== */
.sync-status-card {
  margin: 12px 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid #E9D5FF;
  color: var(--primary-dark);
  font-size: 12px;
  line-height: 1.6;
}

.privacy-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #F6FFED;
  color: #389E0D;
  font-size: 12px;
  line-height: 1.6;
}

/* ===== 演出卡片 ===== */
.show-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.show-card .show-img {
  width: 90px;
  height: 120px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #DDD6FE, #E9D5FF);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.show-card .show-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-card .show-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.show-card .show-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-card .show-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.show-card .show-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.show-card .show-tag {
  padding: 2px 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.show-card .show-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.show-card .show-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
}

.show-card .show-price-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.show-card .show-action {
  background: var(--gradient-pink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(236, 72, 153, 0.25);
}

/* ===== 飙升榜卡片 ===== */
.trending-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.trending-list::-webkit-scrollbar {
  display: none;
}

.trending-card {
  flex-shrink: 0;
  width: 130px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.trending-card .trending-img {
  width: 130px;
  height: 90px;
  background: linear-gradient(135deg, #DDD6FE, #E9D5FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.trending-card .trending-info {
  padding: 8px;
}

.trending-card .trending-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card .trending-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
}

/* ===== 海报式演出内容 ===== */
.home-show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.home-poster-card,
.directory-grid-card,
.directory-rail-card {
  min-width: 0;
  cursor: pointer;
  border-radius: 12px;
  color: var(--text-main);
}

.home-poster-card {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.home-poster-cover,
.directory-poster-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e5d8ff, #ffd7ed);
}

.home-poster-cover {
  aspect-ratio: 0.74;
}

.home-poster-cover img,
.directory-poster-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.poster-type {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 10px;
  background: rgba(24, 18, 40, 0.68);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.home-poster-info {
  padding: 9px 10px 10px;
}

.home-poster-title,
.directory-poster-name {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-poster-time,
.directory-poster-meta {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-poster-price,
.directory-poster-price {
  margin-top: 7px;
  color: var(--danger);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.home-poster-price small,
.directory-poster-price small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 400;
}

.directory-feature {
  margin: 14px 16px 12px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.directory-feature-head,
.directory-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.directory-feature-head strong,
.directory-list-head > strong {
  font-size: 17px;
}

.directory-feature-head button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
}

.directory-poster-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.directory-poster-rail::-webkit-scrollbar { display: none; }

.directory-rail-card {
  width: 128px;
  flex: 0 0 128px;
}

.directory-rail-card .directory-poster-cover {
  height: 176px;
  border-radius: 9px;
}

.directory-rail-card .directory-poster-name {
  margin-top: 7px;
  font-size: 12px;
}

.directory-rail-card .directory-poster-meta { font-size: 10px; }
.directory-rail-card .directory-poster-price { font-size: 15px; }

.directory-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 16px 12px;
}

.directory-shortcuts button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  font-size: 18px;
}

.directory-shortcuts span { font-size: 12px; font-weight: 700; }
.directory-shortcuts small { color: var(--text-secondary); font-size: 10px; }

.directory-list-head {
  margin: 18px 16px 10px;
}

.directory-list-head .list-sort {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.directory-list-head .list-sort span { cursor: pointer; }
.directory-list-head .list-sort span.active { color: var(--primary); font-weight: 700; }

.directory-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 84px;
}

.directory-grid-card {
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.directory-grid-card .directory-poster-cover {
  aspect-ratio: 0.72;
  border-radius: 10px;
}

.directory-grid-card .directory-poster-name {
  padding: 8px 8px 0;
  font-size: 13px;
}

.directory-grid-card .directory-poster-meta,
.directory-grid-card .directory-poster-price {
  margin-left: 8px;
  margin-right: 8px;
}

.directory-grid-card .directory-poster-price {
  margin-bottom: 10px;
  font-size: 17px;
}

/* ===== 订单信息行 ===== */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .info-label {
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 80px;
}

.info-row .info-value {
  color: var(--text-main);
  text-align: right;
  flex: 1;
  font-weight: 500;
  word-break: break-all;
}

.info-row .info-value.bold {
  font-weight: 700;
}

.info-row .info-value.danger {
  color: var(--danger);
}

.info-row .info-value.primary {
  color: var(--primary);
}

/* ===== 费用明细 ===== */
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.fee-row .fee-label {
  color: var(--text-secondary);
}

.fee-row .fee-value {
  font-weight: 500;
}

.fee-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

.fee-total .fee-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.fee-total .fee-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--danger);
}

/* ===== 订单状态标签 ===== */
.status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-tag.status-pending {
  background: #FFF7E6;
  color: #FA8C16;
}

.status-tag.status-success {
  background: #F6FFED;
  color: var(--success);
}

.status-tag.status-confirm {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-tag.status-failed {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-tag.status-dispute {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #FFCCC7;
}

.status-tag.status-done {
  background: #F5F5F5;
  color: var(--text-secondary);
}

/* ===== 票星球整页同步模块 ===== */
.mini-topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 16px 12px;
  background: #fff;
}
.mini-logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--gradient-primary); color: #fff; }
.mini-search { flex: 1; height: 38px; border-radius: 20px; background: #F5F5F5; color: #999; display: flex; align-items: center; padding: 0 14px; }
.mini-more { background: #F5F5F5; border-radius: 18px; padding: 7px 10px; color: #333; }
.all-tabs { white-space: nowrap; overflow: hidden; background: #fff; padding: 10px 16px 12px; color: #666; font-size: 15px; word-spacing: 14px; border-bottom: 1px solid var(--border); }
.all-feature { margin: 16px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-card); }
.all-feature-posters { display: flex; gap: 10px; overflow: hidden; margin-bottom: 12px; }
.all-feature-posters > div { width: 75px; height: 100px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--primary-soft); }
.all-feature-posters img { width: 100%; height: 100%; object-fit: cover; }
.city-session-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.city-session-row span { text-align: center; background: var(--primary-soft); border-radius: 8px; padding: 8px; color: #555; font-size: 12px; }
.city-session-row b { color: var(--danger); }
.date-strip { margin: 12px 16px; border-radius: var(--radius-sm); background: #fff; display: flex; justify-content: space-around; padding: 10px 4px; text-align: center; color: #666; font-size: 12px; box-shadow: var(--shadow-card); }
.date-strip b { color: var(--text-main); }
.list-sort { margin: 16px; display: flex; justify-content: space-between; font-weight: 600; }
.all-show-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin: 0 16px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.all-show-cover { width: 92px; height: 122px; flex-shrink: 0; overflow: hidden; background: var(--primary-soft); border-radius: var(--radius-xs); }
.all-show-cover img { width: 100%; height: 100%; object-fit: cover; }
.all-show-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.all-show-info b { line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.all-show-info span { color: var(--text-secondary); font-size: 12px; }
.all-show-row > strong { color: var(--danger); align-self: flex-end; white-space: nowrap; }
.all-show-row small { color: var(--text-secondary); font-weight: 400; }
.bank-hero { min-height: 360px; background: linear-gradient(155deg,#7548FF 0%,#B294FF 42%,#F5F2FF 100%); color: #fff; padding: 32px 24px; }
.bank-brand { font-size: 20px; font-weight: 700; }
.bank-title { text-align: center; font-size: 24px; font-weight: 800; opacity: .8; margin: 30px 0; }
.bank-question { margin-top: 28px; font-size: 18px; font-weight: 600; }
.bank-hero button,.mini-primary { margin-top: 18px; padding: 12px 28px; border-radius: 24px; background: #7650FF; color: #fff; font-weight: 700; }
.bank-empty { min-height: 360px; text-align: center; padding-top: 120px; color: #BBB; font-size: 17px; line-height: 2; }
.empty-cart { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-secondary); }
.empty-cart-icon { font-size: 58px; }
.trending-img img { width: 100%; height: 100%; object-fit: cover; }
.tab-emoji { font-size: 21px; height: 24px; line-height: 24px; }

/* ===== 底部导航栏 ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 64px;
  background: #fff;
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-bar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  text-decoration: none;
  gap: 2px;
}

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

.tab-bar .tab-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 0;
  fill: currentColor;
}

.tab-bar .tab-item .tab-label {
  font-size: 10px;
  font-weight: 500;
}

.tab-bar .tab-item .center-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: -16px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

/* ===== 底部固定按钮 ===== */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 12px 16px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 98;
  display: flex;
  gap: 12px;
}

.bottom-actions .btn {
  flex: 1;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: var(--max-width);
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-header .modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

/* ===== 协议条款 ===== */
.agreement-text {
  font-size: 13px;
  line-height: 2;
  color: var(--text-main);
}

.agreement-text .agreement-item {
  margin-bottom: 10px;
  padding-left: 4px;
}

.agreement-text .agreement-item .item-num {
  font-weight: 700;
  color: var(--text-main);
}

.agreement-text .agreement-item .item-danger {
  color: var(--danger);
  font-weight: 600;
}

/* ===== 复选框 ===== */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
}

.checkbox-row .checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #D9D9D9;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: all 0.2s;
}

.checkbox-row.checked .checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-row.checked .checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-row .checkbox-label {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

/* ===== 图片上传 ===== */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-page);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-area.has-image {
  border-style: solid;
  border-color: var(--primary);
}

.upload-area .upload-icon {
  font-size: 32px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.upload-area .upload-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 16px;
}

.upload-area .upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.upload-area .upload-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  cursor: pointer;
}

.upload-label-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

.upload-required {
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 6px;
}

/* ===== 列表项 ===== */
.list-item {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.list-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.list-item .item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.list-item .item-info {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.list-item .item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.list-item .item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--danger);
}

/* ===== 个人中心 ===== */
.profile-header {
  background: var(--gradient-primary);
  padding: 48px 20px 32px;
  color: #fff;
  text-align: center;
  border-radius: 0 0 24px 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-role {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

.profile-menu {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:active {
  background: var(--bg-page);
}

.profile-menu-item .menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.profile-menu-item .menu-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.profile-menu-item .menu-text {
  flex: 1;
  font-size: 15px;
  color: var(--text-main);
}

.profile-menu-item .menu-arrow {
  color: var(--text-light);
  font-size: 16px;
}

.profile-menu-item .menu-badge {
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 6px;
}

/* ===== 个人中心演出推荐 ===== */
.profile-recommend-section { margin: 16px 0 22px; padding: 0 16px; }
.profile-recommend-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.profile-recommend-head strong { display: block; color: var(--text-main); font-size: 17px; }
.profile-recommend-head span { display: block; margin-top: 3px; color: var(--text-light); font-size: 11px; }
.profile-recommend-head button { border: 0; background: transparent; color: var(--primary); font-size: 12px; cursor: pointer; padding: 6px 0 6px 12px; }
.profile-recommend-rail { display: flex; gap: 11px; overflow-x: auto; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.profile-recommend-rail::-webkit-scrollbar { display: none; }
.profile-poster-card { width: 128px; flex: 0 0 128px; cursor: pointer; }
.profile-poster-cover { height: 166px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #EDE9FE, #DDD6FE); box-shadow: 0 5px 14px rgba(76, 29, 149, .12); color: #7E22CE; font-size: 28px; }
.profile-poster-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-poster-card strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 36px; margin-top: 8px; overflow: hidden; color: var(--text-main); font-size: 13px; line-height: 1.42; }
.profile-poster-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: var(--text-secondary); font-size: 10px; }
.profile-poster-card b { display: block; margin-top: 5px; color: var(--danger); font-size: 15px; }
.profile-poster-card b em { font-style: normal; font-size: 9px; font-weight: 400; }
.profile-recommend-empty { width: 100%; padding: 28px 14px; border-radius: 12px; text-align: center; background: #fff; color: var(--text-light); font-size: 12px; box-shadow: var(--shadow-card); }

/* ===== 钱包卡片 ===== */
.wallet-card {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  margin: 12px 16px;
  padding: 26px 20px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
}

.wallet-card .wallet-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.wallet-card .wallet-amount {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.wallet-card .wallet-row {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-card .wallet-col {
  flex: 1;
}

.wallet-card .wallet-col .col-label {
  font-size: 12px;
  opacity: 0.85;
}

.wallet-card .wallet-col .col-value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== 倒计时 ===== */
.countdown-box {
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
  text-align: center;
}

.countdown-box .countdown-label {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 4px;
}

.countdown-box .countdown-time {
  font-size: 24px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 1px;
}

/* ===== 凭证图片展示 ===== */
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.evidence-item {
  position: relative;
}

.evidence-item .evidence-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.evidence-item .evidence-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-item .evidence-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-align: center;
}

.evidence-placeholder {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* ===== 分段标题 ===== */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state .empty-text {
  font-size: 14px;
}

/* ===== 角色切换（演示用） ===== */
.role-switch {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 150;
  display: flex;
  gap: 6px;
}

.role-switch-btn {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--text-secondary);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.role-switch-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 日志条目 ===== */
.log-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 8px;
}

.log-item:last-child {
  border-bottom: none;
}

.log-item .log-time {
  flex-shrink: 0;
  color: var(--text-light);
}

/* ===== 客服与后台 ===== */
.admin-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.admin-row:last-child { border-bottom: none; }
.admin-row b { display: block; color: var(--text-main); }
.admin-row span { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 3px; }
.admin-row p { color: var(--text-main); margin-top: 6px; line-height: 1.6; word-break: break-word; }

/* ===== 响应式适配 ===== */
@media (min-width: 751px) {
  .modal-overlay {
    align-items: center;
  }

  .modal {
    border-radius: 24px;
    max-width: 600px;
  }

  @keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* ===== 工具类 ===== */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-0 { padding: 0; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
