/* ========================================
   书法算命 · 深色主题（与八卦统一风格）
   玄墨金辉 · 古典美学
   ======================================== */

/* === 深色卡片容器（与 .bagua-card 风格统一） === */
.shufa-dark-card {
  background: linear-gradient(160deg, #0d0d1f 0%, #14142a 50%, #0e0e20 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #e8d5b7;
  position: relative;
  overflow: hidden;
}

.shufa-dark-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(120, 80, 20, 0.12), transparent 60%),
    radial-gradient(ellipse at 75% 85%, rgba(80, 20, 20, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.shufa-dark-card > * {
  position: relative;
  z-index: 1;
}

.shufa-dark-card h3 {
  color: #f0d68a !important;
  text-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.shufa-dark-card .card-subtitle {
  color: #8a7a5a !important;
  font-size: 15px !important;
}

.shufa-dark-card p:not(.card-subtitle) {
  color: #c8b898 !important;
  font-size: 15px !important;
  line-height: 2 !important;
}

.shufa-dark-card .bg-deco-char {
  color: rgba(201, 168, 76, 0.06) !important;
}

/* === 骨/气/韵 三格介绍 === */
.shufa-feature-grid {
  gap: 16px;
}

.shufa-feature-cell {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.shufa-feature-cell:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.06);
  transform: translateY(-2px);
}

.shufa-feature-char {
  font-family: var(--font-title);
  font-size: 48px;
  color: #f0d68a;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.shufa-feature-cell h4 {
  font-family: var(--font-title);
  font-size: 18px;
  margin: 0 0 8px;
  color: #e8d5b7;
  letter-spacing: 2px;
}

.shufa-feature-cell p {
  font-size: 13px;
  color: #b8a87a !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* === 引导提示 === */
.shufa-guide-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 6px;
  color: #f0d68a;
  font-family: var(--font-deco);
  font-size: 14px;
  letter-spacing: 2px;
  animation: shufaHintPulse 2.4s ease-in-out infinite;
  transition: all 0.4s ease;
}

.shufa-guide-hint.is-selected {
  background: linear-gradient(90deg, rgba(74, 144, 99, 0.15), rgba(74, 144, 99, 0.05));
  border-color: rgba(120, 200, 140, 0.4);
  color: #d8e8c8;
  animation: none;
}

.shufa-guide-hint.shake {
  animation: shufaShake 0.5s ease-in-out;
  background: linear-gradient(90deg, rgba(200, 80, 60, 0.2), rgba(200, 80, 60, 0.05));
  border-color: rgba(240, 120, 100, 0.5);
  color: #ffd0c0;
}

.shufa-guide-icon {
  display: inline-block;
  color: #c9a84c;
  font-size: 16px;
}

.shufa-guide-hint.is-selected .shufa-guide-icon {
  color: #78c890;
}

.shufa-guide-text {
  line-height: 1.6;
}

@keyframes shufaHintPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(201, 168, 76, 0); }
  50% { box-shadow: 0 0 16px rgba(201, 168, 76, 0.25); }
}

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

/* === 书写面板 === */
.shufa-panel {
  margin-top: 28px;
  background: linear-gradient(160deg, rgba(20, 20, 40, 0.6), rgba(14, 14, 32, 0.6));
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

/* 问事主题选择栏（深色模式覆盖） */
.shufa-panel .bagua-topic-bar {
  margin: 0 0 20px;
}

.shufa-panel .bagua-topic-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: #b8a87a;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 2px;
}

.shufa-panel .bagua-topic-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.5);
  color: #e8d5b7;
}

.shufa-panel .bagua-topic-btn.active {
  background: linear-gradient(135deg, #c9a84c, #a08030);
  color: #1a1a2e;
  border-color: #c9a84c;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.35);
}

/* 工具栏 */
.shufa-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.shufa-mode-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 4px;
}

