/* ============================================================
   铁板神算 (Iron Plate Divination) — Fairy Rose Gold Theme
   ============================================================ */

:root {
  --bg: #FFF6F2;
  --bg-tint: #FFEDE6;
  --card: rgba(210,150,170,0.10);
  --card-shadow: 0 2px 8px rgba(180,120,140,0.10), 0 8px 24px rgba(180,120,140,0.06), 0 0 0 1px rgba(210,150,170,0.15) inset;
  --card-shadow-hover: 0 4px 12px rgba(180,120,140,0.15), 0 16px 40px rgba(180,120,140,0.10), 0 0 0 1px rgba(220,160,180,0.25) inset;
  --border: rgba(210,150,170,0.20);

  --copper: #C88098;
  --copper-light: #D8A0B4;
  --copper-bg: rgba(210,150,170,0.06);
  --vermillion: #D48A9A;
  --vermillion-soft: rgba(212,138,154,0.06);

  --text: #4A3040;
  --text-pri: #5A3B4A;
  --text-sec: #8A7080;
  --text-muted: #A8909A;
  --success: #6AAA80;
  --error: #D06070;
  --warning: #D4A870;

  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --tr: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
  --font-s: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== 背景：柔粉仙女质感 ========== */
.bg-ink {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 5% -5%, rgba(210,150,170,0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 105%, rgba(180,140,200,0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(210,180,200,0.06), transparent),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(160,190,210,0.06), transparent),
    linear-gradient(165deg, #FFF6F2 0%, #FFF0EB 25%, #FFEDE6 45%, #FFF0EB 65%, #FFF4EF 85%, #FFF6F2 100%);
}

.bg-ink::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 200px; opacity: 1;
}

.bg-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle 1px at 20% 30%, rgba(210,150,170,0.06) 0%, transparent 100%),
    radial-gradient(circle 1px at 60% 70%, rgba(180,140,200,0.05) 0%, transparent 100%),
    radial-gradient(circle 1px at 80% 20%, rgba(160,190,210,0.04) 0%, transparent 100%);
  background-size: 120px 120px;
}

/* ========== 浮动金粒子 ========== */
.gold-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.gold-particle {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 25s ease-in-out infinite;
  opacity: 0;
}

.gold-particle:nth-child(1) { left:-5%; top:-5%; background:rgba(210,150,170,0.15); animation-delay:0s; animation-duration:28s; }
.gold-particle:nth-child(2) { left:65%; top:8%; background:rgba(180,140,200,0.10); animation-delay:5s; animation-duration:32s; }
.gold-particle:nth-child(3) { left:15%; top:50%; background:rgba(220,180,200,0.08); animation-delay:10s; animation-duration:30s; }
.gold-particle:nth-child(4) { left:80%; top:55%; background:rgba(160,190,210,0.08); animation-delay:3s; animation-duration:26s; }
.gold-particle:nth-child(5) { left:0%; top:80%; background:rgba(210,150,170,0.08); animation-delay:7s; animation-duration:34s; }
.gold-particle:nth-child(6) { left:45%; top:25%; background:rgba(180,140,200,0.06); animation-delay:12s; animation-duration:29s; }
.gold-particle:nth-child(7) { left:30%; top:2%; background:rgba(220,180,200,0.08); animation-delay:4s; animation-duration:27s; }
.gold-particle:nth-child(8) { left:85%; top:35%; background:rgba(160,190,210,0.06); animation-delay:8s; animation-duration:31s; }

@keyframes orbFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.8); }
  25%  { opacity: 1; }
  50%  { transform: translateY(-15px) scale(1.2); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px) scale(0.8); }
}

