@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Cinzel:wght@400;700&family=Ma+Shan+Zheng&display=swap');

:root {
  --bg: #06060e; --bg2: #0a0a16; --card: #0d0d1a; --card-hover: #111128;
  --border: #1a1a30; --border-gold: rgba(196,162,101,0.15);
  --gold: #c4a265; --gold-bright: #d4b87a; --gold-dim: #7a6a3a;
  --cyan: #2dd4bf; --cyan-dim: #1a7a6e;
  --red: #e05252; --red-dim: #8a2a2a; --blue: #5b8dee; --purple: #9b7ed8;
  --text: #e0dcd4; --text-dim: #706c64; --text-muted: #3a3830;
}

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

body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300; min-height: 100vh; overflow-x: hidden; line-height: 1.6;
}

/* ===== 背景 + 八卦暗纹 ===== */

/* ===== 头部 ===== */
header { text-align: center; padding: 100px 20px 60px; position: relative; }
header::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.logo-cn { font-family: 'Ma Shan Zheng', cursive; font-size: 1.1em; color: var(--gold); letter-spacing: 12px; margin-bottom: 4px; opacity: 0.6; }
.logo-en { font-family: 'Cinzel', serif; font-weight: 700; font-size: 3em; letter-spacing: 10px; background: linear-gradient(135deg, var(--gold-dim), var(--gold-bright), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.tagline { font-family: 'Cinzel', serif; font-weight: 400; font-size: 0.8em; color: var(--text-dim); letter-spacing: 4px; }
.bagua-line { display: flex; justify-content: center; gap: 8px; margin: 20px 0; opacity: 0.12; font-size: 1.2em; color: var(--gold); letter-spacing: 6px; }

/* ===== Tab ===== */
.tabs { display: flex; justify-content: center; gap: 0; margin: 40px auto 0; max-width: 560px; }
.tab { flex: 1; padding: 18px 20px; text-align: center; cursor: pointer; color: var(--text-dim); font-size: 0.9em; letter-spacing: 2px; transition: all 0.4s; border: none; background: none; font-family: 'Cinzel', serif; font-weight: 400; position: relative; }
.tab::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--gold); transition: all 0.4s; transform: translateX(-50%); }
.tab:hover { color: var(--text); } .tab.active { color: var(--gold); } .tab.active::after { width: 60%; }

/* ===== 容器 ===== */
.container { max-width: 960px; margin: 0 auto; padding: 48px 24px 100px; }
.panel { display: none; } .panel.active { display: block; animation: fadeUp 0.6s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 表单 ===== */
.form-card { background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03)); border: 1px solid var(--border-gold); border-radius: 20px; padding: 56px 48px; margin-bottom: 56px; position: relative; overflow: hidden; }
.form-card::before { content: '☰'; position: absolute; top: -20px; right: -10px; font-size: 120px; opacity: 0.025; color: var(--gold); }
.form-card h2 { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); font-size: 1.4em; letter-spacing: 3px; margin-bottom: 8px; }
.form-card .desc { color: var(--text-dim); font-size: 0.88em; margin-bottom: 32px; line-height: 1.7; }
.form-card .intro { font-size: 0.82em; color: var(--text-muted); font-style: italic; margin-bottom: 28px; line-height: 1.6; padding-left: 16px; border-left: 2px solid var(--gold-dim); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: 'Cinzel', serif; font-weight: 400; font-size: 0.72em; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; }
.form-group input, .form-group select { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; color: var(--text); font-size: 1em; font-family: 'Inter', sans-serif; font-weight: 300; transition: all 0.3s; -webkit-appearance: none; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 20px rgba(196,162,101,0.08); }
.form-group select option { background: var(--card); color: var(--text); }
.form-group .hint { font-size: 0.68em; color: var(--text-muted); margin-top: 2px; }

/* ===== 出生地 Autocomplete ===== */
.place-input-wrap { position: relative; }
.place-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card); border: 1px solid var(--gold-dim); border-top: none;
  border-radius: 0 0 10px 10px; max-height: 280px; overflow-y: auto;
  z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.place-dropdown.show { display: block; }
.place-item {
  padding: 10px 16px; cursor: pointer; font-size: 0.88em; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.place-item:hover, .place-item.active { background: rgba(196,162,101,0.1); }
.place-item .place-name { font-weight: 500; }
.place-item .place-cn { color: var(--gold-dim); font-size: 0.85em; }
.place-item .place-country { color: var(--text-dim); font-size: 0.78em; margin-left: auto; }
.place-item .place-tz { color: var(--text-muted); font-size: 0.72em; }
.place-selected {
  display: block; font-size: 0.78em; color: var(--gold); margin-top: 4px; min-height: 1.2em;
}
.place-selected:empty { display: none; }

/* ===== 手动输入经度 ===== */
.manual-coords { margin-top: 12px; }
.manual-coords summary {
  font-size: 0.78em; color: var(--text-dim); cursor: pointer;
  font-family: 'Inter', sans-serif; letter-spacing: 0;
}
.manual-coords summary:hover { color: var(--gold); }
.manual-coords-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 12px; padding: 16px;
  background: rgba(255,255,255,0.02); border-radius: 10px; border: 1px solid var(--border);
}