.shufa-mode-btn {
  padding: 8px 18px;
  font-family: var(--font-deco);
  font-size: 14px;
  color: #b8a87a;
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.shufa-mode-btn:hover {
  color: #e8d5b7;
  background: rgba(201, 168, 76, 0.08);
}

.shufa-mode-btn.active {
  background: linear-gradient(135deg, #c9a84c, #a08030);
  color: #1a1a2e;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
}

.shufa-action-btns {
  display: flex;
  gap: 10px;
}

.shufa-btn {
  padding: 10px 24px;
  font-family: var(--font-deco);
  font-size: 14px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 3px;
  border: 1px solid transparent;
}

.shufa-btn-clear {
  background: rgba(255, 255, 255, 0.04);
  color: #b8a87a;
  border-color: rgba(201, 168, 76, 0.3);
}

.shufa-btn-clear:hover {
  border-color: #c9a84c;
  color: #f0d68a;
  background: rgba(201, 168, 76, 0.08);
}

.shufa-btn-analyze {
  background: linear-gradient(135deg, #c9a84c, #a08030);
  color: #1a1a2e;
  font-weight: 600;
  border-color: #c9a84c;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.shufa-btn-analyze:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5);
}

.shufa-btn-analyze:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(184, 168, 122, 0.4);
  border-color: rgba(201, 168, 76, 0.2);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.shufa-btn-analyze:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Canvas 容器（深色版：米黄宣纸底 + 朱砂格线） */
.shufa-canvas-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  background:
    linear-gradient(145deg, #f8f2e4 0%, #efe6d2 100%);
  border: 2px solid rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(168, 32, 26, 0.03);
  overflow: hidden;
}

/* SVG 米字格 */
.shufa-canvas-wrap .mz-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shufa-canvas-wrap .mz-grid line {
  stroke: rgba(168, 32, 26, 0.45);
  stroke-width: 1;
  stroke-linecap: square;
}

#shufaCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  position: relative;
  z-index: 2;
  touch-action: none;
}

/* 提示文字 */
.shufa-hint {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-deco);
  font-size: 13px;
  color: #8a7a5a;
  letter-spacing: 2px;
}

/* === 分析结果（深色版） === */
.shufa-result {
  margin-top: 32px;
  display: none;
  animation: shufaFadeIn 0.6s ease;
}

@keyframes shufaFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.shufa-result.show {
  display: block;
}

.shufa-result-card {
  background: linear-gradient(160deg, #16162a 0%, #1c1c36 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.shufa-result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 70%);
  pointer-events: none;
}

/* 相名展示 */
.shufa-phase-name {
  text-align: center;
  margin-bottom: 24px;
}

.shufa-phase-label {
  font-family: var(--font-deco);
  font-size: 14px;
  color: #8a7a5a;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

.shufa-phase-title {
  font-family: var(--font-title);
  font-size: 56px;
  color: #f0d68a;
  letter-spacing: 8px;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

/* 印章装饰 */
.shufa-seal {
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  background: #a8201a;
  color: #fff8e8;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  border-radius: 4px;
  margin-left: 12px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(168, 32, 26, 0.4);
}

/* 四维特征雷达 */
.shufa-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.shufa-feature-item {
  text-align: center;
}

.shufa-feature-label {
  font-family: var(--font-deco);
  font-size: 12px;
  color: #8a7a5a;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.shufa-feature-value {
  font-family: var(--font-title);
  font-size: 22px;
  color: #f0d68a;
  letter-spacing: 2px;
}

/* 特征描述 */
.shufa-feature-desc {
  text-align: center;
  font-family: var(--font-deco);
  font-size: 14px;
  color: #c9a84c;
  letter-spacing: 3px;
  margin: 0 auto 20px;
  padding: 8px 16px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  display: inline-block;
}

/* 性格描述 */
.shufa-desc-wrap {
  position: relative;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #c9a84c;
  border-radius: 0 4px 4px 0;
  margin-bottom: 20px;
}

.shufa-desc-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: #f0d68a;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.shufa-desc-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: #d8c8a8;
  line-height: 2;
  letter-spacing: 1px;
}

.shufa-fortune-wrap .shufa-desc-text {
  border-left: 3px solid #c9a84c !important;
  background: rgba(201, 168, 76, 0.06) !important;
  color: #e8d5b7 !important;
}

/* 数据细节 */
.shufa-detail {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--font-deco);
  font-size: 12px;
  color: #8a7a5a;
}

.shufa-detail span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  letter-spacing: 1px;
}

/* 重新测算按钮 */
.shufa-retry {
  text-align: center;
  margin-top: 24px;
}

.shufa-retry .shufa-btn-clear {
  padding: 10px 32px;
  font-size: 15px;
}

/* === 上传图片模式（深色版） === */
.shufa-upload-area {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 300px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shufa-upload-area:hover {
  border-color: #c9a84c;
  background: rgba(201, 168, 76, 0.05);
}

.shufa-upload-area.has-image {
  border-style: solid;
  border-color: rgba(201, 168, 76, 0.4);
  cursor: default;
}

.shufa-upload-icon {
  font-family: var(--font-title);
  font-size: 64px;
  color: rgba(201, 168, 76, 0.4);
  margin-bottom: 16px;
}

.shufa-upload-text {
  font-family: var(--font-deco);
  font-size: 15px;
  color: #b8a87a;
  letter-spacing: 2px;
}

.shufa-upload-hint {
  font-family: var(--font-deco);
  font-size: 12px;
  color: #8a7a5a;
  margin-top: 8px;
  letter-spacing: 1px;
}

#shufaUploadImg {
  max-width: 100%;
  max-height: 400px;
  display: none;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#shufaUploadInput {
  display: none;
}

/* === 响应式 === */
@media (max-width: 600px) {
  .shufa-panel {
    padding: 20px 16px;
  }

  .shufa-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shufa-mode-switch,
  .shufa-action-btns {
    justify-content: center;
  }

  .shufa-action-btns .shufa-btn-analyze {
    letter-spacing: 1px;
  }

  .shufa-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .shufa-phase-title {
    font-size: 40px;
  }

  .shufa-result-card {
    padding: 24px 18px;
  }

  .shufa-desc-wrap {
    padding: 16px;
  }

  .shufa-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shufa-canvas-wrap {
    width: 300px;
    height: 300px;
  }
}

/* ========================================
   测字问运 · 深色主题
   一字知天机 · 风格统一
   ======================================== */

/* === 测字深色卡片容器 === */
.cezi-dark-card {
  background: linear-gradient(160deg, #0d0d1f 0%, #14142a 50%, #0e0e20 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #e8d5b7;
  position: relative;
  overflow: hidden;
}

.cezi-dark-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(120, 80, 20, 0.12), transparent 60%),
    radial-gradient(ellipse at 75% 85%, rgba(80, 20, 20, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cezi-dark-card > * {
  position: relative;
  z-index: 1;
}

.cezi-dark-card h3 {
  color: #f0d68a !important;
  text-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.cezi-dark-card .card-subtitle {
  color: #8a7a5a !important;
  font-size: 15px !important;
}

.cezi-dark-card p:not(.card-subtitle) {
  color: #c8b898 !important;
  font-size: 15px !important;
  line-height: 2 !important;
}

.cezi-dark-card .bg-deco-char {
  color: rgba(201, 168, 76, 0.06) !important;
}

/* === 引导提示 === */
.cezi-guide-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  margin-bottom: 16px;
  animation: ceziPulse 2s ease-in-out infinite;
}

.cezi-guide-icon {
  color: #c9a84c;
  font-size: 18px;
}

.cezi-guide-text {
  color: #b8a87a;
  font-size: 14px;
  letter-spacing: 1px;
}

@keyframes ceziPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === 字输入区 === */
.cezi-input-wrap {
  text-align: center;
  margin: 24px 0 16px;
}

.cezi-char-input {
  width: 180px;
  height: 180px;
  font-family: var(--font-title);
  font-size: 72px;
  color: #f0d68a;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  caret-color: #c9a84c;
}

.cezi-char-input:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.05);
}

.cezi-char-input::placeholder {
  color: rgba(201, 168, 76, 0.4);
  font-family: var(--font-deco);
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 2px;
  vertical-align: middle;
  line-height: 1.4;
}

.cezi-char-hint {
  margin-top: 10px;
  color: #8a7a5a;
  font-size: 13px;
  letter-spacing: 1px;
}

/* === 常用字标签 === */
.cezi-char-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.cezi-char-tag {
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: 18px;
  color: #b8a87a;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cezi-char-tag:hover {
  color: #f0d68a;
  border-color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-2px);
}