/* ========== 几何装饰 ========== */
.geo-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.geo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(200,128,152,0.08);
}
.geo-ring:nth-child(1) {
  width: 200px; height: 200px; top: -50px; right: -30px;
  border-color: rgba(210,150,170,0.12);
  animation: geoSpin 50s linear infinite;
}
.geo-ring:nth-child(2) {
  width: 140px; height: 140px; bottom: 15%; left: -40px;
  border-color: rgba(180,140,200,0.10);
  border-style: dotted;
  animation: geoSpin 60s linear infinite reverse;
}
.geo-ring:nth-child(3) {
  width: 90px; height: 90px; top: 40%; right: 5%;
  border-color: rgba(160,190,210,0.12);
  animation: geoSpin 45s linear infinite;
}

.geo-tri {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle, rgba(200,128,152,0.08), transparent 70%);
}
.geo-tri:nth-child(4) {
  top: 18%; left: 8%; width: 40px; height: 40px;
  background: radial-gradient(circle, rgba(210,150,170,0.10), transparent 70%);
  animation: geoFloat 20s ease-in-out infinite;
}
.geo-tri:nth-child(5) {
  bottom: 25%; right: 12%; width: 30px; height: 30px;
  background: radial-gradient(circle, rgba(180,140,200,0.08), transparent 70%);
  animation: geoFloat 25s ease-in-out infinite 5s;
}

.geo-dots {
  position: absolute;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(200,128,152,0.06) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
.geo-dots:nth-child(6) {
  top: 8%; left: 3%;
  background-image: radial-gradient(circle, rgba(210,150,170,0.08) 1.5px, transparent 1.5px);
  animation: geoFloat 18s ease-in-out infinite 2s;
}
.geo-dots:nth-child(7) {
  bottom: 8%; right: 4%;
  background-image: radial-gradient(circle, rgba(180,140,200,0.06) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  width: 60px; height: 60px;
  animation: geoFloat 22s ease-in-out infinite 8s;
}

.geo-curve {
  position: absolute;
}
.geo-curve:nth-child(8) {
  top: 30%; left: -5%; width: 40%; opacity: 0.3;
  animation: geoFloat 30s ease-in-out infinite 3s;
}
.geo-curve:nth-child(9) {
  bottom: 10%; right: -8%; width: 35%; opacity: 0.25;
  transform: scaleX(-1);
  animation: geoFloat 28s ease-in-out infinite 10s;
}

.geo-cross {
  position: absolute;
  width: 10px; height: 10px;
}
.geo-cross::before, .geo-cross::after {
  content: ''; position: absolute;
  background: rgba(200,128,152,0.15);
  border-radius: 2px;
}
.geo-cross::before {
  width: 10px; height: 2px; top: 4px; left: 0;
  border-radius: 1px;
}
.geo-cross::after {
  width: 2px; height: 10px; top: 0; left: 4px;
  border-radius: 1px;
}
.geo-cross:nth-child(10) { top: 55%; left: 6%; animation: geoTwinkle 4s ease-in-out infinite; }
.geo-cross:nth-child(11) { top: 12%; right: 15%; animation: geoTwinkle 5s ease-in-out infinite 1.5s; }
.geo-cross:nth-child(12) {
  bottom: 35%; left: 15%;
  animation: geoTwinkle 4.5s ease-in-out infinite 3s;
}
.geo-cross:nth-child(12)::before, .geo-cross:nth-child(12)::after {
  background: rgba(180,140,200,0.12);
}

@keyframes geoTwinkle {
  0%,100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}
@keyframes geoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes geoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== 容器 ========== */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px;
  position: relative;
  z-index: 1;
}

/* ========== 排版 ========== */
h1 {
  font-size: 1.8rem;
  font-family: var(--font-s);
  background: linear-gradient(135deg, #C5935A 0%, #D4A76A 45%, #E8A0B8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  margin-bottom: 6px;
  font-weight: 800;
}

h2 {
  font-size: 1.2rem;
  color: var(--copper-light);
  font-family: var(--font-s);
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 10px;
}

h3 {
  font-size: 0.92rem;
  color: var(--copper);
  font-family: var(--font-s);
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  font-size: 0.86rem;
  color: var(--text-sec);
  line-height: 1.8;
}

.hl {
  color: var(--copper-light);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 60%, rgba(200,128,152,0.15) 60%);
  padding: 0 2px;
}

/* ========== 头部 ========== */
.header { text-align: center; padding: 32px 0 16px; }

.header h1 {
  font-size: 1.8rem;
}

.header .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  font-weight: 500;
}

