/* ---------- 设计系统 ---------- */
:root {
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --red: #E23744;
  --red-light: #FEF2F2;
  --red-soft: #FCA5A5;
  --purple: #7C3AED;
  --purple-light: #F5F3FF;
  --ink: #111827;
  --ink-secondary: #4B5563;
  --muted: #9CA3AF;
  --line: #E5E7EB;
  --line-light: #F3F4F6;
  --shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 10px 40px rgba(17, 24, 39, 0.1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
}
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- 布局 ---------- */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(72px + var(--safe-bottom));
  position: relative;
}

.screen {
  padding: 16px;
}

/* ---------- 备案/页脚 ---------- */
.footer-icp {
  text-align: center;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  font-size: 11px;
  color: #B4B2A9;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
.footer-icp a {
  color: #B4B2A9;
  text-decoration: none;
}

/* ---------- 顶部栏 ---------- */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand-logo .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.avatar-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line-light);
  border: 1px solid var(--line);
}

/* ---------- 搜索 ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  margin: 4px 16px 16px;
  box-shadow: var(--shadow);
}
.search-bar svg, .search-bar .icon {
  width: 18px; height: 18px;
  color: var(--muted);
  flex: none;
}
.search-bar input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 14px;
}
.search-bar input::placeholder { color: var(--muted); }

/* ---------- 分类标签 ---------- */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs::after {
  content: "";
  flex: 0 0 16px;
  scroll-snap-align: end;
}
.category-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all .15s ease;
}
.category-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ---------- 区块标题 ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.section-link {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}

/* ---------- 横向推荐卡片 ---------- */
.horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  flex: none;
  width: 260px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.featured-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--line-light);
}
.featured-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
}
.featured-body {
  padding: 12px;
}
.featured-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.featured-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.featured-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.featured-actions .btn-mini {
  flex: 1;
  padding: 8px 0;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.featured-actions .btn-mini.btn-primary { box-shadow: none; }
.featured-actions .btn-fav {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: all .15s ease;
}
.featured-actions .btn-fav.active { background: var(--red-light); border-color: var(--red); color: var(--red); }

.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack img {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  background: var(--line-light);
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack .count {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
}
.featured-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}
.featured-price small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------- 列表卡片 ---------- */
.list-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 16px 12px;
  box-shadow: var(--shadow);
}
.list-cover {
  width: 84px; height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--line-light);
  flex: none;
}
.list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.list-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.tag-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--red-light);
  color: var(--red);
}
.tag-pill.secondary {
  background: var(--purple-light);
  color: var(--purple);
}
.list-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.list-actions .btn-mini {
  flex: 1;
  padding: 8px 0;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.list-actions .btn-mini.btn-primary { box-shadow: none; }
.list-actions .btn-fav {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
}
.list-actions .btn-fav.active { background: var(--red-light); border-color: var(--red); color: var(--red); }
.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}
.status-badge.red {
  background: var(--red-light);
  color: var(--red);
}
.status-badge.gray {
  background: var(--line-light);
  color: var(--ink-secondary);
}
.list-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + var(--safe-bottom));
  z-index: 100;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: color .15s ease;
}
.tab-item.active { color: var(--red); }
.tab-item svg, .tab-item .icon {
  width: 22px; height: 22px;
}

/* ---------- 按钮 ---------- */
.btn-primary {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(226, 55, 68, 0.28);
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-ghost {
  background: var(--line-light);
  color: var(--ink-secondary);
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
}
.btn-outline {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-xl);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 详情页 ---------- */
.detail-screen {
  padding: 0;
  padding-bottom: calc(80px + var(--safe-bottom));
}
.detail-header {
  position: relative;
}
.detail-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--line-light);
}
.detail-back {
  position: absolute;
  top: 12px; left: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 20px;
  box-shadow: var(--shadow);
}
.detail-body {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -20px;
  position: relative;
  padding: 20px 16px;
}
.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.detail-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.detail-meta-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
}
.detail-meta-item .label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.detail-meta-item .value {
  color: var(--ink);
  font-weight: 600;
}

.block { margin-bottom: 24px; }
.block-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.block-text {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* 嘉宾 */
.guest-list { display: flex; flex-direction: column; gap: 12px; }
.guest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
}
.guest-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line-light);
  flex: none;
}
.guest-name { font-weight: 700; font-size: 15px; }
.guest-role { font-size: 12px; color: var(--ink-secondary); }
.guest-company { font-size: 11px; color: var(--muted); }

