body {
  margin: 0;
  background: #030b10;
  color: #e8f7f8;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

main, .topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand, h1, h2, h3 {
  color: #f2c94c;
}

a {
  color: #80fff1;
}

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

h1 {
  font-size: 64px;
  line-height: 1.08;
}

.eyebrow {
  color: #80fff1;
  font-weight: 900;
  letter-spacing: .14em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid article,
.module,
.paid-card,
.hero-card {
  border: 1px solid rgba(128,255,241,.18);
  background: rgba(6,24,32,.86);
  border-radius: 24px;
  padding: 26px;
  margin: 20px 0;
}

.paid-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

textarea {
  width: 100%;
  min-height: 100px;
  background: #020b10;
  color: #e8f7f8;
  border: 1px solid rgba(128,255,241,.25);
  border-radius: 14px;
  padding: 12px;
}

button, .btn, .charge-btn {
  border: 1px solid rgba(242,201,76,.5);
  color: #f2c94c;
  background: transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero, .feature-grid, .paid-card {
    grid-template-columns: 1fr;
  }
}

/* 免费基础排盘输入区 */
.bazi-module {
  padding: 32px;
}

.module-head {
  margin-bottom: 24px;
}

.bazi-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: stretch;
}

.bazi-form,
.bazi-preview {
  border: 1px solid rgba(128,255,241,.18);
  background: rgba(3,13,20,.72);
  border-radius: 22px;
  padding: 24px;
}

.bazi-form h3,
.bazi-preview h3 {
  margin-top: 0;
}

.bazi-form label {
  display: block;
  margin: 14px 0;
  color: rgba(232,247,248,.76);
  font-weight: 800;
}

.bazi-form input,
.bazi-form select {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(128,255,241,.22);
  background: #020b10;
  color: #e8f7f8;
  outline: none;
}

.bazi-form button {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(90deg, #80fff1, #f2c94c);
  color: #061018;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.preview-grid span {
  min-height: 90px;
  border: 1px solid rgba(128,255,241,.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #80fff1;
  background: rgba(0,10,18,.48);
  font-weight: 900;
}

@media (max-width: 900px) {
  .bazi-layout {
    grid-template-columns: 1fr;
  }
}

.chart-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.chart-cards div {
  min-height: 92px;
  border: 1px solid rgba(128,255,241,.2);
  border-radius: 16px;
  background: rgba(0,10,18,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-cards span {
  color: rgba(232,247,248,.6);
  font-size: 13px;
  margin-bottom: 8px;
}

.chart-cards strong {
  color: #f2c94c;
  font-size: 24px;
}

.summary-box {
  border: 1px solid rgba(242,201,76,.24);
  background: rgba(242,201,76,.06);
  border-radius: 18px;
  padding: 18px;
}

.summary-box h4 {
  margin: 0 0 8px;
  color: #f2c94c;
}

.summary-box p {
  margin: 0;
  color: rgba(232,247,248,.72);
  line-height: 1.7;
}

.next-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.next-actions a {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(242,201,76,.42);
  color: #f2c94c;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242,201,76,.05);
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}

.pay-modal.show {
  display: flex;
}

.pay-panel {
  width: min(460px, calc(100% - 32px));
  border: 1px solid rgba(128,255,241,.22);
  background: linear-gradient(145deg, rgba(6,24,32,.98), rgba(4,12,22,.98));
  border-radius: 26px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.pay-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
}

#pay-price {
  display: block;
  color: #80fff1;
  font-size: 38px;
  margin: 16px 0;
}

#pay-desc {
  color: rgba(232,247,248,.72);
  line-height: 1.8;
}

.pay-confirm,
.pay-cancel {
  width: 100%;
  margin-top: 12px;
}

.face-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  margin-top: 24px;
}

.face-upload,
.face-preview,
.face-scope {
  border: 1px solid rgba(128,255,241,.18);
  background: rgba(3,13,20,.72);
  border-radius: 22px;
  padding: 24px;
}

.upload-box {
  height: 150px;
  border: 1px dashed rgba(128,255,241,.32);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  cursor: pointer;
  color: #80fff1;
  font-weight: 900;
}

.upload-box input {
  display: none;
}

#face-pay-btn {
  width: 100%;
  background: linear-gradient(90deg, #80fff1, #f2c94c);
  color: #061018;
}

.face-preview {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,247,248,.5);
}

.face-preview img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 18px;
  object-fit: contain;
}

.face-scope {
  margin-top: 22px;
}

.face-scope div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.face-scope span {
  border: 1px solid rgba(242,201,76,.22);
  background: rgba(242,201,76,.06);
  color: rgba(232,247,248,.78);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .face-layout {
    grid-template-columns: 1fr;
  }
}