.header-deco {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 8px 0 6px;
  color: var(--vermillion); opacity: 0.6; font-size: 0.7rem;
}

.header-deco::before, .header-deco::after {
  content: ''; width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,128,152,0.4), transparent);
}

/* ========== 卡片 ========== */
.card {
  background: var(--card);
  border: 1px solid rgba(200,128,152,0.12);
  border-top-color: rgba(200,128,152,0.18);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  margin-bottom: 14px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: var(--tr);
  position: relative;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(200,128,152,0.06) 0%, transparent 40%);
}

.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px) scale(1.005); }

.card-title {
  font-size: 0.92rem; color: var(--copper);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-s); font-weight: 700;
  letter-spacing: 1px;
}

.card-title .icon { font-size: 1rem; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block; font-size: 0.8rem;
  color: var(--text-sec); margin-bottom: 5px;
}

.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

input, select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,240,235,0.8);
  border: 1.5px solid rgba(200,128,152,0.2);
  border-radius: var(--r-sm);
  color: var(--text-pri); font-size: 0.86rem;
  font-family: inherit; outline: none; transition: var(--tr);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(200,128,152,0.05);
  -webkit-appearance: none; appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C5935A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  background-color: rgba(255,240,235,0.8);
}

input:focus, select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(200,128,152,0.1), 0 2px 12px rgba(200,128,152,0.08);
  background: rgba(255,240,235,0.95);
}

select option { background: #2a2018; color: var(--text-pri); }

/* ========== 历法切换 ========== */
.calendar-toggle { display: flex; gap: 10px; margin-bottom: 14px; }

.cal-btn {
  flex: 1; padding: 7px;
  background: rgba(255,240,235,0.6);
  border: 1.5px solid rgba(200,128,152,0.12);
  border-radius: var(--r-sm);
  color: var(--text-sec); font-size: 0.82rem;
  font-family: inherit; cursor: pointer;
  transition: var(--tr); text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cal-btn:hover { border-color: var(--copper); background: rgba(255,240,235,0.8); }

.cal-btn.active {
  border-color: var(--copper);
  color: var(--copper-light);
  background: linear-gradient(135deg, rgba(200,128,152,0.12), rgba(220,170,195,0.08));
  box-shadow: 0 1px 4px rgba(200,128,152,0.15), inset 0 1px 0 rgba(200,128,152,0.08);
  font-weight: 600;
}

/* ========== 按钮 ========== */
.btn-primary {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #A07040 0%, #C5935A 35%, #D4A76A 70%, #E8A0B8 100%);
  border: none; border-radius: 20px;
  color: #1a1410; font-size: 0.92rem; font-weight: 700;
  font-family: var(--font-s); cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); letter-spacing: 3px;
  box-shadow: 0 4px 16px rgba(200,128,152,0.3), 0 8px 24px rgba(200,128,152,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
  background-size: 200% auto;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(200,128,152,0.4), 0 12px 32px rgba(200,128,152,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  background-position: right center;
}

.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  border-radius: 20px 20px 0 0; pointer-events: none;
}

.btn-secondary {
  padding: 9px 20px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-sec); font-size: 0.83rem;
  font-family: inherit; cursor: pointer; transition: var(--tr);
}
.btn-secondary:hover {
  border-color: var(--copper); color: var(--copper-light);
}

/* ========== 结果卡片 ========== */
.result-card {
  background: rgba(255,240,235,0.6);
  border: 1px solid rgba(200,128,152,0.1);
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(200,128,152,0.08) inset;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  overflow: hidden; position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(200,128,152,0.04) 0%, transparent 30%);
}
.result-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 16px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(200,128,152,0.15) inset;
}
.result-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 20px 0 0 20px;
}

