/* --- miniprogram/app.wxss --- */
/* app.wxss - 建大竞赛罗盘 · 全局样式规范
   主色调：白（主 #ffffff / #f8fafc），黑（文字 #0f172a），蓝（辅 #1e3a8a / #2563eb），红（特殊警示 #ef4444）
   严谨遵循无 emoji、全开源 UI 图标、微交互动画、Morph 形变空间连续性规范 */

body.mini-body, #mini-app {
  /* 基础与表面层级 */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-subtle: #eff6ff;

  /* 文字墨水层级 */
  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-tertiary: #64748b;
  --ink-muted: #94a3b8;

  /* 西建大品牌蓝与辅助蓝 */
  --brand-blue: #1e3a8a;
  --brand-blue-hover: #1e40af;
  --brand-blue-light: #2563eb;
  --brand-blue-subtle: #eff6ff;
  --brand-blue-border: #bfdbfe;

  /* 特殊状态与警告（红、琥珀、翠绿） */
  --status-red: #ef4444;
  --status-red-bg: #fef2f2;
  --status-red-border: #fecaca;
  --status-amber: #d97706;
  --status-amber-bg: #fffbeb;
  --status-amber-border: #fde68a;
  --status-emerald: #059669;
  --status-emerald-bg: #ecfdf5;
  --status-emerald-border: #a7f3d0;

  /* 边框与阴影 */
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  background: var(--bg-primary);
  color: var(--ink-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

page, view, text, image, input, button, scroll-view {
  box-sizing: border-box;
}

/* 页面通用容器，底部留出 custom-tab-bar 空间 */
.page-container {
  padding: 16px 16px 90px;
  min-height: 100vh;
}

/* ===== 核心动画与形变过渡 ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-fade {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUpFade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.morph-transition {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 微交互：轻微缩放响应 */
.interactive-tap {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.interactive-tap:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.card-tap {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.card-tap:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-xs);
}

/* ===== 通用卡片组件 ===== */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

/* ===== 按钮体系 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active {
  transform: scale(0.965);
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.btn-primary:active {
  background: var(--brand-blue-hover);
}

.btn-ghost {
  background: #ffffff;
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
}

.btn-subtle {
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
}

.btn-danger {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid var(--status-red-border);
}

.btn-full {
  width: 100%;
}

/* ===== 标签与徽章体系 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-a1 {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-a2 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-b {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-c {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.badge-2 {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-3 {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* 状态药丸胶囊 */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: #ffffff;
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.pill:active {
  transform: scale(0.95);
}
.pill.active {
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
  font-weight: 600;
}

/* 矢量图标专用容器 */
.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.ui-icon-sm {
  width: 14px;
  height: 14px;
}

.ui-icon-lg {
  width: 22px;
  height: 22px;
}

/* 搜索栏组件 */
.search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease;
}

.search-input-field {
  flex: 1;
  font-size: 14px;
  color: var(--ink-primary);
  margin-left: 8px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-tertiary);
  font-size: 13.5px;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--ink-tertiary);
  line-height: 1.6;
}


/* --- miniprogram/custom-tab-bar/index.wxss --- */
/* custom-tab-bar/index.wxss */
.tab-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0 16px env(safe-area-inset-bottom, 12px);
  pointer-events: none;
}

.tab-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.1), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
  height: 58px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* 类似 PPT 平滑变形（Morph Transition）的平滑滑动药丸 */
.tab-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(25% - 3px);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.tab-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.15s ease;
}

.tab-item:active {
  transform: scale(0.92);
}

.tab-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-icon-active {
  transform: translateY(-1px) scale(1.08);
}

