:root {
  --cmb-red: #d92128;
  --cmb-red-hover: #b8171d;
  --cmb-red-light: #fff1f0;
  --gold-accent: #d4a373;
  --text-primary: #1f2329;
  --text-secondary: #646a73;
  --text-muted: #8f959e;
  --bg-page: #f5f6f7;
  --bg-card: #ffffff;
  --border-light: #dee0e3;
  --border-subtle: #ebedf0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html {
  max-width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #f7f8fa;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

/* 顶部锁定头部 (如图2所示：滚动下滑时锁定品牌标头、状态提示与5天日期导航) */
.app-header-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: var(--cmb-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand h1 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* 顶部右上角手动刷新按钮（taste-skill & frontend-design 规范级微交互） */
.header-refresh-btn {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.header-refresh-btn .cooldown-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 0%;
  background: #cbd5e1;
  border-radius: 13px;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s ease-out, opacity 0.2s ease;
  z-index: 1;
}

.header-refresh-btn:hover:not(.cooldown) {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.header-refresh-btn:active:not(.cooldown) {
  transform: scale(0.95);
  background: #cbd5e1;
}

.header-refresh-btn .refresh-icon,
.header-refresh-btn .refresh-label {
  position: relative;
  z-index: 2;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-refresh-btn .refresh-icon {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.header-refresh-btn.refreshing {
  pointer-events: none;
  opacity: 0.85;
}

.header-refresh-btn.refreshing .refresh-icon {
  animation: rotateRefresh 0.65s linear infinite;
}

/* 60秒冷却置灰与“充能恢复式”进度条（底色为颜色2，进度遮罩为颜色1原始底色） */
.header-refresh-btn.cooldown {
  background: #cbd5e1; /* 颜色 2：冷却消耗底色 */
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.header-refresh-btn.cooldown .refresh-icon {
  stroke: #64748b;
  opacity: 0.75;
}

.header-refresh-btn.cooldown .cooldown-progress-bar {
  opacity: 1;
  background: #f1f5f9; /* 进度条遮罩图层 = 颜色 1（未点击时的原始按钮底色） */
  border-right: none;  /* 边缘无额外颜色或阴影，纯净自然 */
  box-shadow: none;
}

@keyframes rotateRefresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-btn {
  background: #f2f3f5;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #4e5969;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.icon-btn:active, .icon-btn.loading {
  background: #e5e6eb;
  transform: scale(0.96);
}

/* 状态栏 */
.status-banner {
  background: #fff8f8;
  border-top: 1px solid #ffecec;
  border-bottom: 1px solid #ffecec;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--cmb-red);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(217, 33, 40, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(217, 33, 40, 0); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.status-text {
  flex: 1;
  color: #4e5969;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-sub {
  color: #86909c;
}

/* 日期水平3日导航 */
.date-nav-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px;
}

.date-scroll {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
}

.date-nav-3days,
.date-nav-5days {
  display: flex;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.date-nav-5days::-webkit-scrollbar {
  display: none;
}

.date-nav-3days .date-tab,
.date-nav-5days .date-tab {
  flex: 1;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: #f7f8fa;
  cursor: pointer;
  border: 1px solid #ebeef5;
  transition: all 0.2s ease;
}

.date-tab .tab-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.date-tab .tab-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.date-tab.active {
  background: var(--cmb-red);
  border-color: var(--cmb-red);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 33, 40, 0.28);
}

.date-tab.active .tab-label,
.date-tab.active .tab-sub {
  color: #ffffff;
}

/* 持有期与机构渠道标签筛选栏 */
.filter-chips-wrapper {
  background: #ffffff;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-row-label {
  font-size: 11px;
  color: #8c8c8c;
  font-weight: 700;
  padding: 0 4px 0 2px;
  flex-shrink: 0;
  user-select: none;
}

.filter-chip {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1.5px solid transparent;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.filter-chip:hover:not(.active) {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-chip:active {
  transform: scale(0.96);
}

/* 激活选中态：图1清爽天蓝胶囊风格 (浅蓝冰透底、晴空蓝细边框、醒目天蓝字) */
.filter-chip.active,
.sub-chip.active,
.filter-chips-quota .quota-chip.active {
  background: #eff6ff !important;
  color: #0958d9 !important;
  border: 1.5px solid #69b1ff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(22, 119, 255, 0.12) !important;
}

/* 渠道筛选行间距微调 */
.filter-chips-sub {
  padding-top: 0;
}

/* 额度胶囊 Badge */
.quota-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.quota-pill-big {
  background: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffd591;
}
.quota-pill-micro {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
}
.quota-pill-closed {
  background: #f5f5f5;
  color: #8c8c8c;
  border: 1px solid #d9d9d9;
}

/* 主内容区 */

.main-content {
  flex: 1;
  padding: 12px 12px 24px;
}

.current-day-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 4px;
}

/* 顶部批量复制代码按钮 */
.batch-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: var(--cmb-red);
  border: 1px solid #ffd2d5;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(217, 33, 40, 0.08);
  transition: all 0.15s ease;
  user-select: none;
}

.batch-copy-btn:hover {
  background: #fff5f5;
  border-color: var(--cmb-red);
}

.batch-copy-btn:active {
  transform: scale(0.95);
  background: #fee;
}

.date-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.forecast-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.summary-tag {
  font-size: 11px;
  font-weight: 600;
  background: #fff2e8;
  color: #fa541c;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ffd8bf;
}

/* 产品卡片列表 */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f1f2;
  position: relative;
  transition: transform 0.15s ease;
}

.product-card:active {
  transform: translateY(1px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

/* 第一行：产品简称 + 代码，保持极致干净不折行 */
.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: nowrap;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.code-pill {
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* 第二行：优雅下沉的属性标签行 (大额/小额 + 期限 + 代销/自营 + 产品全称) */
.card-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.issuer-text {
  font-size: 11px;
  color: #64748b;
  margin-left: 2px;
}

/* 右侧操作栏 (实况标置于按钮上方，垂直右对齐) */
.card-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
}

.action-crowd-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-bottom: 6px;
  line-height: 1.35;
}
.action-crowd-pill.pill-available {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.action-crowd-pill.pill-soldout {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 紧贴在代码右侧的期限标签与自营/代销标签 */
.period-inline-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  background: #e8f4ff;
  color: #1677ff;
  border: 1px solid #bae0ff;
}

.period-inline-badge.p-7d { background: #e6f7ff; color: #096dd9; border-color: #91d5ff; }
.period-inline-badge.p-14d { background: #f6ffed; color: #389e0d; border-color: #b7eb8f; }
.period-inline-badge.p-30d { background: #fff7e6; color: #d46b08; border-color: #ffd591; }
.period-inline-badge.p-90d { background: #f9f0ff; color: #722ed1; border-color: #d3adf7; }
.period-inline-badge.p-180d { background: #e6fffb; color: #08979c; border-color: #87e8de; }

/* 机构类型徽标 (招银自营 / 他行代销) */
.agency-inline-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.agency-inline-badge.badge-ziying {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
}

.agency-inline-badge.badge-daixiao {
  background: #f0f5ff;
  color: #1d39c4;
  border: 1px solid #adc6ff;
}

.agency-inline-badge:active {
  transform: scale(0.94);
}

.issuer-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 右上角独立复制按钮 */
.copy-action-btn {
  background: var(--cmb-red);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217, 33, 40, 0.25);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.copy-action-btn:active {
  background: var(--cmb-red-hover);
  transform: scale(0.94);
  box-shadow: 0 1px 3px rgba(217, 33, 40, 0.2);
}

/* 放额时间与产品指标条 - 4个格子严格均分对齐 */
.release-info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #fafafc;
  border-radius: 6px;
  padding: 8px 2px;
  margin-bottom: 10px;
  border: 1px dashed #e8eaec;
  gap: 0;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 2px;
  min-width: 0;
}

.strip-item:not(:last-of-type) {
  border-right: 1px solid #e5e6eb;
}

.strip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-bottom: 2px;
}

.strip-value {
  font-size: 10.5px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
  text-align: center;
}

.strip-value.font-dark {
  color: #1a1a1a;
}

.strip-value.highlight-red {
  color: var(--cmb-red);
}

/* 小叹号 ⓘ 按钮样式 - 触摸友好，始终保持低调浅灰色，尺寸微调比文字略小 */
.info-bubble-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #8c8c8c;
  font-size: 10px;
  font-weight: normal;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.info-bubble-btn::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

.info-bubble-btn:hover {
  color: #666666;
}

.info-bubble-btn:active {
  color: #8c8c8c;
  transform: scale(0.9);
}

.strip-divider {
  display: none;
}

/* 详细说明弹窗样式 (移动端/桌面通用) */
.info-detail-dialog {
  background: #ffffff;
  border-radius: 14px;
  width: 90%;
  max-width: 360px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  margin: auto;
}

.info-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.info-dialog-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.modal-close-x {
  background: none;
  border: none;
  font-size: 16px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-close-x:hover {
  background: #f5f5f5;
  color: #262626;
}

.info-dialog-body {
  font-size: 13px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.info-dialog-body .info-product-name {
  font-weight: 700;
  font-size: 13px;
  color: #1d2129;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e8eaec;
}

.info-dialog-body .info-highlight-box {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: #237804;
  font-size: 13px;
  font-weight: 600;
}

.info-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}

.info-detail-table td {
  padding: 5px 8px;
  border: 1px solid #f0f0f0;
}

.info-detail-table td:first-child {
  background: #fafafa;
  color: #595959;
  width: 50%;
}

.info-detail-table td:last-child {
  color: #1a1a1a;
  font-weight: 600;
}

.info-formula-box {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px 0;
  font-size: 12px;
  color: #4e5969;
  border-left: 3px solid #1677ff;
}

.info-dialog-footer {
  display: flex;
  justify-content: flex-end;
}

.info-dialog-footer .primary-btn {
  width: 100%;
  padding: 9px;
  font-size: 14px;
}

/* 4列多周期收益率网格 */
.yield-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fdfdfd;
  border: 1px solid #f0f2f5;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  margin-bottom: 0;
}

/* 首发产品暂无收益数据提示条 */
.yield-new-release-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.new-release-badge {
  background: #fa8c16;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.new-release-text {
  font-size: 13px;
  font-weight: 600;
  color: #ad4e00;
  letter-spacing: 0.2px;
}

.yield-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

.yield-col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #f0f0f0;
}

.yield-period-title {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.yield-num {
  font-size: 14px;
  font-weight: 800;
  color: #cf1322;
  letter-spacing: -0.3px;
}

/* 空状态与加载中 */
.loading-state, .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #f0f2f5;
  border-top-color: var(--cmb-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

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

.app-footer {
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* 弹窗与抽屉 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

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

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px 26px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease-out;
}

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

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

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.calendar-list {
  overflow-y: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f8fa;
  border: 1px solid #ebedf0;
  cursor: pointer;
  transition: background 0.15s;
}

.calendar-item:active {
  background: #eef0f3;
}

.calendar-item.selected {
  background: #fff1f0;
  border-color: #ffccc7;
}

.cal-date {
  font-size: 13px;
  font-weight: 700;
}

.cal-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cal-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--cmb-red);
}

/* 引导唤起招行弹窗 */
.jump-guide-dialog {
  background: #ffffff;
  width: 86%;
  max-width: 340px;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: auto;
  animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.guide-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.guide-code-badge {
  font-size: 24px;
  font-weight: 900;
  color: var(--cmb-red);
  letter-spacing: 2px;
  background: #fff1f0;
  display: inline-block;
  padding: 3px 14px;
  border-radius: 8px;
  margin: 8px 0;
  border: 1px dashed var(--cmb-red);
}

.guide-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.primary-btn {
  background: var(--cmb-red);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn {
  background: #f2f3f5;
  color: #4e5969;
  border: none;
  padding: 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.wx-tip {
  font-size: 11px;
  color: #86909c;
  margin-top: 12px;
  line-height: 1.4;
  background: #fafafc;
  padding: 6px 8px;
  border-radius: 6px;
}

/* Toast 浮层 (带 5秒 撤销黄金通道) */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 8px 14px 8px 18px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-undo-btn {
  background: #f59e0b;
  color: #0f172a;
  border: none;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}

.toast-undo-btn:hover {
  background: #fbbf24;
}

.toast-undo-btn:active {
  transform: scale(0.92);
}

/* 财友众包实况反馈弹窗 (方案B：现代金融私享质感 + 纯净现代矢量微图标) */
#feedbackModal {
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.48);
  padding: 16px;
  box-sizing: border-box;
}

.feedback-dialog {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 350px;
  margin: auto;
  padding: 24px 20px 22px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: center;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.feedback-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.tag-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  animation: tagPulse 1.8s infinite ease-in-out;
}
@keyframes tagPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.feedback-dialog-title {
  font-size: 16.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.feedback-product-highlight {
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 5px;
  margin: 0 2px;
  display: inline-block;
}

.feedback-dialog-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.feedback-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-btn {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}
.feedback-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}
.feedback-btn:active {
  transform: scale(0.985);
  background: #f1f5f9;
}

.feedback-btn .feedback-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 13px;
  transition: transform 0.15s ease;
}
.feedback-btn:hover .feedback-icon-wrap {
  transform: scale(1.05);
}

.feedback-btn .btn-text-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.feedback-btn .btn-main-text {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.feedback-btn .btn-sub-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.4;
}

.feedback-action-arrow {
  margin-left: 8px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.16s ease;
}
.feedback-btn:hover .feedback-action-arrow {
  color: #64748b;
  transform: translateX(2px);
}

/* 按钮微质感专属状态 */
.feedback-btn .icon-bought {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.15);
}
.feedback-btn.btn-bought:hover {
  border-color: rgba(5, 150, 105, 0.35);
  background: #fafffb;
}
.feedback-btn.btn-bought:hover .btn-main-text {
  color: #047857;
}

.feedback-btn .icon-soldout {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.15);
}
.feedback-btn.btn-soldout:hover {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fffafa;
}
.feedback-btn.btn-soldout:hover .btn-main-text {
  color: #b91c1c;
}

.feedback-btn .icon-canceled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.15);
}
.feedback-btn.btn-canceled:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.feedback-btn.btn-canceled:hover .btn-main-text {
  color: #334155;
}

/* 全屏撒花 Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100000;
  display: none;
}

/* 财友实况标签 */
.crowd-status-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  vertical-align: middle;
  line-height: 1.4;
}
.crowd-status-pill.pill-available {
  background: #f6ffed;
  color: #237804;
  border: 1px solid #b7eb8f;
}
.crowd-status-pill.pill-soldout {
  background: #fff2e8;
  color: #d4380d;
  border: 1px solid #ffbb96;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.pulse-dot.dot-green {
  background: #52c41a;
  box-shadow: 0 0 6px rgba(82, 196, 26, 0.6);
  animation: pulseGreen 1.6s infinite ease-in-out;
}
.pulse-dot.dot-gray {
  background: #8c8c8c;
}
@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* 已售罄产品变灰卡片 */
.product-card.card-soldout {
  background: #fbfbfd;
  border-color: #e5e6eb;
  filter: grayscale(0.45);
  opacity: 0.88;
}
.product-card.card-soldout .product-title {
  color: #595959;
}
.product-card.card-soldout .yield-num {
  color: #8c8c8c !important;
}

/* 碰碰运气按钮 */
.copy-action-btn.btn-luck {
  background: #fa8c16;
  box-shadow: 0 2px 6px rgba(250, 140, 22, 0.28);
}
.copy-action-btn.btn-luck:active {
  background: #d46b08;
}

/* 非“今天”日期的产品预告标签（隐藏购买按钮与众包额度状态） */
.upcoming-status-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed #cbd5e1;
  white-space: nowrap;
}

/* 页面滚动下滑时的回到顶部悬浮按钮 */
.back-to-top-btn {
  position: fixed;
  right: calc(50% - 240px + 18px);
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .back-to-top-btn {
    right: 16px;
    bottom: 24px;
  }
}

.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: #ffffff;
  color: #1677ff;
  border-color: #69b1ff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.18);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.94);
}

.back-to-top-text {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   微信内置浏览器轻量横幅与全屏高质感引导遮罩
   ========================================================================== */
.wechat-top-banner {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #1e40af;
  position: relative;
  z-index: 101;
}

.wechat-banner-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.wechat-banner-text {
  flex: 1;
  line-height: 1.4;
  font-weight: 500;
}

.wechat-banner-close {
  background: transparent;
  border: none;
  color: #93c5fd;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
}

.wechat-banner-close:active {
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
}

/* 微信指引遮罩 */
.wechat-guide-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
}

.wechat-guide-mask.active {
  display: flex;
  opacity: 1;
}

/* 右上角指示区 */
.wechat-guide-top {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 100000;
}

.wechat-guide-arrow-box {
  margin-bottom: 4px;
  padding-right: 6px;
}

.wechat-arrow-svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  animation: wechatArrowFloat 1.8s ease-in-out infinite;
}

@keyframes wechatArrowFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -6px);
  }
}

.wechat-guide-instruction {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wechat-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #f8fafc;
  font-weight: 500;
}

.wechat-step-item .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wechat-dots-icon {
  font-weight: 900;
  letter-spacing: 2px;
  color: #93c5fd;
}

.step-highlight {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 屏幕中央卡片 */
.wechat-guide-card {
  margin: auto 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  animation: wechatCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.wechat-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.wechat-code-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.wechat-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 16px;
}

.wechat-guide-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 22px;
  padding: 0 4px;
}

.wechat-guide-desc strong {
  color: #60a5fa;
  font-weight: 600;
}

.wechat-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wechat-btn-know {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wechat-btn-know:active {
  transform: scale(0.96);
  background: #2563eb;
}

.wechat-btn-gateway {
  width: 100%;
  height: 38px;
  border-radius: 19px;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wechat-btn-gateway:active {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

