/* ==========================================================================
   各页面样式 —— 按 pic/ 设计图还原
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. index.html —— 表单页
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 26px 20px 0;
  background: linear-gradient(180deg, #FDEFF2 0%, #FBE4E6 46%, #F8DAD8 100%);
  overflow: hidden;
  text-align: center;
}
.hero-branch {
  position: absolute;
  top: -30px;
  right: -50px;
  width: 186px;
  opacity: 0.6;
  pointer-events: none;
}
.hero-branch.left {
  right: auto;
  left: -56px;
  top: -14px;
  transform: scaleX(-1);
  width: 158px;
  opacity: 0.48;
}
.hero-title {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 8px;
  text-indent: 8px;
  color: #A8231C;
  text-shadow: 0 2px 0 #F7DCC0, 0 6px 16px rgba(168, 35, 28, 0.24);
}
.hero-sub {
  position: relative;
  margin: 10px 0 0;
  font-size: 14px;
  color: #9A5B52;
  letter-spacing: 1px;
}
.hero-figure {
  position: relative;
  margin: 6px -20px 0;
}
.hero-figure img { width: 100%; }

/* 表单卡：压在插画之上 */
.form-card {
  position: relative;
  z-index: 5;
  margin: -82px 18px 0;
  padding: 14px 16px 4px;
  border-radius: 18px;
  background: linear-gradient(180deg, #DE6152 0%, #CD4A3C 100%);
  border: 1px solid #EBB98C;
  box-shadow: 0 8px 26px rgba(160, 55, 45, 0.3);
}
.form-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 232, 200, 0.32);
  border-radius: 14px;
  pointer-events: none;
}
.form-card .field {
  position: relative;
  z-index: 1;
  gap: 6px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 240, 214, 0.22);
}
.form-card .field:last-child { border-bottom: none; }
.form-card .field-label {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  color: #FFF1D8;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.form-card .text-input {
  height: 32px;
  padding: 0 0 0 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #FFFBF2;
  font-size: 15px;
}
.form-card .text-input::placeholder { color: rgba(255, 240, 214, 0.52); }
.form-card .text-input:focus { border: none; background: transparent; }

