/* ============================================================
   阿轩八字 · 纯前端三剑客重构
   严格还原线上 TDesign 风格 UI
   ============================================================ */

/* ---------- TDesign 浅色主题变量 ---------- */
:root,
.td-theme-light {
  --td-bg-color-page: #f3f3f3;
  --td-bg-color-container: #ffffff;
  --td-bg-color-container-active: #f5f5f5;
  --td-bg-color-secondarycontainer: #f5f5f5;
  --td-bg-color-component: #f5f5f5;
  --td-bg-color-component-disabled: #f5f5f5;
  --td-text-color-primary: #1a1a1a;
  --td-text-color-secondary: #888888;
  --td-text-color-placeholder: #bbbbbb;
  --td-text-color-disabled: #c0c0c0;
  --td-text-color-anti: #ffffff;
  --td-brand-color: #0052d9;
  --td-brand-color-light: #366ef4;
  --td-brand-color-focus: #e6f0ff;
  --td-success-color: #2ba471;
  --td-success-color-light: #e8f7f0;
  --td-warning-color: #e37318;
  --td-warning-color-light: #fef5e5;
  --td-error-color: #d54941;
  --td-error-color-light: #fdecee;
  --td-component-stroke: #e7e7e7;
  --td-radius-default: 9px;
  --td-radius-large: 12px;
  --td-radius-small: 6px;
  --td-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.03);
  --td-shadow-2: 0 3px 8px rgba(0, 0, 0, 0.04), 0 6px 14px rgba(0, 0, 0, 0.04);

  /* 页面印章渐变 */
  --yx-app-seal-a: rgba(0, 82, 217, 0.07);
  --yx-app-seal-b: rgba(54, 110, 244, 0.05);
  --yx-app-seal-c: rgba(242, 243, 255, 0.95);

  /* 五行颜色（与线上对齐） */
  --yx-element-0: #19be6b;
  --yx-element-1: #e85d54;
  --yx-element-2: #8d6e63;
  --yx-element-3: #f0a020;
  --yx-element-4: #3b82f6;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--td-text-color-primary);
  background-color: var(--td-bg-color-page);
  background-image:
    radial-gradient(42% 52% at 10% 16%, var(--yx-app-seal-a) 0%, transparent 68%),
    radial-gradient(40% 48% at 90% 84%, var(--yx-app-seal-b) 0%, transparent 66%);
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
}

.hidden {
  display: none !important;
}

#app {
  width: 100%;
  min-height: 100vh;
}