.tab-text {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.tab-item.active .tab-text {
  color: #1e3a8a;
  font-weight: 700;
}


/* --- miniprogram/pages/home/home.wxss --- */
/* pages/home/home.wxss - 首页样式 */
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.home-school {
  font-size: 12px;
  font-weight: 600;
  color: #1e3a8a;
  margin-left: 6px;
}

.home-date {
  font-size: 12px;
  color: var(--ink-tertiary);
  font-weight: 500;
}

/* 英雄卡片 */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px -2px rgba(30, 58, 138, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.hero-card:after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(239, 246, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--brand-blue-light);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.hero-title-accent {
  display: block;
  color: var(--brand-blue);
}

.hero-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-foot {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--ink-tertiary);
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* 板块通用 */
.section-block {
  margin-bottom: 22px;
}

/* 白名单防坑自查通道（精巧三列居中对齐结构） */
.verifier-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 13px 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px -2px rgba(30, 58, 138, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all var(--duration-fast) var(--ease-spring);
}

.verifier-banner:active {
  transform: scale(0.985);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.verifier-banner-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.verifier-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verifier-tile-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.verifier-content {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verifier-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verifier-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.verifier-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand-blue);
  background: #e0f2fe;
  padding: 1.5px 7px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  line-height: 1.3;
}

.verifier-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verifier-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-blue);
  color: #ffffff;
  flex-shrink: 0;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.18);
  transition: all var(--duration-fast) var(--ease-spring);
}

.verifier-action-btn:active {
  transform: scale(0.96);
  background: #172554;
}

.verifier-action-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.verifier-action-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: block;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.section-subtitle {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: normal;
  margin-left: 8px;
}

.section-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
}

/* 临近节点网格 */
.upcoming-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upcoming-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
}

.upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.upcoming-stage {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.upcoming-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.upcoming-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.countdown-active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.countdown-expired {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.upcoming-date {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* 引导卡片 */
.guidance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.guidance-body {
  flex: 1;
  padding-right: 14px;
}

.guidance-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.guidance-desc {
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.5;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* 灵感探索列表 */
.curated-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curated-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  box-shadow: var(--shadow-xs);
}

.curated-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue-light);
  font-family: Consolas, Monaco, monospace;
  background: #eff6ff;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 12px;
}

.curated-content {
  flex: 1;
}

.curated-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 5px;
  line-height: 1.35;
}

.curated-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.curated-tag {
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.curated-dot {
  font-size: 11px;
  color: var(--ink-muted);
}

.curated-arrow {
  opacity: 0.6;
  margin-left: 8px;
}

/* 底部小字 */
.home-bottom-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-muted);
  padding: 12px 0 20px;
}


/* --- miniprogram/pages/discover/discover.wxss --- */
/* pages/discover/discover.wxss - 赛事目录检索库样式 */
.clear-btn {
  padding: 4px;
}

/* 筛选横向滚动条 */
.filter-scroll {
  width: 100%;
  white-space: nowrap;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.filter-pills-row {
  display: inline-flex;
  padding: 2px 0;
}

/* 辅助筛选行 */
.sub-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.dept-picker-btn {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.dept-picker-text {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dept-arrow {
  font-size: 8px;
  color: var(--ink-muted);
  margin-left: 6px;
  transform: scale(0.85);
}

.pill-compact {
  margin: 0 8px;
  padding: 4px 10px;
  font-size: 11.5px;
}

.matched-count {
  font-size: 12px;
  color: var(--ink-muted);
}

.matched-num {
  font-weight: 700;
  color: var(--brand-blue);
}

/* 赛事目录行列表（非等大单调方块，突出信息阅读层次） */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-row {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.catalog-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue-light);
  font-family: Consolas, Monaco, monospace;
  background: #eff6ff;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 12px;
  margin-top: 2px;
}

.catalog-main {
  flex: 1;
}

.catalog-name-row {
  margin-bottom: 6px;
}

.catalog-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.4;
}

.catalog-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.catalog-level {
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.catalog-remark-flag {
  font-size: 11px;
  color: var(--status-amber);
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.catalog-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 5px;
}

.catalog-dept {
  font-weight: 500;
}

.catalog-dot {
  margin: 0 5px;
  color: var(--ink-muted);
}

.catalog-direction {
  color: var(--ink-secondary);
}

.catalog-season {
  font-size: 11px;
  color: var(--ink-muted);
}

.season-label {
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
}

/* 操作区域 */
.catalog-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-left: 8px;
  padding-left: 6px;
  height: 60px;
}

.favorite-btn {
  padding: 6px;
  border-radius: 50%;
}
.favorite-btn:active {
  transform: scale(0.85);
}

.catalog-arrow {
  opacity: 0.5;
  margin-top: auto;
}

.load-more-hint {
  text-align: center;
  padding: 16px 0 24px;
  font-size: 12px;
  color: var(--ink-muted);
}


/* --- miniprogram/pages/verifier/verifier.wxss --- */
/* pages/verifier/verifier.wxss - 白名单核验与防坑自查样式 */

.verifier-head {
  padding: 8px 4px 16px;
}

.verifier-badge {
  display: inline-flex;
  align-items: center;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 10px;
}

.verifier-school {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.5px;
}

.verifier-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.verifier-sub {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 搜索卡片 */
.search-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.search-input-box {
  margin-bottom: 12px;
}

.hot-tags-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.hot-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
  margin-right: 8px;
  flex-shrink: 0;
}

.hot-scroll {
  white-space: nowrap;
  width: 100%;
}

.hot-pills-list {
  display: inline-flex;
  gap: 6px;
  padding: 2px 0;
}

.hot-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all var(--duration-fast) var(--ease-spring);
  flex-shrink: 0;
}