.btn-row { text-align: center; margin-top: 36px; }
.btn { display: inline-block; padding: 18px 60px; background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-bright) 100%); color: var(--bg); border: none; border-radius: 12px; font-size: 1em; font-weight: 600; letter-spacing: 4px; cursor: pointer; transition: all 0.4s; font-family: 'Cinzel', serif; text-transform: uppercase; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%); transform: translateX(-100%); transition: none; }
.btn:hover::before { animation: shimmer 0.8s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(196,162,101,0.25); }
.btn:disabled { opacity: 0.4; cursor: wait; transform: none; }

/* ===== 太极加载 ===== */
.loading { display: none; text-align: center; padding: 48px 20px; } .loading.show { display: block; }
.taiji-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.taiji { width: 64px; height: 64px; border-radius: 50%; position: relative; animation: taiji-spin 2s ease-in-out infinite; background: radial-gradient(circle at 50% 25%, var(--bg) 8px, transparent 8px), radial-gradient(circle at 50% 75%, var(--gold) 8px, transparent 8px), linear-gradient(to right, var(--gold) 50%, var(--bg) 50%); box-shadow: 0 0 30px rgba(196,162,101,0.15); }
.taiji::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(196,162,101,0.15); }
.taiji::after { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(196,162,101,0.08); animation: taiji-spin 4s linear infinite reverse; }
@keyframes taiji-spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--gold); font-family: 'Cinzel', serif; letter-spacing: 4px; font-size: 0.82em; animation: text-pulse 2s ease-in-out infinite; }
@keyframes text-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.error { display: none; background: rgba(224,82,82,0.08); border: 1px solid rgba(224,82,82,0.2); border-radius: 10px; padding: 14px 20px; color: var(--red); margin-top: 16px; font-size: 0.9em; } .error.show { display: block; }

.result { display: none; margin-top: 48px; } .result.show { display: block; }

/* ===== 四柱卡片 ===== */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.pillar-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 16px; text-align: center; position: relative; overflow: hidden; transition: all 0.4s; cursor: pointer; opacity: 0; transform: translateY(20px); }
.pillar-card.animate { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pillar-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(196,162,101,0.08); }
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity 0.4s; }
.pillar-card:hover::before { opacity: 1; }
.pillar-label { font-family: 'Cinzel', serif; font-weight: 400; font-size: 0.68em; color: var(--text-dim); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.pillar-ganzhi { font-family: 'Ma Shan Zheng', cursive; font-size: 2.8em; line-height: 1; margin-bottom: 4px; transition: all 0.3s; }
.pillar-card:hover .pillar-ganzhi { text-shadow: 0 0 30px currentColor; }
.pillar-ganzhi .stem { color: var(--gold); } .pillar-ganzhi .branch { color: var(--cyan); }

.elem-dots { display: flex; justify-content: center; gap: 4px; margin: 8px 0; }
.elem-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; cursor: help; }
.elem-dot.jin { background: #e0dcd4; } .elem-dot.mu { background: #4ade80; } .elem-dot.shui { background: #60a5fa; } .elem-dot.huo { background: #f87171; } .elem-dot.tu { background: #fbbf24; }

.pillar-tengod { font-size: 0.85em; color: var(--red); margin: 8px 0 12px; font-weight: 600; }
.pillar-details { font-size: 0.72em; color: var(--text-dim); line-height: 1.8; }
.pillar-details .label { color: var(--text-muted); }

/* ===== 通用信息Tip ===== */
.info-tip { cursor: help; border-bottom: 1px dotted var(--text-muted); transition: border-color 0.3s; }
.info-tip:hover { border-bottom-color: var(--gold-dim); }

/* ===== 基础信息条 ===== */
.info-bar { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-bottom: 36px; padding: 20px; background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03)); border: 1px solid var(--border-gold); border-radius: 12px; }
.info-item { font-size: 0.85em; color: var(--text-dim); cursor: help; }
.info-item .val { color: var(--gold); font-weight: 600; margin-left: 4px; }

/* ===== 通用区块 ===== */
.section { background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03)); border: 1px solid var(--border-gold); border-radius: 16px; padding: 36px; margin-bottom: 36px; position: relative; }
.section-title { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 1.1em; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.section-title .icon { font-size: 0.8em; opacity: 0.5; }
.section-title .title-en { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 1px; }
.section-title .title-cn { font-family: 'Ma Shan Zheng', cursive; font-size: 0.85em; opacity: 0.4; margin-left: 4px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); margin-left: 12px; }
.section-desc { font-size: 0.78em; color: var(--text-dim); line-height: 1.6; margin-bottom: 28px; padding-left: 12px; border-left: 2px solid rgba(196,162,101,0.15); }