.yx-app-body {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------- 通用 ---------- */
.muted { color: var(--td-text-color-secondary); }
.center { text-align: center; }
.fw-b { font-weight: 700; }
.fw-n { font-weight: 400; }

/* 五行文字色与背景色 */
.wx-jin { color: var(--yx-element-3); }
.wx-mu { color: var(--yx-element-0); }
.wx-shui { color: var(--yx-element-4); }
.wx-huo { color: var(--yx-element-1); }
.wx-tu { color: var(--yx-element-2); }
.wx-jin-bg { background: var(--yx-element-3); }
.wx-mu-bg { background: var(--yx-element-0); }
.wx-shui-bg { background: var(--yx-element-4); }
.wx-huo-bg { background: var(--yx-element-1); }
.wx-tu-bg { background: var(--yx-element-2); }

/* ---------- 首页品牌区 ---------- */
.yx-home-portal-brand {
  margin-bottom: 14px;
}
.yx-home-portal-brand_main {
  padding: 6px 4px;
}
.yx-home-portal-brand_mark {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--td-brand-color);
  line-height: 1.2;
}
.yx-home-portal-brand_line {
  font-size: 14px;
  color: var(--td-text-color-secondary);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ---------- 随喜赞助条 ---------- */
.yx-home-tips {
  margin-bottom: 16px;
}
.yx-home-tips-rail {
  display: flex;
  align-items: center;
  background: var(--td-bg-color-container);
  border-radius: var(--td-radius-large);
  padding: 10px 14px;
  box-shadow: var(--td-shadow-1);
  cursor: pointer;
}
.yx-home-tips-rail_seal {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.yx-home-tips-rail_seal_mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9f43, #ff7e34);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}
.yx-home-tips-rail--raise .yx-home-tips-rail_seal_mark {
  background: linear-gradient(135deg, #ff9f43, #ff7e34);
}
.yx-home-tips-rail_seal_label {
  font-size: 15px;
  font-weight: 700;
  color: #ff7e34;
}
.yx-home-tips-rail_divider {
  width: 1px;
  height: 18px;
  background: var(--td-component-stroke);
  margin: 0 12px;
  flex-shrink: 0;
}
.yx-home-tips-rail_viewport {
  flex: 1;
  overflow: hidden;
}
.yx-home-tips-rail_text {
  font-size: 14px;
  color: var(--td-text-color-secondary);
  white-space: nowrap;
}
.yx-home-tips-rail_more {
  flex-shrink: 0;
  color: var(--td-text-color-placeholder);
  font-size: 18px;
  margin-left: 8px;
}

/* ---------- 公告提示 cue ---------- */
.yx-home-portal-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.yx-home-portal-cue_text {
  font-size: 13px;
  color: var(--td-text-color-secondary);
}
.yx-home-portal-cue_rule {
  flex: 1;
  height: 1px;
  background: var(--td-component-stroke);
}

/* ---------- 门户入口卡片 ---------- */
.yx-home-portal-entries {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.yx-home-portal-entries_item {
  background: var(--td-bg-color-container);
  border-radius: var(--td-radius-large);
  padding: 16px;
  box-shadow: var(--td-shadow-1);
  cursor: pointer;
  border: 1px solid transparent;
}
/* 相关说明 */
.yx-home-portal-entries_item--brand {
  background: var(--td-bg-color-container);
  border-color: var(--td-component-stroke);
}
/* 功能公告 */
.yx-home-portal-entries_item--success {
  background: var(--td-success-color-light);
  border-color: rgba(43, 164, 113, 0.2);
}
/* 规划中 */
.yx-home-portal-entries_item--warning {
  background: var(--td-warning-color-light);
  border-color: rgba(227, 115, 24, 0.2);
}
/* 警示 */
.yx-home-portal-entries_item--error {
  background: var(--td-error-color-light);
  border-color: rgba(213, 73, 65, 0.15);
}

.entries-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.entries-title-main {
  font-size: 17px;
  font-weight: 800;
  color: var(--td-text-color-primary);
}
.entries-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.entries-badge--success {
  background: var(--td-success-color);
  color: #fff;
}
.entries-badge--warning {
  background: var(--td-warning-color);
  color: #fff;
}
.entries-badge--brand {
  background: var(--td-bg-color-component);
  color: var(--td-text-color-secondary);
  border: 1px solid var(--td-component-stroke);
}

.entries-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid currentColor;
}
.chip--success {
  color: var(--td-success-color);
  background: rgba(43, 164, 113, 0.08);
  border-color: rgba(43, 164, 113, 0.25);
}
.chip--warning {
  color: var(--td-warning-color);
  background: rgba(227, 115, 24, 0.08);
  border-color: rgba(227, 115, 24, 0.25);
}
.chip--primary {
  color: var(--td-brand-color);
  background: var(--td-brand-color-focus);
  border-color: rgba(0, 82, 217, 0.18);
}

.entries-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--td-text-color-secondary);
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--td-brand-color-focus);
  border-radius: var(--td-radius-default);
  margin-bottom: 12px;
}
.notice-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--td-brand-color);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice-text {
  font-size: 14px;
  color: var(--td-brand-color);
  font-weight: 600;
}

/* ---------- 公告倒计时条 ---------- */
.yx-home-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--td-bg-color-container);
  border-radius: var(--td-radius-large);
  padding: 16px;
  box-shadow: var(--td-shadow-1);
  margin-bottom: 14px;
}
.yx-home-form-head_accent {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--td-brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-brand-color);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.yx-home-form-head_title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.yx-home-form-head_sub {
  font-size: 15px;
  color: var(--td-brand-color);
}

/* ---------- 表单卡片 ---------- */
.yx-home-form-wrap {
  background: var(--td-bg-color-container);
  border-radius: var(--td-radius-large);
  padding: 16px;
  box-shadow: var(--td-shadow-1);
  margin-bottom: 16px;
}
.yx-home-form-field {
  padding: 14px 0;
  border-bottom: 1px solid var(--td-component-stroke);
}
.yx-home-form-field:last-of-type {
  border-bottom: none;
}
.yx-home-form-field_label {
  font-size: 14px;
  color: var(--td-text-color-primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.yx-home-form-field_control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yx-home-form-field_control--row {
  flex-wrap: wrap;
}
.yx-home-form-field_control--input {
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  background: var(--td-bg-color-component);
  border-radius: var(--td-radius-default);
  color: var(--td-text-color-secondary);
  font-size: 14px;
}
.yx-home-form-field_control--input .value {
  color: var(--td-text-color-primary);
}
.yx-home-form-field_control--input .placeholder {
  color: var(--td-text-color-placeholder);
}
.yx-home-form-field_control--input .arrow {
  color: var(--td-text-color-placeholder);
  font-size: 16px;
}

input[type="text"].yx-input,
input[type="datetime-local"].yx-input,
select.yx-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--td-text-color-primary);
  outline: none;
  padding: 0;
}
input[type="text"].yx-input::placeholder,
input[type="datetime-local"].yx-input::placeholder,
select.yx-input::placeholder {
  color: var(--td-text-color-placeholder);
}