.hot-pill:active {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--brand-blue);
  transform: scale(0.96);
}

.verifier-submit-btn {
  width: 100%;
  height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* 结果区 Banner */
.result-banner {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  line-height: 1.55;
  font-size: 13px;
}

.ok-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.warn-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.banner-text {
  flex: 1;
  font-weight: 500;
}

.highlight-count {
  font-weight: 800;
  font-size: 15px;
  color: #047857;
  padding: 0 2px;
}

.highlight-kw {
  font-weight: 700;
  color: #dc2626;
}

/* 命中列表 */
.hits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.hit-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-spring);
}

.hit-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}

.hit-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hit-title-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.hit-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.hit-arrow {
  opacity: 0.4;
  flex-shrink: 0;
}

.hit-meta-row {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
}

.hit-meta-dot {
  margin: 0 6px;
  color: #cbd5e1;
}

.hit-remark-box {
  margin-top: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  display: flex;
  align-items: flex-start;
}

.hit-remark-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: #92400e;
  font-weight: 500;
}

.hit-credit-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.hit-credit-label {
  font-size: 11.5px;
  color: var(--text-sub);
}

.hit-credit-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-blue);
}

.hit-credit-note {
  font-size: 11px;
  color: #94a3b8;
}

/* 防坑避雷说明卡片 */
.anti-trap-card {
  border-left: 4px solid #ef4444;
}

.anti-trap-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.anti-trap-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.anti-trap-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.trap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  margin-top: 7px;
  flex-shrink: 0;
}

.trap-item-content {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-sub);
}

.trap-strong {
  font-weight: 700;
  color: var(--text-main);
}

.anti-trap-actions {
  display: flex;
  gap: 10px;
}

.anti-trap-actions .btn {
  flex: 1;
  height: 42px;
}

/* 初始指南卡片 */
.info-guide-card {
  padding: 18px;
}

.info-guide-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.guide-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-blue);
  opacity: 0.6;
  font-family: monospace;
  line-height: 1.2;
}

.guide-content {
  flex: 1;
}

.guide-heading {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.guide-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
}

.verifier-footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}


/* --- miniprogram/pages/plan/plan.wxss --- */
/* pages/plan/plan.wxss - 个性化选赛规划样式 */
.wizard-head {
  margin-bottom: 16px;
}

.wizard-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wizard-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-primary);
}

.wizard-step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue-light);
}

.progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand-blue);
  border-radius: var(--radius-pill);
}

/* 分步卡片 */
.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
}

.hours-display {
  color: var(--brand-blue);
  font-weight: 700;
}

