/* ============ 结果页 - 各 Tab 样式 ============ */

/* ----- 综合运势 ----- */
.fortune-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(22, 12, 48, 0.95), rgba(5, 2, 8, 1));
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.7),
    inset 0 0 25px rgba(0, 0, 0, 0.8),
    inset 0 0 6px rgba(0, 240, 255, 0.15);
}

/* 等级 CSS 变量（rgb 三个分量） */
.score-circle { --wr: 168; --wg: 144; --wb: 112; }
.score-circle.lv-daji { --wr: 201; --wg: 168; --wb: 76; }
.score-circle.lv-ji { --wr: 168; --wg: 201; --wb: 122; }
.score-circle.lv-xiong { --wr: 201; --wg: 122; --wb: 76; }
.score-circle.lv-daxiong { --wr: 220; --wg: 50; --wb: 50; }

.score-circle.lv-daji { border-color: var(--lv-daji); box-shadow: 0 0 35px rgba(201, 168, 76, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(201, 168, 76, 0.2); }
.score-circle.lv-ji { border-color: var(--lv-ji); box-shadow: 0 0 35px rgba(168, 201, 122, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(168, 201, 122, 0.2); }
.score-circle.lv-ping { border-color: var(--lv-ping); }
.score-circle.lv-xiong { border-color: var(--lv-xiong); box-shadow: 0 0 35px rgba(201, 122, 76, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(201, 122, 76, 0.2); }
.score-circle.lv-daxiong { border-color: var(--lv-daxiong); box-shadow: 0 0 35px rgba(220, 50, 50, 0.6), inset 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(220, 50, 50, 0.25); }

/* 赛博网格背景 */
.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
}

/* 液面填充 */
.water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  transition: height 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  background: linear-gradient(180deg,
    rgba(var(--wr), var(--wg), var(--wb), 0.35) 0%,
    rgba(var(--wr), var(--wg), var(--wb), 0.65) 40%,
    rgba(var(--wr), var(--wg), var(--wb), 0.9) 100%);
  box-shadow:
    inset 0 -12px 25px rgba(var(--wr), var(--wg), var(--wb), 0.4),
    inset 0 8px 18px rgba(0, 240, 255, 0.15);
}

/* 液面扫描线 */
.water-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent 0,
    transparent 4px,
    rgba(0, 240, 255, 0.08) 4px,
    rgba(0, 240, 255, 0.08) 5px);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 波浪：SVG mask 实现的真实波浪形状 */
.wave {
  position: absolute;
  left: -100%;
  width: 300%;
  pointer-events: none;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

.wave-back {
  top: -10px;
  height: 22px;
  background: rgba(var(--wr), var(--wg), var(--wb), 0.5);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'><path d='M0 11 Q25 3 50 11 T100 11 L100 22 L0 22 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'><path d='M0 11 Q25 3 50 11 T100 11 L100 22 L0 22 Z' fill='black'/></svg>");
  -webkit-mask-size: 100px 22px;
  mask-size: 100px 22px;
  animation: wave-scroll-back 9s linear infinite;
  opacity: 0.7;
}

.wave-front {
  top: -8px;
  height: 18px;
  background: rgba(var(--wr), var(--wg), var(--wb), 0.95);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 18' preserveAspectRatio='none'><path d='M0 9 Q20 1 40 9 T80 9 L80 18 L0 18 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 18' preserveAspectRatio='none'><path d='M0 9 Q20 1 40 9 T80 9 L80 18 L0 18 Z' fill='black'/></svg>");
  -webkit-mask-size: 80px 18px;
  mask-size: 80px 18px;
  animation: wave-scroll-front 5s linear infinite;
  filter: drop-shadow(0 -1px 6px rgba(var(--wr), var(--wg), var(--wb), 0.9))
          drop-shadow(0 -2px 10px rgba(0, 240, 255, 0.4));
}

@keyframes wave-scroll-back {
  from { transform: translateX(0); }
  to { transform: translateX(-100px); }
}
@keyframes wave-scroll-front {
  from { transform: translateX(-80px); }
  to { transform: translateX(0); }
}

/* 液面顶部发光线 */
.water-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.4) 15%,
    rgba(var(--wr), var(--wg), var(--wb), 1) 50%,
    rgba(0, 240, 255, 0.4) 85%,
    transparent 100%);
  box-shadow:
    0 0 6px rgba(var(--wr), var(--wg), var(--wb), 1),
    0 0 12px rgba(0, 240, 255, 0.5);
  z-index: 2;
  animation: edge-pulse 2.4s ease-in-out infinite;
}

