/* ========================================
   畅游旅游 - 移动端H5样式表
   模拟微信小程序风格
   ======================================== */

/* ===== CSS 变量定义 ===== */
:root {
  --primary: #07C160;          /* 微信绿主色 */
  --primary-dark: #06AD56;     /* 深绿色（按压态） */
  --primary-light: #E8F8F0;    /* 浅绿色（背景） */
  --bg: #f5f5f5;               /* 页面背景 */
  --card-bg: #ffffff;          /* 卡片背景 */
  --text-primary: #1a1a1a;     /* 主文字 */
  --text-secondary: #888888;   /* 次要文字 */
  --text-placeholder: #b0b0b0; /* 占位文字 */
  --price: #FF5A36;            /* 价格红 */
  --warn: #FAAD14;             /* 警告黄 */
  --border: #ececec;           /* 分割线 */
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;              /* 卡片圆角 */
  --radius-sm: 8px;            /* 小圆角 */
  --header-h: 48px;            /* 标题栏高度 */
  --tabbar-h: 56px;            /* 底部Tab高度 */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  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.5;
  color: var(--text-primary);
  background: #e0e0e0;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== 应用容器 ===== */
.app-container {
  max-width: 430px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* ===== 顶部标题栏 ===== */
.app-header {
  flex-shrink: 0;
  height: var(--header-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
}

.header-left,
.header-right {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-back-btn svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.header-back-btn:active {
  opacity: 0.6;
}

/* 右侧回首页按钮 */
.header-home-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.header-home-btn:active {
  opacity: 0.6;
}

/* ===== 主内容区 ===== */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* 有底部Tab栏时留出空间 */
.app-content.has-tabbar {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}

/* 有底部固定栏时留出空间（详情页报名栏） */
.app-content.has-bottombar {
  padding-bottom: 70px;
}

/* ===== 底部Tab栏 ===== */
.tab-bar {
  flex-shrink: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 100;
}

.tab-bar.hidden {
  display: none;
}

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

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

.tab-icon {
  width: 24px;
  height: 24px;
}

.tab-text {
  font-size: 10px;
  font-weight: 500;
}

/* ========================================
   首页样式
   ======================================== */

/* 搜索栏 */
.home-search-bar {
  background: var(--primary);
  padding: 0 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input-wrap {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 36px;
}

.search-input-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 6px;
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-primary);
}

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

.search-btn {
  flex-shrink: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 0 4px;
  cursor: pointer;
}

.search-btn:active {
  opacity: 0.7;
}

/* 统计栏 */
.home-stats {
  display: flex;
  background: #fff;
  margin: 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 分类导航 */
.category-nav {
  display: flex;
  overflow-x: auto;
  padding: 12px 8px 8px;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.category-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 72px;
}

.category-item.active {
  background: var(--primary-light);
}

.category-item:active {
  opacity: 0.7;
}

.category-emoji {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.category-name {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.category-item.active .category-name {
  color: var(--primary);
  font-weight: 600;
}

/* 活动列表 */
.activity-list {
  padding: 4px 12px 12px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* 活动卡片 */
.activity-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.activity-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-card);
}

.card-body {
  display: flex;
  padding: 12px;
  gap: 12px;
}

.card-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e8f8f0, #d4f0e3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.06));
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

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

.tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

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

.card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-symbol {
  font-size: 12px;
  color: var(--price);
  font-weight: 600;
}

.price-num {
  font-size: 20px;
  color: var(--price);
  font-weight: 700;
}

.price-unit {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 2px;
}

.card-reg-count {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 列表底部加载状态 */
.list-footer {
  text-align: center;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.list-footer .mini-spinner {
  width: 18px;
  height: 18px;
  margin: 0 auto 8px;
  border-width: 2px;
}

/* ========================================
   活动详情页样式
   ======================================== */

.detail-hero {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, #e8f8f0, #c8f0d8);
  position: relative;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.08));
}

.detail-content {
  background: #fff;
  margin: -12px 12px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.detail-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.detail-price-symbol {
  font-size: 14px;
  color: var(--price);
  font-weight: 600;
}

.detail-price-num {
  font-size: 28px;
  color: var(--price);
  font-weight: 700;
}

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

.detail-reg-info {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 信息网格 */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.info-cell {
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.info-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

/* 活动描述 */
.detail-section {
  margin-top: 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.detail-description {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* 底部固定报名栏 - 浮动显示 */
.detail-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 500;
  padding-bottom: var(--safe-bottom);
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.bottom-bar-price {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.bottom-bar-price .price-symbol {
  font-size: 13px;
}

.bottom-bar-price .price-num {
  font-size: 22px;
}

.register-btn {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 0 28px;
  height: 40px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.register-btn:active {
  background: var(--primary-dark);
}

.register-btn.disabled {
  background: #ccc;
}

/* 分享按钮（在报名按钮左侧，描边样式） */
.share-btn {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px;
  height: 40px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

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

/* ========================================
   登录/注册页样式
   ======================================== */

.auth-page {
  padding: 40px 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-emoji {
  font-size: 56px;
  margin-bottom: 8px;
}

.auth-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-logo-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 46px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}

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

.form-input::placeholder {
  color: var(--text-placeholder);
}

textarea.form-input {
  height: 80px;
  padding: 10px 14px;
  resize: none;
  line-height: 1.6;
}

.form-btn {
  width: 100%;
  height: 46px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 23px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-btn:active {
  background: var(--primary-dark);
}

.form-btn:disabled {
  opacity: 0.6;
}

.auth-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ========================================
   我的页面样式
   ======================================== */

.mine-header {
  background: linear-gradient(135deg, var(--primary), #06AD56);
  padding: 24px 16px 48px;
  position: relative;
}

.user-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-nickname {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.login-prompt {
  flex: 1;
}

.login-prompt-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.login-prompt-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.login-btn {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 20px;
  border-radius: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.login-btn:active {
  background: var(--primary-dark);
}

.mine-body {
  padding: 0 12px 16px;
  margin-top: -36px;
  position: relative;
  z-index: 1;
}

/* 我的统计 */
.mine-stats {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.mine-stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  position: relative;
}

.mine-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.mine-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.mine-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 功能入口列表 */
.menu-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.menu-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 48px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

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

.menu-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.menu-icon-wrap.green { background: var(--primary-light); }
.menu-icon-wrap.blue { background: #E6F0FF; }
.menu-icon-wrap.orange { background: #FFF3E0; }
.menu-icon-wrap.red { background: #FFEBEE; }

.menu-label {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.menu-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-placeholder);
  border-top: 2px solid var(--text-placeholder);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.menu-section-title {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 16px 4px 8px;
  font-weight: 500;
}

/* ========================================
   我的活动页样式
   ======================================== */

.reg-list {
  padding: 12px;
}

.reg-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}

.reg-card:active {
  transform: scale(0.985);
}

.reg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reg-card-type {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.reg-card-type-emoji {
  font-size: 16px;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}

.status-pending {
  background: #FFF7E6;
  color: var(--warn);
}

.status-confirmed {
  background: var(--primary-light);
  color: var(--primary);
}

.status-cancelled {
  background: #f5f5f5;
  color: var(--text-secondary);
}

.reg-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.reg-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.reg-info-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.reg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.reg-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--price);
}

.reg-card-time {
  font-size: 11px;
  color: var(--text-placeholder);
}

/* ========================================
   客服页样式
   ======================================== */

.service-contact {
  background: #fff;
  margin: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 16px;
  position: relative;
}

.contact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 52px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-action {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 14px;
  cursor: pointer;
}

.contact-action:active {
  opacity: 0.7;
}

/* FAQ列表 */
.faq-list {
  margin: 0 12px 16px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
}

.faq-q-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  padding-right: 8px;
}

.faq-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-placeholder);
  border-top: 2px solid var(--text-placeholder);
  transform: rotate(135deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(-45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer-text {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   弹窗Modal样式
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.modal-wrapper.show {
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--safe-bottom);
}

.modal-wrapper.show .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.modal-close:active {
  opacity: 0.6;
}

.modal-body {
  padding: 16px;
}

/* 报名表单 */
.reg-form-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-form-summary-emoji {
  font-size: 32px;
}

.reg-form-summary-info {
  flex: 1;
  min-width: 0;
}

.reg-form-summary-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-form-summary-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--price);
}

/* 人数选择器 */
.participants-selector {
  display: flex;
  align-items: center;
  gap: 0;
}

.ps-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-btn:active {
  background: var(--bg);
}

.ps-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ps-value {
  width: 50px;
  height: 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 确认弹窗 */
.confirm-modal-box {
  width: 300px;
  max-width: 80%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.modal-wrapper.show .confirm-modal-box {
  transform: scale(1);
  opacity: 1;
}

.confirm-modal-body {
  padding: 28px 20px 20px;
  text-align: center;
}

.confirm-modal-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.confirm-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-modal-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.confirm-modal-btns {
  display: flex;
  border-top: 1px solid var(--border);
}

.confirm-modal-btn {
  flex: 1;
  height: 48px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal-btn:active {
  background: var(--bg);
}

.confirm-modal-btn.cancel {
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}

.confirm-modal-btn.confirm {
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   Toast 提示样式
   ======================================== */

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 280px;
  text-align: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  line-height: 1.5;
  pointer-events: none;
}

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

.toast.success {
  background: rgba(7, 193, 96, 0.92);
}

.toast.error {
  background: rgba(250, 90, 54, 0.92);
}

/* ========================================
   加载遮罩样式
   ======================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.mini-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-text {
  font-size: 13px;
  color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   空状态样式
   ======================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 加载骨架屏 */
.skeleton-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
}

.skeleton-block {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 100%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 页面淡入动画 */
.page-fade-in {
  animation: fadeIn 0.25s ease;
}

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

/* 帮助文字 */
.helper-text {
  font-size: 12px;
  color: var(--text-placeholder);
  padding: 0 4px;
}

/* 通用间距 */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }

/* 详情页 hero 多图轮播 */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: auto;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ===== 全局页脚（备案信息） ===== */
.page-footer {
  padding: 24px 16px 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}
.page-footer .pf-line {
  margin: 2px 0;
}
.page-footer .pf-text {
  color: #888;
  font-size: 12px;
}
.page-footer .pf-icp a {
  color: #999;
}
.page-footer .pf-icp a:active {
  color: var(--primary, #009688);
}
.page-footer .pf-police {
  color: #999;
}

/* ===== 分享面板 ===== */
.share-sheet {
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 14px 14px 0 0;
}
.share-sheet .ss-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 14px;
}
.share-sheet .ss-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 10px;
}
.share-sheet .ss-cover {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #eee;
}
.share-sheet .ss-info { min-width: 0; }
.share-sheet .ss-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}
.share-sheet .ss-desc {
  font-size: 12px;
  color: #ff5722;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-sheet .ss-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin: 10px 0 14px;
}
.share-sheet .ss-options {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
}
.share-sheet .ss-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.share-sheet .ss-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}
.share-sheet .ss-label {
  font-size: 12px;
  color: #666;
}
.share-sheet .ss-cancel {
  width: 100%;
  background: #f5f5f5;
  color: #666;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