/* ========== 卡片头部 ========== */
.result-card .rc-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(200,128,152,0.06);
}
.result-card .rc-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; color: #1a1410; flex-shrink: 0;
  font-family: var(--font-s);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.12);
  position: relative;
}
.result-card .rc-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.result-card .rc-titles { flex: 1; }
.result-card .rc-title {
  font-size: 0.92rem; font-weight: 700; letter-spacing: 1px;
  font-family: var(--font-s);
}
.result-card .rc-sub {
  font-size: 0.58rem; letter-spacing: 2px; margin-top: 2px; opacity: 0.45;
  color: var(--text-muted);
}

/* ========== 卡片内容 ========== */
.result-card .rc-body {
  padding: 14px 20px 18px;
}
.result-card h3 {
  font-size: 0.82rem; color: inherit; opacity: 0.7;
  margin: 0 0 8px; font-family: var(--font-s); font-weight: 600;
}

.result-text { font-size: 0.83rem; color: var(--text-sec); line-height: 1.9; }

.divider {
  height: 1px; margin: 18px 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ========== 建议条目 ========== */
.advice-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(200,128,152,0.06), rgba(180,140,200,0.03));
  border: 1px solid rgba(200,128,152,0.08);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); margin-bottom: 8px;
}
.advice-item:hover { transform: translateX(4px) scale(1.01); background: linear-gradient(135deg, rgba(200,128,152,0.1), rgba(180,140,200,0.05)); }