.form-card .pill-group { justify-content: flex-start; gap: 10px; }
.form-card .pill {
  flex: 0 0 auto;
  min-width: 98px;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  border: 1px solid rgba(255, 238, 208, 0.55);
  background: transparent;
  color: #FFEFD2;
  font-size: 14px;
}
.form-card .pill.active {
  background: linear-gradient(180deg, #F7E2B4 0%, #DFBE82 100%);
  border-color: #F7E7C4;
  color: #8A3A1E;
  font-weight: 700;
}
.form-card .radio-row { gap: 16px; }
.form-card .radio-circle {
  border-color: rgba(255, 238, 208, 0.55);
  color: #FFEFD2;
}
.form-card .radio-circle.active {
  background: linear-gradient(180deg, #F7E2B4 0%, #DFBE82 100%);
  border-color: #F7E7C4;
  color: #8A3A1E;
  font-weight: 700;
}

.hero-note {
  margin: 14px 24px 0;
  text-align: center;
  font-size: 12px;
  color: #B08A82;
  line-height: 1.7;
}
.calc-wrap { padding: 12px 24px 0; }

/* --------------------------------------------------------------------------
   2. report.html —— 分析报告页
   -------------------------------------------------------------------------- */
.report-banner {
  position: relative;
  padding: 22px 16px 28px;
  background: linear-gradient(180deg, #FCE6E8 0%, #F9D9D6 100%);
  text-align: center;
  overflow: hidden;
}
.report-banner h2 {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: #A8231C;
  letter-spacing: 4px;
  text-indent: 4px;
  text-shadow: 0 1px 0 #FFF0DC;
}
.report-banner .ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #B8342A, #CE4A3C 50%, #B8342A);
  color: #FFE9C9;
  font-size: 12.5px;
  letter-spacing: 1px;
}
.report-banner .ribbon::before,
.report-banner .ribbon::after {
  content: "\2764";
  font-size: 8px;
  color: #F3C77E;
}
.report-banner .scene {
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 142px;
  opacity: 0.5;
  pointer-events: none;
}

.teacher-card { display: flex; gap: 12px; align-items: flex-start; }
.teacher-avatar {
  flex: 0 0 auto;
  width: 78px;
  height: 96px;
  border-radius: 6px;
  background: #f3ebe3;
  border: 1px solid var(--gold-200);
  overflow: hidden;
}
.teacher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.teacher-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #2B2B2B;
}
.teacher-name .tag {
  background: #FBE9E6;
  color: #A8503F;
  border-color: #EFCFC7;
  height: 21px;
  font-size: 11.5px;
}
.teacher-desc { margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

.dear-card { text-align: center; }
.dear-card .dear-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #C0392B;
  margin: 0 0 10px;
}
.dear-card .dear-title .heart { color: #D9534A; font-size: 16px; }
.dear-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.85; }
.dear-card b { color: #C0392B; font-weight: 700; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 12px 14px;
  background: var(--card);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.info-cell { padding: 13px 6px; text-align: center; }
.info-cell + .info-cell { border-left: 1px solid var(--line); }
.info-cell .ic-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.info-cell .ic-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #C0392B;
}
.info-cell .ic-icon svg { width: 100%; height: 100%; fill: currentColor; }
.info-cell .ic-label { font-size: 13.5px; color: #2B2B2B; font-weight: 600; }
.info-cell .ic-value {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.price-card {
  background: linear-gradient(180deg, #FFF8EC 0%, #FDF0DC 100%);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 14px;
  box-shadow: var(--shadow-card);
}
.price-card .pc-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: #C0392B;
  font-weight: 600;
}
.price-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #C0392B;
  font-weight: 700;
}
.price-main .cur { font-size: 17px; }
.price-main .num { font-size: 34px; line-height: 1.1; letter-spacing: -1px; }
.price-origin {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 9px;
  border: 1px solid #E0D3BC;
  border-radius: 4px;
  font-size: 11.5px;
  color: #B5A392;
  text-decoration: line-through;
}
.countdown-label { font-size: 12.5px; color: #2B2B2B; margin-bottom: 7px; }
.countdown { display: flex; align-items: center; gap: 4px; }
.countdown .cd-num {
  min-width: 32px;
  padding: 4px 6px;
  border-radius: 5px;
  background: #B8342A;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-colon { color: #B8342A; font-weight: 700; }

.pay-methods {
  display: flex;
  margin: 12px 14px;
  background: var(--card);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pay-method {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 54px;
  padding: 0 12px;
  font-size: 14.5px;
  color: #2B2B2B;
  white-space: nowrap;
}
.pay-method + .pay-method { border-left: 1px solid var(--line); }
.pay-method .pm-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}
.pm-wx { background: #2BA471; }
.pay-method .check {
  margin-left: auto;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid #D8CBB4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
}
.pay-method.active .check {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. unlock.html —— 解锁内容页（整页深红底）
   -------------------------------------------------------------------------- */
.unlock-red {
  background: linear-gradient(180deg, #A32A21 0%, #95241C 40%, #7E1C16 100%);
  padding-bottom: 22px;
}
.unlock-hero {
  position: relative;
  padding: 14px 16px;
  text-align: center;
}
.unlock-hero h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 14px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: #FFEBC4;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.unlock-hero h2::before,
.unlock-hero h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E8C98A);
}
.unlock-hero h2::before { left: -40px; }
.unlock-hero h2::after { right: -40px; background: linear-gradient(90deg, #E8C98A, transparent); }
.unlock-hero .crane {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 28px;
  opacity: 0.9;
}
.unlock-hero .blossom {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 76px;
  opacity: 0.8;
}

.unlock-list { padding: 2px 12px 0; }
.unlock-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--gold-400);
  background: linear-gradient(180deg, #FFFBF1 0%, #FBF2E0 100%);
  box-shadow: 0 3px 12px rgba(60, 14, 10, 0.28);
}
.unlock-item::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 160, 99, 0.32);
  border-radius: 7px;
  pointer-events: none;
}
.unlock-item .ui-pic {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 112px;
  height: 128px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(160deg, #FBE0E4, #F3C7CE);
  border: 1px solid #D9B36A;
  box-shadow: 0 2px 8px rgba(140, 60, 50, 0.2);
}
.unlock-item .ui-pic img { width: 100%; height: 100%; object-fit: cover; }
.unlock-item .ui-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 128px;
}
.unlock-item .ui-q {
  margin: 0 0 3px;
  font-size: 13.5px;
  color: #5A2A20;
  line-height: 1.7;
  font-weight: 500;
}
.unlock-item .ui-q .dot { color: #C0392B; margin-right: 2px; }
.unlock-item .ui-btn {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  min-width: 148px;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #E0665A 0%, #B8342A 100%);
  color: #FFF3DC;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid #E9BE84;
  box-shadow: 0 3px 10px rgba(140, 40, 32, 0.32);
}
.unlock-item .ui-btn:active { filter: brightness(0.94); }
.unlock-item .ui-btn .lock { width: 13px; height: 13px; fill: currentColor; }
/* 偶数卡：图右文左 */
.unlock-item.rev { flex-direction: row-reverse; }

.gift-block {
  position: relative;
  margin: 4px 12px 0;
  padding: 0 0 14px;
  text-align: center;
}
.gift-block .gift-title {
  display: block;
  position: relative;
  margin: 0 0 12px;
  padding: 7px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #FFEBC4;
  letter-spacing: 2px;
}
.gift-block .gift-title::before,
.gift-block .gift-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 62px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E8C98A);
}
.gift-block .gift-title::before { left: 8px; }
.gift-block .gift-title::after { right: 8px; background: linear-gradient(90deg, #E8C98A, transparent); }
.gift-block .compass-wrap {
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid var(--gold-400);
  background: linear-gradient(180deg, #FFFBF1 0%, #FBF2E0 100%);
  box-shadow: 0 3px 12px rgba(60, 14, 10, 0.28);
}
.gift-block .compass { width: 210px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   4. orders.html —— 我的订单
   -------------------------------------------------------------------------- */
.orders-hero {
  position: relative;
  padding: 22px 16px 46px;
  background: linear-gradient(180deg, #FDE9EB 0%, #F9D6D3 100%);
  text-align: center;
  overflow: hidden;
}
.page-orders { background: linear-gradient(180deg, #FBE7E8 0%, #FDF3EC 300px, #FDF6EA 100%); }
.orders-hero h2 {
  position: relative;
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: #A8231C;
  letter-spacing: 8px;
  text-indent: 8px;
  text-shadow: 0 2px 0 #FFF1DC, 0 5px 14px rgba(168, 35, 28, 0.2);
}
.orders-hero .branch-l { position: absolute; left: -34px; top: -16px; width: 158px; opacity: 0.72; }
.orders-hero .branch-r { position: absolute; right: -40px; top: -12px; width: 178px; opacity: 0.78; transform: scaleX(-1); }

.search-bar { display: flex; gap: 10px; margin: -24px 14px 0; position: relative; z-index: 5; }
.search-bar .sb-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #F3D9D6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(160, 70, 60, 0.1);
}
.search-bar .sb-field .sb-k {
  flex: 0 0 auto;
  font-size: 14px;
  color: #2B2B2B;
  font-weight: 600;
  margin-right: 8px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.search-bar input::placeholder { color: #C4B4A4; }
.search-bar button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #E0665A 0%, #C0392B 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #E9BE84;
  box-shadow: 0 2px 8px rgba(160, 50, 40, 0.25);
}

.tabs {
  display: flex;
  gap: 30px;
  padding: 14px 22px 0;
  margin-top: 12px;
  border-bottom: 1px solid #EFDCD4;
  background: rgba(255, 255, 255, 0.5);
}
.tabs .tab {
  position: relative;
  padding-bottom: 10px;
  font-size: 15px;
  color: #7A6A5E;
}
.tabs .tab.active { color: #C0392B; font-weight: 700; }
.tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1px;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: #C0392B;
}

.order-card {
  background: var(--card);
  border: 1px solid #F3E0DA;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(160, 80, 70, 0.08);
  padding: 14px;
  margin: 12px 14px;
}
.order-card .oc-no {
  display: flex;
  gap: 6px;
  font-size: 13.5px;
  color: #2B2B2B;
}
.order-card .oc-no .k { flex: 0 0 auto; color: #5A4A3E; }
.order-card .oc-no .v { flex: 1; word-break: break-all; }
.order-card .oc-sep {
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, #E8A08F, #F5DED6);
}
.order-card .oc-row {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: #2B2B2B;
  padding: 3px 0;
}
.order-card .oc-row .k { flex: 0 0 78px; color: #5A4A3E; }
.order-card .oc-row .v { flex: 1; min-width: 0; word-break: break-all; }
.order-card .oc-row .v.paid { color: var(--green-dark); font-weight: 600; }
.order-card .oc-row .v.unpaid { color: #C0392B; font-weight: 600; }
.order-card .oc-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.order-card .oc-pay { display: flex; gap: 10px; flex: 1; }
.order-card .oc-pay button {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-wx { background: #2BA471; }
.result-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #5BC08C;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(43, 164, 113, 0.3);
}
.order-card .oc-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.badge-item { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #7A6A5E; line-height: 1.3; }
.badge-item .bi-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.bi-green { background: #2BA471; }
.bi-teal { background: #1F9E8A; }
.bi-yellow { background: #E8B21E; color: #4A3A0A; }

.empty-state { padding: 56px 20px; text-align: center; color: var(--text-3); font-size: 14px; }

/* --------------------------------------------------------------------------
   5. result.html —— 订单报告（最后一步）
   -------------------------------------------------------------------------- */
.page-result { background: #F5F2ED; }
.result-title {
  text-align: center;
  padding: 18px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #2B2B2B;
  letter-spacing: 2px;
}

.basic-card {
  position: relative;
  margin: 0 16px 16px;
  padding: 24px 18px 16px;
  border-radius: 10px;
  border: 2px solid #6B6B6B;
  background: #FDFBF7;
}
.basic-card .bc-title {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 28px;
  border-radius: 8px;
  border: 2px solid #6B6B6B;
  background: #FDFBF7;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #A8231C;
  letter-spacing: 3px;
  text-indent: 3px;
  white-space: nowrap;
}
.basic-card .bc-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0;
  font-size: 15px;
  color: #2B2B2B;
  line-height: 1.5;
}
.basic-card .bc-row .k { flex: 0 0 64px; font-weight: 600; }
.basic-card .bc-row .v { flex: 1; min-width: 0; word-break: break-all; }
.basic-card .bc-row .v.accent { color: #A8231C; font-weight: 600; }
.basic-card .bc-row .copy-btn { align-self: center; }

.privacy-note {
  margin: 0 24px 16px;
  text-align: center;
  font-size: 12.5px;
  color: #8A8078;
  line-height: 1.85;
}

.claim-card {
  margin: 0 16px 16px;
  padding: 20px 16px 18px;
  border-radius: 10px;
  background: #FFFDF8;
  border: 1px solid #EFE7DA;
  text-align: center;
  box-shadow: 0 2px 10px rgba(120, 100, 80, 0.08);
}
.claim-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  color: #C0392B;
  letter-spacing: 1px;
}
.claim-card .sub { font-size: 13.5px; color: #7A6A5E; margin-bottom: 16px; }
.claim-fingers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.claim-fingers .finger {
  width: 58px;
  flex: 0 0 auto;
  animation: point 1.1s ease-in-out infinite;
}
.claim-fingers .finger.right { animation-delay: 0.18s; }
@keyframes point {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}
.claim-fingers .finger.right { transform: scaleX(-1); }
.claim-card .work-time {
  margin-top: 18px;
  font-size: 12.5px;
  color: #C0392B;
  font-weight: 600;
}

/* 企微弹窗 */
.wx-modal .modal-head { padding-top: 24px; }
.wx-steps { margin: 0; padding: 0; list-style: none; }
.wx-steps li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}
.wx-steps .idx {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: #FDEBEA;
  color: var(--red-600);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-channel {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FBF6EC;
  border: 1px dashed var(--gold-200);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
  word-break: break-all;
}
.wx-channel b { color: var(--red-600); font-family: ui-monospace, Menlo, Consolas, monospace; }
.wx-qr {
  width: 148px;
  height: 148px;
  margin: 12px auto 4px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.wx-qr img { width: 100%; height: 100%; }

/* 企微弹窗：自动检测状态条 */
.wx-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FBF6EC;
  border: 1px solid var(--gold-200);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.wx-wait .spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(192, 57, 43, 0.25);
  border-top-color: var(--red-600);
}
.wx-wait.is-done {
  background: #EDF7EF;
  border-color: #B7DDBF;
  color: #2E7D46;
  font-weight: 600;
}
.wx-wait.is-warn {
  background: #FDF3E7;
  border-color: #EBCFA4;
  color: #A9642A;
}
.wx-add-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  text-decoration: none;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   6. 支付弹窗（设计图 84：红底 + 金色按钮）
   -------------------------------------------------------------------------- */
.pay-modal {
  background: linear-gradient(180deg, #CE4A3C 0%, #B8342A 45%, #9A2119 100%);
  border: 2px solid #E8C98A;
  box-shadow: 0 14px 44px rgba(50, 10, 6, 0.5);
}
.pay-modal .modal-head { padding: 26px 20px 0; }
.pay-modal .modal-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: #FFF6E6;
  line-height: 1.24;
  letter-spacing: 5px;
  text-indent: 5px;
  text-shadow: 0 2px 6px rgba(80, 16, 10, 0.45);
}
.pay-modal .modal-sub {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #FFE7D2;
  line-height: 1.8;
}
.pay-modal .modal-sub b { color: #FFD98A; font-weight: 700; }
.pay-modal .modal-body { padding: 18px 20px 6px; }
.pay-modal .modal-foot { padding: 6px 20px 24px; }
/* 关闭钮移到卡片下方居中（按钮在 .modal-wrap 里，与 .modal 同级） */
.modal-close.pay-close {
  top: auto;
  bottom: -48px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
}
.benefit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF6E4 0%, #FCEBD2 100%);
  border: 1px solid #F0D9A8;
  text-align: left;
}
.benefit-row .gift-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(160deg, #E0665A, #B8342A);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-row .gift-icon svg { width: 26px; height: 26px; fill: #F6DCA6; }
.benefit-row .bt {
  font-size: 16px;
  font-weight: 700;
  color: #C0392B;
  line-height: 1.3;
}
.benefit-row .bs {
  margin-top: 3px;
  font-size: 12.5px;
  color: #8A7563;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.benefit-row .bs .now { font-size: 20px; font-weight: 700; color: #C0392B; }
.benefit-row .bs .was { text-decoration: line-through; color: #B5A392; }
.pay-countdown {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: #FFE7D2;
}
.pay-countdown b { color: #FFD98A; font-size: 15px; }

/* 关闭按钮：底部居中深色圆钮（由 pay-modal.js 打上 .pay-close） */

/* --------------------------------------------------------------------------
   7. 测试对象选择弹窗（设计图 79）
   -------------------------------------------------------------------------- */
.target-modal { background: linear-gradient(180deg, #FFFBF2 0%, #FBF1DF 100%); }
.target-modal .modal-title { font-size: 23px; }
.target-modal .modal-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #E8C98A, #C9A063, #E8C98A);
  opacity: 0.85;
}
.target-list { display: flex; flex-direction: column; gap: 12px; }
.target-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid #EFE3CE;
  background: #fff;
  transition: all 0.15s ease;
}
.target-item.active {
  border-color: #D9A63C;
  background: #FFFCF4;
  box-shadow: 0 2px 10px rgba(200, 150, 60, 0.16);
}
.target-item .ti-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
  background: linear-gradient(160deg, #E0665A, #C0392B);
}
.target-item .ti-icon.b { background: linear-gradient(160deg, #C9453A, #A8231C); }
.target-item .ti-icon svg { width: 22px; height: 22px; fill: #fff; }
.target-item .ti-title { font-size: 16.5px; font-weight: 700; color: #2B2B2B; }
.target-item .ti-sub { font-size: 12.5px; color: #8A7563; margin-top: 3px; }
.target-item .ti-arrow { margin-left: auto; color: #C9A063; font-size: 20px; }
.target-item .ti-badge {
  position: absolute;
  top: -1px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #E0665A, #C0392B);
  color: #fff;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   7. 出生日期选择器（公历 / 农历 + 滚轮 + 时辰）
   -------------------------------------------------------------------------- */

/* 表单里的「输入框 + 日历图标」 */
.input-affix {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.input-affix .text-input { padding-right: 40px; }
.input-affix .affix-icon {
  position: absolute;
  right: 12px;
  display: flex;
  color: var(--red-600);
  opacity: 0.75;
  pointer-events: none;
}
.input-affix .text-input:not(.filled) { color: var(--text-3); }
.input-affix .text-input:focus { outline: none; }

/* 底部弹层 */
.bp-modal {
  display: flex;
  flex-direction: column;
  max-height: 94vh;            /* 头/按钮固定，只有内容区滚动 */
  max-width: 460px;
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  animation: bpUp 0.26s cubic-bezier(0.2, 1, 0.4, 1);
}
@keyframes bpUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.bp-modal .modal-head { flex: 0 0 auto; padding: 20px 20px 0; }
.bp-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 4px;
  overscroll-behavior: contain;
}
.bp-modal .modal-foot { flex: 0 0 auto; padding: 8px 18px 18px; gap: 10px; }

/* 公历 / 农历 */
.bp-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 0 auto 12px;
  width: fit-content;
  border-radius: var(--radius-pill);
  background: var(--gold-050);
  border: 1px solid var(--line);
}
.bp-tabs button {
  min-width: 76px;
  padding: 7px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.16s;
}
.bp-tabs button.active {
  background: linear-gradient(180deg, #E0665A, #C0392B);
  color: #fff;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.28);
}

/* 结果预览 */
.bp-preview {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px dashed var(--gold-200);
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

/* 三列滚轮 */
.bp-wheels {
  --wp-h: 176px;      /* 滚轮可视高度 */
  --wp-item: 40px;    /* 单项高度，与 birth-picker.js 的 ITEM_H 必须一致 */
  position: relative;
  display: flex;
  height: var(--wp-h);
  margin: 0 0 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.bp-wheels::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc((var(--wp-h) - var(--wp-item)) / 2);
  height: var(--wp-item);
  border-radius: var(--radius-sm);
  background: var(--gold-050);
  border-top: 1px solid var(--gold-200);
  border-bottom: 1px solid var(--gold-200);
  pointer-events: none;
}
.bp-wheels::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg,
    #fff 0%, rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0) 72%, #fff 100%);
}
.wp-col { position: relative; z-index: 1; flex: 1; min-width: 0; }
.wp {
  height: var(--wp-h);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  padding: calc((var(--wp-h) - var(--wp-item)) / 2) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wp::-webkit-scrollbar { display: none; }
.wp-item {
  height: var(--wp-item);
  line-height: var(--wp-item);
  scroll-snap-align: center;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 闰月 */
.bp-leap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
/* 类选择器的优先级高于 UA 的 [hidden]，必须显式兜住 */
.bp-leap[hidden] { display: none; }
.bp-leap .box {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--gold-300);
  background: #fff;
  color: transparent;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.bp-leap.checked .box {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

/* 时辰 */
.bp-shi-label {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.bp-shi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overscroll-behavior: contain;
}
.shi-chip {
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.14s;
}
.shi-chip .shi-range {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: -0.3px;
}
.shi-chip.active {
  border-color: var(--red-600);
  background: #FDEEEC;
  color: var(--red-700);
}
.shi-chip.active .shi-range { color: var(--red-400); }

/* 矮屏（iPhone SE 等）：压缩滚轮高度，尽量一屏放下 */
@media (max-height: 700px) {
  .bp-wheels { --wp-h: 144px; }
  .shi-chip { padding: 4px 4px; }
  .bp-modal .modal-head { padding: 14px 18px 0; }
  .bp-preview { margin-bottom: 8px; padding: 7px 10px; font-size: 14px; }
}