/* ===== 五行柱状图 ===== */
.wuxing-bars { display: flex; gap: 20px; justify-content: center; align-items: flex-end; height: 200px; padding: 20px 0; }
.wuxing-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; max-width: 80px; }
.bar-track { width: 100%; height: 150px; background: rgba(255,255,255,0.03); border-radius: 8px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-fill { width: 100%; border-radius: 8px 8px 0 0; transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative; min-height: 4px; }
.bar-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent); border-radius: 8px 8px 0 0; }
.bar-label { font-family: 'Ma Shan Zheng', cursive; font-size: 1.4em; }
.bar-value { font-family: 'Inter', sans-serif; font-size: 0.78em; font-weight: 600; color: #fff; text-shadow: 0 0 6px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5); position: absolute; top: 6px; left: 0; right: 0; text-align: center; z-index: 2; }

/* ===== 旺衰能量环 ===== */
/* ===== Day Master 人格卡 ===== */
.dm-card { background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03)); border: 1px solid var(--border-gold); border-radius: 16px; padding: 32px; margin-bottom: 36px; text-align: center; position: relative; overflow: hidden; }
.dm-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); }
.dm-stem { font-family: 'Ma Shan Zheng', cursive; font-size: 4em; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.dm-label { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.2em; color: var(--gold-bright); letter-spacing: 3px; margin-bottom: 12px; }
.dm-elem { font-size: 0.82em; color: var(--text-dim); margin-bottom: 16px; }
.dm-desc { font-size: 0.88em; color: var(--text); line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* ===== 雷达图 ===== */
.radar-wrap { display: flex; justify-content: center; margin: 24px 0; }
.radar-wrap canvas { max-width: 280px; max-height: 280px; }

/* ===== 五行评语 ===== */
.wx-comment { font-size: 0.85em; color: var(--text-dim); line-height: 1.7; text-align: center; max-width: 540px; margin: 16px auto 0; padding: 16px; background: rgba(255,255,255,0.02); border-radius: 10px; border: 1px solid var(--border); }
.wx-comment strong { color: var(--gold); }

/* ===== 流年微标签 ===== */
.ln-micro { font-size: 0.62em; color: var(--text-muted); margin-top: 2px; font-style: italic; }

/* ===== 大运评语 ===== */
.dayun-theme { font-size: 0.6em; color: var(--text-muted); margin-top: 2px; font-style: italic; max-width: 90px; text-align: center; }

/* ===== 小运开关按钮（发光小点 + 脉冲圆圈） ===== */
.dayun-item-wrap { display: flex; flex-direction: column; align-items: center; }
.dayun-xy-btn {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); opacity: 0.8;
  box-shadow: 0 0 6px rgba(196,162,101,0.4);
  cursor: pointer; transition: all 0.3s; z-index: 5;
  padding: 8px; background-clip: content-box;
  border: 4px solid transparent;
  margin-top: 4px;
}
.dayun-xy-btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.dayun-xy-btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%);
  animation: xy-pulse 2s ease-out infinite;
  pointer-events: none;
}
.dayun-xy-btn:hover {
  opacity: 1; transform: scale(1.4);
  box-shadow: 0 0 14px rgba(196,162,101,0.8);
}
.dayun-xy-btn.active {
  opacity: 1; background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(196,162,101,0.8);
}
.dayun-xy-btn.active::before { animation: none; opacity: 0; }
@keyframes xy-pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ===== 小运容器（缩小版，10个全部显示） ===== */
.dayun-xy-container { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(196,162,101,0.1); }
.dayun-xy-container .dayun-timeline { padding: 8px 0; overflow: visible; }
.dayun-xy-container .dayun-track { gap: 0; flex-wrap: nowrap; justify-content: space-between; }
.dayun-xy-container .dayun-track::before { opacity: 0.3; }
.dayun-xy-container .dayun-item { min-width: 0; flex: 1; opacity: 0.5; }
.dayun-xy-container .dayun-item.current { opacity: 1 !important; }
.dayun-xy-container .dayun-age { font-size: 0.55em; }
.dayun-xy-container .dayun-dot { width: 8px; height: 8px; margin-bottom: 6px; }
.dayun-xy-container .dayun-item.current .dayun-dot { width: 12px; height: 12px; }
.dayun-xy-container .dayun-ganzhi { font-size: 1em; }
.dayun-xy-container .dayun-item.current .dayun-ganzhi { font-size: 1.2em; }
.dayun-xy-container .dayun-tengod { font-size: 0.55em; }
.dayun-xy-container .dayun-elem-dots .elem-dot { width: 5px; height: 5px; }

/* 隐藏所有时间线滚动条 */
.dayun-timeline { scrollbar-width: none; -ms-overflow-style: none; }
.dayun-timeline::-webkit-scrollbar { display: none; }

