/* ============ 全局重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-primary: #6c5ce7;
    --color-primary-dark: #5849c4;
    --color-bg: #f0f2f5;
    --color-card: #ffffff;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-border: #dfe6e9;
    --color-lucky: #00b894;
    --color-unlucky: #e17055;
    --color-neutral: #fdcb6e;
    --color-warning: #d63031;
    --color-gold: #fdcb6e;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============ 页面切换 ============ */
.page { display: none; }
.page.active { display: block; }

/* ============ 主页 ============ */
.home-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 首页返回易道通主页链接 */
.back-home-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.back-home-link:hover { color: var(--color-primary); }

.home-header { text-align: center; margin-bottom: 36px; }
.home-header h1 {
    font-size: 26px;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.home-header .subtitle {
    font-size: 14px;
    color: var(--color-text-light);
}

.form-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-hint {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 6px;
}

.radio-group { display: flex; gap: 16px; }
.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 20px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 15px;
}
.radio-item:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(108,92,231,0.08);
    color: var(--color-primary);
    font-weight: 600;
}
.radio-item input { display: none; }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 2px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(108,92,231,0.4); }
.btn-primary:active { transform: translateY(0); }

.home-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-light);
}
.feature-icon { font-size: 16px; }

/* ============ 结果页 ============ */
.result-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.result-nav { margin-bottom: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-back {
    display: inline-block;
    padding: 8px 18px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.2s;
}
.btn-back:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
a.back-home-btn { text-decoration: none; }

.report-section {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 12px;
}
.title-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
}

/* ============ 号码SVG弧线展示 ============ */
.basic-info-card { text-align: center; }

.phone-star-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 12px;
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(108,92,231,0.03));
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: visible;
    max-width: 100%;
}

.phone-svg-wrap {
    position: relative;
    display: inline-block;
    padding-top: 60px;
}