.cezi-char-tag.selected {
  background: linear-gradient(135deg, #c9a84c, #a08030);
  color: #1a1a2e;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

/* === 附加信息 === */
.cezi-extra-info {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.cezi-extra-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cezi-extra-item label {
  font-family: var(--font-deco);
  font-size: 14px;
  color: #b8a87a;
  letter-spacing: 1px;
}

.cezi-extra-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-deco);
  font-size: 14px;
  color: #e8d5b7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  outline: none;
  transition: all 0.3s ease;
}

.cezi-extra-input:focus {
  border-color: #c9a84c;
  background: rgba(201, 168, 76, 0.05);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
}

.cezi-extra-input::placeholder {
  color: rgba(138, 122, 90, 0.6);
}

/* 生辰日期输入框：点击任意位置都弹出日期选择器 */
.cezi-birthday-input {
  cursor: pointer;
  position: relative;
}

/* 强制显示日历图标（Chromium/Edge），点击任意位置触发 picker */
.cezi-birthday-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.cezi-birthday-input::-moz-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* === 操作按钮 === */
.cezi-action-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* === 结果区域 === */
.cezi-result {
  display: none;
  animation: ceziFadeIn 0.6s ease;
}

.cezi-result.show {
  display: block;
}

@keyframes ceziFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cezi-result-card {
  background: linear-gradient(160deg, #16162a 0%, #1c1c36 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cezi-result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 70%);
  pointer-events: none;
}

/* === 主字展示 === */
.cezi-char-display {
  text-align: center;
  margin-bottom: 28px;
}

.cezi-char-big {
  font-family: var(--font-title);
  font-size: 80px;
  color: #f0d68a;
  text-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  line-height: 1;
  margin-bottom: 16px;
}

.cezi-char-level {
  display: inline-block;
  padding: 6px 24px;
  font-family: var(--font-deco);
  font-size: 18px;
  letter-spacing: 4px;
  border-radius: 20px;
  border: 1px solid;
}

.cezi-char-level.大吉 {
  background: linear-gradient(135deg, #c9a84c, #a08030);
  color: #1a1a2e;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}

.cezi-char-level.吉 {
  background: rgba(201, 168, 76, 0.15);
  color: #c9a84c;
  border-color: #c9a84c;
}

.cezi-char-level.平 {
  background: rgba(150, 150, 150, 0.15);
  color: #b8b8b8;
  border-color: rgba(150, 150, 150, 0.4);
}

.cezi-char-level.凶 {
  background: rgba(200, 80, 80, 0.15);
  color: #e88a8a;
  border-color: rgba(200, 80, 80, 0.4);
}

.cezi-char-level.大凶 {
  background: linear-gradient(135deg, #8b3a3a, #5a1a1a);
  color: #f0c0c0;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(200, 80, 80, 0.4);
}

/* === 断语 === */
.cezi-desc-wrap {
  background: rgba(201, 168, 76, 0.06);
  border-left: 3px solid #c9a84c;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}

.cezi-desc-title {
  font-family: var(--font-deco);
  font-size: 14px;
  color: #8a7a5a;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.cezi-desc-text {
  color: #e8d5b7;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 1px;
}

/* === 五维分析 === */
.cezi-dims-wrap {
  margin-bottom: 24px;
}

.cezi-dims-title {
  font-family: var(--font-deco);
  font-size: 14px;
  color: #8a7a5a;
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-align: center;
}

.cezi-dims-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.cezi-dim-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.3s ease;
}

.cezi-dim-item:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.05);
}

.cezi-dim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cezi-dim-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-deco);
  font-size: 14px;
  color: #b8a87a;
  letter-spacing: 1px;
}

.cezi-dim-icon {
  font-size: 16px;
}

.cezi-dim-level {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.cezi-dim-level.吉 {
  background: rgba(201, 168, 76, 0.2);
  color: #c9a84c;
}

.cezi-dim-level.平 {
  background: rgba(150, 150, 150, 0.2);
  color: #b8b8b8;
}

.cezi-dim-level.凶 {
  background: rgba(200, 80, 80, 0.2);
  color: #e88a8a;
}

.cezi-dim-desc {
  color: #c8b898;
  font-size: 13px;
  line-height: 1.8;
}

/* === AI 版：五维丰富内容（推演/断语/建议三段式） === */
.cezi-dim-item-rich {
  grid-column: 1 / -1;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(201,168,76,0.04));
}

.cezi-dim-block {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(28, 24, 20, 0.35);
  border-radius: 6px;
  border-left: 3px solid rgba(201,168,76,0.4);
}

.cezi-dim-block-title {
  font-family: var(--font-deco);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 6px;
}

.cezi-dim-block-content {
  font-size: 14px;
  line-height: 1.95;
  color: #c8b898;
  word-break: break-word;
}

.cezi-dim-block-content li {
  margin: 4px 0;
}

/* 加载动画 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 大/小 吉/凶 等级标签颜色兼容 */
.cezi-dim-level.大吉,
.cezi-char-level.大吉 {
  background: rgba(201, 168, 76, 0.28);
  color: #f1cf7b;
}

.cezi-dim-level.大凶,
.cezi-char-level.大凶 {
  background: rgba(200, 60, 60, 0.28);
  color: #ff9a9a;
}

/* === 字义解析 === */
.cezi-meaning-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.cezi-meaning-text {
  color: #b8a87a;
  font-size: 14px;
  line-height: 2;
  margin: 0;
}

/* === 重试按钮 === */
.cezi-retry {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

/* === 响应式 === */
@media (max-width: 600px) {
  .cezi-extra-info {
    flex-direction: column;
    gap: 16px;
  }

  .cezi-char-input {
    width: 140px;
    height: 140px;
    font-size: 56px;
  }

  .cezi-char-input::placeholder {
    font-size: 16px;
  }

  .cezi-char-big {
    font-size: 64px;
  }

  .cezi-dims-list {
    grid-template-columns: 1fr;
  }

  .cezi-result-card {
    padding: 24px 18px;
  }
}