.energy-ring-wrap { display: flex; justify-content: center; margin-top: 24px; }
.energy-ring { position: relative; width: 200px; height: 200px; }
.energy-ring svg { width: 100%; height: 100%; }
.energy-ring-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.energy-ring-center .season-label { font-family: 'Cinzel', serif; font-size: 0.7em; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; }
.energy-ring-center .season-val { font-family: 'Ma Shan Zheng', cursive; font-size: 1.4em; color: var(--gold); }
.energy-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.energy-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78em; color: var(--text-dim); }
.energy-legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ===== 神煞 ===== */
.shensha-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shensha-tag { padding: 4px 14px; border-radius: 6px; font-size: 0.8em; transition: all 0.3s; cursor: help; position: relative; }
.shensha-tag.ji { background: rgba(196,162,101,0.08); border: 1px solid rgba(196,162,101,0.2); color: var(--gold); }
.shensha-tag.xiong { background: rgba(224,82,82,0.06); border: 1px solid rgba(224,82,82,0.12); color: rgba(224,82,82,0.7); }
.shensha-tag.neutral { background: rgba(91,141,238,0.05); border: 1px solid rgba(91,141,238,0.1); color: rgba(91,141,238,0.6); }
.shensha-tag:hover { transform: scale(1.05); }
.shensha-tag .ss-tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1a1a30; border: 1px solid var(--gold-dim); border-radius: 8px; padding: 10px 14px; font-size: 0.82em; color: var(--text); white-space: nowrap; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,0.5); line-height: 1.5; }
.shensha-tag .ss-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--gold-dim); }
.shensha-tag:hover .ss-tip { display: block; }
.shensha-list .shensha-tag:first-child .ss-tip { left: 0; transform: translateX(0); }
.shensha-list .shensha-tag:first-child .ss-tip::after { left: 20px; transform: none; }
.shensha-more-btn { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 6px; font-size: 0.72em; color: var(--text-dim); border: 1px solid var(--border); background: transparent; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.3s; }
.shensha-more-btn:hover { color: var(--gold); border-color: var(--gold-dim); }
.shensha-extra { display: none; } .shensha-extra.show { display: block; margin-top: 8px; }

/* ===== 大运时间线 ===== */
.dayun-timeline { position: relative; padding: 20px 0; overflow-x: auto; }
.dayun-track { display: flex; align-items: flex-start; gap: 0; min-width: max-content; position: relative; }
.dayun-track::before { content: ''; position: absolute; top: 32px; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, var(--gold-dim), var(--cyan-dim), var(--gold-dim)); }
.dayun-item { display: flex; flex-direction: column; align-items: center; min-width: 90px; position: relative; z-index: 1; cursor: pointer; transition: all 0.3s; opacity: 0.35; }
.dayun-item:hover { transform: translateY(-4px); opacity: 0.8; }
.dayun-item.current { opacity: 1 !important; transform: scale(1.05); }
.dayun-item.current .dayun-dot { border-color: var(--gold-bright); background: rgba(196,162,101,0.2); box-shadow: 0 0 20px rgba(196,162,101,0.5); animation: glow-pulse 2s ease-in-out infinite; width: 20px; height: 20px; }
.dayun-item.current .dayun-ganzhi { color: var(--gold-bright); font-size: 1.7em; text-shadow: 0 0 20px rgba(196,162,101,0.4); }
.dayun-item.current .dayun-age { color: var(--gold); font-weight: 600; }
.dayun-item.current .dayun-tengod { color: var(--cyan); font-weight: 500; }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 15px rgba(196,162,101,0.3); } 50% { box-shadow: 0 0 35px rgba(196,162,101,0.7); } }
.dayun-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); margin-bottom: 12px; transition: all 0.3s; position: relative; }
.dayun-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid transparent; transition: all 0.3s; }
.dayun-item:hover .dayun-dot { background: var(--gold); box-shadow: 0 0 20px rgba(196,162,101,0.4); }
.dayun-item:hover .dayun-dot::after { border-color: rgba(196,162,101,0.3); }
.dayun-age { font-family: 'Cinzel', serif; font-size: 0.7em; color: var(--text-dim); margin-bottom: 4px; }
.dayun-ganzhi { font-family: 'Ma Shan Zheng', cursive; font-size: 1.5em; color: var(--gold); margin-bottom: 4px; transition: all 0.3s; }
.dayun-tengod { font-size: 0.68em; color: var(--cyan); margin-bottom: 2px; }
.dayun-detail { font-size: 0.58em; color: var(--text-dim); text-align: center; line-height: 1.4; max-width: 80px; }
.dayun-elem-dots { display: flex; justify-content: center; gap: 3px; margin-top: 4px; }

/* ===== 流年表格 ===== */
.liunian-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.ln-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border-gold); border-radius: 10px; padding: 12px; text-align: center; transition: all 0.3s; cursor: pointer; }
.ln-card:hover { border-color: var(--gold-dim); background: rgba(196,162,101,0.04); box-shadow: 0 4px 20px rgba(196,162,101,0.08); transform: translateY(-2px); }
.ln-year { font-family: 'Cinzel', serif; font-size: 0.85em; color: var(--text-dim); }
.ln-ganzhi { font-family: 'Ma Shan Zheng', cursive; font-size: 1.3em; color: var(--cyan); margin: 4px 0; }
.ln-tengod { font-size: 0.7em; color: var(--gold-dim); }
.ln-zodiac { font-size: 0.68em; color: var(--text-muted); margin-top: 4px; font-style: italic; }

/* ===== 干支关系 ===== */
.relations-list { display: flex; flex-wrap: wrap; gap: 8px; }
.relation-tag { padding: 6px 16px; border-radius: 8px; font-size: 0.85em; background: rgba(91,141,238,0.06); border: 1px solid rgba(91,141,238,0.15); color: var(--blue); cursor: pointer; transition: all 0.3s; }
.relation-tag:hover { background: rgba(91,141,238,0.12); transform: translateY(-1px); }
.relation-sub { display: block; font-size: 0.72em; color: var(--text-muted); margin-top: 2px; }