.pv-row {
    display: grid;
    grid-template-columns: repeat(3, 38px) 10px repeat(8, 38px);
    gap: 0;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pv-arcs {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* 数字单元格 */
.vc {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.vc.prefix {
    color: var(--color-text-light);
    font-weight: 600;
    opacity: 0.65;
}

.vc.effective {
    color: var(--color-primary);
}

/* 分隔符 */
.vc-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-light);
}

/* 图例 */
.phone-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-item .dot.lucky { background: var(--color-lucky); }
.legend-item .dot.unlucky { background: var(--color-unlucky); }
.legend-item .dot.neutral { background: #fdcb6e; }

.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.info-item { text-align: center; }
.info-label { display: block; font-size: 13px; color: var(--color-text-light); }
.info-value { display: block; font-size: 16px; font-weight: 600; }

.notice-box {
    background: #fff8e1;
    border-left: 4px solid var(--color-gold);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text-light);
    text-align: left;
}

/* ============ 五行统计 ============ */
.elements-phone-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.elements-phone-display .ep-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42px;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(108,92,231,0.06);
    transition: transform 0.15s;
}
.elements-phone-display .ep-cell:hover {
    transform: translateY(-3px);
}
.elements-phone-display .ep-digit {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}
.elements-phone-display .ep-element {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1;
}
.elements-phone-display .el-metal  { background: rgba(176,190,197,0.35); color: #455a64; }
.elements-phone-display .el-wood   { background: rgba(129,199,132,0.35); color: #1b5e20; }
.elements-phone-display .el-water  { background: rgba(100,181,246,0.35); color: #0d47a1; }
.elements-phone-display .el-fire   { background: rgba(239,154,154,0.35); color: #b71c1c; }
.elements-phone-display .el-earth  { background: rgba(205,133,63,0.35); color: #4e342e; }
.elements-phone-display .ep-sep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: var(--color-text-light);
    font-size: 18px;
    font-weight: 300;
}

.elements-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.chart-box {
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0 auto;
}
.chart-box.small { flex: 0 0 240px; max-width: 240px; }
.elements-detail { flex: 1; min-width: 250px; }

.element-stats { margin-bottom: 16px; }
.element-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 4px;
}
.element-badge .count { font-size: 18px; }
.el-metal  { background: rgba(176,190,197,0.25); color: #546e7a; }
.el-wood   { background: rgba(129,199,132,0.25); color: #2e7d32; }
.el-water  { background: rgba(100,181,246,0.25); color: #1565c0; }
.el-fire   { background: rgba(239,154,154,0.25); color: #c62828; }
.el-earth  { background: rgba(205,133,63,0.25); color: #6d4c41; }

.element-analysis {
    background: var(--color-bg);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============ 宫位 ============ */
/* ============ 宫位号码展示 ============ */
.palace-phone-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(108,92,231,0.03));
    border-radius: 12px;
}
/* 前6位前缀数字组：紧凑排列 */
.pp-prefix-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.palace-phone-display .pp-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}
.palace-phone-display .pp-digit {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(108,92,231,0.1);
    margin-bottom: 8px;
}
.palace-phone-display .pp-digit.special-0 {
    background: rgba(255,152,0,0.2);
    color: #e65100;
}
.palace-phone-display .pp-digit.special-5 {
    background: rgba(244,67,54,0.15);
    color: #c62828;
}
.palace-phone-display .pp-cell-simple {
    min-width: 26px;
}
.palace-phone-display .pp-cell-simple .pp-digit {
    font-size: 17px;
    width: 26px;
    height: 26px;
    margin-bottom: 0;
    background: rgba(108,92,231,0.06);
}
.palace-phone-display .pp-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}
.palace-phone-display .pp-pos {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.palace-note {
    background: #e8f5e9;
    border-left: 4px solid var(--color-lucky);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.palace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.palace-card {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: transform 0.15s;
}
.palace-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.palace-card.special-0 { border-color: var(--color-warning); }
.palace-card.special-5 { border-color: var(--color-unlucky); }

.palace-header {
    padding: 12px 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.palace-card:not(.special-0):not(.special-5) .palace-header {
    background: var(--color-primary);
}
.palace-card.special-0 .palace-header { background: var(--color-warning); }
.palace-card.special-5 .palace-header { background: var(--color-unlucky); }

.palace-name { font-size: 16px; font-weight: 700; }
.palace-digit {
    font-size: 28px;
    font-weight: 800;
    background: rgba(255,255,255,0.25);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.palace-body { padding: 14px 16px; }
.palace-pos { font-size: 12px; color: var(--color-text-light); margin-bottom: 4px; }
.palace-desc { font-size: 14px; margin-bottom: 10px; font-weight: 500; }
.palace-level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.level-normal { background: #e8f5e9; color: var(--color-lucky); }
.level-bad-0 { background: #ffebee; color: var(--color-warning); }
.level-bad-5 { background: #fff3e0; color: var(--color-unlucky); }

.palace-text { font-size: 13px; color: var(--color-text-light); line-height: 1.7; }
.palace-advice {
    font-size: 13px;
    color: var(--color-primary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--color-border);
}

/* 宫位数字象意详解 */
.palace-meaning {
    margin-top: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(108,92,231,0.07), rgba(0,184,148,0.04));
    border-radius: 8px;
    border-left: 3px solid #6c5ce7;
}
.palace-meaning-title {
    font-size: 13px;
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 6px;
}
.palace-meaning-text {
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text);
}

/* ============ 星磁场统计条 ============ */
.star-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.stat-pill {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}
.stat-pill.lucky { background: rgba(0,184,148,0.12); }
.stat-pill.unlucky { background: rgba(225,112,85,0.12); }
.stat-pill.neutral { background: rgba(253,203,110,0.15); }
.stat-pill .stat-num { font-size: 28px; font-weight: 800; display: block; }
.stat-pill.lucky .stat-num { color: var(--color-lucky); }
.stat-pill.unlucky .stat-num { color: var(--color-unlucky); }
.stat-pill.neutral .stat-num { color: #b8860b; }
.stat-pill .stat-label { font-size: 13px; color: var(--color-text-light); }

/* ============ 两字组合可视化 ============ */
.star-combo-visual {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(108,92,231,0.02));
    border-radius: 12px;
    overflow-x: auto;
}
.scv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.scv-digits {
    display: flex;
    gap: 4px;
    align-items: center;
}
.scv-digit {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(108,92,231,0.1);
}
.scv-arc-label {
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    line-height: 1;
}
.scv-type-badge {
    font-size: 10px;
    color: var(--color-text-light);
    margin-top: 4px;
}
.scv-inherit {
    font-size: 9px;
    color: #b8860b;
    background: rgba(253,203,110,0.15);
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 4px;
    white-space: nowrap;
}
.scv-arc {
    width: 60px;
    height: 20px;
    margin-top: 6px;
}

/* ============ 组合卡片 ============ */
.combo-list { display: grid; gap: 14px; }

.combo-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
}

.combo-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.combo-card.star-lucky .combo-header { background: linear-gradient(135deg, #00b894, #00a383); }
.combo-card.star-unlucky .combo-header { background: linear-gradient(135deg, #e17055, #d6604a); }
.combo-card.star-neutral .combo-header { background: linear-gradient(135deg, #f39c12, #d68910); }

.combo-digits {
    font-size: 24px;
    font-weight: 800;
    background: rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 2px;
}
.combo-star-name { font-size: 18px; font-weight: 700; }
.combo-star-tags { margin-left: auto; display: flex; gap: 6px; }
.combo-tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
}

.combo-body { padding: 14px 16px; }
.combo-pos { font-size: 12px; color: var(--color-text-light); margin-bottom: 10px; }
.combo-inherit-note {
    font-size: 12px;
    color: #b8860b;
    background: rgba(253,203,110,0.12);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.combo-inherit-tag {
    display: inline-block;
    font-size: 10px;
    color: #b8860b;
    background: rgba(253,203,110,0.2);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.combo-keywords {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.combo-detail-grid { font-size: 13px; line-height: 1.8; }
.combo-detail-grid .label { color: var(--color-text-light); font-weight: 600; }
.combo-pros-cons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--color-border);
    font-size: 13px;
}
.combo-pros-cons .label { font-weight: 600; }
.combo-pros-cons .pros-text { color: var(--color-lucky); }
.combo-pros-cons .cons-text { color: var(--color-unlucky); }

/* ============ 三字组合来源去向 ============ */
.source-dest-layout {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.source-block, .dest-block {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
}
.source-block { background: rgba(108,92,231,0.08); border-left: 3px solid var(--color-primary); }
.dest-block { background: rgba(0,184,148,0.06); border-left: 3px solid var(--color-lucky); }
.dest-block.unlucky-dest { background: rgba(225,112,85,0.06); border-left-color: var(--color-unlucky); }
.source-block.unlucky-source { background: rgba(225,112,85,0.06); border-left-color: var(--color-unlucky); }

.source-dest-arrow {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0 4px;
}

.block-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.source-block .block-title { color: var(--color-primary); }
.dest-block .block-title { color: var(--color-lucky); }
.dest-block.unlucky-dest .block-title { color: var(--color-unlucky); }
.source-block.unlucky-source .block-title { color: var(--color-unlucky); }
.block-text { font-size: 13px; color: var(--color-text-light); line-height: 1.7; }

/* 三字组合含义 */
.combo-meaning {
    margin-top: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(0,184,148,0.04));
    border-radius: 8px;
    border-left: 3px solid #6c5ce7;
    font-size: 14px;
    line-height: 1.8;
}
.combo-meaning-label {
    font-weight: 700;
    color: #6c5ce7;
}
.combo-meaning-text {
    color: var(--color-text);
}

/* ============ 八星夹0 ============ */
.zero-combo-list {
    display: grid;
    gap: 16px;
}
.zero-combo-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
}
.zero-combo-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.zero-combo-digits {
    font-size: 24px;
    font-weight: 800;
    background: rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 2px;
}
.zero-combo-star {
    font-size: 17px;
    font-weight: 700;
    flex: 1;
}
.zero-combo-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
}
.zero-combo-body {
    padding: 14px 18px;
}
.zero-combo-pos {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 6px;
}
.zero-combo-patterns {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(108,92,231,0.06);
    border-radius: 6px;
}
.zero-combo-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zero-point {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    transition: background 0.2s;
}
.zero-point:hover {
    background: rgba(108,92,231,0.05);
}
.zero-point-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zero-point-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============ 数字多寡解读 ============ */
.digit-multiple-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 数字分布条 */
.dm-counts {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 6px;
    padding: 20px 16px 14px;
    background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(108,92,231,0.02));
    border-radius: 12px;
}
.dm-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 48px;
}
.dm-count-bar-wrap {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.dm-count-bar {
    width: 60%;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
    opacity: 0.5;
}
.dm-count-item.multi .dm-count-bar {
    opacity: 1;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}
.dm-count-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
}
.dm-count-digit {
    font-size: 16px;
    font-weight: 800;
}
.dm-total {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 8px;
}

/* 数字多寡卡片 */
.dm-card {
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
    overflow: hidden;
}
.dm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(108,92,231,0.04);
}
.dm-big-digit {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}
.dm-header-info {
    flex: 1;
}
.dm-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}
.dm-meta {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
}
.dm-card-body {
    padding: 12px 16px 14px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ============ 微信二维码弹窗 ============ */
.wechat-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(7,193,96,0.35);
}
.wechat-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(7,193,96,0.45);
    text-decoration: none;
}

.wechat-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wechat-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: wechatModalIn 0.3s ease;
}
@keyframes wechatModalIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.wechat-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0,0,0,0.08);
    color: #555;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.wechat-modal-close:hover {
    background: rgba(0,0,0,0.15);
}
.wechat-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #07c160;
    margin-bottom: 8px;
}
.wechat-modal-sub {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 18px;
}
.wechat-modal-img {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    object-fit: contain;
    background: #fff;
    margin-bottom: 14px;
}
.wechat-modal-tip {
    font-size: 13px;
    color: var(--color-text-light);
    padding: 8px 12px;
    background: rgba(7,193,96,0.08);
    border-radius: 8px;
    display: inline-block;
}

/* ============ 优缺点总结 ============ */
.summary-layout { display: flex; gap: 20px; flex-wrap: wrap; }
.summary-card {
    flex: 1;
    min-width: 280px;
    border-radius: 10px;
    padding: 18px;
}
.summary-card.pros { background: rgba(0,184,148,0.08); border: 1px solid rgba(0,184,148,0.2); }
.summary-card.cons { background: rgba(225,112,85,0.08); border: 1px solid rgba(225,112,85,0.2); }
.summary-card h3 { font-size: 16px; margin-bottom: 12px; }
.summary-card.pros h3 { color: var(--color-lucky); }
.summary-card.cons h3 { color: var(--color-unlucky); }
.summary-card ul { list-style: none; }
.summary-card li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.summary-card li:last-child { border-bottom: none; }

/* ============ 综合评分 ============ */
.score-layout {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.score-main { text-align: center; }
.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 8px solid;
    transition: all 0.5s;
}
.score-number { font-size: 48px; font-weight: 800; line-height: 1; }
.score-unit { font-size: 16px; color: var(--color-text-light); }
.score-grade {
    font-size: 22px;
    font-weight: 700;
    padding: 6px 24px;
    border-radius: 20px;
}

.score-grade.grade-a { background: rgba(0,184,148,0.15); color: var(--color-lucky); }
.score-grade.grade-b { background: rgba(116,185,255,0.15); color: #0984e3; }
.score-grade.grade-c { background: rgba(253,203,110,0.2); color: #b8860b; }
.score-grade.grade-d { background: rgba(225,112,85,0.15); color: var(--color-unlucky); }
.score-grade.grade-e { background: rgba(214,48,49,0.15); color: var(--color-warning); }

.score-detail { flex: 1; min-width: 280px; }
.score-breakdown { margin-top: 16px; }
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg);
    font-size: 14px;
}
.score-row:last-child { border-bottom: none; font-weight: 700; }
.score-row .score-val { font-weight: 600; }

/* ============ 多维度点评 ============ */
.review-section {
    margin-top: 24px;
}
.review-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.review-card {
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.review-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.review-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}
.review-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* 各点评类型颜色 */
.review-personality { border-top: 3px solid #6c5ce7; }
.review-health { border-top: 3px solid #00b894; }
.review-career { border-top: 3px solid #0984e3; }
.review-wealth { border-top: 3px solid #fdcb6e; }
.review-family { border-top: 3px solid #e84393; }
.review-overall {
    border-top: 3px solid #d63031;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(214,48,49,0.05), rgba(108,92,231,0.03));
}
.review-overall .review-content {
    font-size: 15px;
    font-weight: 500;
}

/* 复制按钮 */
.review-copy-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #5538d8);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}
.review-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108,92,231,0.4);
}
.review-copy-btn:active {
    transform: translateY(0);
}
.review-copy-btn.copied {
    background: linear-gradient(135deg, #00b894, #00a383);
}

/* 点评锁定（会员专属） */
.review-locked {
    text-align: center;
    padding: 48px 20px;
    background: linear-gradient(135deg, #f8f9fa, #f1f3f5);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
}
.review-locked-icon {
    font-size: 44px;
    margin-bottom: 12px;
}
.review-locked-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}
.review-locked-desc {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}
.review-locked-btn {
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #5538d8);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}
.review-locked-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108,92,231,0.4);
}

.final-advice {
    margin-top: 24px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(108,92,231,0.03));
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
    font-size: 15px;
    line-height: 1.8;
}

/* ============ 响应式 ============ */
@media (max-width: 600px) {
    .home-header h1 { font-size: 22px; }
    .phone-display { font-size: 24px; letter-spacing: 2px; }
    .info-grid { gap: 16px; }
    .chart-box, .chart-box.small { flex: 0 0 100%; max-width: 100%; }
    .elements-layout { flex-direction: column; }
    .score-layout { flex-direction: column; }
    .summary-layout { flex-direction: column; }
    .source-dest-layout { flex-direction: column; }
    .report-section { padding: 18px 14px; }
    .section-title { font-size: 18px; }

    /* 号码基础信息 - SVG弧线展示 */
    .phone-star-display {
        padding: 12px 4px 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .phone-svg-wrap {
        padding-top: 50px;
    }
    .pv-row {
        grid-template-columns: repeat(3, 30px) 8px repeat(8, 30px);
    }
    .vc {
        height: 30px;
        font-size: 17px;
    }

    /* 后五位五宫位号码展示 */
    .palace-phone-display {
        gap: 4px;
        padding: 12px 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pp-prefix-group {
        gap: 2px;
    }
    .palace-phone-display .pp-cell {
        min-width: 36px;
    }
    .palace-phone-display .pp-digit {
        font-size: 21px;
        width: 34px;
        height: 34px;
    }
    .palace-phone-display .pp-cell-simple {
        min-width: 22px;
    }
    .palace-phone-display .pp-cell-simple .pp-digit {
        font-size: 14px;
        width: 22px;
        height: 22px;
    }
    .palace-phone-display .pp-name {
        font-size: 11px;
    }
    .palace-phone-display .pp-pos {
        font-size: 10px;
    }

    /* 两字组合可视化 */
    .star-combo-visual {
        gap: 8px;
        padding: 12px 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .scv-item {
        min-width: 52px;
    }
    .scv-digit {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
    .scv-arc {
        width: 44px;
        height: 16px;
    }
    .scv-arc-label {
        font-size: 11px;
        padding: 2px 6px;
    }
    .scv-type-badge {
        font-size: 9px;
    }

    /* 多维度点评 */
    .review-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .review-card {
        padding: 14px;
    }
    .review-icon {
        font-size: 24px;
    }
    .review-content {
        font-size: 13px;
    }

    /* 复制按钮 */
    .review-copy-btn {
        margin-top: 16px;
        padding: 10px 20px;
        font-size: 14px;
    }
}