/* 选项网格 */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.choice-box.active {
  background: var(--brand-blue-subtle);
  border-color: var(--brand-blue-border);
}

.choice-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.choice-box.active .choice-title {
  color: var(--brand-blue);
  font-weight: 700;
}

.choice-check {
  width: 18px;
  height: 18px;
}

/* 底部操作 */
.wizard-actions {
  display: flex;
  gap: 12px;
}

.wizard-prev-btn {
  flex: 1;
}

.wizard-next-btn {
  flex: 2;
}

/* 生成中反馈状态 */
.generating-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.generating-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.generating-status {
  font-size: 13px;
  color: var(--brand-blue-light);
  margin-bottom: 24px;
}

.generating-footnote {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* 结果呈现 */
.result-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.result-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.result-re-edit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
}

.result-summary {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.fallback-alert {
  display: flex;
  align-items: center;
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--status-amber);
  margin-top: 10px;
}

/* 推荐项卡片 */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.rec-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.rec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.role-main {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.role-practice {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.role-backup {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.rec-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.rec-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}

.rec-dot {
  margin: 0 5px;
}

.rec-section {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.rec-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.rec-section-content {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-top: 3px;
}

.bullet-dot {
  color: var(--brand-blue-light);
  margin-right: 6px;
  font-weight: 800;
}

.bullet-text {
  flex: 1;
}

.rec-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.result-bottom-actions {
  margin-bottom: 24px;
}


/* --- miniprogram/pages/my/my.wxss --- */
/* pages/my/my.wxss - 我的赛事样式 */
.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.account-info {
  display: flex;
  align-items: center;
}

.account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-blue-subtle);
  border: 1px solid var(--brand-blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.account-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-role-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-subtle);
  border: 1px solid var(--brand-blue-border);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.account-sub {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: 3px;
}

/* 快捷工具栏 */
.quick-tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.quick-tool-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
}

.quick-tool-card:active {
  transform: scale(0.97);
  background: #f8fafc;
}

/* 已关注赛事卡片 */
.my-comp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-comp-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.my-comp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.my-comp-title-area {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.my-comp-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
}

.my-comp-unfollow {
  padding: 6px;
  margin-left: 8px;
}

.my-comp-dept-tag {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}

/* 独立阶段节点容器 */
.stage-nodes-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: var(--radius-lg);
  padding: 12px;
}

.stage-node-row {
  display: flex;
  align-items: center;
}

.stage-tag-box {
  width: 44px;
}

.stage-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.stage-content-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 8px;
}

.stage-info-main {
  display: flex;
  flex-direction: column;
}

.stage-kind-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.stage-deadline-date {
  font-size: 11px;
  color: var(--ink-muted);
}

.stage-action-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.countdown-active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.countdown-expired {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.remind-icon-btn {
  padding: 4px;
}

/* 时间未公布提示（严格官方规范） */
.stage-unknown-box {
  background: #ffffff;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.stage-unknown-text {
  font-size: 11.5px;
  color: var(--ink-tertiary);
  font-style: italic;
}

/* 微信订阅提醒弹窗 */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
}

.modal-dialog {
  width: 100%;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 18px env(safe-area-inset-bottom, 20px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-primary);
}

.modal-close {
  padding: 4px;
}