@keyframes edge-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* 中央等级文字 */
.level-main-text {
  position: relative;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 900;
  color: var(--text-light);
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(var(--wr), var(--wg), var(--wb), 0.7),
    0 0 4px rgba(0, 240, 255, 0.4);
  letter-spacing: 0;
  text-align: center;
  line-height: 1;
}

/* 球体右下角的数字读数 */
.score-readout {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 240, 255, 0.85);
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  pointer-events: none;
}

.score-sub {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.sub-levels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 6px 0;
  font-size: 12px;
}

.sub-level-item { color: var(--text-muted); }
.sub-level-val { font-weight: 700; }
.sub-level-val.lv-daji { color: var(--lv-daji); }
.sub-level-val.lv-ji { color: var(--lv-ji); }
.sub-level-val.lv-ping { color: var(--lv-ping); }
.sub-level-val.lv-xiong { color: var(--lv-xiong); }
.sub-level-val.lv-daxiong { color: var(--lv-daxiong); }
.sub-level-dot { color: #3a2510; }

.sub-cards {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}

.sub-card {
  flex: 1;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  background: rgba(15, 8, 35, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 2px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.sub-card-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.sub-card-score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.sub-card-score.lv-daji { color: var(--lv-daji); }
.sub-card-score.lv-ji { color: var(--lv-ji); }
.sub-card-score.lv-ping { color: var(--lv-ping); }
.sub-card-score.lv-xiong { color: var(--lv-xiong); }
.sub-card-score.lv-daxiong { color: var(--lv-daxiong); }

.sub-card-level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.sub-card-level.lv-daji { color: var(--lv-daji); }
.sub-card-level.lv-ji { color: var(--lv-ji); }
.sub-card-level.lv-ping { color: var(--lv-ping); }
.sub-card-level.lv-xiong { color: var(--lv-xiong); }
.sub-card-level.lv-daxiong { color: var(--lv-daxiong); }

.fortune-text {
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-light);
  text-align: left;
  background: rgba(15, 8, 35, 0.55);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
}

/* ----- 答案之书 ----- */
.answer-quote {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 2;
  color: var(--text-light);
  letter-spacing: 0.05em;
  padding: 14px 6px;
  font-style: italic;
}

.answer-hint {
  text-align: right;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: 0.15em;
}

.advice-text {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-light);
}

/* ----- 八字命盘 ----- */
.pillar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pillar {
  text-align: center;
  padding: 16px 6px;
  background: rgba(15, 8, 35, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 2px;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.pillar-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}

.default-hint {
  font-size: 10px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.pillar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}

.pillar-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 240, 255, 0.35);
}

.pillar-nayin {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ----- 五行分布 ----- */
.wuxing-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: 160px;
  align-items: end;
  padding: 12px 8px 0;
  background: rgba(15, 8, 35, 0.35);
  border-radius: 8px;
}

.wuxing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.wuxing-bar-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wuxing-bar {
  width: 60%;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.6));
  border-top: 1px solid var(--gold);
  transition: height 0.8s ease;
  border-radius: 2px 2px 0 0;
}

.wuxing-bar.active {
  background: linear-gradient(180deg, var(--neon-cyan), rgba(0, 240, 255, 0.4));
  border-top: 1px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.wuxing-name {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-light);
}

.wuxing-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ----- 八字解读 / 通用 interp-list ----- */
.interp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.interp-item {
  position: relative;
  padding: 14px 16px;
  background: rgba(15, 8, 35, 0.45);
  border-left: 2px solid var(--gold-dark);
  border-radius: 0 6px 6px 0;
}

.interp-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.interp-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.interp-text {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-light);
}

.interp-text p {
  margin-bottom: 6px;
}

/* ----- 姓名五格 ----- */
.wuge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.wuge-item {
  text-align: center;
  padding: 12px 4px;
  background: rgba(15, 8, 35, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 2px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.wuge-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.wuge-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.wuge-result {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.wuge-result.good { color: var(--lv-ji); }
.wuge-result.bad { color: var(--lv-xiong); }

.wuge-score {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.wuge-score strong {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 18px;
}

/* ----- 塔罗 ----- */
.tarot-hint {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(15, 8, 35, 0.45);
  border-radius: 6px;
  border-left: 2px solid var(--gold-dark);
}

.tarot-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}

.tarot-slot {
  text-align: center;
}

.tarot-position {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.tarot-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(15, 8, 35, 0.95), rgba(40, 22, 80, 0.85));
  border: 1px solid var(--neon-purple);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(176, 77, 255, 0.25);
}

.tarot-card.reversed {
  transform: rotate(180deg);
}

.tarot-card-img {
  width: 100%;
  flex: 1;
  object-fit: contain;
  min-height: 0;
  filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.3));
}

