/* ===== divination-result.css — 六爻结果页（毛玻璃统一风格） ===== */

/* ── 结果页容器 ── */
.ly-result-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 12px 60px;
  position: relative;
  background: transparent;
}

/* ── 浮动导航栏（毛玻璃风格） ── */
.ly-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  margin: 0 -12px 16px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: box-shadow 0.3s ease;
}
.ly-nav-bar::-webkit-scrollbar { display: none; }
.ly-nav-bar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
}
.ly-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}
.ly-nav-pill i { font-size: 12px; }
.ly-nav-pill:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.ly-nav-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #8B7CF6 100%);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
  font-weight: 600;
}
.ly-nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 15px;
  flex-shrink: 0;
  margin-right: 4px;
  transition: all 0.2s ease;
}
.ly-nav-back:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
}

/* ── 模块区块通用 ── */
.ly-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-bottom: 16px;
}
.ly-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.ly-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Noto Serif SC', serif;
  color: var(--accent);
  margin-bottom: 10px;
}
.ly-section-label i {
  font-size: 14px;
  color: var(--accent);
}
.ly-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.04);
}

/* ── ① 卦象总览英雄卡（居中炫酷版 — 微妙边框毛玻璃） ── */
.ly-hero-card-light {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 32px 24px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 16px rgba(108, 92, 231, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ly-hero-card-light:hover {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.06);
}
/* 顶部彩虹渐变装饰线 */
.ly-hero-card-light::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9873a, var(--accent, #6c5ce7), #fd79a8, #c9873a);
  background-size: 200% 100%;
  animation: lyHeroRainbow 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes lyHeroRainbow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* 背景光晕 */
.ly-hero-glow {
  position: absolute;
  top: -40%; left: -20%;
  width: 140%; height: 140%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(108, 92, 231, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(201, 135, 58, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(253, 121, 168, 0.05) 0%, transparent 40%);
  pointer-events: none;
  animation: lyHeroGlowDrift 6s ease-in-out infinite;
}
@keyframes lyHeroGlowDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5%, 3%) rotate(2deg); }
}
.ly-hero-content {
  position: relative;
  z-index: 1;
}
/* 卦象符号（上下卦居中纵列） */
.ly-hero-symbols {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  line-height: 1;
}
.ly-trigram {
  font-size: 34px;
  letter-spacing: 3px;
  opacity: 0.9;
  transition: all 0.3s;
}
.ly-trigram.upper {
  color: #c9873a;
  filter: drop-shadow(0 0 8px rgba(201, 135, 58, 0.25));
}
.ly-trigram.lower {
  color: var(--accent, #6c5ce7);
  margin-top: -6px;
  filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.25));
}
.ly-hero-card-light:hover .ly-trigram {
  transform: scale(1.05);
  opacity: 1;
}
/* 卦名 — 渐变文字+shimmer */
.ly-hero-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #2d1b69 0%, var(--accent, #6c5ce7) 50%, #2d1b69 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  margin: 10px 0 8px;
  position: relative;
  animation: lyHeroNameShimmer 3s ease-in-out infinite;
}
@keyframes lyHeroNameShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* 卦名底部装饰线 */
.ly-hero-name::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9873a, transparent);
  margin: 8px auto 0;
  opacity: 0.6;
}
/* 卦描述 */
.ly-hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
/* 上下卦标签（胶囊对） */
.ly-hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ly-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.ly-hero-tag.upper {
  background: rgba(201, 135, 58, 0.10);
  color: #9a6b08;
  border: 1px solid rgba(201, 135, 58, 0.20);
}
.ly-hero-tag.lower {
  background: rgba(108, 92, 231, 0.10);
  color: #5b4cc7;
  border: 1px solid rgba(108, 92, 231, 0.20);
}
.ly-hero-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
/* 变卦信息行 */
.ly-hero-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.ly-hero-change i { color: var(--accent, #6c5ce7); }
.ly-change-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #6c5ce7);
  letter-spacing: 2px;
}
/* 卦辞引用 */
.ly-hero-guaci {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
  font-style: italic;
  max-width: 320px;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  letter-spacing: 0.5px;
}
/* 起卦信息条 */
.ly-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.ly-hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ly-hero-meta i { font-size: 12px; color: var(--accent, #6c5ce7); opacity: 0.6; }
/* 吉凶总判徽章 */
.ly-hero-judge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.ly-hero-judge.ji {
  background: rgba(46, 204, 113, 0.12);
  color: #2ECC71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}
.ly-hero-judge.xiong {
  background: rgba(231, 76, 60, 0.12);
  color: #E74C3C;
  border: 1px solid rgba(231, 76, 60, 0.25);
}
.ly-hero-judge.ping {
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent, #6c5ce7);
  border: 1px solid rgba(108, 92, 231, 0.15);
}
/* 用户问题区域 */
.ly-hero-question {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}
.ly-q-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ── ② 卦词 ── */
.ly-guaci-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ly-guaci-card:hover {
  box-shadow: var(--card-shadow-hover);
}
.ly-guaci-main {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
  padding: 12px 16px;
  border-left: 3px solid #c9873a;
  background: rgba(201, 135, 58, 0.04);
  border-radius: 0 10px 10px 0;
  margin: 8px 0;
}
.ly-guaci-advice {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 10px;
}
.ly-guaci-changed {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}
.ly-guaci-changed-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.ly-guaci-changed-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── ③ 排盘 ── */
.ly-paipan-wrap {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  overflow: visible;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ly-paipan-wrap:hover {
  box-shadow: var(--card-shadow-hover);
}

/* ── ④ 分析 ── */
.ly-analysis-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ly-analysis-card:hover {
  box-shadow: var(--card-shadow-hover);
}
.ly-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ly-analysis-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 12px;
  transition: box-shadow 0.2s;
}
.ly-analysis-item:hover {
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.08);
}
.ly-analysis-item-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ly-analysis-item-label i { font-size: 12px; color: var(--accent); opacity: 0.6; }
.ly-analysis-item-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 断卦提示条 */
.ly-hint-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(243, 156, 18, 0.04);
  border: 1px solid rgba(243, 156, 18, 0.1);
  margin-top: 14px;
}
.ly-hint-bar i {
  color: #c9873a;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ly-hint-bar span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── ⑤ 断卦（完全透明，无边框无圆角） ── */
.ly-ai-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 18px 0;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ly-ai-card:hover {
  background: transparent;
}
.ly-ai-card::before {
  display: none;
}

/* ── 底部操作栏 ── */
.ly-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.ly-bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(108, 92, 231, 0.15);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.ly-bottom-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
}

/* ── 伏神 ── */
.ly-fushen-section {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ly-fushen-section:hover {
  box-shadow: var(--card-shadow-hover);
}

/* ── 日月建信息条 ── */
.ly-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ly-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}
.ly-info-chip i { font-size: 11px; color: var(--accent); opacity: 0.6; }

/* ── 响应式 ── */
@media (max-width: 640px) {
  .ly-result-page { padding: 0 8px 40px; }
  .ly-hero-card-light { padding: 24px 16px 20px; }
  .ly-hero-name { font-size: 26px; letter-spacing: 6px; }
  .ly-trigram { font-size: 28px; }
  .ly-hero-tags { gap: 8px; }
  .ly-hero-tag { padding: 4px 10px; font-size: 11px; }
  .ly-hero-guaci { font-size: 12px; }
  .ly-hero-card-light::before { height: 2px; }
  .ly-analysis-grid { grid-template-columns: 1fr; }
  .ly-guaci-card, .ly-paipan-wrap, .ly-analysis-card, .ly-fushen-section { padding: 14px 10px; }
  .ly-ai-card { padding: 14px 0; }
  .ly-bottom-bar { flex-direction: column; gap: 6px; }
  .ly-bottom-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ly-section { opacity: 1; transform: none; transition: none; }
  .ly-ai-card::before { animation: none; }
  .ly-hero-card-light::before { animation: none; }
  .ly-hero-name { animation: none; }
  .ly-hero-glow { animation: none; }
}