/* 分段选择 */
.yx-segment {
  display: flex;
  background: var(--td-bg-color-component);
  border-radius: var(--td-radius-small);
  padding: 3px;
  width: 100%;
}
.yx-segment-item {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 4px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--td-text-color-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.yx-segment-item.active {
  background: #fff;
  color: var(--td-brand-color);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.yx-segment-item .sub {
  display: block;
  font-size: 11px;
  color: var(--td-text-color-placeholder);
  margin-top: 2px;
  font-weight: 400;
}
.yx-segment-item.active .sub {
  color: var(--td-brand-color-light);
}

/* 单选按钮组 */
.yx-radio-group {
  display: flex;
  gap: 16px;
}
.yx-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--td-text-color-primary);
  cursor: pointer;
}
.yx-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--td-component-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yx-radio.active .yx-radio-dot {
  border-color: var(--td-brand-color);
}
.yx-radio.active .yx-radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--td-brand-color);
}

/* 开关 */
.yx-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.yx-switch-label {
  font-size: 15px;
  color: var(--td-text-color-primary);
  font-weight: 600;
}
.yx-switch-desc {
  font-size: 13px;
  color: var(--td-text-color-secondary);
  margin-top: 2px;
}
.yx-switch {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--td-component-stroke);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.yx-switch.active {
  background: var(--td-brand-color);
}
.yx-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.yx-switch.active .yx-switch-knob {
  left: 24px;
}

/* 四柱下拉 */
.pillar-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pillar-selects select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--td-component-stroke);
  border-radius: var(--td-radius-small);
  background: var(--td-bg-color-component);
  font-size: 14px;
  color: var(--td-text-color-primary);
  outline: none;
}

/* 主要按钮 */
.yx-btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--td-radius-large);
  background: var(--td-brand-color);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  margin-top: 8px;
}
.yx-btn-primary:active {
  background: var(--td-brand-color-light);
}

/* ---------- 即时起局卡片 ---------- */
.yx-live {
  background: var(--td-bg-color-container);
  border-radius: var(--td-radius-large);
  padding: 16px;
  box-shadow: var(--td-shadow-1);
  margin-bottom: 16px;
}
.yx-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.yx-live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
}
.yx-live-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--td-brand-color);
}
.yx-live-sub {
  font-size: 13px;
  color: var(--td-text-color-secondary);
  margin-bottom: 16px;
}
.yx-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--td-bg-color-component);
  font-size: 13px;
  color: var(--td-text-color-secondary);
}
.yx-live-clock_dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--td-success-color);
}
.yx-live-clock_hm {
  color: var(--td-text-color-primary);
  font-weight: 700;
}

.yx-birthmap {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-text-color-placeholder);
  font-size: 14px;
  margin-bottom: 14px;
}
.yx-birthmap-placeholder {
  text-align: center;
}

.yx-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.yx-pillar-box {
  background: var(--td-bg-color-component);
  border-radius: var(--td-radius-default);
  padding: 12px 8px;
  text-align: center;
}
.yx-pillar-box_label {
  font-size: 13px;
  color: var(--td-text-color-secondary);
  margin-bottom: 6px;
}
.yx-pillar-box_value {
  font-size: 18px;
  font-weight: 700;
  color: var(--td-text-color-primary);
  letter-spacing: 1px;
}
.yx-pillar-box_value.dash {
  color: var(--td-text-color-placeholder);
}

.yx-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.yx-live-meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--td-text-color-secondary);
}
.yx-live-meta span {
  color: var(--td-text-color-primary);
}
.yx-live-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: var(--td-radius-default);
  background: var(--td-brand-color);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.yx-live-btn:active {
  background: var(--td-brand-color-light);
}

/* ---------- 页脚 ---------- */
.yx-copyright {
  text-align: center;
  padding: 20px 0 28px;
  font-size: 13px;
  color: var(--td-text-color-secondary);
}
.yx-copyright-row {
  margin-bottom: 4px;
}
.yx-copyright_link {
  color: var(--td-brand-color);
  text-decoration: none;
  font-weight: 600;
}
.yx-copyright_muted {
  color: var(--td-text-color-placeholder);
}

