/* ── 三壬星盘 Styles ── */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  color: #e0e0e0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── Page ── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  min-height: 100vh;
}

/* ── Home ── */
.brand {
  text-align: center;
  padding: 48px 0 32px;
}
.brand-icon { font-size: 64px; margin-bottom: 8px; }
.brand-name {
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, #fcc419, #f06595, #748ffc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub { font-size: 13px; color: #888; margin-top: 6px; letter-spacing: 2px; }

/* ── Tier Cards ── */
.tier-cards {
  display: flex;
  gap: 12px;
  margin: 0 0 32px;
}
.tier {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 16px;
  transition: all .2s;
}
.tier.highlight {
  background: rgba(252,196,25,0.06);
  border-color: rgba(252,196,25,0.3);
}
.tier-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 10px;
}
.tier.highlight .tier-tag {
  background: linear-gradient(135deg, #fcc419, #f06595);
  color: #111;
  font-weight: 600;
}
.tier-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tier ul { list-style: none; font-size: 12px; line-height: 2; color: #aaa; }
.tier .feature { color: #fcc419; font-weight: 500; }

/* ── Mode Selection Cards (v2) ── */
.mode-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
}
.mode-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all .25s;
}
.mode-card:hover { background: rgba(255,255,255,0.06); }
.mode-card.selected {
  border-color: #fcc419;
  background: rgba(252,196,25,0.06);
  box-shadow: 0 0 20px rgba(252,196,25,0.08);
}
.mode-icon { font-size: 36px; margin-bottom: 8px; }
.mode-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: #eee; }
.mode-desc { font-size: 13px; color: #888; margin-bottom: 12px; }
.mode-features {
  list-style: none;
  font-size: 13px;
  line-height: 2;
  color: #999;
}
.mode-features li:before { content: '✓ '; color: #fcc419; }

/* ── Mode Tabs (in form) ── */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
}
.mode-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #888;
  transition: all .2s;
}
.mode-tab.active {
  background: rgba(252,196,25,0.15);
  color: #fcc419;
}

/* ── Calendar Tabs (阳历/农历切换) ── */
.calendar-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 3px;
}
.cal-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #888;
  transition: all .2s;
}
.cal-tab.active {
  background: rgba(100,180,255,0.15);
  color: #64b4ff;
}

/* ── Form Footnote ── */
.form-footnote {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 16px;
}

