/* ===== Design tokens ===== */
:root {
  --bg-base: #0b0c10;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-panel: #12141a;
  --text-primary: #e8e4dc;
  --text-gold: #e8d5b0;
  --text-muted: #8b9aab;
  --text-placeholder: #5c5f6a;
  --accent: #c4a574;
  --accent-dim: rgba(196, 165, 116, 0.12);
  --accent-ring: rgba(196, 165, 116, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(196, 165, 116, 0.55);
  --error: #c47a7a;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-card: 1.25rem;
  --radius-panel: 0.75rem;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== Atmospheric background ===== */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--top {
  background: radial-gradient(
    ellipse 80% 50% at 50% -10%,
    rgba(196, 165, 116, 0.07),
    transparent 55%
  );
}

.bg-glow--bottom {
  background: radial-gradient(
    ellipse 60% 40% at 50% 110%,
    rgba(139, 154, 171, 0.05),
    transparent 50%
  );
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.2), transparent);
  background-size: 100% 100%;
}

/* ===== Layout ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-indent: 0.35em;
}

.header__title {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.header__subtitle {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-placeholder);
  font-weight: 300;
}

/* ===== Form card ===== */
.form-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field {
  margin-bottom: 1.75rem;
  position: relative;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field--error .field__input,
.field--error .picker-trigger {
  border-color: var(--error);
}

.field--error .field__label {
  color: var(--error);
}

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.field__input {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s ease;
}

.field__input::placeholder {
  color: var(--text-placeholder);
}

.field__input:focus {
  border-color: var(--border-focus);
}

.field__error {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--error);
}

.field--shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ===== Gender ===== */
.gender-group {
  display: flex;
  gap: 0.75rem;
}

.gender-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-placeholder);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.gender-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.gender-btn[aria-pressed="true"] {
  color: var(--text-gold);
  background: var(--accent-dim);
  border-color: var(--accent-ring);
}

/* ===== Picker trigger ===== */
.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.picker-trigger:hover,
.picker-trigger:focus-visible {
  border-color: var(--border-focus);
  outline: none;
}

.picker-trigger__text--placeholder {
  color: var(--text-placeholder);
}

.picker-trigger__icon {
  font-size: 0.65rem;
  color: var(--text-placeholder);
  transition: transform 0.2s ease;
}

.picker-trigger[aria-expanded="true"] .picker-trigger__icon {
  transform: rotate(180deg);
}

/* ===== Picker panels ===== */
.picker-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: panelIn 0.18s ease;
}

.picker-panel[hidden] {
  display: none !important;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Calendar ===== */
.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.25rem;
}

.calendar__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-gold);
}

.calendar__arrow {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.calendar__arrow:hover {
  color: var(--text-gold);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.calendar__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.35rem;
}

.calendar__weekdays span {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-placeholder);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.calendar__day:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.calendar__day--other {
  color: var(--text-placeholder);
  opacity: 0.5;
}

.calendar__day--today {
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}

.calendar__day--selected {
  color: var(--bg-base);
  background: var(--accent);
  font-weight: 500;
}

.calendar__day--selected:hover {
  background: var(--accent);
}

.calendar__day:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar__day--empty {
  cursor: default;
  pointer-events: none;
}

/* ===== Shichen list ===== */
.shichen-list {
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.25rem 0;
  margin: 0;
}

.shichen-list::-webkit-scrollbar {
  width: 4px;
}

.shichen-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.shichen-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.shichen-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.shichen-item--selected {
  background: var(--accent-dim);
}

.shichen-item__label {
  font-family: var(--font-serif);
  color: var(--text-gold);
}

.shichen-item__range {
  font-size: 0.8rem;
  color: var(--text-placeholder);
}

/* ===== Submit ===== */
.submit-btn {
  width: 100%;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-gold);
  background: linear-gradient(
    180deg,
    rgba(196, 165, 116, 0.28) 0%,
    rgba(196, 165, 116, 0.1) 100%
  );
  border: 1px solid var(--accent-ring);
  border-radius: 0.75rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(196, 165, 116, 0.38) 0%,
    rgba(196, 165, 116, 0.15) 100%
  );
  box-shadow: 0 4px 20px rgba(196, 165, 116, 0.15);
}