/* ===== 梅花卦象 ===== */
.hexagram-display { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.hexagram-group { text-align: center; }
.hexagram-name { font-family: 'Ma Shan Zheng', cursive; font-size: 1.3em; color: var(--gold); margin-bottom: 12px; }
.hexagram-lines { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.yao-line { display: flex; gap: 8px; justify-content: center; }
.yao-yang { width: 60px; height: 8px; background: var(--gold); border-radius: 2px; }
.yao-yin { width: 26px; height: 8px; background: var(--cyan); border-radius: 2px; }

/* ===== Paywall ===== */
.paywall-wrap { margin-top: 36px; }
.paywall-card { background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(196,162,101,0.02)); border: 1px solid var(--border-gold); border-radius: 16px; padding: 40px 32px; text-align: center; position: relative; overflow: hidden; }
.paywall-card::before { content: ''; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); }
.paywall-card h3 { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); font-size: 1.1em; letter-spacing: 2px; margin-bottom: 12px; }
.paywall-card p { font-size: 0.82em; color: var(--text-dim); max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.paywall-card .btn-paywall { display: inline-block; padding: 14px 48px; background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-bright)); color: var(--bg); border: none; border-radius: 10px; font-size: 0.9em; font-weight: 600; letter-spacing: 3px; cursor: pointer; font-family: 'Cinzel', serif; text-transform: uppercase; transition: all 0.4s; }
.paywall-card .btn-paywall:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(196,162,101,0.3); }
.paywall-blur { filter: blur(6px); user-select: none; pointer-events: none; margin: 16px 0; font-size: 0.82em; color: var(--text-dim); line-height: 1.8; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
/* ===== 点击弹窗 Modal ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.show { display: flex; }
.modal-card { background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03)); border: 1px solid var(--gold-dim); border-radius: 16px; padding: 36px 32px; max-width: 480px; width: 100%; position: relative; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); border-radius: 16px 16px 0 0; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-dim); font-size: 1.4em; cursor: pointer; padding: 4px 8px; transition: color 0.3s; }
.modal-close:hover { color: var(--gold); }
.modal-title { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); font-size: 1em; letter-spacing: 2px; margin-bottom: 16px; padding-right: 30px; }
.modal-body { font-size: 0.85em; color: var(--text-dim); line-height: 1.8; }
.modal-body strong { color: var(--gold); font-weight: 600; }
.modal-body .modal-elem { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.modal-body .modal-elem-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.modal-hint { font-size: 0.68em; color: var(--text-muted); margin-top: 16px; text-align: center; font-style: italic; }


/* ===== 页脚 ===== */
footer { text-align: center; padding: 48px 20px 32px; border-top: 1px solid var(--border); margin-top: 0; }
footer .logo-ft { font-family: 'Ma Shan Zheng', cursive; font-size: 1em; color: var(--gold-dim); letter-spacing: 8px; margin-bottom: 8px; opacity: 0.5; }
footer .disclaimer { font-family: 'Inter', sans-serif; font-size: 0.72em; color: var(--text-dim); opacity: 0.5; max-width: 600px; margin: 0 auto 8px; line-height: 1.6; }
footer .disclaimer-tiny { font-size: 0.62em; color: var(--text-muted); opacity: 0.3; }
footer .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
footer .footer-links a { color: var(--text-dim); font-size: 0.82em; text-decoration: none; transition: color 0.2s; }
footer .footer-links a:hover { color: var(--gold); }

/* ===== What is BaZi? ===== */
.about-section {
  max-width: 900px; margin: 0 auto; padding: 60px 20px 40px;
}
.about-title {
  text-align: center; font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.8em; color: var(--gold); margin-bottom: 32px;
}
.about-quote {
  text-align: center; max-width: 640px; margin: 0 auto 32px; padding: 0 20px;
}
.about-quote blockquote {
  font-family: 'Cinzel', serif; font-size: 1em; color: var(--text-dim);
  font-style: italic; line-height: 1.7; margin: 0 0 8px;
  border-left: 2px solid rgba(196,162,101,0.3); padding-left: 16px;
  text-align: left;
}
.quote-author {
  font-size: 0.78em; color: var(--gold-dim); text-align: left;
  padding-left: 18px;
}
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: 36px;
}
.about-card {
  background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03));
  border: 1px solid rgba(196,162,101,0.12); border-radius: 12px;
  padding: 28px 20px; text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  border-color: rgba(196,162,101,0.3);
  box-shadow: 0 0 20px rgba(196,162,101,0.1);
}
.about-icon { font-size: 2.4em; margin-bottom: 12px; }
.about-card h3 { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.05em; margin-bottom: 10px; }
.about-card p { color: var(--text-dim); font-size: 0.88em; line-height: 1.6; }
.about-trust {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(196,162,101,0.1);
}
.trust-item { text-align: center; }
.trust-num { display: block; font-family: 'Cinzel', serif; font-size: 1.6em; color: var(--gold); font-weight: 700; }
.trust-label { font-size: 0.78em; color: var(--text-dim); }