.service-result {
  margin-top: 22px;
  border: 1px solid rgba(242,201,76,.24);
  background: rgba(242,201,76,.06);
  border-radius: 22px;
  padding: 22px;
}

.service-result h3 {
  margin-top: 0;
}

.service-result p {
  color: rgba(232,247,248,.76);
  line-height: 1.8;
}

.balance-pill {
  white-space: nowrap;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.recharge-card {
  min-height: 138px;
  border-radius: 22px;
  border: 1px solid rgba(128,255,241,.18);
  background: rgba(3,13,20,.72);
  padding: 22px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.recharge-card:hover {
  border-color: rgba(242,201,76,.5);
}

.recharge-card strong {
  display: block;
  color: #f2c94c;
  font-size: 30px;
  margin-bottom: 12px;
}

.recharge-card span {
  color: rgba(232,247,248,.72);
  line-height: 1.6;
}

.recharge-card em {
  position: absolute;
  right: 16px;
  top: 16px;
  font-style: normal;
  color: #061018;
  background: linear-gradient(90deg, #80fff1, #f2c94c);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.recharge-card.hot {
  border-color: rgba(242,201,76,.45);
  box-shadow: 0 18px 60px rgba(242,201,76,.08);
}

@media (max-width: 900px) {
  .recharge-grid {
    grid-template-columns: 1fr;
  }
}

.order-empty {
  margin-top: 22px;
  border: 1px solid rgba(128,255,241,.18);
  background: rgba(3,13,20,.72);
  border-radius: 22px;
  padding: 24px;
}

.order-empty h3 {
  margin-top: 0;
}

.order-empty p {
  color: rgba(232,247,248,.68);
}

.order-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.order-item {
  border: 1px solid rgba(128,255,241,.18);
  background: rgba(3,13,20,.72);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.order-item strong {
  color: #f2c94c;
  font-size: 18px;
}

.order-item p {
  margin: 6px 0 0;
  color: rgba(232,247,248,.55);
  font-size: 13px;
}

.order-meta {
  text-align: right;
}

.order-meta span {
  display: block;
  color: #80fff1;
  font-weight: 900;
  margin-bottom: 8px;
}

.order-meta em {
  font-style: normal;
  color: rgba(232,247,248,.72);
  border: 1px solid rgba(242,201,76,.28);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.order-item {
  flex-wrap: wrap;
}

.order-detail-btn {
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(128,255,241,.26);
  color: #80fff1;
  background: rgba(128,255,241,.06);
  font-size: 12px;
  cursor: pointer;
}

.order-detail {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(242,201,76,.22);
  background: rgba(242,201,76,.06);
  color: rgba(232,247,248,.76);
  line-height: 1.8;
}

.order-detail.show {
  display: block;
}

.zm-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translate(-50%, -20px);
  z-index: 9999;
  min-width: 320px;
  max-width: min(520px, calc(100% - 32px));
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(128,255,241,.24);
  background: linear-gradient(145deg, rgba(6,24,32,.96), rgba(3,10,18,.96));
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.zm-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.zm-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(90deg, #80fff1, #f2c94c);
  color: #061018;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.zm-toast strong {
  display: block;
  color: #f2c94c;
  margin-bottom: 4px;
}

.zm-toast p {
  margin: 0;
  color: rgba(232,247,248,.78);
  line-height: 1.6;
}

/* 提示层改为屏幕中间 */
.zm-toast {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(.96) !important;
}

.zm-toast.show {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.pay-confirm:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pay-confirm.is-loading,
.pay-confirm:disabled {
  opacity: .68;
  cursor: not-allowed;
  filter: saturate(.8);
}

/* ===== 首页首屏高级化 ===== */
.hero {
  position: relative;
  min-height: 86vh;
  padding: 42px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,201,76,.16), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(54px, 6vw, 82px);
  letter-spacing: -0.055em;
  text-shadow: 0 20px 80px rgba(242,201,76,.12);
}

.hero-copy .desc {
  max-width: 660px;
  font-size: 18px;
  line-height: 1.9;
  margin-top: 22px;
}

.hero-actions .btn {
  min-width: 156px;
  height: 50px;
}

.hero-actions .primary {
  box-shadow: 0 18px 60px rgba(128,255,241,.16);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "命盘推演";
  position: absolute;
  top: 26px;
  left: 28px;
  color: rgba(128,255,241,.78);
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 900;
}

.hero-card::after {
  content: "八字 · 流年 · 大运 · 人生节点";
  position: absolute;
  bottom: 26px;
  left: 28px;
  color: rgba(232,247,248,.58);
  font-size: 14px;
}

.bazi-grid span {
  transition: .2s ease;
}

.bazi-grid span:hover {
  border-color: rgba(242,201,76,.55);
  color: #f2c94c;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 48px 0 40px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy .desc {
    font-size: 16px;
  }
}
