/* 认购记录 · LZW 红金主题 */

.ol-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  background: var(--app-bg);
}

/* ── 顶部红金 Hero ── */
.ol-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(212, 160, 23, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(200, 16, 46, 0.35), transparent 50%),
    linear-gradient(155deg, #7a1020 0%, #8b1a2a 52%, #8b1528 100%);
}
.ol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}

.ol-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
}
.ol-nav .back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.ol-nav .back:active { opacity: 0.85; }
.ol-nav .meta { flex: 1; min-width: 0; }
.ol-nav .meta .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232, 176, 106, 0.9);
  font-weight: 600;
}
.ol-nav .meta .t {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  line-height: 1.2;
  color: #fff;
}

.ol-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  margin: 4px 16px 0;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ol-summary-cell {
  flex: 1;
  min-width: 0;
}
.ol-summary-cell.align-right { text-align: right; }
.ol-summary-sep {
  width: 1px;
  margin: 4px 14px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.ol-summary .lab {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}
.ol-summary .amt {
  margin-top: 6px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  line-height: 1;
}
.ol-summary .amt.main {
  font-size: 32px;
  color: #f5d76e;
}
.ol-summary .amt.sub {
  font-size: 22px;
  color: #fff;
}
.ol-summary .amt small {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
}
.ol-summary .hint {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(245, 215, 110, 0.85);
}

.ol-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 16px 0;
}
.ol-stat {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.ol-stat .v {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  color: #fff;
  line-height: 1.1;
}
.ol-stat .v small {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 1px;
}
.ol-stat .k {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ── 主体内容区 ── */
.ol-body {
  position: relative;
  z-index: 2;
  margin-top: -14px;
  padding: 0 0 16px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #f8f2f3 0%, var(--app-bg) 120px);
  box-shadow: 0 -10px 30px rgba(122, 16, 32, 0.1);
}
.ol-body::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin: 10px auto 6px;
  border-radius: 2px;
  background: rgba(122, 16, 32, 0.12);
}

.ol-sec {
  margin: 12px 16px 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ol-sec .t {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
}
.ol-sec .s {
  font-size: 11px;
  color: var(--app-muted, #9a8a8e);
}
/* 旧版 JS 仍渲染时也不展示（已全局移除「检测返本/收益」） */
.ol-sec .payout-link {
  display: none !important;
}

/* ── 认购卡片列表 ── */
.ol-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ol-card {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--app-line, #eadfe1);
  border-left: 3px solid var(--app-primary, #c8102e);
  box-shadow: var(--app-shadow-sm, 0 1px 6px rgba(0, 0, 0, 0.05));
}
.ol-card.gift {
  border-left-color: #c47a00;
}

.ol-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ol-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(200, 16, 46, 0.08);
  color: var(--app-primary, #c8102e);
}
.ol-card.gift .ol-card-icon {
  background: rgba(196, 122, 0, 0.12);
  color: #c47a00;
}

.ol-card-main { flex: 1; min-width: 0; }
.ol-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ol-card-top .title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
  line-height: 1.35;
}
.ol-card-top .amt {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
  white-space: nowrap;
}
.ol-card-top .amt small {
  font-size: 11px;
  font-weight: 600;
  margin-left: 1px;
}

.ol-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ol-card-badges .badge {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  background: rgba(200, 16, 46, 0.08);
  color: var(--app-primary, #c8102e);
}
.ol-card-badges .badge.gift {
  background: rgba(196, 122, 0, 0.12);
  color: #c47a00;
}

.ol-card-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--app-line, #eadfe1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ol-card-foot .foot-item {
  font-size: 11px;
  color: var(--app-muted, #9a8a8e);
  line-height: 1.5;
  word-break: break-all;
}
.ol-card-foot .foot-item em {
  font-style: normal;
  font-weight: 600;
  color: var(--app-sub, #5c4a4e);
  margin-right: 4px;
}

/* ── 空状态 ── */
.ol-empty {
  margin: 0 16px;
  padding: 48px 20px;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--app-line, #eadfe1);
}
.ol-empty .ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(200, 16, 46, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ol-empty .ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--app-primary, #c8102e);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ol-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-ink, #7a1020);
}
.ol-empty span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--app-muted, #9a8a8e);
}

/* ── 底部操作栏 ── */
.ol-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--app-line, #eadfe1);
}
.ol-dock .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  cursor: pointer;
  border: 0;
  text-decoration: none;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.ol-dock .main {
  background: linear-gradient(135deg, var(--app-primary, #c8102e) 0%, var(--app-primary-2, #e33845) 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.28) !important;
}
.ol-dock .btn:active { opacity: 0.92; transform: scale(0.99); }
