/* ========== 个人财富大运报告样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #1a1327 0%, #2d1f45 100%);
    color: #2c2c3a;
    min-height: 100vh;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; }

.view { display: none; }
.view.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- 表单 ---- */
.hero { text-align: center; color: #f3e9d2; padding: 36px 0 24px; }
.hero h1 { font-size: 30px; letter-spacing: 3px; margin-bottom: 12px; }
.hero .sub { color: #c9b896; font-size: 15px; }
.card {
    background: #fff; border-radius: 16px; padding: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.form label { display: block; margin-bottom: 18px; font-size: 14px; color: #6b6b7b; font-weight: 600; }
.form input, .form select {
    width: 100%; margin-top: 8px; padding: 12px 14px; font-size: 15px;
    border: 1.5px solid #e0ddec; border-radius: 10px; background: #faf9fd; color: #2c2c3a;
}
.form input:focus, .form select:focus { outline: none; border-color: #a67c52; }
.btn-primary {
    width: 100%; padding: 14px; font-size: 16px; font-weight: 700; letter-spacing: 2px;
    color: #fff; background: linear-gradient(135deg, #b8860b, #8b5a2b); border: none;
    border-radius: 10px; cursor: pointer; transition: opacity .2s;
}
.btn-primary:hover { opacity: .9; }
.btn-ghost {
    padding: 12px 20px; font-size: 14px; font-weight: 600; white-space: nowrap;
    color: #8b5a2b; background: #fff; border: 1.5px solid #c9a876; border-radius: 10px;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: background .2s;
}
.btn-ghost:hover { background: #f5efe2; }
.tip, .form .tip { margin-top: 14px; font-size: 12px; color: #a0a0b0; text-align: center; font-weight: 400; }

/* ===== 已有八字：直达卡（免重复填表） ===== */
.ready-card { display: flex; flex-direction: column; gap: 12px; }
.ready-bazi {
    display: flex; flex-direction: column; gap: 6px;
    background: #faf6ec; border: 1px solid #e6dcc2;
    border-radius: 10px; padding: 14px 16px; margin-bottom: 4px;
}
.ready-bazi-label { font-size: 12px; color: #9a8a68; letter-spacing: 1px; }
.ready-bazi-value { font-size: 16px; font-weight: 700; color: #5a4a2a; }
.btn-ghost-line {
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: #8b7a52; text-decoration: underline dotted;
    padding: 4px; align-self: center;
}
.btn-ghost-line:hover { color: #5a4a2a; }

/* ---- 推演动画 ---- */
.loading-box { text-align: center; color: #f3e9d2; padding: 80px 20px; }
.loading-box h2 { font-size: 20px; margin: 28px 0 20px; letter-spacing: 2px; }
.taiji {
    width: 90px; height: 90px; margin: 0 auto; border-radius: 50%;
    background: conic-gradient(#f3e9d2 0 50%, #2d1f45 50% 100%);
    animation: spin 3s linear infinite; position: relative;
    box-shadow: 0 0 40px rgba(243,233,210,.4);
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress {
    width: 280px; height: 8px; margin: 0 auto; background: rgba(255,255,255,.15);
    border-radius: 4px; overflow: hidden;
}
.progress-bar {
    height: 100%; width: 0; border-radius: 4px;
    background: linear-gradient(90deg, #b8860b, #f3e9d2); transition: width .5s ease;
}
#progress-pct { margin-top: 10px; color: #c9b896; font-size: 14px; }
.loading-hint { margin-top: 24px; color: #8f7fa8; font-size: 13px; }

/* ---- 报告 ---- */
.report-toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.report-doc {
    background: #fdfcf8; border-radius: 12px; padding: 40px 44px;
    box-shadow: 0 12px 40px rgba(0,0,0,.3); position: relative; overflow: hidden;
}
.report-doc .watermark {
    position: absolute; inset: 0; pointer-events: none; opacity: .05;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; font-weight: 800; transform: rotate(-25deg); color: #8b5a2b;
    letter-spacing: 8px;
}
.rpt-header { text-align: center; border-bottom: 2px solid #d4c4a0; padding-bottom: 20px; margin-bottom: 24px; }
.rpt-header h1 { font-size: 26px; color: #6b4423; letter-spacing: 4px; }
.rpt-header .meta { margin-top: 10px; color: #9a8a6a; font-size: 13px; }
.rpt-basic {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
    background: #f5efe2; border-radius: 10px; padding: 18px 22px; margin-bottom: 28px;
}
.rpt-basic div { font-size: 14px; color: #5a4a32; }
.rpt-basic b { color: #8b5a2b; }
/* ---- 第五章：投资性格分点 ---- */
.char-list { display: flex; flex-direction: column; gap: 12px; }
.char-item { background: #f5efe2; border-radius: 10px; padding: 14px 18px; border-left: 4px solid #b8860b; }
.char-title { font-size: 15px; font-weight: 700; color: #8b5a2b; margin-bottom: 6px; }
.char-body { font-size: 14px; line-height: 1.8; color: #3d3d4a; text-align: justify; }

/* ---- 八字命盘表格 ---- */
.bazi-table-wrap { margin-bottom: 20px; }
.bazi-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.bazi-table th, .bazi-table td {
    text-align: center; padding: 8px 4px; border-bottom: 1px solid #f0ebe0; font-size: 14px;
}
.bazi-table thead th {
    background: #6b4423; color: #f3e9d2; font-size: 14px; letter-spacing: 1px; padding: 10px 4px;
}
.bazi-table .bz-label { background: #f5efe2; color: #8b5a2b; font-weight: 700; width: 52px; font-size: 13px; }
.bazi-table .bz-big { font-size: 24px; }
.bazi-table .bz-sub { color: #7a6a4a; font-size: 12px; }
.bazi-table tbody tr:last-child td { border-bottom: none; }
.wx-legend { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 13px; font-weight: 600; }

/* ---- 关键指标卡片 ---- */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 600px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
.metric-card {
    background: #fdfcf8; border: 1.5px solid #eee3cc; border-radius: 12px;
    padding: 16px 14px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.metric-title { font-size: 13px; color: #9a8a6a; margin-bottom: 10px; }
.metric-icon { font-size: 34px; line-height: 1.2; margin: 4px 0 8px; }
.metric-value { font-size: 16px; font-weight: 800; color: #6b4423; }
.metric-sub { font-size: 12px; color: #a0906a; margin-top: 4px; }
.metric-gauge { margin: 12px 0 10px; }
.gauge-track {
    position: relative; height: 12px; background: linear-gradient(90deg, #2b6cb0, #f3e9d2 50%, #d9432f);
    border-radius: 6px; overflow: visible;
}
.gauge-mid {
    position: absolute; left: 50%; top: -3px; width: 2px; height: 18px;
    background: #6b4423; transform: translateX(-50%);
}
.gauge-ptr {
    position: absolute; bottom: -11px; width: 0; height: 0;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-bottom: 9px solid #8b5a2b; transform: translateX(-50%);
    transition: left .6s ease;
}
.gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: #a0906a; margin-top: 14px; }

.chapter { margin-bottom: 30px; }
.chapter h2 {
    font-size: 18px; color: #6b4423; border-left: 4px solid #b8860b;
    padding-left: 12px; margin-bottom: 14px; letter-spacing: 1px;
}
.chapter p { line-height: 1.9; color: #3d3d4a; font-size: 15px; text-align: justify; }
.chart { width: 100%; height: 300px; margin: 10px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.tag.good { background: #e7f6ec; color: #1f8a4d; }
.tag.warn { background: #fdeaea; color: #c0392b; }
.tag.info { background: #eef1f8; color: #3f5b9c; }
.wealth-badge {
    display: inline-block; padding: 8px 20px; border-radius: 24px; font-size: 16px;
    font-weight: 700; color: #fff; background: linear-gradient(135deg, #b8860b, #8b5a2b); margin-bottom: 12px;
}
.dir-item { background: #f5efe2; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.dir-item b { color: #8b5a2b; font-size: 15px; }
.dir-item span { color: #5a4a32; font-size: 14px; }
.discipline-list { list-style: none; }
.discipline-list li {
    padding: 12px 16px 12px 44px; margin-bottom: 10px; background: #f5efe2; border-radius: 10px;
    position: relative; line-height: 1.7; color: #3d3d4a; font-size: 15px;
}
.discipline-list li::before {
    content: counter(li); counter-increment: li; position: absolute; left: 14px; top: 12px;
    width: 22px; height: 22px; background: #b8860b; color: #fff; border-radius: 50%;
    text-align: center; line-height: 22px; font-size: 13px; font-weight: 700;
}
.discipline-list { counter-reset: li; }
.disclaimer { background: #f2f2f5; border-radius: 10px; padding: 18px; font-size: 13px; color: #7a7a88; line-height: 1.8; }

/* ---- 打印（PDF）---- */
@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .wrap { max-width: none; padding: 0; }
    .report-doc { box-shadow: none; border-radius: 0; padding: 20px; }
    .chapter { page-break-inside: avoid; }
}

@media (max-width: 600px) {
    .report-doc { padding: 24px 18px; }
    .rpt-basic { grid-template-columns: 1fr; }
}

/* ���ɳɹ��󷵻���ҳ CTA */
.report-home-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;background:linear-gradient(135deg,#b8860b 0%,#8b5a2b 100%);color:#fff;border-radius:14px;padding:18px 22px;margin-bottom:16px;box-shadow:0 8px 24px rgba(139,90,43,.4);transition:transform .2s,box-shadow .2s;}
.report-home-cta:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(139,90,43,.55);}
.report-home-cta-title{font-size:16px;font-weight:800;margin-bottom:4px;}
.report-home-cta-sub{font-size:12px;opacity:.9;}
.report-home-cta-arrow{font-size:26px;font-weight:700;flex-shrink:0;}