.reminder-target-card {
  background: var(--brand-blue-subtle);
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.reminder-comp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.reminder-node-time {
  font-size: 12px;
  color: var(--ink-secondary);
}

.reminder-select-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.reminder-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.reminder-option-pill {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.reminder-option-pill.active {
  background: #eff6ff;
  border-color: var(--brand-blue-border);
}

.option-days {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  display: block;
  margin-bottom: 2px;
}

.reminder-option-pill.active .option-days {
  color: var(--brand-blue);
}

.option-desc {
  font-size: 11px;
  color: var(--ink-muted);
}

.reminder-notice {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--ink-tertiary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal-foot {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
}


/* --- miniprogram/pages/detail/detail.wxss --- */
/* pages/detail/detail.wxss - 赛事详情样式 */
.detail-header-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.detail-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-index {
  font-size: 13px;
  font-weight: 700;
  font-family: Consolas, Monaco, monospace;
  color: var(--brand-blue-light);
  background: #eff6ff;
  border-radius: 4px;
  padding: 2px 6px;
}

.detail-level {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.detail-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.detail-org-section {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.org-line {
  font-size: 12.5px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.org-label {
  color: var(--ink-tertiary);
  font-weight: 500;
}

.org-value {
  color: var(--ink-primary);
  font-weight: 600;
}

.org-clarification {
  display: flex;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--brand-blue);
  background: var(--brand-blue-subtle);
  border: 1px solid var(--brand-blue-border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  line-height: 1.4;
}

.detail-main-actions {
  display: flex;
  gap: 10px;
}

.detail-follow-btn {
  flex: 1;
}

.detail-calc-btn {
  flex: 1;
}

/* 通用详情板块卡片 */
.detail-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.card-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

/* 官方门户 */
.portal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
}

.portal-info {
  flex: 1;
  padding-right: 10px;
}

.portal-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.portal-url {
  font-size: 11px;
  color: var(--ink-muted);
  word-break: break-all;
}

.source-footnote {
  font-size: 11px;
  color: var(--ink-muted);
}

/* 各阶段卡片堆叠 */
.stages-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-card-item {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.stage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.stage-pill-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

.stage-kind-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.stage-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-date-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.stage-unknown-note {
  font-size: 12px;
  color: var(--ink-tertiary);
  font-style: italic;
}

/* 奖项层级表格 */
.award-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.award-tier-col {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.award-tier-header {
  font-size: 11.5px;
  color: var(--ink-tertiary);
  margin-bottom: 6px;
}

.award-tier-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
}

/* 认定备注 */
.remark-card {
  background: var(--status-amber-bg);
  border-color: var(--status-amber-border);
}

.remark-title {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--status-amber);
  margin-bottom: 8px;
}

.remark-content {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.6;
}

/* 时间线 */
.milestone-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.milestone-row {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.milestone-time {
  width: 74px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-blue);
}

.milestone-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin-top: 5px;
  margin-right: 12px;
}

.milestone-desc-box {
  flex: 1;
}

.milestone-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.milestone-desc {
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.4;
}

.milestone-footnote {
  font-size: 11px;
  color: var(--ink-muted);
}

/* 抽屉内核算器 */
.drawer-comp-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.drawer-version-tag {
  font-size: 11.5px;
  color: var(--brand-blue-light);
  margin-bottom: 14px;
}

.calc-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.confirm-checkbox-line {
  display: flex;
  align-items: flex-start;
}

.confirm-text {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-left: 6px;
}

.calc-result-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.result-number-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.result-credit-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-blue);
  font-family: Consolas, Monaco, monospace;
}

.result-credit-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.result-reason-text {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.unavailable-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.unavailable-reason {
  font-size: 12px;
  color: var(--status-amber);
  line-height: 1.5;
}

.credit-disclaimer-box {
  display: flex;
  align-items: flex-start;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.4;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}


/* --- miniprogram/pages/rules/rules.wxss --- */
/* pages/rules/rules.wxss - 规则核查样式 */
.rules-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.rules-head {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.rules-head-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-blue);
}

.rules-version-tag {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.rules-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.point-num {
  font-weight: 700;
  color: var(--brand-blue);
  margin-right: 6px;
}

.point-text {
  flex: 1;
}

/* 白名单核验引导入口 */
.rules-verifier-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--duration-fast) var(--ease-spring);
}

.rules-verifier-callout:active {
  transform: scale(0.985);
  background: #dcfce7;
}

.callout-left {
  display: flex;
  align-items: center;
}

.callout-title {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

.callout-right {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
  gap: 3px;
}

/* 下拉建议 */
.suggest-dropdown {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.suggest-item:last-child {
  border-bottom: none;
}

.suggest-name {
  font-size: 13.5px;
  color: var(--ink-primary);
  font-weight: 600;
}

/* 核算面板 */
.calc-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.selected-comp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.selected-comp-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
}

.calc-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.confirm-checkbox-line {
  display: flex;
  align-items: flex-start;
}

.confirm-text {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-left: 6px;
}

.calc-result-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.result-number-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.result-credit-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-blue);
  font-family: Consolas, Monaco, monospace;
}