/* ── Bazi Display ── */
.bazi-banner {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 24px 16px;
  margin-bottom: 24px;
}
.bazi-pillars {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.bazi-pillar {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 10px;
  min-width: 68px;
}
.pillar-label { font-size: 11px; color: #888; margin-bottom: 6px; }
.pillar-gan { font-size: 26px; font-weight: 700; color: #fcc419; line-height: 1.2; }
.pillar-zhi { font-size: 22px; color: #ddd; line-height: 1.2; margin-top: 2px; }
.pillar-shishen { font-size: 11px; color: #999; margin-top: 6px; }
.bazi-nayin { text-align: center; font-size: 12px; color: #666; margin-top: 14px; }

/* ── WeChat Section ── */
.wechat-section {
  margin: 24px 0 48px;
}
.wechat-box {
  background: linear-gradient(135deg, rgba(80,200,120,0.08), rgba(80,200,120,0.03));
  border: 1px solid rgba(80,200,120,0.2);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.wechat-icon { font-size: 40px; margin-bottom: 8px; }
.wechat-box h3 { font-size: 17px; color: #eee; margin-bottom: 6px; }
.wechat-box p { font-size: 13px; color: #888; margin-bottom: 12px; }
.wechat-id {
  font-size: 22px;
  font-weight: 700;
  color: #50c878;
  margin: 16px 0;
  letter-spacing: 1px;
}
.wechat-id strong { color: #fff; }
.wechat-hint { font-size: 12px; color: #666 !important; }

.wechat-cta {
  background: rgba(80,200,120,0.08);
  border: 1px solid rgba(80,200,120,0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
}
.wechat-cta strong { color: #50c878; }

/* ── Pay Methods ── */
.pay-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.pay-method {
  flex: 1;
  padding: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.pay-method.selected { border-color: #50c878; background: rgba(80,200,120,0.08); }
.pay-icon { margin-right: 4px; }

/* ── Button ── */
.btn-main {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #fcc419, #f06595);
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  text-align: center;
}
.btn-main:hover { opacity: 0.9; }
.btn-main:active { transform: scale(0.98); }
.btn-main:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-small { width: auto; padding: 12px 24px; font-size: 15px; display: inline-block; }

/* ── Social Proof ── */
.social-proof {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: #666;
}
.social-proof .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #444;
  border-radius: 50%;
  margin: 0 3px 8px;
}
.social-proof .dot.active { background: #fcc419; }

/* ── Form ── */
.form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.form-header .back {
  cursor: pointer;
  color: #888;
  font-size: 14px;
  white-space: nowrap;
}
.form-header h2 { font-size: 20px; font-weight: 600; }

.field-group {
  margin-bottom: 20px;
}
.field-group label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}
.field-group select, .field-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
}
.field-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field-group select:focus, .field-group input:focus { border-color: #fcc419; }
.field-group.row2 { display: flex; gap: 12px; }
.field-group.row2 .half { flex: 1; }

.date-row { display: flex; gap: 8px; }
.date-row select { flex: 1; }
.time-row { display: flex; gap: 8px; align-items: center; }
.time-row select { flex: 1; }
.time-row span { color: #888; font-size: 18px; }
.loc-row { display: flex; gap: 8px; }
.loc-row select { flex: 1; }

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #888 !important;
}
.checkbox-label input { width: auto; }

.field-group.note {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

/* ── Loading ── */
.loading-anim {
  text-align: center;
  padding-top: 120px;
}
.wheel {
  width: 80px; height: 80px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: #fcc419;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-anim p { font-size: 18px; color: #ccc; }
.loading-sub { font-size: 13px !important; color: #666 !important; margin-top: 8px; }

/* ── Result ── */
.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.result-header .back { cursor: pointer; color: #888; font-size: 14px; white-space: nowrap; }
.result-header h2 { font-size: 18px; font-weight: 600; }

.chart-container {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.chart-container svg { display: block; width: 100%; height: auto; }

/* ── Info Sections ── */
.info-section { margin-bottom: 24px; }
.info-section h3 { font-size: 16px; margin-bottom: 14px; color: #fcc419; }

.info-cards { display: flex; gap: 10px; }
.info-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.info-card.primary { border-color: rgba(252,196,25,0.2); }
.card-emoji { font-size: 24px; margin-bottom: 4px; }
.card-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.card-value { font-size: 16px; font-weight: 600; }
.card-sub { font-size: 11px; color: #666; margin-top: 4px; }

/* ── Planet Grid ── */
.planet-grid { display: flex; flex-direction: column; gap: 6px; }
.planet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 14px;
}
.planet-emoji { font-size: 18px; width: 28px; text-align: center; }
.planet-name { font-weight: 500; width: 64px; }
.planet-sign { flex: 1; color: #ccc; }
.planet-house { color: #888; font-size: 13px; }
.planet-retro {
  background: #ff6b6b;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Aspects ── */
.aspect-card {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aspect-planets { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.aspect-planets span:first-child, .aspect-planets span:last-child { font-weight: 500; }
.aspect-line { font-size: 14px; font-weight: 600; }
.aspect-orb { font-size: 12px; }
.no-data { font-size: 13px; color: #666; padding: 16px; text-align: center; }

/* ── Upsell ── */
.upsell-section { margin-top: 20px; margin-bottom: 40px; }
.upsell-box {
  background: linear-gradient(135deg, rgba(252,196,25,0.08), rgba(240,101,149,0.08));
  border: 1px solid rgba(252,196,25,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.upsell-icon { font-size: 36px; margin-bottom: 8px; }
.upsell-box h3 { font-size: 18px; margin-bottom: 6px; }
.upsell-box p { font-size: 13px; color: #888; margin-bottom: 16px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #1e1e36;
  border: 1px solid rgba(252,196,25,0.2);
  border-radius: 20px;
  padding: 32px 24px;
  width: 340px;
  max-width: 90vw;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  cursor: pointer;
  font-size: 20px;
  color: #666;
}
.modal-icon { font-size: 40px; margin-bottom: 12px; }
.modal-box h3 { font-size: 20px; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: #888; margin-bottom: 16px; line-height: 1.5; }
.modal-price {
  font-size: 36px;
  font-weight: 700;
  color: #fcc419;
  margin-bottom: 20px;
}
.modal-hint { font-size: 11px; color: #555; margin-top: 12px; }

/* ── Deep Report ── */
.deep-content { padding-bottom: 40px; }
.deep-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.deep-block h4 { font-size: 17px; margin-bottom: 12px; color: #fcc419; }
.deep-block p { font-size: 14px; line-height: 1.8; color: #ccc; margin-bottom: 8px; }
.deep-block strong { color: #fff; }
.deep-aspect {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  flex-wrap: wrap;
}
.deep-aspect:last-child { border: none; }
.asp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(252,196,25,0.15);
  color: #fcc419;
}
.asp-detail { color: #888; font-size: 12px; }
.deep-block.feature-block {
  border-color: rgba(252,196,25,0.25);
  background: rgba(252,196,25,0.04);
}
.dual-table { width: 100%; }
.dual-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.dual-row:last-child { border: none; }
.dual-label {
  width: 90px;
  flex-shrink: 0;
  color: #888;
  font-weight: 500;
}
.dual-conclusion { color: #fcc419 !important; }
.dual-val { flex: 1; color: #e0e0e0; }

@media (max-width: 400px) {
  .info-cards { flex-direction: column; }
  .aspect-card { flex-direction: column; gap: 6px; }
}