.tarot-card-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.tarot-card-orient {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tarot-position {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--neon-cyan);
  margin-top: 4px;
}

.tarot-reading-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tarot-reading-item {
  padding: 14px;
  background: rgba(15, 8, 35, 0.45);
  border-left: 2px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.tarot-reading-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tarot-reading-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
  font-weight: 700;
}

.tarot-reading-pos {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.tarot-reading-orient {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.tarot-reading-orient.orient-up { background: rgba(168, 201, 122, 0.2); color: var(--lv-ji); }
.tarot-reading-orient.orient-rev { background: rgba(201, 122, 76, 0.2); color: var(--lv-xiong); }

.tarot-reading-kw {
  display: block;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.tarot-reading-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
}

.tarot-combined {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
  padding: 14px 16px;
  background: rgba(15, 8, 35, 0.45);
  border-radius: 6px;
  border-left: 2px solid var(--neon-cyan);
}

/* ----- 星盘 ----- */
.astro-chart-panel {
  text-align: center;
}

.astro-canvas-wrap {
  display: flex;
  justify-content: center;
  padding: 8px;
}

#astro-canvas {
  max-width: 100%;
  height: auto;
  background: rgba(10, 5, 24, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 30px rgba(201, 168, 76, 0.2),
    0 0 60px rgba(0, 240, 255, 0.1);
}

/* ============ 星盘图例 ============ */
.astro-legend {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 4px;
  background: rgba(10, 5, 24, 0.45);
  text-align: left;
}
.astro-legend .legend-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold, #c9a84c);
  letter-spacing: 1px;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 16px;
  margin-bottom: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(230, 235, 255, 0.82);
}
.legend-item .swatch {
  flex: 0 0 36px;
  height: 18px;
  border-radius: 2px;
  display: inline-block;
}
.legend-item .legend-text b { color: #fff; font-weight: 600; margin-right: 4px; }
.sw-asc    { background: #ff2d95; }
.sw-axis   { background: repeating-linear-gradient(90deg, #ff7ac0 0 5px, transparent 5px 9px); }
.sw-aspect { background: linear-gradient(90deg, rgba(255,255,255,.6), rgba(80,160,255,.6), rgba(255,70,70,.6)); }
.sw-planet { background: radial-gradient(circle, #00f0ff 25%, rgba(0,240,255,.15) 60%, transparent 80%); }
.sw-num    { background: rgba(0,240,255,.15); color: #00f0ff; font-size: 11px; text-align: center; line-height: 18px; font-weight: 700; }
.sw-sign   { background: rgba(201,168,76,.18); color: #c9a84c; font-size: 12px; text-align: center; line-height: 18px; }

.legend-aspect-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
}
.legend-aspect-colors .ac-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(220, 230, 255, 0.7);
}
.legend-aspect-colors i {
  width: 18px; height: 2px; border-radius: 1px;
  display: inline-block;
}

.legend-steps {
  margin: 0;
  padding-left: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(230, 235, 255, 0.78);
  list-style: none;
  counter-reset: step;
}
.legend-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-left: 2px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.04);
  border-radius: 0 3px 3px 0;
}
.legend-steps li:last-child { margin-bottom: 0; }
.legend-steps .step-num {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.legend-steps b { color: #fff; font-weight: 600; margin-right: 4px; }
.legend-steps .sn-1 { background: #ff2d95; }
.legend-steps .sn-2 { background: #ff8c1a; }
.legend-steps .sn-3 { background: #c9a84c; }
.legend-steps .sn-4 { background: #00f0ff; color: #0a0518; }

/* 三大核心星座 */
.astro-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.astro-trio-item {
  text-align: center;
  padding: 20px 12px 16px;
  background: linear-gradient(180deg, rgba(22, 12, 48, 0.75), rgba(15, 8, 35, 0.7));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.astro-trio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
}

.astro-trio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.astro-trio-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-weight: 700;
}

.astro-trio-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.astro-trio-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
}

.astro-trio-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.astro-trio-element {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* 行星落位 */
.planet-list,
.house-list,
.aspect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planet-row {
  padding: 14px 16px;
  background: rgba(15, 8, 35, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
}

.planet-row-main {
  display: grid;
  grid-template-columns: 32px 70px 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.planet-symbol {
  font-size: 22px;
  color: var(--gold);
  text-align: center;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}

.planet-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
}

.planet-sign-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.planet-sign-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.3));
}

.planet-sign-name {
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 700;
}

.planet-degree {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 14px;
  min-width: 50px;
  text-align: right;
}

.planet-house {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 60px;
  text-align: right;
}

.planet-row-desc {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 240, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.planet-meaning {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.planet-insign {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

.planet-insign-label {
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}

.planet-insign-text {
  color: var(--text-light);
}

/* 十二宫位 */
.house-row {
  padding: 14px 16px;
  background: rgba(15, 8, 35, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
}

.house-row-main {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.house-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  padding: 6px 0;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.house-sign-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.house-sign-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.3));
}

.house-sign-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 17px;
}

.house-planets {
  color: var(--neon-cyan);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: right;
}

.house-desc {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.85;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 240, 255, 0.3);
}

/* 相位 */
.aspect-row {
  padding: 14px 16px;
  background: rgba(15, 8, 35, 0.45);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
}

.aspect-row-main {
  display: grid;
  grid-template-columns: 1fr 90px 80px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.aspect-pair {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
}

.aspect-type {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 4px;
}

.aspect-orb {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 14px;
  text-align: right;
}

.aspect-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 240, 255, 0.3);
}

.astro-daily {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
  padding: 14px 16px;
  background: rgba(15, 8, 35, 0.45);
  border-radius: 6px;
  border-left: 2px solid var(--neon-magenta);
}

/* ----- 梅花易数 ----- */
.meihua-meta {
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  padding: 10px 16px;
  background: rgba(15, 8, 35, 0.55);
  border-radius: 6px;
  border: 1px dashed rgba(0, 240, 255, 0.3);
}

.meihua-gua-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.meihua-gua-item {
  text-align: center;
  padding: 22px 14px 18px;
  background: linear-gradient(180deg, rgba(22, 12, 48, 0.75), rgba(15, 8, 35, 0.7));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.meihua-gua-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.meihua-gua-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 14px;
}

.meihua-yao-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.meihua-yao-sep {
  width: 70%;
  height: 1px;
  background: rgba(0, 240, 255, 0.35);
  margin: 6px 0;
}

.meihua-yao-line {
  width: 110px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}

.meihua-yao-line.yin {
  background: linear-gradient(90deg,
    var(--gold) 0%, var(--gold) 42%,
    transparent 42%, transparent 58%,
    var(--gold) 58%, var(--gold) 100%);
}

.meihua-gua-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
}

.meihua-gua-symbol {
  display: block;
  font-size: 16px;
  color: var(--text-light);
  letter-spacing: 0.3em;
  font-family: var(--font-mono);
}

.meihua-arrow {
  color: var(--gold-dark);
  font-size: 24px;
}

.meihua-tiyong {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.meihua-ti-item {
  text-align: center;
  padding: 22px 12px 18px;
  background: linear-gradient(180deg, rgba(22, 12, 48, 0.75), rgba(15, 8, 35, 0.7));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.meihua-ti-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.meihua-ti-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.meihua-ti-symbol {
  display: block;
  font-size: 44px;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
  line-height: 1;
}

.meihua-ti-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.meihua-ti-vs {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon-magenta);
  letter-spacing: 0.2em;
  padding: 8px 12px;
  border: 1px solid var(--neon-magenta);
  border-radius: 50%;
  text-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
  background: rgba(255, 45, 149, 0.08);
}

.meihua-relation-tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  white-space: nowrap;
  margin-right: 10px;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
}

.meihua-relation,
.meihua-reading {
  font-size: 17px;
  line-height: 2;
  color: var(--text-light);
  padding: 16px 20px;
  background: rgba(15, 8, 35, 0.55);
  border-radius: 8px;
  border-left: 3px solid var(--neon-purple);
}

/* ----- 大屏适配 ----- */
@media (min-width: 768px) {
  .score-circle { width: 200px; height: 200px; }
  .level-main-text { font-size: 56px; }
  .pillar-box { font-size: 34px; }
  .pillar-nayin { font-size: 13px; }
  .interp-text { font-size: 16px; }
  .interp-title { font-size: 17px; }
  .fortune-text { font-size: 17px; }
  .advice-text { font-size: 17px; }
  .answer-quote { font-size: 19px; }
  .tarot-reading-text { font-size: 16px; }
  .tarot-combined { font-size: 16px; }
  .astro-daily { font-size: 16px; }
  .meihua-reading { font-size: 16px; }

  /* 星盘大屏 */
  .astro-trio-item { padding: 24px 14px 18px; }
  .astro-trio-img-wrap { width: 110px; height: 110px; }
  .astro-trio-img { width: 86px; height: 86px; }
  .astro-trio-name { font-size: 20px; }
  .planet-row { padding: 16px 18px; }
  .planet-name { font-size: 17px; }
  .planet-sign-img { width: 36px; height: 36px; }
  .planet-sign-name { font-size: 17px; }
  .planet-meaning { font-size: 15px; }
  .planet-insign { font-size: 16px; }
  .house-row { padding: 16px 18px; }
  .house-num { font-size: 18px; }
  .house-sign-img { width: 38px; height: 38px; }
  .house-sign-name { font-size: 18px; }
  .house-planets { font-size: 15px; }
  .house-desc { font-size: 16px; }
  .aspect-row { padding: 16px 18px; }
  .aspect-pair { font-size: 16px; }
  .aspect-type { font-size: 16px; }
  .aspect-desc { font-size: 15px; }

  /* 梅花大屏 */
  .meihua-meta { font-size: 16px; }
  .meihua-gua-item { padding: 26px 16px 22px; }
  .meihua-yao-line { width: 130px; height: 10px; }
  .meihua-gua-name { font-size: 24px; }
  .meihua-ti-item { padding: 26px 14px 22px; }
  .meihua-ti-symbol { font-size: 54px; }
  .meihua-ti-name { font-size: 18px; }
  .meihua-relation, .meihua-reading { font-size: 17px; }
}

/* ============ 手机端紧凑（窄屏优化） ============ */
@media (max-width: 767px) {
  /* 综合运势 */
  .score-circle { width: 160px; height: 160px; }
  .level-main-text { font-size: 36px; }
  .score-readout { font-size: 11px; right: 12px; bottom: 10px; }
  .score-sub { font-size: 13px; }
  .sub-levels { font-size: 11px; gap: 4px 8px; }
  .sub-cards { gap: 8px; margin-top: 14px; }
  .sub-card { padding: 10px 4px; max-width: none; }
  .sub-card-label { font-size: 10px; }
  .sub-card-score { font-size: 18px; }
  .sub-card-level { font-size: 10px; }
  .fortune-text { font-size: 14px; padding: 12px 14px; line-height: 1.8; }

  /* 答案之书 / 开运指南 */
  .answer-quote { font-size: 15px; line-height: 1.85; padding: 10px 4px; }
  .answer-hint { font-size: 12px; margin-top: 8px; }
  .advice-text { font-size: 14px; line-height: 1.85; }

  /* 八字四柱 */
  .pillar-row { gap: 6px; }
  .pillar { padding: 12px 4px; }
  .pillar-label { font-size: 11px; margin-bottom: 6px; }
  .pillar-box { font-size: 22px; gap: 4px; }
  .pillar-divider { height: 20px; }
  .pillar-nayin { font-size: 10px; margin-top: 6px; }

  /* 五行分布 */
  .wuxing-chart { height: 130px; padding: 8px 4px 0; gap: 4px; }
  .wuxing-name { font-size: 12px; }
  .wuxing-count { font-size: 10px; }

  /* 姓名五格 */
  .wuge-grid { gap: 6px; }
  .wuge-item { padding: 10px 2px; }
  .wuge-num { font-size: 18px; }
  .wuge-label { font-size: 10px; }
  .wuge-result { font-size: 10px; }
  .wuge-score { font-size: 13px; margin-top: 12px; }
  .wuge-score strong { font-size: 16px; }

  /* 解读列表 */
  .interp-list { gap: 12px; }
  .interp-item { padding: 12px 14px; }
  .interp-title { font-size: 14px; margin-bottom: 8px; }
  .interp-text { font-size: 13px; line-height: 1.8; }

  /* 塔罗 */
  .tarot-hint { font-size: 13px; padding: 10px 12px; line-height: 1.7; margin-bottom: 14px; }
  .tarot-cards-row { gap: 8px; margin-bottom: 10px; }
  .tarot-card { padding: 6px 3px; }
  .tarot-card-name { font-size: 11px; }
  .tarot-card-orient { font-size: 9px; }
  .tarot-reading-list { gap: 10px; }
  .tarot-reading-item { padding: 10px 12px; }
  .tarot-reading-name { font-size: 14px; }
  .tarot-reading-text { font-size: 13px; line-height: 1.8; }
  .tarot-combined { font-size: 13px; padding: 12px 14px; line-height: 1.85; }

  /* 星盘 */
  #astro-canvas { width: 100%; max-width: 320px; }
  .astro-trio { gap: 8px; }
  .astro-trio-item { padding: 14px 6px 10px; }
  .astro-trio-img-wrap { width: 60px; height: 60px; margin-bottom: 6px; }
  .astro-trio-img { width: 48px; height: 48px; }
  .astro-trio-label { font-size: 11px; margin-bottom: 8px; letter-spacing: 0.15em; }
  .astro-trio-name { font-size: 14px; }
  .astro-trio-element { font-size: 10px; }

  /* 行星落位（手机端：3 列布局，隐藏 house 列） */
  .planet-row { padding: 12px; }
  .planet-row-main {
    grid-template-columns: 26px 1fr auto;
    gap: 8px;
  }
  .planet-symbol { font-size: 18px; }
  .planet-name { font-size: 13px; }
  .planet-sign-cell { gap: 6px; }
  .planet-sign-img { width: 22px; height: 22px; }
  .planet-sign-name { font-size: 12px; }
  .planet-degree { font-size: 11px; min-width: 38px; }
  .planet-house { display: none; }
  .planet-row-desc { margin-top: 8px; padding-top: 8px; }
  .planet-meaning { font-size: 12px; line-height: 1.65; }
  .planet-insign { font-size: 13px; line-height: 1.65; }

  /* 十二宫位（手机端：宫号 + 星座一行，行星换行） */
  .house-row { padding: 12px; }
  .house-row-main {
    grid-template-columns: 44px 1fr;
    gap: 8px;
    margin-bottom: 6px;
  }
  .house-num { font-size: 13px; padding: 4px 0; }
  .house-sign-cell { gap: 6px; }
  .house-sign-img { width: 24px; height: 24px; }
  .house-sign-name { font-size: 14px; }
  .house-planets {
    font-size: 11px;
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 4px;
  }
  .house-desc { font-size: 13px; line-height: 1.75; padding-top: 8px; }

  /* 相位（手机端：2 列，描述换行） */
  .aspect-row { padding: 12px; }
  .aspect-row-main {
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 6px;
  }
  .aspect-pair { font-size: 13px; }
  .aspect-type { font-size: 11px; padding: 3px 8px; }
  .aspect-orb { font-size: 11px; }
  .aspect-desc { font-size: 12px; line-height: 1.7; padding-top: 6px; }

  .astro-daily { font-size: 13px; padding: 12px 14px; line-height: 1.85; }

  /* 梅花易数 */
  .meihua-meta { font-size: 13px; padding: 8px 12px; letter-spacing: 0.1em; }
  .meihua-gua-row { gap: 8px; }
  .meihua-gua-item { padding: 14px 8px 12px; }
  .meihua-gua-label { font-size: 12px; margin-bottom: 10px; letter-spacing: 0.2em; }
  .meihua-yao-wrap { gap: 4px; margin-bottom: 10px; }
  .meihua-yao-line { width: 80px; height: 6px; }
  .meihua-yao-sep { margin: 4px 0; }
  .meihua-gua-name { font-size: 17px; margin-bottom: 4px; }
  .meihua-gua-symbol { font-size: 13px; }

  .meihua-tiyong { gap: 8px; }
  .meihua-ti-item { padding: 14px 6px 12px; }
  .meihua-ti-label { font-size: 12px; margin-bottom: 8px; letter-spacing: 0.2em; }
  .meihua-ti-symbol { font-size: 32px; margin-bottom: 6px; }
  .meihua-ti-name { font-size: 14px; }
  .meihua-ti-vs { font-size: 11px; padding: 6px 8px; }

  .meihua-relation-tag { font-size: 13px; padding: 6px 12px; margin-right: 6px; margin-bottom: 6px; }
  .meihua-relation, .meihua-reading { font-size: 13px; padding: 12px 14px; line-height: 1.85; }
}