.result-credit-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.result-reason-text {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.unavailable-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.unavailable-reason {
  font-size: 12px;
  color: var(--status-amber);
  line-height: 1.5;
}

.credit-disclaimer-box {
  display: flex;
  align-items: flex-start;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.4;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}



/* --- Web Mini Program Window Frame --- */
:root, body.mini-body, #mini-app {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-subtle: #eff6ff;
  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-tertiary: #64748b;
  --ink-muted: #94a3b8;
  --text-main: #0f172a;
  --text-sub: #475569;
  --border-color: #e2e8f0;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand-blue: #1e3a8a;
  --brand-blue-hover: #1e40af;
  --brand-blue-light: #2563eb;
  --brand-blue-subtle: #eff6ff;
  --brand-blue-border: #bfdbfe;
  --status-red: #ef4444;
  --status-red-bg: #fef2f2;
  --status-red-border: #fecaca;
  --status-amber: #d97706;
  --status-amber-bg: #fffbeb;
  --status-amber-border: #fde68a;
  --status-emerald: #059669;
  --status-emerald-bg: #ecfdf5;
  --status-emerald-border: #a7f3d0;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --duration-fast: 0.2s;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.mini-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

#mini-app {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: #f8fafc;
  position: relative;
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 621px) {
  #mini-app {
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    border-radius: 24px;
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  body.mini-body {
    background: #f8fafc;
  }
  #mini-app {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* 微信小程序官方胶囊顶栏 */
.mp-navbar {
  height: 50px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}

.mp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.mp-brand-icon {
  width: 24px;
  height: 24px;
  background: #1e3a8a;
  border-radius: 7px;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.mp-brand-icon svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
}

.wechat-capsule {
  width: 87px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-sizing: border-box;
}

.capsule-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f172a;
  height: 100%;
  flex: 1;
  transition: opacity 0.15s ease;
}

.capsule-btn:active {
  opacity: 0.6;
}

.capsule-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.capsule-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #0f172a;
}

.capsule-sep {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.12);
}

.capsule-ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.8px solid #0f172a;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capsule-inner {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0f172a;
}

/* 微信自定义 TabBar 在 440px 容器内的定位 */
@media (min-width: 621px) {
  body.mini-body .tab-bar-container,
  #mini-app .tab-bar-container,
  .tab-bar-container {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 440px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 620px) {
  body.mini-body .tab-bar-container,
  #mini-app .tab-bar-container,
  .tab-bar-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px env(safe-area-inset-bottom, 12px) !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
  }
}

.tab-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.1), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
  height: 58px;
  margin-bottom: 8px;
  overflow: hidden;
}

.tab-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(25% - 3px);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.tab-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.tab-item:active {
  transform: scale(0.92);
}

.tab-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-icon-active {
  transform: translateY(-1px) scale(1.08);
}

.tab-text {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.tab-item.active .tab-text {
  color: #1e3a8a;
  font-weight: 700;
}

/* 详情抽屉遮罩与面板 */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.drawer-panel {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUpFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drawer-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-tertiary);
  padding: 4px;
}

/* 横向横滑筛选条无滚动条 */
.filter-scroll, .hot-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-scroll::-webkit-scrollbar, .hot-scroll::-webkit-scrollbar {
  display: none;
}

.interactive-tap, .card-tap, .btn, .pill, .tab-item {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.interactive-tap:active, .card-tap:active, .btn:active {
  transform: scale(0.97);
}

.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.ui-icon-sm {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Toast */
#mini-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
  max-width: calc(100% - 32px);
}
.mini-toast-body {
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUpFade 0.2s ease-out;
}