/* ---------- 详情页 ---------- */
.yx-detail {
  padding: 0;
}
.yx-detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--td-bg-color-container);
  box-shadow: var(--td-shadow-1);
}
.yx-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid var(--td-component-stroke);
}
.yx-detail-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--td-text-color-primary);
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
}
.yx-detail-title {
  font-size: 17px;
  font-weight: 700;
}

.yx-detail-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.yx-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--td-brand-color-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.yx-detail-info {
  flex: 1;
  min-width: 0;
}
.yx-detail-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yx-detail-name .eye {
  color: var(--td-text-color-placeholder);
  cursor: pointer;
  font-size: 14px;
}
.yx-detail-meta {
  font-size: 13px;
  color: var(--td-text-color-secondary);
  line-height: 1.7;
}
.yx-detail-type {
  color: var(--td-brand-color);
  font-weight: 700;
  margin-left: 4px;
}

/* 子标签 */
.yx-subsection {
  display: flex;
  background: var(--td-bg-color-container);
  border-bottom: 1px solid var(--td-component-stroke);
}
.yx-subsection-item {
  flex: 1;
  padding: 12px 4px;
  text-align: center;
  font-size: 14px;
  color: var(--td-text-color-secondary);
  cursor: pointer;
  position: relative;
  border: none;
  background: transparent;
}
.yx-subsection-item.active {
  color: var(--td-brand-color);
  font-weight: 700;
}
.yx-subsection-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--td-brand-color);
}

.yx-detail-body {
  padding: 12px;
}

/* 卡片 */
.yx-card {
  background: var(--td-bg-color-container);
  border-radius: var(--td-radius-large);
  padding: 16px;
  box-shadow: var(--td-shadow-1);
  margin-bottom: 12px;
}
.yx-card-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}
.yx-card-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--td-brand-color);
  margin-right: 8px;
}

/* 信息网格 */
.yx-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.yx-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  background: var(--td-bg-color-component);
  border-radius: var(--td-radius-small);
}
.yx-info-item .k {
  font-size: 12px;
  color: var(--td-text-color-secondary);
}
.yx-info-item .v {
  font-size: 14px;
  color: var(--td-text-color-primary);
  font-weight: 600;
}

/* 五行条 */
.yx-element-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.yx-element-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yx-element-bar_label {
  width: 32px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.yx-element-bar_track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--td-bg-color-component);
  overflow: hidden;
}
.yx-element-bar_fill {
  height: 100%;
  border-radius: 4px;
}
.yx-element-bar_count {
  width: 30px;
  font-size: 12px;
  color: var(--td-text-color-secondary);
  text-align: right;
}

/* 四柱表 */
.yx-pillar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.yx-pillar-table th,
.yx-pillar-table td {
  padding: 10px 4px;
  text-align: center;
  border-bottom: 1px solid var(--td-component-stroke);
}
.yx-pillar-table th {
  color: var(--td-text-color-secondary);
  font-weight: 600;
  background: var(--td-bg-color-component);
}
.yx-pillar-table tr:nth-child(even) {
  background: var(--td-bg-color-component);
}
.yx-pillar-table .label {
  color: var(--td-text-color-secondary);
  font-weight: 600;
}
.yx-pillar-table .pillar {
  font-size: 18px;
  font-weight: 700;
}
.yx-pillar-table .sub {
  font-size: 12px;
  color: var(--td-text-color-secondary);
}

/* 大运表 */
.yx-yun-table-wrap {
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
}
.yx-yun-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 12px;
}
.yx-yun-table th,
.yx-yun-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--td-component-stroke);
  white-space: nowrap;
}
.yx-yun-table th {
  color: var(--td-text-color-secondary);
  font-weight: 600;
  background: var(--td-bg-color-component);
}
.yx-yun-table .age {
  font-size: 11px;
  color: var(--td-text-color-secondary);
}

/* 关系/古籍卡片 */
.yx-mini-card {
  background: var(--td-bg-color-component);
  border-radius: var(--td-radius-default);
  padding: 12px;
  margin-top: 12px;
}
.yx-mini-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--td-text-color-primary);
}

/* 在线批命 */
.yx-prediction-result {
  padding: 16px;
  background: var(--td-bg-color-component);
  border-radius: var(--td-radius-default);
  min-height: 120px;
}

/* ---------- Toast / Loading ---------- */
.yx-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.yx-toast.show { opacity: 1; }

.yx-loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.yx-loading-mask.show { opacity: 1; pointer-events: auto; }
.yx-loading-mask .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--td-component-stroke);
  border-top-color: var(--td-brand-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