/* ===== AI 报告 ===== */
.ai-report-container {
  max-width: 800px; margin: 40px auto 0; padding: 0 20px;
}
.ai-report-header {
  text-align: center; margin-bottom: 32px;
}
.ai-report-header h2 {
  font-family: 'Cinzel', serif; font-size: 1.6em; color: var(--gold);
  margin-bottom: 12px;
}
.ai-report-meta {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.78em; color: var(--text-dim);
}
.ai-report-meta span {
  background: rgba(196,162,101,0.08); padding: 4px 12px; border-radius: 12px;
}
.ai-report-content {
  background: linear-gradient(135deg, rgba(196,162,101,0.06), rgba(45,212,191,0.03));
  border: 1px solid rgba(196,162,101,0.12); border-radius: 16px;
  padding: 40px 32px; line-height: 1.8; color: var(--text);
}
.ai-report-content h2 {
  font-family: 'Cinzel', serif; font-size: 1.3em; color: var(--gold);
  margin: 32px 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(196,162,101,0.15);
}
.ai-report-content h2:first-child { margin-top: 0; }
.ai-report-content h3 {
  font-family: 'Cinzel', serif; font-size: 1.1em; color: var(--gold-dim);
  margin: 24px 0 12px;
}
.ai-report-content h4 {
  font-size: 1em; color: var(--text); margin: 20px 0 8px;
}
.ai-report-content p {
  margin-bottom: 16px; font-size: 0.92em;
}
.ai-report-content strong {
  color: var(--gold);
}
.ai-report-content em {
  color: var(--cyan); font-style: italic;
}
.ai-report-content ul {
  margin: 12px 0; padding-left: 20px;
}
.ai-report-content li {
  margin-bottom: 8px; font-size: 0.92em;
}
.ai-report-content li::marker {
  color: var(--gold);
}
.report-loading {
  margin-top: 20px;
}