/* 地图占位 */
.map-card {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  background: #E5E7EB;
  overflow: hidden;
  position: relative;
}
.map-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.map-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  padding: 12px;
  font-size: 13px;
}

/* 报名人数 */
.joiner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
}
.joiner-text { font-size: 13px; color: var(--ink-secondary); }

/* 固定底部按钮 */
.sticky-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}
.sticky-footer .price-info {
  flex: 1;
}
.sticky-footer .price-info .amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}
.sticky-footer .price-info .amount small {
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.sticky-footer .btn-primary { flex: 1.4; }
.sticky-footer .btn-fav-lg {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
}
.sticky-footer .btn-fav-lg.active { background: var(--red-light); border-color: var(--red); color: var(--red); }

/* ---------- 表单 ---------- */
.form-screen { padding: 0; padding-bottom: calc(20px + var(--safe-bottom)); }
.form-header {
  background: var(--surface);
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.form-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.form-header-cover {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--line-light);
  flex: none;
}
.form-header-info { flex: 1; min-width: 0; }
.form-header-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.form-header-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.form-body {
  padding: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-label .req { color: var(--red); }
.form-label .optional {
  float: right;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.input-row svg, .input-row .icon {
  width: 18px; height: 18px;
  color: var(--muted);
  flex: none;
}
.input-row input, .input-row select, .input-row textarea {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 14px;
  min-width: 0;
}
.input-row textarea {
  min-height: 90px;
  resize: vertical;
}
.input-row:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}

.form-submit-area {
  padding: 0 16px;
  margin-top: 8px;
}
.form-submit-area .btn-primary {
  width: 100%;
}
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- 我的报名 ---------- */
.my-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin: 0 16px 16px;
  box-shadow: var(--shadow);
}
.my-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.my-tab.active {
  background: var(--red);
  color: #fff;
}

.my-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 12px;
  box-shadow: var(--shadow);
}
.my-card-cover {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--line-light);
  flex: none;
}
.my-card-body { flex: 1; min-width: 0; }
.my-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.my-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-card-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.my-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.my-status {
  font-size: 12px;
  font-weight: 600;
}
.my-status.upcoming { color: var(--red); }
.my-status.past { color: var(--muted); }

/* ---------- 个人中心 ---------- */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0 16px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line-light);
  margin: 0 auto 12px;
  border: 3px solid var(--red-light);
}
.profile-name { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.profile-title { font-size: 13px; color: var(--ink-secondary); margin: 0 0 12px; }
.profile-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.profile-stat b {
  display: block;
  font-size: 20px;
  color: var(--red);
}
.profile-stat span {
  font-size: 12px;
  color: var(--muted);
}
.profile-login-hint {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 16px 16px;
}
.menu-grid-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.menu-grid-item .icon-box {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 18px;
}
.menu-grid-item .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.menu-list {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 0 16px 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.menu-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-light);
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-item .left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.menu-list-item .left .icon {
  width: 20px; height: 20px;
  color: var(--red);
}

/* ---------- 占位页 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--ink); margin: 0 0 6px; }
.empty-state p { font-size: 13px; margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: rgba(20,20,30,0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  white-space: nowrap;
}

/* ---------- 图片放大查看 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox img {
  position: relative;
  z-index: 1;
  max-width: 96%;
  max-height: 86%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoom-img { cursor: pointer; }

/* ---------- 积分规则 ---------- */
.points-card {
  background: linear-gradient(135deg, var(--red) 0%, #C81E2A 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 16px 16px;
  box-shadow: 0 8px 24px rgba(226, 55, 68, 0.22);
}
.points-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.points-card .label { font-size: 13px; opacity: .9; }
.points-card .value { font-size: 32px; font-weight: 800; }
.points-card .rules-btn {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.points-rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.points-rule-item:last-child { border-bottom: none; }
.points-rule-item .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: none;
}
.points-rule-item .info { flex: 1; }
.points-rule-item .info .title { font-weight: 600; font-size: 14px; }
.points-rule-item .info .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.points-rule-item .score {
  font-size: 16px; font-weight: 800; color: var(--red);
}
.points-rule-tips {
  background: var(--red-light);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ---------- 弹窗 ---------- */
.modal-sheet {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-sheet-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  max-height: 80vh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 16px;
  overflow-y: auto;
}
.modal-sheet-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-secondary);
}
.modal-sheet-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
}

/* ---------- 旧兼容 ---------- */
.hidden { display: none !important; }
[hidden] { display: none !important; }