.submit-btn:active {
  transform: scale(0.99);
}

.footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-placeholder);
  letter-spacing: 0.05em;
}

/* ===== Result dialog ===== */
.result-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 2rem);
}

.result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.result-dialog__inner {
  position: relative;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.result-dialog__inner--chart {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.result-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.result-dialog__close:hover {
  color: var(--text-primary);
}

.result-dialog__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
}

.result-dialog__meta {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.result-dialog__lunar {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ===== BaZi chart ===== */
.bazi-chart {
  margin-bottom: 1.25rem;
}

.bazi-chart__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.bazi-chart__corner {
  width: 3rem;
}

.bazi-chart__th,
.bazi-chart__row-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.35rem 0.25rem;
  text-align: center;
}

.bazi-chart__row-label {
  text-align: right;
  padding-right: 0.5rem;
}

.bazi-chart__td {
  text-align: center;
  padding: 0.5rem 0.25rem;
  border-top: 1px solid var(--border);
}

.bazi-chart__pillar .bazi-chart__ganzhi {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 0.15em;
}

.bazi-char {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
}

.bazi-chart__nayin {
  font-size: 0.7rem;
  color: var(--text-placeholder);
}

.bazi-chart__wuxing-cell {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== WuXing tags & bars ===== */
.wx-tag {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  text-align: center;
}

.wx-mu {
  color: #7cb87c;
  background: rgba(124, 184, 124, 0.12);
}

.wx-huo {
  color: #d4846a;
  background: rgba(212, 132, 106, 0.12);
}

.wx-tu {
  color: #c4a574;
  background: rgba(196, 165, 116, 0.12);
}

.wx-jin {
  color: #d4cfc4;
  background: rgba(212, 207, 196, 0.1);
}

.wx-shui {
  color: #7a9eb8;
  background: rgba(122, 158, 184, 0.12);
}

.wuxing-section__title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.wuxing-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wuxing-bar {
  display: grid;
  grid-template-columns: 2rem 1fr 1.5rem;
  align-items: center;
  gap: 0.5rem;
}

.wuxing-bar__track {
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.2rem;
  overflow: hidden;
}

.wuxing-bar__fill {
  height: 100%;
  border-radius: 0.2rem;
  transition: width 0.3s ease;
}

.wuxing-bar__fill.wx-mu {
  background: #7cb87c;
}

.wuxing-bar__fill.wx-huo {
  background: #d4846a;
}

.wuxing-bar__fill.wx-tu {
  background: #c4a574;
}

.wuxing-bar__fill.wx-jin {
  background: #a8a399;
}

.wuxing-bar__fill.wx-shui {
  background: #7a9eb8;
}

.wuxing-bar__count {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.wuxing-section__note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-placeholder);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ===== AI Master ===== */
.ai-master-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.ai-master-section--loading .ai-master-body {
  opacity: 0.6;
}

.ai-master-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  background: rgba(196, 165, 116, 0.12);
  border: 1px solid var(--accent-ring);
  border-radius: 0.25rem;
  vertical-align: middle;
}

.ai-master-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  min-height: 1.1em;
}

.ai-master-section--loading .ai-master-status {
  animation: ai-pulse 1.4s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ai-master-provider {
  color: var(--text-gold);
  font-weight: 500;
}

.ai-master-body {
  position: relative;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  min-height: 6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ai-master-section--loading .ai-master-body {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(196, 165, 116, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: ai-shimmer 1.8s ease-in-out infinite;
}

@keyframes ai-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ai-master-text {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text-primary);
  white-space: pre-wrap;
  letter-spacing: 0.02em;
}

.ai-master-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  opacity: 0;
}

.ai-master-cursor--active {
  opacity: 1;
  animation: ai-blink 0.9s step-end infinite;
}

@keyframes ai-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== Subsections (大运 / 流年) ===== */
.subsection__title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.65rem;
}

.dayun-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.dayun-start {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.dayun-cards {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.dayun-cards::-webkit-scrollbar {
  height: 4px;
}

.dayun-cards::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.dayun-card {
  flex: 0 0 auto;
  min-width: 4.25rem;
  padding: 0.55rem 0.45rem;
  font-family: var(--font-sans);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dayun-card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.dayun-card--active {
  border-color: var(--accent-ring);
  background: var(--accent-dim);
  box-shadow: 0 0 12px rgba(196, 165, 116, 0.2);
}

.dayun-card__gz {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.dayun-card__year {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dayun-card__range {
  display: block;
  font-size: 0.65rem;
  color: var(--text-placeholder);
  margin-top: 0.15rem;
}

.liunian-section {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.liunian-section__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.liunian-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.liunian-card {
  padding: 0.45rem 0.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
}

.liunian-card--current {
  border-color: var(--accent-ring);
  background: var(--accent-dim);
}

.liunian-card__main {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-gold);
  letter-spacing: 0.05em;
}

.liunian-card__age {
  display: block;
  font-size: 0.6rem;
  color: var(--text-placeholder);
}

/* ===== Responsive ===== */
@media (max-width: 380px) {
  .page {
    padding: 2rem 1rem;
  }

  .form-card {
    padding: 1.5rem 1.25rem;
  }

  .calendar__arrow {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.9rem;
  }

  .liunian-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dayun-card {
    min-width: 3.75rem;
  }
}/* 人工引流专属高级国风样式 */
.custom-contact-container {
  margin: 40px auto 20px auto;
  padding: 20px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.contact-hint {
  color: #cca46a; /* 优雅的古风金色 */
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.contact-box {
  background: rgba(204, 164, 106, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  color: #e0e0e0;
  font-size: 15px;
  border: 1px solid rgba(204, 164, 106, 0.2);
}

.wechat-id {
  color: #fff;
  background: #cca46a;
  color: #1a1a1a;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 5px;
  font-family: monospace;
}

.contact-note {
  color: #888;
  font-size: 12px;
  margin-top: 10px;
  font-style: italic;
}
/* 终极全屏大格局样式优化 */
.result-dialog {
  width: 100% !important;
  max-width: 900px !important; /* 电脑端最舒适的阅读宽度 */
  height: 90vh !important;     /* 占满屏幕高度的 90% */
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important; /* 让整个命盘完美居中 */
  border-radius: 16px !important;
  border: 1px solid rgba(204, 164, 106, 0.2) !important; /* 加上古风金边 border */
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6) !important;
  background: rgba(20, 20, 22, 0.95) !important; /* 更深邃的暗黑底色 */
}

/* 让弹窗内部的内容可以丝滑向下滚动 */
.result-dialog__inner {
  padding: 40px !important;
  height: 100%;
  overflow-y: auto !important; 
  box-sizing: border-box;
}

/* 隐藏弹窗自带的右侧生硬裁剪线 */
.result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85) !important; /* 遮罩层变暗，让中间的命盘更聚焦 */
  backdrop-filter: blur(8px); /* 模糊背景，极具高级感 */
}
/* 彻底消灭电脑端右侧黑色空白，强制单栏垂直排列 */
.result-dialog__inner--chart {
  display: flex !important;
  flex-direction: column !important; /* 强制里面的所有卡片从上到下垂直排队 */
  align-items: center !important;    /* 所有内容水平居中 */
  gap: 30px !important;              /* 卡片与卡片之间的上下间距 */
}

/* 让里面的每一个大板块都撑满宽度，并在中间聚拢 */
.result-dialog__inner--chart > fieldset,
.result-dialog__inner--chart > section,
.result-dialog__inner--chart > div,
.custom-contact-container {
  width: 100% !important;
  max-width: 800px !important; 
  box-sizing: border-box !important;
}

/* 确保 AI 大师解析区域也是垂直向下的 */
.ai-master-section {
  width: 100% !important;
  max-width: 800px !important;
}