/* ===== 内联报告操作按钮 ===== */
.report-actions-inline {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(196,162,101,0.15);
}
.btn-secondary-inline {
  background: transparent !important;
  border: 1px solid rgba(196,162,101,0.3) !important;
  color: var(--gold-dim) !important;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.85em;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.btn-secondary-inline:hover {
  background: rgba(196,162,101,0.1) !important;
  border-color: rgba(196,162,101,0.5) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  header { padding: 60px 16px 40px; }
  .logo-en { font-size: 1.8em; letter-spacing: 5px; }
  .form-card { padding: 32px 20px; }
  .section { padding: 24px 16px; }
  .wuxing-bars { height: 160px; } .bar-track { height: 110px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pillar-ganzhi { font-size: 2em; }
  .dayun-item { min-width: 70px; }
  .container { padding: 32px 16px 80px; }
  .about-section { padding: 40px 16px 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-trust { gap: 24px; }

  /* 手机端：大运和小运独立横向滑动 */
  .dayun-timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dayun-track { min-width: max-content; }
  .dayun-xy-container .dayun-item { min-width: 55px; flex: none; }
  .dayun-xy-container .dayun-ganzhi { font-size: 0.85em; }
  .dayun-xy-container .dayun-item.current .dayun-ganzhi { font-size: 1em; }
}

/* ===== 罗盘结构 ===== */
.compass-wrap {
  position: relative;
  width: 360px; height: 360px;
  overflow: visible;
}
.compass-ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
}

/* 外层经文环 */
.compass-ring-text {
  width: 95%; height: 95%;
  margin-left: -47.5%; margin-top: -47.5%;
  opacity: 0;
}
.compass-hex {
  position: absolute;
  left: 50%; top: 50%;
  font-size: 0.9em;
  color: var(--gold);
  opacity: 0.35;
}
.compass-dot {
  position: absolute;
  left: 50%; top: 50%;
  font-size: 0.55em;
  color: var(--gold);
  opacity: 0.2;
}

/* 中层天干地支环 */
.compass-ring-ganzhi {
  width: 72%; height: 72%;
  margin-left: -36%; margin-top: -36%;
  opacity: 0;
}
.compass-gz {
  position: absolute;
  left: 50%; top: 50%;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.1em;
  color: var(--gold);
  opacity: 0.45;
}

/* 内层八卦环 */
.compass-ring-bagua {
  width: 55%; height: 55%;
  margin-left: -27.5%; margin-top: -27.5%;
  opacity: 0;
}
.compass-bagua {
  position: absolute;
  left: 50%; top: 50%;
  font-size: 2.8em;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(196,162,101,0.5), 0 0 30px rgba(196,162,101,0.25);
}

/* 太极中心 */
.compass-taiji {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(196,162,101,0.5));
}

/* 爆炸涟漪 */
.compass-ripple {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(196,162,101,0.7);
  box-shadow: 0 0 40px rgba(196,162,101,0.4), inset 0 0 30px rgba(196,162,101,0.15);
  opacity: 0;
  pointer-events: none;
}

/* 冲击波环白金光爆 */
.compass-shockwave {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 60px rgba(255,255,255,0.6), 0 0 120px rgba(196,162,101,0.5), 0 0 200px rgba(196,162,101,0.2);
  opacity: 0;
  pointer-events: none;
}

/* ===== 四柱翻转卡片 ===== */
.pillar-card {
  perspective: 1200px;
  cursor: pointer;
  min-height: 280px;
}
.pillar-inner {
  position: relative;
  width: 100%; height: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar-card.flipped .pillar-inner {
  transform: rotateY(180deg);
}
.pillar-front, .pillar-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 24px 16px;
}
.pillar-front {
  background: linear-gradient(135deg, #0d0d1a, #1a1a30);
  border: 1px solid rgba(196,162,101,0.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pillar-front:hover {
  border-color: rgba(196,162,101,0.5);
  box-shadow: 0 0 30px rgba(196,162,101,0.15);
}
.pillar-front-symbol {
  font-size: 4em;
  text-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
  animation: front-breathe 3s ease-in-out infinite;
}
@keyframes front-breathe {
  0%, 100% { opacity: 0.7; filter: blur(0px); }
  50% { opacity: 1; filter: blur(1px); }
}
.pillar-front-label {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 0.9em; color: var(--gold-dim);
  letter-spacing: 3px; text-transform: uppercase;
}
.pillar-front-hint {
  font-size: 0.72em; color: var(--text-muted);
  font-style: italic;
  animation: hint-pulse 2s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.pillar-back {
  transform: rotateY(180deg);
  background: var(--card);
  border: 1px solid var(--border);
  /* 保持原有卡片样式 */
}


.pillar-back .pillar-label { font-family: 'Cinzel', serif; font-weight: 400; font-size: 0.72em; color: var(--gold-dim); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.pillar-back .pillar-ganzhi { font-family: 'Ma Shan Zheng', cursive; font-size: 2.8em; line-height: 1.2; margin-bottom: 4px; }
.pillar-back .stem { color: var(--gold); }
.pillar-back .branch { color: var(--cyan); margin-left: 4px; }
.pillar-back .pillar-tengod { font-size: 0.82em; color: var(--gold-dim); margin-bottom: 12px; }
.pillar-back .pillar-details { font-size: 0.78em; color: var(--text-dim); line-height: 1.8; }
.pillar-back .pillar-details .label { color: var(--gold-dim); font-family: 'Cinzel', serif; font-size: 0.85em; letter-spacing: 1px; margin-right: 6px; }

/* 卡片入场动画 */
.pillar-card {
  opacity: 0; transform: translateY(30px) rotateY(-10deg);
}
.pillar-card.animate {
  animation: pillar-enter 0.7s ease forwards;
}
@keyframes pillar-enter {
  to { opacity: 1; transform: translateY(0) rotateY(0deg); }
}

/* ===== 神煞标签动画（hover-only，节省资源） ===== */
/* 金色标签 — 金光流转（hover时触发） */
.shensha-tag.ji {
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s;
}
.shensha-tag.ji::before {
  content: '';
  position: absolute; inset: -10px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(196,162,101,0.35) 60deg, transparent 120deg);
  animation: none;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.shensha-tag.ji:hover::before {
  animation: gold-flow 2s linear infinite;
  opacity: 1;
}
.shensha-tag.ji:hover {
  box-shadow: 0 0 15px rgba(196,162,101,0.3);
}
/* 红色标签 — 震颤红光（hover时触发） */
.shensha-tag.xiong {
  position: relative;
  transition: box-shadow 0.3s;
}
.shensha-tag.xiong:hover {
  animation: red-tremble 0.12s ease-in-out infinite alternate;
  box-shadow: 0 0 12px rgba(224,82,82,0.4);
}
.shensha-tag.xiong::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.shensha-tag.xiong:hover::before {
  box-shadow: 0 0 15px rgba(224,82,82,0.5);
  animation: red-glow 2s ease-in-out infinite;
  opacity: 1;
}

/* 蓝色标签 — 波纹蓝光（hover时触发） */
.shensha-tag.neutral {
  position: relative;
  transition: box-shadow 0.3s;
}
.shensha-tag.neutral:hover {
  box-shadow: 0 0 12px rgba(91,141,238,0.3);
}
.shensha-tag.neutral::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(91,141,238,0.4);
  animation: none;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.shensha-tag.neutral:hover::before {
  animation: blue-ripple 2s ease-out infinite;
  opacity: 1;
}

@keyframes gold-flow {
  to { transform: rotate(360deg); }
}
@keyframes red-tremble {
  0% { transform: translate(0, 0); }
  25% { transform: translate(0.5px, -0.5px); }
  50% { transform: translate(-0.5px, 0.5px); }
  75% { transform: translate(0.5px, 0.5px); }
  100% { transform: translate(-0.5px, -0.5px); }
}
@keyframes red-glow {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 8px rgba(224,82,82,0.2); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(224,82,82,0.6); }
}
@keyframes blue-ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== 卷轴效果 ===== */
.scroll-container {
  position: relative;
}
.scroll-closed {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px;
  background: linear-gradient(180deg,
    rgba(196,162,101,0.03),
    rgba(196,162,101,0.08),
    rgba(196,162,101,0.03));
  border: 1px solid rgba(196,162,101,0.15);
  border-radius: 12px;
  transition: all 0.3s;
  max-width: 500px;
  margin: 0 auto;
}
.scroll-closed:hover {
  border-color: rgba(196,162,101,0.4);
  box-shadow: 0 0 30px rgba(196,162,101,0.15);
}
.scroll-rod {
  width: 80%; height: 10px;
  background: linear-gradient(180deg, #5a4a3a, #2a1a0a, #5a4a3a);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
}
.scroll-rod::before, .scroll-rod::after {
  content: '';
  position: absolute; top: -3px;
  width: 18px; height: 16px;
  background: linear-gradient(180deg, #c4a265, #7a6a3a);
  border-radius: 3px;
}
.scroll-rod::before { left: -8px; }
.scroll-rod::after { right: -8px; }
.scroll-body {
  width: 70%; padding: 28px 20px;
  background: linear-gradient(180deg, rgba(26,26,48,0.9), rgba(13,13,26,0.95));
  text-align: center;
  border-left: 1px solid rgba(196,162,101,0.08);
  border-right: 1px solid rgba(196,162,101,0.08);
}
.scroll-seal {
  font-size: 3em; color: var(--gold);
  text-shadow: 0 0 20px rgba(196,162,101,0.4);
  margin-bottom: 12px;
  animation: seal-pulse 3s ease-in-out infinite;
}
@keyframes seal-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(196,162,101,0.3); }
  50% { text-shadow: 0 0 40px rgba(196,162,101,0.7), 0 0 80px rgba(196,162,101,0.3); }
}
.scroll-title {
  font-family: 'Cinzel', serif; font-weight: 700;
  color: var(--gold); font-size: 1.1em;
  letter-spacing: 4px; margin-bottom: 8px;
}
.scroll-hint {
  font-size: 0.78em; color: var(--text-dim);
  font-style: italic;
}
.scroll-content {
  overflow: hidden;
  height: 0;
  opacity: 0;
}
.scroll-closed {
  transition: opacity 0.3s, transform 0.3s;
}
.dayun-item.current .dayun-dot::before {
  content: '';
  position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
  border: 1px solid rgba(196,162,101,0.3);
  border-radius: 50%;
  animation: ring-rotate 4s linear infinite;
}
.dayun-item.current .dayun-dot::after {
  content: '';
  position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px;
  border: 1px solid rgba(196,162,101,0.15);
  border-radius: 50%;
  animation: ring-rotate 6s linear infinite reverse;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

/* ===== 按钮增强 ===== */
.btn {
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,162,101,0.25), transparent);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 100%; }
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 30px rgba(196,162,101,0.4), inset 0 0 20px rgba(196,162,101,0.1);
}

/* ===== Modal卷轴效果 ===== */
.modal-card { clip-path: inset(0 0 0 0); }

/* ===== 性能降级 ===== */
@media (prefers-reduced-motion: reduce) {
  .ritual-overlay,
  .shensha-tag.ji::before, .shensha-tag.xiong,
  .shensha-tag.xiong::before, .shensha-tag.neutral::before { animation: none !important; }
  .pillar-card { opacity: 1; transform: none; }
  .pillar-card.animate { animation: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .pillar-card { min-height: 240px; }
  .pillar-inner { min-height: 240px; }
  .pillar-front-symbol { font-size: 3em; }
  .scroll-body { width: 85%; padding: 20px 12px; }
}
/* ===== 浮动Tooltip（解决overflow:hidden裁切问题） ===== */
.ss-floating-tip {
  position: fixed;
  display: none;
  background: #1a1a30;
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82em;
  color: var(--text);
  white-space: nowrap;
  z-index: 10001;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  line-height: 1.5;
  pointer-events: none;
}

/* ===== 常驻玄天星图背景 ===== */
#oracle-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: #06060e;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(196,162,101,0.08), transparent 34%),
    radial-gradient(ellipse at 18% 86%, rgba(196,162,101,0.055), transparent 42%),
    radial-gradient(ellipse at 88% 72%, rgba(45,212,191,0.035), transparent 38%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.55));
  mix-blend-mode: screen;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -8;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.32), transparent 68%);
}

/* ===== Coming Soon (I Ching) ===== */
.coming-soon-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.coming-soon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(196,162,101,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(196,162,101,0.2), rgba(196,162,101,0.08));
  border: 1px solid rgba(196,162,101,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.coming-soon-icon {
  font-size: 3em;
  margin: 16px 0;
  opacity: 0.6;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
.coming-soon-usecases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.usecase {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s;
}
.usecase:hover {
  border-color: rgba(196,162,101,0.25);
  background: rgba(196,162,101,0.04);
}
.usecase-icon {
  font-size: 1.6em;
  flex-shrink: 0;
  line-height: 1;
}
.usecase strong {
  color: var(--gold);
  font-size: 0.9em;
}
.usecase div {
  font-size: 0.82em;
  color: var(--text-dim);
  line-height: 1.5;
}
.coming-soon-note {
  font-size: 0.85em;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
  opacity: 0.7;
}