.advice-num {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #1a1410;
  background: linear-gradient(135deg, #C5935A, #D4A76A);
  box-shadow: 0 2px 6px rgba(200,128,152,0.25);
}
.advice-text { font-size: 0.83rem; color: var(--text-sec); line-height: 1.8; padding-top: 2px; }

/* ========== 各主题色（铜色系） ========== */
/* 命宫 - 铜金 */
.rc-ming::before { background: linear-gradient(180deg, #C5935A, #D4A76A); }
.rc-ming .rc-icon { background: linear-gradient(135deg, #C5935A, #D4A76A); }
.rc-ming .rc-title { color: #D4A76A; }
.rc-ming h3 { color: #C5935A; }

/* 运势 - 暖琥珀 */
.rc-luck::before { background: linear-gradient(180deg, #D4A050, #E0B870); }
.rc-luck .rc-icon { background: linear-gradient(135deg, #D4A050, #E0B870); }
.rc-luck .rc-title { color: #E0B870; }
.rc-luck h3 { color: #D4A050; }

/* 总论 - 深青铜 */
.rc-overall::before { background: linear-gradient(180deg, #8B6B40, #A88050); }
.rc-overall .rc-icon { background: linear-gradient(135deg, #8B6B40, #A88050); }
.rc-overall .rc-title { color: #A88050; }
.rc-overall h3 { color: #8B6B40; }

/* 事业 - 青铜绿 */
.rc-career::before { background: linear-gradient(180deg, #3A6B5A, #5A8B70); }
.rc-career .rc-icon { background: linear-gradient(135deg, #3A6B5A, #5A8B70); }
.rc-career .rc-title { color: #5A8B70; }
.rc-career h3 { color: #3A6B5A; }

/* 财运 - 金 */
.rc-wealth::before { background: linear-gradient(180deg, #C8A040, #E0C060); }
.rc-wealth .rc-icon { background: linear-gradient(135deg, #C8A040, #E0C060); }
.rc-wealth .rc-title { color: #E0C060; }
.rc-wealth h3 { color: #C8A040; }

/* 感情 - 玫瑰铜 */
.rc-love::before { background: linear-gradient(180deg, #B85450, #D07060); }
.rc-love .rc-icon { background: linear-gradient(135deg, #B85450, #D07060); }
.rc-love .rc-title { color: #D07060; }
.rc-love h3 { color: #B85450; }

/* 健康 - 翡翠 */
.rc-health::before { background: linear-gradient(180deg, #3A7B5A, #58A078); }
.rc-health .rc-icon { background: linear-gradient(135deg, #3A7B5A, #58A078); }
.rc-health .rc-title { color: #58A078; }
.rc-health h3 { color: #3A7B5A; }

/* 流年 - 青铜 */
.rc-flow::before { background: linear-gradient(180deg, #9A7848, #B89060); }
.rc-flow .rc-icon { background: linear-gradient(135deg, #9A7848, #B89060); }
.rc-flow .rc-title { color: #B89060; }
.rc-flow h3 { color: #9A7848; }

/* 月运 - 琥珀 */
.rc-months::before { background: linear-gradient(180deg, #D4A050, #E8B868); }
.rc-months .rc-icon { background: linear-gradient(135deg, #D4A050, #E8B868); }
.rc-months .rc-title { color: #E8B868; }
.rc-months h3 { color: #D4A050; }

/* ========== 标签 ========== */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(200,128,152,0.1), rgba(180,140,200,0.06));
  border: 1px solid rgba(200,128,152,0.15);
  border-radius: 24px;
  font-size: 0.73rem; color: var(--copper-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tag:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 3px 8px rgba(200,128,152,0.15);
}

/* ========== CTA 区域 ========== */
.cta-area {
  text-align: center; margin: 24px 0 8px;
}
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; max-width: 340px; padding: 16px 28px;
  background: linear-gradient(135deg, #A07040 0%, #C5935A 35%, #D4A76A 70%, #E8A0B8 100%);
  border: none; border-radius: 22px;
  color: #1a1410; font-size: 1.02rem; font-weight: 700;
  font-family: var(--font-s); cursor: pointer;
  letter-spacing: 3px;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 4px 20px rgba(200,128,152,0.35),
    0 8px 28px rgba(200,128,152,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
.cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(200,128,152,0.45),
    0 14px 36px rgba(200,128,152,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.cta-btn:active { transform: translateY(-1px) scale(0.98); }
.cta-text { position: relative; z-index: 1; }
.cta-arrow {
  font-size: 1.1rem; position: relative; z-index: 1;
  transition: transform 0.3s;
}
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

.cta-glow {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  animation: ctaSweep 3.5s ease-in-out infinite;
}
@keyframes ctaSweep {
  0%,100% { left: -100%; }
  50% { left: 150%; }
}
.cta-hint {
  font-size: 0.68rem; color: rgba(200,128,152,0.4);
  margin: 8px 0 14px; letter-spacing: 2px;
}

/* ========== 加载动画 ========== */
.loading-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,20,16,0.94);
  z-index: 1000; justify-content: center; align-items: center;
  flex-direction: column; gap: 18px;
}
.loading-overlay.active { display: flex; }

.spinner {
  width: 44px; height: 44px;
  border: 2.5px solid rgba(200,128,152,0.15);
  border-top-color: var(--copper);
  border-radius: 50%; animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: var(--text-sec); font-size: 0.88rem; text-align: center; }

/* ========== Toast 通知 ========== */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 10px 22px; background: rgba(255,240,235,0.92);
  border: 1px solid var(--border); border-radius: 28px;
  color: var(--text); font-size: 0.83rem;
  z-index: 2000; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--error); color: var(--error); }
.toast.success { border-color: var(--success); color: var(--success); }

/* ========== 聊天/追问区 ========== */
.chat-box {
  margin-bottom: 16px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,240,235,0.85), rgba(255,235,228,0.85));
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(200,128,152,0.08) inset;
  border: 1px solid rgba(200,128,152,0.1);
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid rgba(200,128,152,0.08);
}
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(200,128,152,0.3), rgba(180,140,200,0.2));
}
.chat-header-text { display: flex; align-items: baseline; gap: 8px; }
.chat-title {
  font-size: 0.88rem; font-weight: 600; color: var(--copper-light);
  font-family: var(--font-s); letter-spacing: 1px;
}
.chat-badge {
  font-size: 0.62rem; color: var(--text-muted); font-weight: 400;
}
.chat-history {
  padding: 12px 16px; max-height: 360px; overflow-y: auto;
  min-height: 20px;
}
.chat-history:empty::after {
  content: '铁板批命已毕，如有疑惑可继续追问……';
  display: block; text-align: center; padding: 16px 0;
  font-size: 0.75rem; color: var(--text-muted);
}
.chat-bubble {
  max-width: 85%; padding: 10px 14px; margin-bottom: 8px;
  border-radius: 12px; font-size: 0.82rem; line-height: 1.8;
  clear: both;
}
.cb-user {
  float: right; text-align: right;
  background: linear-gradient(135deg, #A07040, #C5935A);
  color: #F0E8D8; border-bottom-right-radius: 4px;
}
.cb-ai {
  float: left;
  background: rgba(255,240,235,0.8);
  color: var(--text-sec); border-bottom-left-radius: 4px;
  border: 1px solid rgba(200,128,152,0.08);
}
.chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid rgba(200,128,152,0.08);
  background: rgba(26,20,16,0.4);
}
.chat-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(200,128,152,0.15);
  background: rgba(255,240,235,0.8); color: var(--text-pri);
  font-size: 0.82rem; font-family: inherit; outline: none; transition: border 0.2s;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: rgba(200,128,152,0.4); }
.chat-send {
  padding: 10px 18px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; color: #1a1410; white-space: nowrap;
  background: linear-gradient(135deg, #C5935A, #D4A76A);
  box-shadow: 0 2px 8px rgba(200,128,152,0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
}
.chat-send:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 4px 12px rgba(200,128,152,0.35); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ========== 分享条 ========== */
.share-strip {
  text-align: center; margin: 24px 0 8px;
  padding: 20px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(200,128,152,0.06), rgba(180,140,200,0.04));
  border: 1px dashed rgba(200,128,152,0.18);
}
.share-title {
  font-size: 0.88rem; font-weight: 700; color: var(--copper-light);
  font-family: var(--font-s); letter-spacing: 1px; margin-bottom: 14px;
}
.share-btns {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.share-btn {
  padding: 10px 18px; border: none; border-radius: 24px; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; color: #1a1410;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-family: inherit;
}
.share-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.sb-lover { background: linear-gradient(135deg, #B85450, #D07060); color: #F0E8D8; }
.sb-bestie { background: linear-gradient(135deg, #C5935A, #D4A76A); }
.sb-family { background: linear-gradient(135deg, #3A6B5A, #5A8B70); color: #F0E8D8; }
.share-actions {
  display: flex; gap: 16px; justify-content: center;
  padding-top: 12px; border-top: 1px solid rgba(200,128,152,0.08);
}
.sa-link {
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s; font-family: inherit;
}
.sa-link:hover { color: var(--copper-light); }

/* ========== 页脚 ========== */
.footer { text-align: center; padding: 28px 0 18px; color: var(--text-muted); font-size: 0.72rem; }
.footer a { color: var(--copper); text-decoration: none; }

/* ========== 流月 ========== */
.flow-month-item {
  padding: 12px 14px; margin-bottom: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200,128,152,0.04), rgba(160,190,210,0.03));
  border: 1px solid rgba(200,128,152,0.06);
  transition: background 0.2s;
}
.flow-month-item:hover { background: linear-gradient(135deg, rgba(200,128,152,0.08), rgba(160,190,210,0.05)); }
.fm-head { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.fm-month {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; color: #1a1410;
  font-family: var(--font-s); letter-spacing: 2px;
  background: linear-gradient(135deg, #C5935A, #D4A76A);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.fm-text {
  font-size: 0.8rem; color: var(--text-sec); line-height: 1.8;
}

/* ========== 揭示动画 ========== */
.reveal-section {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-section.visible { opacity: 1; transform: translateY(0); }

/* ========== 罗盘仪式/加载 ========== */
.ritual-overlay {
  display: none; position: fixed; inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(255,240,235,0.92) 0%,
    rgba(30,22,16,0.95) 50%,
    rgba(20,14,10,0.98) 100%);
  z-index: 1000;
  justify-content: center; align-items: center; flex-direction: column;
}
.ritual-overlay.active { display: flex; }

.compass-wrap { position: relative; width: 260px; height: 260px; }

.compass-outer {
  width: 260px; height: 260px; border-radius: 50%; position: relative;
  background: conic-gradient(from 0deg,
    rgba(200,128,152,0.2) 0deg, rgba(180,140,200,0.1) 30deg,
    rgba(220,170,195,0.25) 60deg, rgba(160,190,210,0.08) 90deg,
    rgba(200,128,152,0.2) 120deg, rgba(180,140,200,0.1) 150deg,
    rgba(220,170,195,0.25) 180deg, rgba(160,190,210,0.08) 210deg,
    rgba(200,128,152,0.2) 240deg, rgba(180,140,200,0.1) 270deg,
    rgba(220,170,195,0.25) 300deg, rgba(160,190,210,0.08) 330deg,
    rgba(200,128,152,0.2) 360deg);
  box-shadow:
    0 0 0 1px rgba(200,128,152,0.25),
    0 0 0 3px rgba(200,128,152,0.12),
    0 0 30px rgba(200,128,152,0.15),
    0 0 60px rgba(200,128,152,0.08),
    inset 0 0 30px rgba(200,128,152,0.08);
  display: flex; align-items: center; justify-content: center;
  animation: compassAppear 0.8s ease-out forwards;
}
@keyframes compassAppear { from{transform:scale(0.6);opacity:0} to{transform:scale(1);opacity:1} }

.compass-mid {
  width: 170px; height: 170px; border-radius: 50%; position: absolute;
  background: radial-gradient(circle,
    rgba(255,240,235,0.95) 0%,
    rgba(255,235,228,0.85) 40%,
    rgba(26,20,16,0.75) 100%);
  box-shadow:
    0 0 0 1px rgba(200,128,152,0.3),
    0 0 20px rgba(200,128,152,0.1),
    inset 0 0 20px rgba(200,128,152,0.08),
    inset 0 4px 8px rgba(200,128,152,0.05);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.compass-inner {
  width: 60px; height: 60px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%,
    rgba(220,170,195,0.6),
    rgba(200,128,152,0.5) 50%,
    rgba(160,112,64,0.4));
  box-shadow:
    0 0 0 1px rgba(200,128,152,0.4),
    0 0 15px rgba(200,128,152,0.25),
    inset 0 2px 8px rgba(220,170,195,0.3),
    inset 0 -2px 6px rgba(160,112,64,0.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

.compass-needle-wrap {
  position: absolute; width: 100%; height: 100%;
  animation: needleSpin 3s cubic-bezier(0.3,0,0.15,1) forwards;
}
.compass-needle {
  position: absolute; left: 50%; top: -42px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 44px solid rgba(180,140,200,0.85);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgba(180,140,200,0.4));
}
.compass-needle::after {
  content: ''; position: absolute;
  left: -4px; top: 44px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 38px solid rgba(160,190,210,0.6);
  filter: drop-shadow(0 0 4px rgba(160,190,210,0.3));
}
.compass-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E8A0B8, rgba(200,128,152,0.8));
  box-shadow: 0 0 8px rgba(200,128,152,0.5), 0 0 16px rgba(200,128,152,0.25);
  z-index: 5; position: relative;
}
@keyframes needleSpin {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(540deg); }
  50% { transform: rotate(900deg); }
  70% { transform: rotate(1060deg); }
  85% { transform: rotate(1075deg); }
  100% { transform: rotate(1080deg); }
}

.compass-labels {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 4; pointer-events: none;
}
.compass-labels text {
  font-family: var(--font-s), 'STKaiti', 'KaiTi', serif;
  font-size: 14px; fill: rgba(220,170,195,0.85);
  font-weight: 700;
  filter: drop-shadow(0 0 4px rgba(200,128,152,0.4));
}
.compass-text-anim {
  opacity: 0;
  animation: charsAppear 1.2s 0.5s ease forwards;
}
@keyframes charsAppear { 0%{opacity:0} 30%{opacity:0.4} 100%{opacity:1} }

.compass-ticks {
  position: absolute; width: 100%; height: 100%;
  top: 0; left: 0; pointer-events: none;
  animation: ticksRotate 3s linear forwards;
}
@keyframes ticksRotate {
  0% { transform: rotate(0deg); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: rotate(360deg); opacity: 0.3; }
}
.tick {
  position: absolute; left: 50%; top: 0;
  width: 1px; background: rgba(200,128,152,0.5);
  transform-origin: 50% 130px;
}
.tick-major { height: 10px; width: 1.5px; opacity: 0.7; }
.tick-minor { height: 5px; width: 0.5px; opacity: 0.3; }

.compass-outer::before {
  content: ''; position: absolute; inset: -12px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 30px rgba(200,128,152,0.15),
    0 0 60px rgba(200,128,152,0.08),
    0 0 100px rgba(200,128,152,0.04);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:0.5} 50%{opacity:1} }

.ritual-overlay::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(220,170,195,0.4), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(180,140,200,0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(240,232,216,0.4), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(200,128,152,0.3), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(180,140,200,0.3), transparent),
    radial-gradient(1px 1px at 15% 50%, rgba(160,190,210,0.2), transparent),
    radial-gradient(1.5px 1.5px at 90% 15%, rgba(220,170,195,0.3), transparent),
    radial-gradient(2px 2px at 60% 60%, rgba(200,128,152,0.2), transparent),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(180,140,200,0.2), transparent),
    radial-gradient(1px 1px at 45% 45%, rgba(220,170,195,0.3), transparent),
    radial-gradient(1px 1px at 75% 20%, rgba(200,128,152,0.2), transparent),
    radial-gradient(1px 1px at 5% 90%, rgba(160,190,210,0.2), transparent);
  pointer-events: none;
}

.ritual-text {
  margin-top: 32px; color: rgba(220,170,195,0.8);
  font-size: 0.9rem; font-family: var(--font-s);
  letter-spacing: 6px; opacity: 0;
  text-shadow: 0 0 12px rgba(200,128,152,0.3);
  animation: ritualTextIn 1s 1.5s ease forwards;
}
@keyframes ritualTextIn { from{opacity:0;transform:translateY(12px)} to{opacity:0.9;transform:translateY(0)} }

/* ========== 响应式 ========== */
@media (max-width: 420px) {
  .container { max-width: 100%; padding: 12px 10px; }
  .card { padding: 16px 14px; }
  .result-card .rc-header { padding: 12px 14px 10px; }
  .result-card .rc-body { padding: 10px 14px 14px; }
  .result-card .rc-icon { width: 32px; height: 32px; font-size: 0.78rem; }
  .result-card .rc-title { font-size: 0.84rem; }
  .cta-btn { padding: 14px 20px; font-size: 0.92rem; }
  .share-btns { flex-direction: column; align-items: center; }
  .share-btn { width: 80%; }
}

@media (max-width: 360px) {
  .container { padding: 10px 8px; }
  .card { padding: 14px 12px; border-radius: 18px; }
  h1 { font-size: 1.5rem; letter-spacing: 5px; }
}

@media (min-width: 640px) {
  .container { max-width: 520px; }
}
