:root {
    --bg: #0d0d0d; --bg2: #1a1a1a; --bg3: #252525; --bg4: #333;
    --gold: #c9a96e; --gold-light: #e0c48a; --gold-dim: #8a7340;
    --text: #e0e0e0; --text-light: #bbb; --text-dim: #777;
    --text-secondary: #999;
    --border: #333; --danger: #e74c3c; --success: #2ecc71;
    --wx-jin: #DAA520; --wx-mu: #228B22; --wx-shui: #1E90FF;
    --wx-huo: #DC143C; --wx-tu: #8B4513;
}
/* 亮色主题 */
body.light-theme {
    --bg: #f5f5f5; --bg2: #ffffff; --bg3: #f0f0f0; --bg4: #e0e0e0;
    --gold: #9a6e2a; --gold-light: #b8862e; --gold-dim: #c9a96e;
    --text: #1a1a1a; --text-light: #444; --text-dim: #888;
    --text-secondary: #666;
    --border: #ddd; --danger: #e74c3c; --success: #27ae60;
}
body.light-theme .header { background: #ffffff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
body.light-theme .card { background: #ffffff; border-color: #e0e0e0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light-theme .form-input { background: #f8f8f8; border-color: #ddd; color: #1a1a1a; }
body.light-theme .btn-sm { border-color: #ccc; color: #444; }
body.light-theme .btn-sm:hover { border-color: var(--gold); color: var(--gold); }
body.light-theme .case-card { background: #ffffff; border-color: #e0e0e0; }
body.light-theme .city-dropdown { background: #ffffff; border-color: #ddd; }
body.light-theme .city-item:hover { background: #f5f5f5; }
body.light-theme .modal { background: #ffffff; border-color: #e0e0e0; }
body.light-theme .modal-overlay { background: rgba(0,0,0,0.4); }
body.light-theme .user-event-add-row input, body.light-theme .user-event-add-row select { background: #f8f8f8; border-color: #ddd; color: #1a1a1a; }
body.light-theme .user-event-item-row { background: #f8f8f8; }
body.light-theme .ai-panel { background: #ffffff; border-color: #e0e0e0; }
body.light-theme .ai-input-area { background: #f8f8f8; border-color: #ddd; }
body.light-theme .ai-input { background: #ffffff; border-color: #ddd; color: #1a1a1a; }
body.light-theme .fortune-aspects-section { background: #ffffff; border-color: #e0e0e0; }
body.light-theme .fortune-overall-banner { background: linear-gradient(135deg, rgba(154,110,42,0.08), rgba(154,110,42,0.03)); }
body.light-theme 
body.light-theme 
/* 主题切换按鈕 */
.theme-toggle-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg3); color: var(--text-light); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle-btn:hover { border-color: var(--gold); color: var(--gold); }
* { margin:0; padding:0; box-sizing:border-box; }
html, body { overflow-x:hidden; max-width:100vw; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background:var(--bg); color:var(--text); min-height:100vh; }
a { color:var(--gold); text-decoration:none; }
button { cursor:pointer; border:none; background:none; color:inherit; font-family:inherit; }
input, select, textarea { font-family:inherit; }

.header { background:var(--bg2); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.header-inner { max-width:1400px; margin:0 auto; padding:0 20px; height:56px; display:flex; align-items:center; justify-content:space-between; }
.logo { display:flex; align-items:center; gap:10px; cursor:pointer; }
.logo-icon { width:44px; height:44px; display:flex; align-items:center; justify-content:center; }
.logo-icon img { width:44px; height:44px; object-fit:contain; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; border-radius: 50%; transition: all 0.3s ease; }
body:not(.light-theme) .logo-icon img { border: 1.5px solid rgba(183, 155, 100, 0.6); box-shadow: 0 0 10px rgba(183, 155, 100, 0.35), 0 2px 8px rgba(0,0,0,0.5); background: #fff; }
.logo-text { font-size:18px; font-weight:600; color:var(--gold); }

.header-nav { display:flex; gap:4px; }
.header-nav a { padding:8px 16px; border-radius:6px; color:var(--text-light); font-size:14px; transition:all .2s; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.header-nav a:hover, .header-nav a.active { color:var(--gold); background:rgba(201,169,110,.1); }
.user-area { display:flex; gap:8px; align-items:center; }
.user-btn { padding:6px 16px; border-radius:6px; font-size:13px; border:1px solid var(--border); color:var(--text-light); transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:36px; }
.user-btn:hover { border-color:var(--gold); color:var(--gold); }
.user-btn.primary { background:var(--gold); color:#000; border-color:var(--gold); font-weight:500; }
.user-btn.primary:hover { background:var(--gold-light); }
.user-info { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-light); }

.container { max-width:1400px; margin:0 auto; padding:20px; }
.page { display:none; }
.page.active { display:block; }

.card { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:24px; margin-bottom:16px; }
.card-title { font-size:18px; font-weight:600; color:var(--gold); margin-bottom:16px; }

.form-row { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:12px; }
.form-group { display:flex; flex-direction:column; gap:4px; }
.form-label { font-size:12px; color:var(--text-dim); }
.form-input { padding:8px 12px; background:var(--bg3); border:1px solid var(--border); border-radius:6px; color:var(--text); font-size:16px; width:120px; outline:none; }
.form-input:focus { border-color:var(--gold); }
.form-input.wide { width:200px; }

.btn-primary { padding:10px 24px; background:linear-gradient(135deg, var(--gold), var(--gold-dim)); color:#000; font-weight:600; border-radius:8px; font-size:14px; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(201,169,110,.3); }
.btn-sm { padding:6px 14px; border-radius:6px; font-size:12px; border:1px solid var(--border); color:var(--text-light); transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:36px; }
.btn-sm:hover { border-color:var(--gold); color:var(--gold); }
.btn-sm.gold { background:var(--gold); color:#000; border-color:var(--gold); }
.btn-sm.danger { border-color:var(--danger); color:var(--danger); }

.checkbox-row { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-light); cursor:pointer; }
.checkbox-row input[type="checkbox"] { accent-color:var(--gold); }

/* 城市搜索 */
.city-search-wrap { position:relative; }
.city-dropdown { position:absolute; top:100%; left:0; width:280px; max-height:240px; overflow-y:auto; background:var(--bg3); border:1px solid var(--border); border-radius:8px; z-index:50; display:none; }
.city-dropdown.show { display:block; }
.city-item { padding:8px 12px; cursor:pointer; font-size:13px; border-bottom:1px solid var(--border); }
.city-item:hover { background:var(--bg4); color:var(--gold); }
.city-item .province { color:var(--text-dim); font-size:11px; margin-left:8px; }

/* 五行颜色 */
.wx-jin { color:var(--wx-jin) !important; }
.wx-mu { color:var(--wx-mu) !important; }
.wx-shui { color:var(--wx-shui) !important; }
.wx-huo { color:var(--wx-huo) !important; }
.wx-tu { color:var(--wx-tu) !important; }
.wx-bg-jin { background:var(--wx-jin) !important; }
.wx-bg-mu { background:var(--wx-mu) !important; }
.wx-bg-shui { background:var(--wx-shui) !important; }
.wx-bg-huo { background:var(--wx-huo) !important; }
.wx-bg-tu { background:var(--wx-tu) !important; }

/* ===== 排盘结果左右布局 ===== */
.paipan-layout { display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); gap:20px; align-items:stretch; }
.paipan-left { min-width:0; overflow:hidden; display:flex; flex-direction:column; }
.paipan-right { min-width:0; overflow:hidden; display:flex; flex-direction:column; }
.paipan-right > .card { flex:1; }
/* 关系分析区域：flex:1自动填满左栏剩余高度，内容多时在框内滚动 */
#relAnalysisArea { flex:1; overflow-y:auto; min-height:80px; }
/* 人生重大事件预测：全宽展示，固定高度内滚动 */
#lifeEventsContent { overflow-y:auto; max-height:600px; min-height:200px; }

/* 原局表格 */
.yuanju-table-wrap { overflow-x:auto; width:100%; -webkit-overflow-scrolling:touch; position:relative; }
.yuanju-table th:first-child, .yuanju-table td:first-child { position: static; }
@media (max-width:900px) {
    .yuanju-table { min-width:auto; }
    .yuanju-table th:first-child { position:sticky; left:0; z-index:3; background:var(--bg3); }
    .yuanju-table td:first-child { position:sticky; left:0; z-index:2; background:var(--bg3); }
    .yuanju-table tr th:first-child,
    .yuanju-table tr td:first-child { box-shadow: 2px 0 4px rgba(0,0,0,0.08); }
}
.yuanju-table { width:100%; min-width:560px; border-collapse:collapse; font-size:13px; }
.yuanju-table th, .yuanju-table td { border:1px solid var(--border); padding:6px 8px; text-align:center; vertical-align:middle; }
.yuanju-table th { background:var(--bg3); color:var(--text-dim); font-weight:normal; white-space:nowrap; }
.yuanju-table .gan-cell { font-size:28px; font-weight:bold; padding:8px 4px; }
.yuanju-table .zhi-cell { font-size:28px; font-weight:bold; padding:8px 4px; }
.yuanju-table .canggan-cell { font-size:12px; line-height:1.6; white-space:nowrap; }
.yuanju-table .shishen-label { font-size:11px; vertical-align:super; }
.wx-icon { display:inline-block; width:22px; height:22px; vertical-align:middle; margin-left:2px; }
.wx-icon-sm { display:inline-block; width:14px; height:14px; vertical-align:middle; margin-left:1px; }
.fuxing-cell { font-size:12px; line-height:1.6; white-space:nowrap; }

/* 大运/流年选择区 */
.dayun-section { margin-bottom:12px; overflow:hidden; }
.dayun-title { font-size:14px; color:var(--text-dim); margin-bottom:8px; display:flex; align-items:center; justify-content:space-between; }
.dayun-scroll { display:flex; gap:4px; overflow-x:auto; overflow-y:visible; padding-bottom:6px; max-width:100%; width:100%; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.dayun-item { flex-shrink:0; padding:6px 10px; border-radius:6px; cursor:pointer; text-align:center; font-size:12px; border:1px solid transparent; transition:all .2s; min-width:60px; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.dayun-item:hover { border-color:var(--gold-dim); }
.dayun-item.active { border-color:var(--gold); background:rgba(201,169,110,.15); }
.dayun-item .dy-year { color:var(--text-dim); font-size:11px; }
.dayun-item .dy-age { color:var(--text-dim); font-size:11px; }
.dayun-item .dy-gan { font-size:16px; font-weight:bold; }
.dayun-item .dy-zhi { font-size:16px; font-weight:bold; }
.dayun-item .dy-ss { font-size:10px; color:var(--text-dim); }

.today-btn { padding:4px 12px; border-radius:4px; font-size:12px; background:var(--gold); color:#000; font-weight:500; }
.today-btn:hover { background:var(--gold-light); }

.selected-date-info { text-align:center; padding:8px; font-size:13px; color:var(--gold); margin-top:8px; }

/* 五行旺衰条 */
.wuxing-bar { display:flex; justify-content:center; gap:16px; padding:10px; background:var(--bg3); border-radius:8px; margin-top:12px; }
.wuxing-bar-item { font-size:13px; display:flex; align-items:center; gap:4px; }

/* ===== 案例卡片 ===== */

/* 案例管理分组样式 */
.case-group-bar { display:flex; gap:8px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.case-group-tag { padding:6px 16px; border-radius:20px; font-size:13px; cursor:pointer; border:1px solid var(--border); color:var(--text-dim); transition:all .2s; white-space:nowrap; }
.case-group-tag:hover { border-color:var(--gold); color:var(--gold); }
.case-group-tag.active { background:var(--gold); color:#000; border-color:var(--gold); font-weight:600; }
.case-group-tag.add-group { border-style:dashed; font-size:16px; padding:4px 12px; }
.case-group-tag.del-group { border-style:dashed; font-size:16px; padding:4px 12px; color:var(--danger); border-color:var(--danger); }
.case-group-tag.del-group:hover { background:var(--danger); color:#fff; }
/* 案例卡片新布局 */
.case-card-new { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:16px 18px; cursor:pointer; transition:all .2s; position:relative; display:flex; align-items:center; gap:12px; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.case-card-new:hover { border-color:var(--gold-dim); transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.08); }
.case-card-new.pinned { border-color:var(--gold-dim); background:linear-gradient(135deg, var(--bg2), rgba(201,169,110,0.06)); }
.case-card-new .card-left { flex:1; min-width:0; }
.case-card-new .card-bazi { display:flex; gap:6px; flex-wrap:wrap; }
.case-card-new .bazi-row { display:flex; gap:6px; }
.case-card-new .bazi-char { width:34px; height:34px; border-radius:50%; border:2px solid var(--gold-dim); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:bold; }
.case-card-new .card-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.case-card-new .zodiac-icon { width:48px; height:48px; border-radius:50%; object-fit:cover; flex-shrink:0; }
body.light-theme .case-card-new .zodiac-icon { }
.case-card-new .menu-btn { width:36px; height:80px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; cursor:pointer; border-radius:8px; color:var(--text-dim); transition:all .2s; flex-shrink:0; position:relative; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.case-card-new .menu-btn .dot { width:5px; height:5px; border-radius:50%; background:var(--text-dim, #999); transition:background .2s; }
.case-card-new .menu-btn:hover { background:var(--bg3); }
.case-card-new .menu-btn:hover .dot { background:var(--text, #333); }

/* 三点菜单弹出层 */
/* 三点菜单弹出层 - fixed定位 + 向左弹出 + 苹果风格动画 */
.case-dropdown { position:fixed; background:var(--bg); border:1px solid var(--border); border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08); z-index:9999; min-width:120px; overflow:hidden; opacity:0; pointer-events:none; transform:scale(0.6); transform-origin:right center; transition:transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease; }
.case-dropdown.show { transform:scale(1); opacity:1; pointer-events:auto; }
body.light-theme .case-dropdown { background:#fff; box-shadow:0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06); }
.case-dropdown-item { padding:11px 18px; cursor:pointer; font-size:14px; color:var(--text); transition:background .15s; border-bottom:1px solid var(--border, #eee); }
.case-dropdown-item:last-child { border-bottom:none; }
.case-dropdown-item:hover { background:var(--bg3); }
.case-dropdown-item:active { background:var(--bg3); opacity:0.7; }
.case-dropdown-item.danger { color:var(--danger); }
.case-pin-badge { position:absolute; top:8px; left:12px; font-size:11px; color:var(--gold); font-weight:600; }
    
.case-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:16px; }
.pinned-grid .case-card-new { border-left:3px solid var(--gold, #c8a45a); }
.pinned-section-title { font-size:15px; font-weight:600; color:var(--gold, #c8a45a); margin-bottom:12px; padding-left:2px; }
.normal-section-divider { height:1px; background:var(--border, #e0e0e0); margin:20px 0; }
.case-card { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:20px; cursor:pointer; transition:all .2s; position:relative; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.case-card:hover { border-color:var(--gold-dim); transform:translateY(-2px); }
.case-card .case-name { font-size:16px; font-weight:600; color:var(--text); }
.case-card .case-gender { font-size:13px; color:var(--text-dim); margin-left:8px; }
.case-card .case-date { font-size:13px; color:var(--text-dim); margin-top:4px; }
.case-card .case-bazi { display:flex; gap:8px; margin-top:12px; }
.case-card .bazi-char { width:40px; height:40px; border-radius:50%; border:2px solid var(--gold-dim); display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:bold; }
.case-card .case-actions { position:absolute; top:12px; right:12px; display:flex; gap:4px; }

/* ===== 名人案例库 ===== */
.celebrity-categories { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.celebrity-categories .cat-btn { padding:6px 16px; border-radius:20px; border:1px solid var(--border); background:var(--bg2); color:var(--text-dim); cursor:pointer; font-size:13px; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:36px; }
.celebrity-categories .cat-btn:hover { border-color:var(--gold-dim); color:var(--gold); }
.celebrity-categories .cat-btn.active { background:var(--gold); color:#000; border-color:var(--gold); font-weight:600; }
.celebrity-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:14px; }
.celebrity-card { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:16px; cursor:pointer; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.celebrity-card:hover { border-color:var(--gold-dim); transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.15); }
.celebrity-card .celeb-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.celebrity-card .celeb-name { font-size:16px; font-weight:600; color:var(--text); }
.celebrity-card .celeb-gender { font-size:12px; padding:2px 8px; border-radius:10px; background:var(--bg3); color:var(--text-dim); }
.celebrity-card .celeb-title { font-size:13px; color:var(--gold); margin-bottom:6px; }
.celebrity-card .celeb-dynasty { font-size:12px; color:var(--text-dim); margin-bottom:10px; }
.celebrity-card .celeb-bazi { display:flex; gap:4px; justify-content:center; }
.celebrity-card .celeb-pillar { display:flex; flex-direction:column; align-items:center; gap:2px; }
.celebrity-card .celeb-pillar span { width:32px; height:32px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:600; }
.celebrity-card .celeb-pillar .tg { background:rgba(212,175,55,0.15); color:var(--gold); border:1px solid var(--gold-dim); }
.celebrity-card .celeb-pillar .dz { background:var(--bg3); color:var(--text); border:1px solid var(--border); }
.celebrity-card .celeb-cat-tag { display:inline-block; font-size:11px; padding:2px 8px; border-radius:8px; margin-top:8px; }
.celebrity-card .celeb-cat-tag[data-cat="君主"] { background:rgba(255,215,0,0.15); color:#ffd700; }
.celebrity-card .celeb-cat-tag[data-cat="历史名人"] { background:rgba(100,149,237,0.15); color:#6495ed; }
.celebrity-card .celeb-cat-tag[data-cat="娱乐"] { background:rgba(255,105,180,0.15); color:#ff69b4; }
.celebrity-card .celeb-cat-tag[data-cat="文学"] { background:rgba(144,238,144,0.15); color:#90ee90; }
.celebrity-card .celeb-cat-tag[data-cat="僧道"] { background:rgba(186,85,211,0.15); color:#ba55d3; }
.celebrity-card .celeb-cat-tag[data-cat="国外"] { background:rgba(255,165,0,0.15); color:#ffa500; }
.celebrity-card .celeb-cat-tag[data-cat="商界"] { background:rgba(0,206,209,0.15); color:#00ced1; }
body.light-theme .celebrity-card { background:#ffffff; border-color:#e0e0e0; }
body.light-theme .celebrity-categories .cat-btn { background:#f5f5f5; border-color:#ddd; }
body.light-theme .celebrity-categories .cat-btn.active { background:var(--gold); color:#000; border-color:var(--gold); }

/* ===== 合盘 ===== */
.hepan-input-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hepan-person { background:var(--bg3); border-radius:12px; padding:20px; }
.hepan-person-title { font-size:16px; font-weight:600; color:var(--gold); margin-bottom:16px; text-align:center; }
.hepan-select-btns { display:flex; flex-direction:column; gap:12px; align-items:center; margin-top:12px; }

.hepan-result-section { margin-top:20px; }
.hepan-two-cols { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.hepan-person-info { background:var(--bg3); border-radius:12px; padding:20px; }
.hepan-info-row { display:flex; gap:12px; margin-bottom:6px; font-size:13px; }
.hepan-info-label { color:var(--gold-dim); min-width:40px; }
.hepan-sizhu-row { display:flex; justify-content:space-around; margin:16px 0 8px; }
.hepan-zhu { text-align:center; }
.hepan-zhu-label { font-size:12px; color:var(--text-dim); margin-bottom:4px; }
.hepan-zhu-gan { font-size:32px; font-weight:bold; }
.hepan-zhu-ss { font-size:11px; color:var(--text-dim); vertical-align:super; }
.hepan-zhu-zhi { font-size:32px; font-weight:bold; margin-top:4px; }
.hepan-zhu-cg { font-size:11px; color:var(--text-dim); margin-top:2px; line-height:1.4; }
.hepan-dayun-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.hepan-dayun-item { text-align:center; font-size:12px; }
.hepan-dayun-item .age { color:var(--text-dim); }

.hepan-params-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.hepan-params-table th, .hepan-params-table td { border:1px solid var(--border); padding:8px 12px; text-align:center; }
.hepan-params-table th { background:var(--bg3); color:var(--text-dim); }
.hepan-radar-wrap { display:flex; justify-content:center; align-items:center; }

/* ===== 多人合盘 ===== */
.hepan-tabs { display:flex; gap:0; margin-bottom:20px; border-bottom:2px solid var(--border); }
.hepan-tab { padding:10px 24px; cursor:pointer; color:var(--text-dim); font-size:14px; font-weight:500; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.hepan-tab:hover { color:var(--text); }
.hepan-tab.active { color:var(--gold); border-bottom-color:var(--gold); }
.multi-hp-persons { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:16px; }
.multi-hp-card { background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:16px; min-width:220px; flex:1; max-width:300px; position:relative; transition:all .2s; }
.multi-hp-card:hover { border-color:var(--gold-dim); }
.multi-hp-card .remove-btn { position:absolute; top:4px; right:4px; width:36px; height:36px; border-radius:50%; background:rgba(231,76,60,.2); color:var(--danger); border:none; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.multi-hp-card .remove-btn:hover { background:rgba(231,76,60,.4); }
.multi-hp-card .person-name { font-weight:600; color:var(--gold); font-size:15px; margin-bottom:8px; }
.multi-hp-card .person-info { font-size:12px; color:var(--text-dim); line-height:1.6; }
.multi-hp-add { background:var(--bg3); border:2px dashed var(--border); border-radius:12px; padding:16px; min-width:220px; flex:1; max-width:300px; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; min-height:120px; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.multi-hp-add:hover { border-color:var(--gold); background:var(--bg4); }
.multi-hp-add .add-icon { font-size:32px; color:var(--gold-dim); margin-bottom:8px; }
.multi-hp-add .add-text { font-size:13px; color:var(--text-dim); }
.mhp-result-section { margin-top:24px; }
.mhp-section-title { font-size:16px; font-weight:600; color:var(--gold); margin-bottom:16px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.mhp-pair-card { background:var(--bg3); border-radius:10px; padding:16px; margin-bottom:12px; border-left:3px solid var(--gold); }
.mhp-pair-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.mhp-pair-names { font-weight:600; color:var(--text); font-size:14px; }
.mhp-pair-level { padding:3px 10px; border-radius:12px; font-size:12px; font-weight:500; }
.mhp-pair-level.极佳 { background:rgba(46,204,113,.15); color:var(--success); }
.mhp-pair-level.良好 { background:rgba(46,204,113,.1); color:var(--success); }
.mhp-pair-level.一般 { background:rgba(241,196,15,.15); color:var(--warning); }
.mhp-pair-level.有摩擦 { background:rgba(231,76,60,.1); color:var(--danger); }
.mhp-pair-level.需注意 { background:rgba(231,76,60,.15); color:var(--danger); }
.mhp-rel-tags { display:flex; flex-wrap:wrap; gap:6px; }
.mhp-rel-tag { padding:3px 8px; border-radius:4px; font-size:11px; }
.mhp-rel-tag.吉 { background:rgba(46,204,113,.1); color:var(--success); }
.mhp-rel-tag.凶 { background:rgba(231,76,60,.1); color:var(--danger); }
.mhp-rel-tag.中 { background:rgba(241,196,15,.1); color:var(--warning); }
.mhp-timeline-item { background:var(--bg3); border-radius:10px; padding:14px 16px; margin-bottom:10px; cursor:pointer; transition:all .2s; border-left:3px solid transparent; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.mhp-timeline-item:hover { border-left-color:var(--gold); }
.mhp-timeline-header { display:flex; justify-content:space-between; align-items:center; }
.mhp-timeline-year { font-weight:600; color:var(--text); font-size:14px; }
.mhp-timeline-events { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.mhp-event-tag { padding:4px 10px; border-radius:6px; font-size:12px; display:flex; align-items:center; gap:4px; }
.mhp-event-tag.吉 { background:rgba(46,204,113,.12); color:var(--success); }
.mhp-event-tag.凶 { background:rgba(231,76,60,.12); color:var(--danger); }
.mhp-team-score { text-align:center; padding:24px; }
.mhp-team-score .score-num { font-size:48px; font-weight:bold; color:var(--gold); }
.mhp-team-score .score-label { font-size:14px; color:var(--text-dim); margin-top:4px; }
/* 四柱一览卡片式样式（升级版） */
.mhp-bazi-cards { display:flex; flex-wrap:wrap; gap:20px; padding:8px 0; justify-content:center; }
.mhp-bazi-cards.mhp-cards-scroll { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; justify-content:flex-start; }
.mhp-bazi-card { background:var(--bg2); border:1px solid var(--border); border-radius:14px; padding:20px 24px; min-width:0; flex:1 1 0; box-shadow:0 2px 10px rgba(0,0,0,0.07); }
.mhp-cards-scroll .mhp-bazi-card { flex:0 0 280px; min-width:280px; }
.mhp-bazi-card-header { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.mhp-bazi-card-name { font-size:18px; font-weight:bold; color:var(--gold); }
.mhp-bazi-card-gender { font-size:13px; color:var(--text-dim); }
.mhp-bazi-card-age { font-size:13px; color:var(--text-dim); }
.mhp-bazi-card-zodiac { font-size:13px; color:#c0392b; font-weight:bold; }
.mhp-bazi-card-date-row { display:flex; align-items:center; gap:6px; margin-bottom:2px; font-size:12px; }
.mhp-bazi-card-date-label { color:var(--gold); font-weight:600; min-width:28px; }
.mhp-bazi-card-date { font-size:12px; color:var(--text-light); }
.mhp-bazi-card-lunar { font-size:12px; color:var(--text-light); margin-bottom:12px; }
/* 四柱大字表格 */
.mhp-sizhu-table { width:100%; border-collapse:collapse; margin:10px 0 8px 0; }
.mhp-sizhu-table .col-label { text-align:center; font-size:12px; color:var(--text-secondary); padding-bottom:4px; }
.mhp-sizhu-gan { text-align:center; font-size:36px; font-weight:bold; line-height:1.1; padding:4px 0 2px 0; }
.mhp-sizhu-ss { text-align:center; font-size:11px; color:var(--text-dim); padding-bottom:6px; }
.mhp-sizhu-zhi { text-align:center; font-size:36px; font-weight:bold; line-height:1.1; padding:4px 0 2px 0; }
.mhp-sizhu-cg { text-align:center; font-size:11px; line-height:1.7; padding-bottom:4px; color:var(--text-dim); }
.mhp-sizhu-cg span.cg-gan { font-weight:bold; font-size:12px; }
.mhp-sizhu-cg span.cg-ss { font-size:10px; color:#999; }
/* 大运行 */
.mhp-dayun-row { display:flex; gap:4px; flex-wrap:nowrap; overflow-x:auto; margin-top:10px; padding-bottom:4px; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.mhp-dayun-item { flex-shrink:0; text-align:center; font-size:11px; min-width:38px; }
.mhp-dayun-item .mdy-age { color:var(--text-secondary); font-size:10px; }
.mhp-dayun-item .mdy-gan { font-size:15px; font-weight:bold; line-height:1.2; }
.mhp-dayun-item .mdy-zhi { font-size:15px; font-weight:bold; line-height:1.2; }
.mhp-dayun-item .mdy-year { color:var(--text-secondary); font-size:10px; }
/* 五行雷达图容器 */
.mhp-radar-container { margin-top:0; padding:20px 0 0 0; background:transparent; border:none; border-radius:0; }
.mhp-radar-title { display:none; }
.mhp-radar-3col { display:flex; flex-direction:row; align-items:stretch; gap:0; height:420px; overflow:hidden; }
.mhp-radar-left { display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; }
.mhp-radar-left .legend-item { display:flex; flex-direction:row; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--text); }
.mhp-radar-left .mhp-legend-row { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; gap:10px 16px; margin-bottom:8px; max-width:300px; }
.mhp-radar-left .legend-box { width:28px; height:10px; border-radius:3px; border:2px solid; flex-shrink:0; }
.mhp-radar-center { display:flex; align-items:center; justify-content:center; min-width:0; }
.mhp-radar-right { overflow-y:auto; height:100%; padding:0 0 0 20px; border-left:1px solid var(--border); flex:1; min-width:0; scrollbar-width:thin; box-sizing:border-box; }
.mhp-radar-right::-webkit-scrollbar { width:4px; }
.mhp-radar-right::-webkit-scrollbar-thumb { background:var(--gold-dim); border-radius:2px; }
.mhp-radar-right .mhp-pair-card { margin-bottom:10px; padding:12px; background:var(--bg2); border-left:none; box-shadow:none; }
.mhp-radar-right .mhp-pair-card:last-child { margin-bottom:0; }
.mhp-radar-right-title { font-size:13px; font-weight:600; color:var(--gold); margin-bottom:10px; padding-bottom:6px; border-bottom:none; }
@media (max-width:768px) {
    .mhp-radar-3col { flex-direction:column; align-items:center; }
    .mhp-radar-left { flex:none; width:100%; }
    .mhp-radar-left .mhp-legend-row { justify-content:center; }
    .mhp-radar-center { width:100%; }
    .mhp-radar-right { flex:none; width:100%; max-height:300px; overflow-y:auto; border-left:none; border-top:1px solid var(--border); padding:12px 0 0 0; margin-top:12px; }
}
/* 合盘历史响应式 */
.hepan-history-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px; }
@media (max-width:600px) { .hepan-history-grid { grid-template-columns:1fr; } }
/* 合盘历史Tab内容区 */
#hepanHistoryTabContent { padding:8px 0; }
/* 旧圆圈样式保留兼容 */
.mhp-bazi-circles { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.mhp-bazi-row { display:flex; gap:8px; justify-content:flex-start; }
.mhp-bazi-circle { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:bold; border:2px solid; }
/* 五行颜色圆圈 */
.wx-circle-金 { color:#d4af37; border-color:#d4af37; background:rgba(212,175,55,0.1); }
.wx-circle-木 { color:#27ae60; border-color:#27ae60; background:rgba(39,174,96,0.1); }
.wx-circle-水 { color:#2980b9; border-color:#2980b9; background:rgba(41,128,185,0.1); }
.wx-circle-火 { color:#e74c3c; border-color:#e74c3c; background:rgba(231,76,60,0.1); }
.wx-circle-土 { color:#8B6914; border-color:#8B6914; background:rgba(139,105,20,0.1); }
.wx-circle-unknown { color:var(--text-dim); border-color:var(--border); background:transparent; }
.mhp-insights { margin-top:16px; }
.mhp-insight { padding:10px 14px; background:var(--bg3); border-radius:8px; margin-bottom:8px; font-size:13px; color:var(--text); line-height:1.6; border-left:3px solid var(--gold-dim); }
.mhp-wx-table { width:100%; border-collapse:collapse; font-size:13px; }
.mhp-wx-table th, .mhp-wx-table td { border:1px solid var(--border); padding:8px 10px; text-align:center; }
.mhp-wx-table th { background:var(--bg3); color:var(--text-dim); font-size:12px; }
.mhp-formation { padding:12px 16px; background:var(--bg3); border-radius:8px; margin-bottom:8px; }
.mhp-formation.吉 { border-left:3px solid var(--success); }
.mhp-formation.凶 { border-left:3px solid var(--danger); }

/* 多人合盘 DeepSeek 分析板块 */
.mhp-ai-section { background:var(--bg3); border-radius:12px; padding:20px; margin-bottom:16px; border:1px solid var(--border); }
.mhp-ai-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.mhp-ai-section-title { font-size:15px; font-weight:600; color:var(--gold); display:flex; align-items:center; gap:8px; }
.mhp-ai-load-btn { padding:8px 20px; border-radius:8px; font-size:13px; cursor:pointer; transition:all .2s; border:1px solid var(--gold); background:rgba(201,169,110,0.1); color:var(--gold); font-weight:500; }
.mhp-ai-load-btn:hover { background:rgba(201,169,110,0.25); }
.mhp-ai-load-btn:disabled { opacity:0.5; cursor:not-allowed; }
.mhp-ai-content { min-height:60px; }
.mhp-ai-content .answer-content { line-height:1.8; font-size:14px; }
.mhp-ai-content .answer-content h1, .mhp-ai-content .answer-content h2, .mhp-ai-content .answer-content h3, .mhp-ai-content .answer-content h4 { color:var(--gold); margin:12px 0 6px 0; font-weight:600; }
.mhp-ai-content .answer-content h2 { font-size:16px; border-bottom:1px solid var(--border); padding-bottom:6px; }
.mhp-ai-content .answer-content h3 { font-size:15px; }
.mhp-ai-content .answer-content p { margin:6px 0; }
.mhp-ai-content .answer-content ul, .mhp-ai-content .answer-content ol { margin:6px 0; padding-left:20px; }
.mhp-ai-content .answer-content li { margin:3px 0; }
.mhp-ai-content .answer-content strong { color:var(--gold); }
.mhp-ai-content .answer-content table { width:100%; border-collapse:collapse; margin:10px 0; font-size:13px; }
.mhp-ai-content .answer-content th, .mhp-ai-content .answer-content td { border:1px solid var(--border); padding:8px 10px; text-align:center; }
.mhp-ai-content .answer-content th { background:var(--bg4); color:var(--gold); font-size:12px; }
.mhp-ai-content .answer-content blockquote { border-left:3px solid var(--gold); padding:4px 12px; margin:8px 0; background:var(--bg2); border-radius:4px; }
.mhp-ai-content .answer-content hr { border:none; border-top:1px solid var(--border); margin:12px 0; }
.mhp-ai-thinking { color:var(--text-dim); font-size:12px; font-style:italic; padding:8px 12px; background:var(--bg2); border-radius:6px; margin-bottom:8px; max-height:100px; overflow-y:auto; }
.mhp-ai-loading { display:flex; align-items:center; gap:10px; padding:20px; color:var(--text-dim); font-size:14px; }
.mhp-ai-loading .dots { display:flex; gap:4px; }
.mhp-ai-loading .dots span { width:8px; height:8px; border-radius:50%; background:var(--gold); animation:dotPulse 1.4s infinite; }
.mhp-ai-loading .dots span:nth-child(2) { animation-delay:.2s; }
.mhp-ai-loading .dots span:nth-child(3) { animation-delay:.4s; }
.mhp-ai-ask-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; margin-top:12px; border-radius:8px; font-size:13px; cursor:pointer; transition:all .2s; border:1px solid rgba(201,169,110,0.3); background:rgba(201,169,110,0.08); color:var(--gold); }
.mhp-ai-ask-btn:hover { background:rgba(201,169,110,0.2); }

/* 多人合盘精简展示样式 */
.mhp-ai-detail-btn { padding:6px 14px; border-radius:6px; font-size:12px; cursor:pointer; transition:all .2s; border:1px solid var(--gold); background:rgba(201,169,110,0.08); color:var(--gold); font-weight:500; white-space:nowrap; }
.mhp-ai-detail-btn:hover { background:rgba(201,169,110,0.25); }
.mhp-ai-detail-btn:disabled { opacity:0.4; cursor:not-allowed; }
.mhp-summary-card { padding:16px; background:var(--bg2); border-radius:10px; margin-bottom:10px; border:1px solid var(--border); }
.mhp-summary-card h4 { color:var(--gold); font-size:14px; margin:0 0 10px 0; font-weight:600; }
.mhp-summary-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.mhp-dim-item { padding:12px 16px; background:var(--bg3); border-radius:8px; border-left:3px solid var(--gold-dim); font-size:13px; line-height:1.7; }
.mhp-dim-label { font-weight:600; color:var(--gold); font-size:12px; margin-bottom:2px; }
.mhp-dim-value { color:var(--text); }
.mhp-rank-table { width:100%; border-collapse:collapse; font-size:13px; }
.mhp-rank-table th { background:var(--bg4); color:var(--gold); font-size:12px; padding:8px 6px; border:1px solid var(--border); }
.mhp-rank-table td { border:1px solid var(--border); padding:8px 6px; text-align:center; font-size:13px; }
.mhp-rank-table tr:nth-child(even) { background:var(--bg2); }
.mhp-pair-summary { padding:14px; background:var(--bg2); border-radius:10px; margin-bottom:10px; border:1px solid var(--border); }
.mhp-pair-summary-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.mhp-pair-summary-names { font-weight:600; color:var(--gold); font-size:14px; }
.mhp-pair-summary-level { padding:2px 10px; border-radius:12px; font-size:12px; font-weight:600; }
.mhp-pair-summary-level.lv-great { background:rgba(46,204,113,.15); color:#2ecc71; }
.mhp-pair-summary-level.lv-good { background:rgba(201,169,110,.15); color:var(--gold); }
.mhp-pair-summary-level.lv-ok { background:rgba(201,169,110,.1); color:var(--gold-dim); }
.mhp-pair-summary-level.lv-warn { background:rgba(231,76,60,.1); color:#e74c3c; }
.mhp-pair-summary-level.lv-bad { background:rgba(231,76,60,.2); color:#c0392b; }
.mhp-pair-dims { display:grid; grid-template-columns:1fr 1fr; gap:6px; font-size:13px; }
.mhp-pair-dim { padding:6px 10px; background:var(--bg3); border-radius:6px; line-height:1.5; }
.mhp-pair-dim-label { font-size:11px; color:var(--text-dim); margin-bottom:2px; font-weight:600; }
.mhp-liunian-table { width:100%; border-collapse:collapse; font-size:13px; }
.mhp-liunian-table th { background:var(--bg4); color:var(--gold); font-size:12px; padding:8px 6px; border:1px solid var(--border); }
.mhp-liunian-table td { border:1px solid var(--border); padding:8px 10px; font-size:13px; line-height:1.5; }
.mhp-liunian-table tr:nth-child(even) { background:var(--bg2); }
.mhp-team-conflict { padding:14px; background:var(--bg2); border-radius:10px; margin-top:12px; border:1px solid var(--border); }
.mhp-team-conflict h4 { color:var(--gold); font-size:14px; margin:0 0 8px 0; }
.mhp-detail-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.7); z-index:200; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; pointer-events:none; }
.mhp-detail-modal-overlay.active { opacity:1; pointer-events:auto; }
.mhp-detail-modal { background:var(--bg1,var(--bg)); border-radius:16px; width:92%; max-width:820px; max-height:85vh; display:flex; flex-direction:column; border:1px solid var(--gold-dim); box-shadow:0 8px 32px rgba(0,0,0,.5); }
.mhp-detail-modal-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.mhp-detail-modal-header h3 { margin:0; color:var(--gold); font-size:16px; }
.mhp-detail-modal-close { width:44px; height:44px; border-radius:50%; border:1px solid var(--border); background:var(--bg3); color:var(--text); font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.mhp-detail-modal-close:hover { background:var(--danger); color:#fff; border-color:var(--danger); }
.mhp-detail-modal-body { padding:20px; overflow-y:auto; flex:1; }
.mhp-detail-modal-body .answer-content { line-height:1.8; font-size:14px; }
.mhp-detail-modal-body .answer-content h1,.mhp-detail-modal-body .answer-content h2,.mhp-detail-modal-body .answer-content h3,.mhp-detail-modal-body .answer-content h4 { color:var(--gold); margin:12px 0 6px 0; font-weight:600; }
.mhp-detail-modal-body .answer-content h2 { font-size:16px; border-bottom:1px solid var(--border); padding-bottom:6px; }
.mhp-detail-modal-body .answer-content table { width:100%; border-collapse:collapse; margin:10px 0; font-size:13px; }
.mhp-detail-modal-body .answer-content th,.mhp-detail-modal-body .answer-content td { border:1px solid var(--border); padding:8px 10px; text-align:center; }
.mhp-detail-modal-body .answer-content th { background:var(--bg4); color:var(--gold); }
.mhp-detail-modal-body .answer-content strong { color:var(--gold); }
.mhp-detail-modal-body .answer-content p { margin:6px 0; }
.mhp-detail-modal-body .answer-content ul,.mhp-detail-modal-body .answer-content ol { margin:6px 0; padding-left:20px; }
.mhp-detail-modal-body .answer-content blockquote { border-left:3px solid var(--gold); padding:4px 12px; margin:8px 0; background:var(--bg2); border-radius:4px; }
.mhp-analyzing-status { display:flex; align-items:center; gap:8px; padding:16px; color:var(--text-dim); font-size:13px; }
.mhp-analyzing-status .dots { display:flex; gap:3px; }
.mhp-analyzing-status .dots span { width:6px; height:6px; border-radius:50%; background:var(--gold); animation:dotPulse 1.4s infinite; }
.mhp-analyzing-status .dots span:nth-child(2) { animation-delay:.2s; }
.mhp-analyzing-status .dots span:nth-child(3) { animation-delay:.4s; }

/* ===== AI面板 ===== */
.ai-fab { position:fixed; bottom:24px; right:24px; width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg, var(--gold), var(--gold-dim)); display:flex; align-items:center; justify-content:center; font-size:24px; color:#000; box-shadow:0 4px 16px rgba(0,0,0,.4); z-index:90; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; cursor:pointer; }
.ai-fab:hover { transform:scale(1.1); }
.overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:1000; display:none; }
.overlay.show { display:block; }
.ai-panel { position:fixed; top:0; right:-420px; width:420px; height:100vh; background:var(--bg2); border-left:1px solid var(--border); z-index:1001; display:flex; flex-direction:column; transition:right .3s; }
.ai-panel.open { right:0; }
.ai-panel-header { padding:16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.ai-panel-body { flex:1; overflow-y:auto; padding:16px; }
.ai-panel-footer { padding:12px 16px; border-top:1px solid var(--border); }
.ai-input-row { display:flex; gap:8px; }
.ai-input-row textarea { flex:1; padding:10px; background:var(--bg3); border:1px solid var(--border); border-radius:8px; color:var(--text); font-size:14px; resize:none; min-height:40px; max-height:150px; outline:none; }
.ai-input-row textarea:focus { border-color:var(--gold); }
.ai-send-btn { padding:8px 16px; background:var(--gold); color:#000; border-radius:8px; font-weight:600; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:44px; }
/* ===== stop AI button ===== */
.ai-stop-btn { padding:8px 16px; background:#e74c3c; color:#fff; border-radius:8px; font-weight:600; cursor:pointer; border:none; font-size:14px; white-space:nowrap; transition: all 0.2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:44px; }
.ai-stop-btn:hover { background:#c0392b; }
.ai-stop-btn:active { transform: scale(0.95); }
@keyframes stopPulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
.ai-stop-btn { animation: stopPulse 1.5s ease-in-out infinite; }

.chat-bubble { margin-bottom:12px; padding:12px 16px; border-radius:12px; font-size:14px; line-height:1.6; word-break:break-word; }
.chat-bubble.user { white-space:pre-wrap; }
.chat-bubble.user { background:var(--bg4); margin-left:40px; border-bottom-right-radius:4px; }
.chat-bubble.ai { background:var(--bg3); margin-right:40px; border-bottom-left-radius:4px; }
.ai-status { display:flex; align-items:center; gap:8px; padding:8px 0; color:var(--text-dim); font-size:13px; }
.status-dots { display:flex; gap:4px; }
.status-dots span { width:6px; height:6px; border-radius:50%; background:var(--gold); animation:dotPulse 1.4s infinite; }
.status-dots span:nth-child(2) { animation-delay:.2s; }
.status-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes dotPulse { 0%,80%,100%{opacity:.3} 40%{opacity:1} }

.thinking-block { background:var(--bg); border:1px solid var(--border); border-radius:8px; margin-bottom:8px; overflow:hidden; }
.thinking-header { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; cursor:pointer; }
.thinking-title { font-size:13px; color:var(--gold-dim); }
.thinking-toggle { font-size:11px; color:var(--text-dim); }
.thinking-content { padding:8px 12px; font-size:12px; color:var(--text-dim); line-height:1.6; max-height:200px; overflow-y:auto; white-space:pre-wrap; }
.thinking-content.collapsed { display:none; }
.answer-divider { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--gold-dim); margin:8px 0; }
.answer-divider::before, .answer-divider::after { content:''; flex:1; border-top:1px solid var(--border); }
.answer-content { line-height:1.8; font-size:14px; }
.answer-content h1, .answer-content h2, .answer-content h3, .answer-content h4 { color:var(--gold); margin:12px 0 6px 0; font-weight:600; }
.answer-content h1 { font-size:18px; } .answer-content h2 { font-size:16px; } .answer-content h3 { font-size:15px; } .answer-content h4 { font-size:14px; }
.answer-content p { margin:6px 0; }
.answer-content ul, .answer-content ol { margin:6px 0; padding-left:20px; }
.answer-content li { margin:3px 0; }
.answer-content strong { color:var(--gold); }
.answer-content hr { border:none; border-top:1px solid var(--border); margin:10px 0; }
.answer-content blockquote { border-left:3px solid var(--gold); padding:4px 12px; margin:8px 0; background:var(--bg3); border-radius:4px; font-style:italic; }
.answer-content code { background:var(--bg3); padding:1px 4px; border-radius:3px; font-size:13px; }
.answer-content table { border-collapse:collapse; width:100%; margin:8px 0; }
.answer-content th, .answer-content td { border:1px solid var(--border); padding:4px 8px; text-align:left; font-size:13px; }
.answer-content th { background:var(--bg3); color:var(--gold); }
.typing-cursor::after { content:'|'; animation:blink 1s infinite; color:var(--gold); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* 对话历史 */
.conv-list { }
.conv-item { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; cursor:pointer; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.conv-item:hover { border-color:var(--gold-dim); }
.conv-title { font-size:14px; color:var(--text); }
.conv-date { font-size:12px; color:var(--text-dim); margin-top:2px; }

/* 分享弹窗 */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:200; display:none; align-items:center; justify-content:center; }
.modal-overlay.show { display:flex; }
.modal { background:var(--bg2); border:1px solid var(--border); border-radius:16px; padding:32px; min-width:360px; max-width:500px; max-height:90vh; overflow-y:auto; }
.modal-title { font-size:18px; font-weight:600; color:var(--gold); margin-bottom:20px; text-align:center; }
.modal-close { position:absolute; top:8px; right:8px; font-size:20px; color:var(--text-dim); cursor:pointer; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; touch-action:manipulation; -webkit-tap-highlight-color:transparent; border-radius:50%; }
.modal-body { }

.share-options { display:flex; flex-direction:column; gap:12px; }
.share-option { display:flex; align-items:center; gap:12px; padding:16px; background:var(--bg3); border-radius:10px; cursor:pointer; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.share-option:hover { background:var(--bg4); border-color:var(--gold-dim); }
.share-option-icon { font-size:24px; }
.share-option-text { font-size:14px; }

.qr-container { text-align:center; padding:20px; }
.qr-container canvas { border-radius:8px; }

/* === AI对话分享弹窗 === */
.share-conv-modal-link {
    background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 16px; font-size: 13px; color: var(--text); word-break: break-all;
    margin-bottom: 16px; line-height: 1.6; user-select: all;
}
.share-conv-modal-actions {
    display: flex; gap: 12px; justify-content: center;
}
.share-conv-copy-btn, .share-conv-qr-btn {
    padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all .2s;
}
.share-conv-copy-btn {
    background: var(--gold); color: #000;
}
.share-conv-copy-btn:hover { background: var(--gold-light); }
.share-conv-qr-btn {
    background: var(--bg3); color: var(--gold); border: 1px solid var(--gold-dim);
}
.share-conv-qr-btn:hover { background: var(--bg4); }

/* === 分享对话展示页面 === */
.shared-conv-page {
    max-width: 720px; margin: 0 auto; padding: 20px 0;
}
.shared-conv-header {
    text-align: center; padding: 32px 20px 24px; border-bottom: 1px solid var(--border);
}
.shared-conv-logo {
    width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px;
    object-fit: cover; border: 2px solid var(--gold-dim);
}
.shared-conv-brand {
    font-size: 16px; color: var(--gold); font-weight: 600; letter-spacing: 2px; margin-bottom: 16px;
}
.shared-conv-title {
    font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px;
    line-height: 1.5;
}
.shared-conv-meta {
    font-size: 13px; color: var(--text-dim);
}
.shared-conv-messages {
    padding: 24px 20px; min-height: 200px;
}
.shared-msg {
    margin-bottom: 24px;
}
.shared-msg .shared-msg-role {
    font-size: 12px; font-weight: 600; margin-bottom: 6px; padding-left: 4px;
}
.shared-msg.user .shared-msg-role {
    color: var(--gold); text-align: right; padding-right: 4px; padding-left: 0;
}
.shared-msg.ai .shared-msg-role {
    color: #8b9dc3;
}
.shared-msg .shared-msg-bubble {
    padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.8;
    white-space: pre-wrap; word-break: break-word;
}
.shared-msg.user .shared-msg-bubble {
    background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,169,110,0.08));
    border: 1px solid rgba(201,169,110,0.2); color: var(--text);
    margin-left: 40px;
}
.shared-msg.ai .shared-msg-bubble {
    background: var(--bg3); border: 1px solid var(--border); color: var(--text);
    margin-right: 40px;
}
.shared-conv-footer {
    text-align: center; padding: 24px 20px 32px;
    border-top: 1px solid var(--border);
}
.shared-conv-footer a {
    display: inline-block; padding: 12px 36px; background: var(--gold); color: #000;
    border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all .2s;
}
.shared-conv-footer a:hover { background: var(--gold-light); transform: translateY(-1px); }
.shared-conv-footer .footer-hint {
    margin-top: 12px; font-size: 12px; color: var(--text-dim);
}
@media (max-width: 600px) {
    .shared-conv-page { padding: 10px 0; }
    .shared-conv-header { padding: 24px 16px 20px; }
    .shared-conv-messages { padding: 16px 12px; }
    .shared-msg.user .shared-msg-bubble { margin-left: 16px; }
    .shared-msg.ai .shared-msg-bubble { margin-right: 16px; }
    .share-conv-modal-actions { flex-direction: column; }
    .share-conv-copy-btn, .share-conv-qr-btn { width: 100%; }
}

/* 登录/注册弹窗 */
.auth-modal { position:relative; }
.auth-form { display:flex; flex-direction:column; gap:12px; }
.auth-form input { padding:10px 14px; background:var(--bg3); border:1px solid var(--border); border-radius:8px; color:var(--text); font-size:14px; outline:none; }
.auth-form input:focus { border-color:var(--gold); }

/* 验证码输入行 */
.verify-row { display:flex; gap:8px; align-items:center; }
.verify-row input { flex:1; }
.verify-row button { white-space:nowrap; padding:10px 16px; background:var(--gold); color:#000; border-radius:8px; font-size:13px; font-weight:500; min-width:100px; }
.verify-row button:disabled { opacity:.5; cursor:not-allowed; }
.auth-hint { font-size:12px; color:var(--text-dim); margin-top:-4px; }
.auth-tabs { display:flex; margin-bottom:16px; border-bottom:1px solid var(--border); }
.auth-tab { flex:1; padding:10px; text-align:center; cursor:pointer; color:var(--text-dim); font-size:14px; border-bottom:2px solid transparent; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:44px; }
.auth-tab.active { color:var(--gold); border-bottom-color:var(--gold); }

/* 配额显示 */
.quota-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; background:rgba(201,169,110,.15); border:1px solid var(--gold-dim); border-radius:12px; font-size:11px; color:var(--gold); cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; min-height:36px; }
.quota-badge:hover { background:rgba(201,169,110,.25); }

/* 用户后台 */
/* 账号设置区域 */
.account-settings { margin-bottom:24px; }
.account-setting-item { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; background:var(--bg3); border:1px solid var(--border); border-radius:10px; margin-bottom:10px; transition:all .2s; }
.account-setting-item:hover { border-color:var(--gold); background:rgba(201,169,110,.05); }
.account-setting-left { display:flex; align-items:center; gap:12px; }
.account-setting-icon { width:36px; height:36px; border-radius:8px; background:rgba(201,169,110,.15); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.account-setting-info { }
.account-setting-label { font-size:14px; font-weight:500; color:var(--text-light); }
.account-setting-value { font-size:12px; color:var(--text-dim); margin-top:2px; }
.account-setting-btn { padding:6px 16px; border:1px solid var(--gold); border-radius:6px; background:transparent; color:var(--gold); font-size:13px; cursor:pointer; transition:all .2s; white-space:nowrap; }
.account-setting-btn:hover { background:var(--gold); color:#000; }
.profile-header { display:flex; align-items:center; gap:20px; padding:24px; background:linear-gradient(135deg, rgba(201,169,110,.1), rgba(201,169,110,.02)); border-radius:12px; margin-bottom:24px; }
.profile-avatar { width:72px; height:72px; border-radius:50%; background:linear-gradient(135deg, var(--gold), var(--gold-dim)); display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:bold; color:#000; flex-shrink:0; }
.profile-info { flex:1; }
.profile-name { font-size:20px; font-weight:600; color:var(--gold); }
.profile-meta { font-size:12px; color:var(--text-dim); margin-top:4px; }
.profile-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:12px; margin-bottom:24px; }
.stat-card { background:var(--bg3); border:1px solid var(--border); border-radius:10px; padding:16px; text-align:center; }
.stat-value { font-size:24px; font-weight:700; color:var(--gold); }
.stat-label { font-size:12px; color:var(--text-dim); margin-top:4px; }
.profile-section { margin-bottom:24px; }
.profile-section-title { font-size:16px; font-weight:600; color:var(--gold); margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.recharge-plans { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:16px; margin-bottom:20px; }
.recharge-plan { background:var(--bg3); border:2px solid var(--border); border-radius:12px; padding:20px; text-align:center; cursor:pointer; transition:all .3s; position:relative; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.recharge-plan:hover, .recharge-plan.selected { border-color:var(--gold); background:rgba(201,169,110,.08); }
.recharge-plan.popular::before { content:'最受欢迎'; position:absolute; top:-10px; right:12px; background:var(--gold); color:#000; font-size:10px; padding:2px 8px; border-radius:4px; font-weight:600; }
.recharge-plan.best::before { content:'最划算'; position:absolute; top:-10px; right:12px; background:var(--success); color:#fff; font-size:10px; padding:2px 8px; border-radius:4px; font-weight:600; }
.plan-price { font-size:28px; font-weight:700; color:var(--gold); }
.plan-price span { font-size:14px; font-weight:400; }
.plan-quota { font-size:14px; color:var(--text-light); margin-top:8px; }
.plan-unit { font-size:11px; color:var(--text-dim); margin-top:4px; }
.pay-methods { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.pay-method { display:flex; align-items:center; gap:8px; padding:10px 20px; border:1px solid var(--border); border-radius:8px; cursor:pointer; transition:all .2s; font-size:13px; }
.pay-method:hover, .pay-method.selected { border-color:var(--gold); background:rgba(201,169,110,.08); }
.invite-box { background:var(--bg3); border:1px solid var(--border); border-radius:10px; padding:16px; }
.invite-code { font-size:24px; font-weight:700; color:var(--gold); letter-spacing:4px; text-align:center; padding:12px; background:var(--bg); border-radius:8px; margin:12px 0; user-select:all; }
.invite-reward { font-size:13px; color:var(--text-light); text-align:center; }
.log-table { width:100%; border-collapse:collapse; font-size:13px; }
.log-table th { text-align:left; padding:8px 12px; color:var(--gold); border-bottom:1px solid var(--border); font-weight:500; }
.log-table td { padding:8px 12px; border-bottom:1px solid rgba(51,51,51,.5); color:var(--text-light); }
.log-table tr:hover td { background:rgba(201,169,110,.03); }
.log-positive { color:var(--success); }
.log-negative { color:var(--danger); }
.pagination { display:flex; justify-content:center; gap:8px; margin-top:16px; }
.pagination button { padding:6px 12px; border:1px solid var(--border); border-radius:6px; font-size:12px; color:var(--text-light); }
.pagination button:hover { border-color:var(--gold); color:var(--gold); }
.pagination button.active { background:var(--gold); color:#000; border-color:var(--gold); }

/* 稳定币充值系统样式 */
.crypto-recharge-modal { max-width:520px; max-height:88vh; overflow-y:auto; }
.crypto-warning { background:rgba(231,76,60,.12); border:1px solid rgba(231,76,60,.4); border-radius:10px; padding:14px 16px; margin-bottom:18px; }
.crypto-warning p { color:#e74c3c; font-size:12px; line-height:1.7; margin:4px 0; font-weight:500; }
.crypto-warning .warning-title { font-size:13px; font-weight:700; color:#e74c3c; margin-bottom:6px; display:flex; align-items:center; gap:6px; }
.crypto-qr-section { text-align:center; margin-bottom:18px; padding:16px; background:var(--bg3); border:1px solid var(--border); border-radius:12px; }
.crypto-qr-section img { width:180px; height:180px; border-radius:8px; margin-bottom:10px; background:#fff; padding:4px; }
.crypto-address { font-family:monospace; font-size:12px; color:var(--gold); word-break:break-all; background:var(--bg); padding:10px 14px; border-radius:8px; border:1px solid var(--border); margin-top:8px; cursor:pointer; transition:all .2s; display:flex; flex-direction:column; align-items:center; gap:6px; }
.crypto-address:hover { border-color:var(--gold); background:rgba(201,169,110,.05); }
.crypto-address .crypto-addr-text { width:100%; word-break:break-all; text-align:center; line-height:1.6; }
.crypto-address .copy-hint { font-size:11px; color:var(--text-dim); background:var(--bg3); padding:3px 10px; border-radius:4px; border:1px solid var(--border); white-space:nowrap; }
.crypto-form-group { margin-bottom:14px; }
.crypto-form-group label { display:block; font-size:13px; color:var(--text-light); margin-bottom:6px; font-weight:500; }
.crypto-form-group input { width:100%; padding:10px 14px; background:var(--bg); border:1px solid var(--border); border-radius:8px; color:var(--text); font-size:14px; box-sizing:border-box; transition:border-color .2s; }
.crypto-form-group input:focus { border-color:var(--gold); outline:none; }
.crypto-form-group .input-hint { font-size:11px; color:var(--text-dim); margin-top:4px; }
.crypto-form-group .input-error { font-size:11px; color:#e74c3c; margin-top:4px; display:none; }
.crypto-status-box { text-align:center; padding:20px; background:var(--bg3); border:1px solid var(--border); border-radius:12px; margin-top:16px; }
.crypto-status-icon { font-size:48px; margin-bottom:12px; }
.crypto-status-text { font-size:15px; color:var(--text); margin-bottom:8px; font-weight:500; }
.crypto-status-detail { font-size:12px; color:var(--text-dim); line-height:1.6; }
.crypto-order-info { font-size:12px; color:var(--text-dim); background:var(--bg); padding:10px; border-radius:8px; margin-top:12px; text-align:left; }
.crypto-order-info div { margin:3px 0; }
.crypto-history-table { width:100%; border-collapse:collapse; font-size:12px; }
.crypto-history-table th { text-align:left; padding:8px 10px; color:var(--gold); border-bottom:1px solid var(--border); font-weight:500; font-size:11px; }
.crypto-history-table td { padding:8px 10px; border-bottom:1px solid rgba(51,51,51,.5); color:var(--text-light); }
.crypto-history-table tr:hover td { background:rgba(201,169,110,.03); }
.crypto-status-pending { color:var(--text-dim); }
.crypto-status-confirming { color:#f39c12; }
.crypto-status-completed { color:var(--success); }
.crypto-status-timeout { color:var(--danger); }
.crypto-status-manual_review { color:#e67e22; }
.crypto-tab-bar { display:flex; gap:0; margin-bottom:18px; border-bottom:2px solid var(--border); }
.crypto-tab { flex:1; text-align:center; padding:10px 0; font-size:14px; color:var(--text-dim); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; font-weight:500; }
.crypto-tab:hover { color:var(--text-light); }
.crypto-tab.active { color:var(--gold); border-bottom-color:var(--gold); }
.crypto-rate-info { font-size:12px; color:var(--text-dim); text-align:center; margin-bottom:14px; padding:8px; background:rgba(201,169,110,.06); border-radius:8px; }
.crypto-rate-info span { color:var(--gold); font-weight:600; }

/* 案例选择弹窗 */
.case-select-list { max-height:400px; overflow-y:auto; }
.case-select-item { padding:12px; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; cursor:pointer; transition:all .2s; }
.case-select-item:hover { border-color:var(--gold); background:rgba(201,169,110,.05); }

/* ===== 关系分析区域 ===== */
.rel-analysis { margin-top:16px; }
.rel-analysis-title { font-size:15px; font-weight:600; color:var(--gold); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.rel-analysis-title::before { content:''; width:3px; height:16px; background:var(--gold); border-radius:2px; }
.rel-group { margin-bottom:12px; }
.rel-group-label { font-size:12px; color:var(--text-dim); margin-bottom:6px; }
.rel-tags { display:flex; flex-wrap:wrap; gap:6px; }
.rel-tag { display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px; font-size:12px; font-weight:500; cursor:pointer; transition:all .2s; border:1px solid transparent; position:relative; }
.rel-tag:hover { transform:translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,.3); }
.rel-tag.type-he { background:rgba(46,204,113,.15); color:#2ecc71; border-color:rgba(46,204,113,.3); }
.rel-tag.type-he:hover { background:rgba(46,204,113,.25); }
.rel-tag.type-chong { background:rgba(231,76,60,.15); color:#e74c3c; border-color:rgba(231,76,60,.3); }
.rel-tag.type-chong:hover { background:rgba(231,76,60,.25); }
.rel-tag.type-xing { background:rgba(243,156,18,.15); color:#f39c12; border-color:rgba(243,156,18,.3); }
.rel-tag.type-xing:hover { background:rgba(243,156,18,.25); }
.rel-tag.type-hai { background:rgba(155,89,182,.15); color:#9b59b6; border-color:rgba(155,89,182,.3); }
.rel-tag.type-hai:hover { background:rgba(155,89,182,.25); }
.rel-tag.type-po { background:rgba(230,126,34,.15); color:#e67e22; border-color:rgba(230,126,34,.3); }
.rel-tag.type-po:hover { background:rgba(230,126,34,.25); }
.rel-tag.type-sheng { background:rgba(26,188,156,.15); color:#1abc9c; border-color:rgba(26,188,156,.3); }
.rel-tag.type-sheng:hover { background:rgba(26,188,156,.25); }
.rel-tag.type-ke { background:rgba(241,196,15,.15); color:#f1c40f; border-color:rgba(241,196,15,.3); }
.rel-tag.type-ke:hover { background:rgba(241,196,15,.25); }
.rel-tag.type-sanhe { background:rgba(46,204,113,.2); color:#27ae60; border-color:rgba(46,204,113,.4); }
.rel-tag.type-sanhe:hover { background:rgba(46,204,113,.3); }
.rel-tag.type-sanhui { background:rgba(52,152,219,.15); color:#3498db; border-color:rgba(52,152,219,.3); }
.rel-tag.type-sanhui:hover { background:rgba(52,152,219,.25); }
.rel-tag .rel-icon { font-size:14px; }
.rel-empty { font-size:12px; color:var(--text-dim); font-style:italic; }


/* === 移动端左滑操作 === */
.case-swipe-wrapper { position:relative; overflow:hidden; border-radius:12px; margin-bottom:0; }
.case-swipe-actions { position:absolute; right:0; top:0; bottom:0; display:flex; align-items:stretch; transform:translateX(100%); transition:transform .3s cubic-bezier(.25,.8,.25,1); z-index:10; }
.case-swipe-actions.visible { transform:translateX(0); }
.case-swipe-action-btn { display:flex; align-items:center; justify-content:center; flex-direction:column; width:64px; border:none; cursor:pointer; font-size:11px; font-weight:600; color:#fff; gap:3px; padding:0 4px; }
.case-swipe-action-btn .swipe-icon { font-size:18px; }
.case-swipe-action-btn.act-edit { background:#4A90D9; }
.case-swipe-action-btn.act-pin { background:#F5A623; }
.case-swipe-action-btn.act-move { background:#7B68EE; }
.case-swipe-action-btn.act-delete { background:#E74C3C; }
@media (max-width:900px) {
    .case-card-new .menu-btn { display:none !important; }
    .case-card-new { transition:transform .3s cubic-bezier(.25,.8,.25,1); will-change:transform; }
    .case-card-new.swiping { transition:none; }
    .case-card-new.swiped { transform:translateX(-256px); }
    /* 拖拽排序已关闭 */
    .case-swipe-wrapper { margin-bottom:0; }
}

/* 关系分析展开收起 - 仅移动端 */
.rel-toggle-btn { display:none; align-items:center; gap:4px; padding:4px 12px; border-radius:16px; background:var(--bg3); border:1px solid var(--border); color:var(--text-dim); font-size:12px; cursor:pointer; transition:all .2s; white-space:nowrap; }
.rel-toggle-btn:hover { background:var(--border); }
.rel-toggle-btn .rel-toggle-arrow { display:inline-block; transition:transform .3s; font-size:10px; }
.rel-toggle-btn.expanded .rel-toggle-arrow { transform:rotate(180deg); }
@media (max-width:900px) {
    .rel-toggle-btn { display:inline-flex; }
    .rel-analysis-body.collapsed { display:none; }
}
.rel-analysis-header { display:flex; justify-content:space-between; align-items:center; }

/* 关系详情弹出面板 */
.rel-popover-overlay { position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; }
.rel-popover { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:24px; max-width:480px; width:90%; max-height:80vh; overflow-y:auto; box-shadow:0 8px 32px rgba(0,0,0,.5); }
.rel-popover-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.rel-popover-title { font-size:16px; font-weight:600; color:var(--gold); }
.rel-popover-close { font-size:20px; color:var(--text-dim); cursor:pointer; padding:4px; }
.rel-popover-close:hover { color:var(--text); }
.rel-popover-desc { font-size:13px; color:var(--text-light); line-height:1.7; margin-bottom:16px; padding:12px; background:var(--bg3); border-radius:8px; }
.rel-popover-context { font-size:12px; color:var(--text-dim); margin-bottom:16px; }
.rel-deepseek-btn { width:100%; padding:10px; background:linear-gradient(135deg, #4a90d9, #357abd); color:#fff; border-radius:8px; font-size:14px; font-weight:500; transition:all .2s; }
.rel-deepseek-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(74,144,217,.3); }
.rel-deepseek-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.rel-deepseek-result { margin-top:12px; padding:12px; background:var(--bg3); border-radius:8px; font-size:13px; color:var(--text-light); line-height:1.7; white-space:pre-wrap; max-height:300px; overflow-y:auto; }

/* 旧响应式已移至新CSS块 */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
    /* 可点击名词标签样式 */
    .term-clickable {
cursor: pointer;
border-bottom: 1px dashed rgba(212,175,55,0.5);
transition: all 0.2s;
display: inline;
    }
    .term-clickable:hover {
color: var(--gold) !important;
border-bottom-color: var(--gold);
text-shadow: 0 0 8px rgba(212,175,55,0.4);
    }
    /* 名词弹窗样式 - 参考问真精评风格 */
    .term-popover-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.6);
z-index: 9000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
    }
    .term-popover {
background: #faf8f4;
border-radius: 16px;
max-width: 560px;
width: 100%;
box-shadow: 0 12px 48px rgba(0,0,0,0.5);
position: relative;
max-height: 85vh;
display: flex;
flex-direction: column;
    }
    .term-popover-header {
background: var(--bg3);
border-radius: 16px 16px 0 0;
padding: 20px 24px 16px;
text-align: center;
border-bottom: 1px solid #e0d5c0;
position: relative;
flex-shrink: 0;
    }
    .term-popover-header h2 {
font-size: 22px;
font-weight: bold;
color: #2c2c2c;
margin: 0;
    }
    .term-popover-header .tp-cat {
font-size: 12px;
color: #8a7a60;
margin-top: 4px;
    }
    .term-popover-close {
position: absolute;
top: 16px;
right: 16px;
width: 28px;
height: 28px;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--bg3);
color: var(--text-light);
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
    }
    .term-popover-close:hover { background: var(--bg4); }
    .term-popover-body {
padding: 0 24px 20px;
overflow-y: auto;
flex: 1;
color: #3a3a3a;
font-size: 14px;
line-height: 1.9;
    }
    .term-popover-body::-webkit-scrollbar { width: 6px; }
    .term-popover-body::-webkit-scrollbar-thumb { background: #c9a96e; border-radius: 3px; }
    .tp-section-title {
font-size: 17px;
font-weight: bold;
color: #b8923e;
margin: 20px 0 10px;
padding-bottom: 6px;
border-bottom: 2px solid #e8d5a8;
    }
    .tp-sub-title {
font-size: 14px;
font-weight: bold;
color: #4a4a4a;
margin: 12px 0 4px;
    }
    .tp-label {
color: #b8923e;
font-weight: bold;
    }
    .tp-text {
color: #3a3a3a;
margin: 4px 0 8px;
    }
    .tp-quote {
background: #f0ebe0;
border-left: 3px solid #c9a96e;
padding: 10px 14px;
margin: 8px 0;
border-radius: 0 6px 6px 0;
font-style: italic;
color: #5a5040;
    }
    .tp-func-item {
margin: 10px 0;
padding: 10px 14px;
background: #f8f4ec;
border-radius: 8px;
border: 1px solid #ece4d4;
    }
    .tp-func-name {
font-weight: bold;
color: #8a6e30;
margin-bottom: 4px;
    }
    .tp-pos-info {
margin-top: 16px;
padding: 12px 14px;
background: #eef6ee;
border-radius: 8px;
border: 1px solid #c8e0c8;
color: #3a5a3a;
    }
    .tp-pos-info b { color: #2a7a2a; }
    .tp-section-content { margin: 4px 0 12px; }
    .tk-sub { font-size: 14px; font-weight: bold; color: #4a4a4a; margin: 12px 0 6px; }
    .tk-row { margin: 4px 0 8px; color: #3a3a3a; }
    .tk-label { color: #b8923e; font-weight: bold; }
    .tk-func { margin: 10px 0; padding: 10px 14px; background: #f8f4ec; border-radius: 8px; border: 1px solid #ece4d4; }
    .tk-func-name { font-weight: bold; color: #8a6e30; margin-bottom: 4px; }
    .tk-quote { background: #f0ebe0; border-left: 3px solid #c9a96e; padding: 10px 14px; margin: 8px 0; border-radius: 0 6px 6px 0; font-style: italic; color: #5a5040; }
    .term-popover-footer {
padding: 12px 24px 16px;
border-top: 1px solid #e0d5c0;
display: flex;
gap: 10px;
justify-content: flex-end;
flex-shrink: 0;
background: #f5f0e8;
border-radius: 0 0 16px 16px;
    }
    .term-popover-close-btn {
background: var(--bg3);
color: var(--text-light);
border: 1px solid var(--border);
padding: 8px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
    }
    .term-popover-close-btn:hover { background: var(--bg4); }
    .term-popover-ai-btn {
background: linear-gradient(135deg, #1a6cf5, #0d4fc7);
color: #fff;
border: none;
padding: 8px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-weight: bold;
    }
    .term-popover-ai-btn:hover { opacity: 0.9; }

    /* ===== 人生K线样式 ===== */
    .kline-period-tabs { display:flex; gap:4px; margin-bottom:8px; }
    .kline-tab { padding:8px 20px; border-radius:6px; font-size:13px; color:var(--text-light); border:1px solid var(--border); transition:all .2s; background:var(--bg3); touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
    .kline-tab:hover { border-color:var(--gold-dim); color:var(--gold); }
    .kline-tab.active { background:linear-gradient(135deg, var(--gold), var(--gold-dim)); color:#000; font-weight:600; border-color:var(--gold); }
    .kline-tab:disabled { opacity:0.4; cursor:not-allowed; }
    .kline-breadcrumb { font-size:12px; color:var(--text-dim); padding:6px 0; display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
    .kline-breadcrumb .bc-item { cursor:pointer; color:var(--gold-dim); transition:color .2s; }
    .kline-breadcrumb .bc-item:hover { color:var(--gold); }
    .kline-breadcrumb .bc-sep { color:var(--text-dim); }
    .kline-breadcrumb .bc-current { color:var(--gold); font-weight:600; }
    .kline-info-bar { display:flex; justify-content:center; gap:20px; padding:12px; background:var(--bg3); border-radius:8px; margin-top:8px; font-size:13px; flex-wrap:wrap; }
    .kline-info-item { display:flex; align-items:center; gap:4px; }
    .kline-info-label { color:var(--text-dim); }
    .kline-info-value { font-weight:600; }
    .kline-info-up { color:#e74c3c; }
    .kline-info-down { color:#2ecc71; }
    .kline-hint { text-align:center; font-size:12px; color:var(--text-dim); margin-top:8px; font-style:italic; }
    .kline-download-menu { position:absolute; top:100%; right:0; background:var(--bg2); border:1px solid var(--border); border-radius:8px; padding:8px 0; min-width:180px; z-index:50; box-shadow:0 4px 16px rgba(0,0,0,.4); }
    .kline-download-item { padding:10px 16px; cursor:pointer; font-size:13px; color:var(--text-light); transition:all .2s; display:flex; align-items:center; gap:8px; }
    .kline-download-item:hover { background:var(--bg3); color:var(--gold); }

    /* 人生重大事件 */
    .user-event-add-row {
display: flex;
gap: 6px;
align-items: center;
flex-wrap: wrap;
margin-top: 8px;
    }
    .user-event-add-row input, .user-event-add-row select {
background: rgba(255,255,255,0.08);
border: 1px solid rgba(201,169,110,0.3);
color: var(--text-main);
border-radius: 4px;
padding: 4px 8px;
font-size: 13px;
    }
    .user-event-add-row input:focus, .user-event-add-row select:focus {
outline: none;
border-color: var(--gold);
    }
    .user-event-item-row {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
background: rgba(255,255,255,0.04);
border-radius: 4px;
margin-bottom: 4px;
font-size: 13px;
    }
    .user-event-item-row .ue-year { color: var(--gold); font-weight: bold; min-width: 50px; }
    .user-event-item-row .ue-type { min-width: 80px; }
    .user-event-item-row .ue-desc { flex: 1; color: var(--text-dim); }
    .user-event-item-row .ue-del { cursor: pointer; color: var(--danger); font-size: 16px; }
    .user-confirmed-badge {
display: inline-block;
background: rgba(46,204,113,0.2);
color: #2ecc71;
border: 1px solid rgba(46,204,113,0.4);
border-radius: 3px;
font-size: 10px;
padding: 1px 4px;
margin-left: 4px;
    }
    .life-events-list { overflow-y:auto; flex:1; }
    .life-event-year-group { margin-bottom:6px; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
    .life-event-year-header { display:flex; align-items:center; gap:6px; padding:12px 14px; cursor:pointer; transition:all .2s; background:rgba(201,169,110,0.04); }
    .life-event-year-header:hover { background:rgba(201,169,110,0.10); }
    .life-event-year-info { display:flex; align-items:center; gap:6px; min-width:160px; flex-shrink:0; }
    .life-event-year-age { color:var(--gold); font-weight:bold; font-size:14px; }
    .life-event-year-gz { color:var(--text-light); font-size:12px; }
    .life-event-year-dy { color:var(--text-dim); font-size:11px; }
    .life-event-year-events { display:flex; flex-direction:column; gap:4px; flex:1; }
    .life-event-item { display:flex; align-items:center; gap:6px; padding:3px 0; }
    .life-event-icon { font-size:16px; flex-shrink:0; }
    .life-event-label { font-size:13px; font-weight:500; color:var(--text-main); flex:1; }
    .life-event-good { color:#2ecc71; }
    .life-event-bad { color:#e74c3c; }
    .life-event-neutral { color:#f39c12; }
    .life-event-badge { font-size:11px; padding:2px 6px; border-radius:10px; font-weight:600; flex-shrink:0; }
    .life-event-badge-bad { background:rgba(231,76,60,0.15); color:#e74c3c; }
    .life-event-badge-good { background:rgba(46,204,113,0.15); color:#2ecc71; }
    .life-event-badge-neutral { background:rgba(243,156,18,0.15); color:#f39c12; }
    .life-event-year-arrow { color:var(--text-dim); font-size:12px; transition:transform .2s; flex-shrink:0; }
    .life-event-year-arrow.expanded { transform:rotate(90deg); }
    .life-event-detail-panel { display:none; padding:10px 14px 12px; background:rgba(0,0,0,0.04); border-top:1px solid var(--border); }
    .life-event-detail-panel.show { display:block; }
    .life-event-detail-reason { font-size:12px; color:var(--text-dim); line-height:1.6; padding:6px 8px; background:rgba(201,169,110,0.06); border-radius:6px; margin-bottom:6px; border-left:3px solid var(--gold); }
    .life-event-feedback { display:flex; align-items:center; gap:8px; margin-top:8px; padding-top:8px; border-top:1px dashed var(--border); }
    .life-event-fb-label { font-size:11px; color:var(--text-dim); }
    .life-event-fb-btn { padding:4px 12px; border-radius:14px; font-size:12px; cursor:pointer; transition:all .2s; border:1px solid var(--border); background:transparent; color:var(--text-light); }
    .life-event-fb-btn:hover { border-color:var(--gold); color:var(--gold); }
    .life-event-fb-btn.selected { background:rgba(201,169,110,0.2); border-color:var(--gold); color:var(--gold); }
    .life-event-fb-btn.fb-correct { border-color:rgba(46,204,113,0.4); }
    .life-event-fb-btn.fb-correct:hover, .life-event-fb-btn.fb-correct.selected { background:rgba(46,204,113,0.15); border-color:#2ecc71; color:#2ecc71; }
    .life-event-fb-btn.fb-wrong { border-color:rgba(231,76,60,0.4); }
    .life-event-fb-btn.fb-wrong:hover, .life-event-fb-btn.fb-wrong.selected { background:rgba(231,76,60,0.15); border-color:#e74c3c; color:#e74c3c; }
    .life-event-fb-btn.fb-unsure { border-color:rgba(149,165,166,0.4); }
    .life-event-fb-btn.fb-unsure:hover, .life-event-fb-btn.fb-unsure.selected { background:rgba(149,165,166,0.15); border-color:#95a5a6; color:#95a5a6; }
    .life-event-fb-btn.fb-applied { opacity:0.6; cursor:default; }
    .life-event-ai-btn { display:inline-flex; align-items:center; gap:4px; padding:4px 12px; border-radius:14px; font-size:12px; cursor:pointer; transition:all .2s; border:1px solid rgba(201,169,110,0.3); background:rgba(201,169,110,0.08); color:var(--gold); margin-left:auto; }
    .life-event-ai-btn:hover { background:rgba(201,169,110,0.2); }
    .life-event-deepseek-btn { display:block; margin-top:8px; padding:6px 12px; background:rgba(201,169,110,0.15); color:var(--gold); border:1px solid rgba(201,169,110,0.3); border-radius:6px; cursor:pointer; font-size:12px; text-align:center; transition:all .2s; }
    .life-event-deepseek-btn:hover { background:rgba(201,169,110,0.25); }
    .event-marker { position:absolute; top:-2px; right:-2px; font-size:10px; line-height:1; background:rgba(0,0,0,0.7); border-radius:3px; padding:1px 2px; z-index:5; }
    .dayun-item { position:relative; }

    /* K线解释弹出框 - 居中遮罩层 */
    
    
    
    
    
    .kline-explain-body { padding:14px 16px; font-size:13px; line-height:1.8; color:var(--text-secondary); }

/* ===== 全站底部免责声明 ===== */
.site-footer-disclaimer {
    text-align: center;
    color: #888888;
    font-size: 12px;
    padding: 20px 16px;
    border-top: 1px solid rgba(128,128,128,0.2);
    margin-top: 20px;
}

/* ===== 运势八板块样式 ===== */
.fortune-aspects-section {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}
.fortune-aspects-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
}
.fortune-aspects-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* 命理总评横幅 */
.fortune-overall-banner {
    background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,169,110,0.05));
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.fortune-overall-banner:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(201,169,110,0.15);
}
.fortune-overall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.fortune-overall-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}
.fortune-overall-score-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fortune-overall-score-label {
    font-size: 12px;
    color: var(--text-dim);
}
.fortune-overall-score-bar {
    width: 80px;
    height: 6px;
    background: var(--bg3);
    border-radius: 3px;
    overflow: hidden;
}
.fortune-overall-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s;
}
.fortune-overall-score-num {
    font-size: 14px;
    font-weight: 600;
}
.fortune-overall-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 3x3 网格布局 */
.fortune-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* 板块卡片 */
.fortune-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.fortune-card:hover {
    border-color: var(--gold-dim);
    box-shadow: 0 2px 12px rgba(201,169,110,0.1);
    transform: translateY(-1px);
}
.fortune-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fortune-card-text {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}
.fortune-card-bar-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fortune-card-bar {
    flex: 1;
    height: 6px;
    background: var(--bg3);
    border-radius: 3px;
    overflow: hidden;
}
.fortune-card-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.fortune-card-score {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* 评分说明卡片 */
.fortune-legend-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fortune-legend-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fortune-legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-light);
}
.fortune-legend-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.fortune-legend-note {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* 卡片DeepSeek分析中状态 */
.fortune-card-thinking {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-top: 6px;
    max-height: 60px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: rgba(201,169,110,0.05);
    border-radius: 6px;
    padding: 6px 8px;
    display: none;
}
.fortune-card-thinking.active {
    display: block;
}
.fortune-card-thinking::-webkit-scrollbar { width: 3px; }
.fortune-card-thinking::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
.fortune-card-analyzing .fortune-card-text {
    color: var(--gold-dim);
    font-style: italic;
}
.fortune-card-analyzing {
    border-color: rgba(201,169,110,0.3);
}
.fortune-overall-analyzing .fortune-overall-text {
    color: var(--gold-dim);
    font-style: italic;
}
@keyframes dsAnalyzePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.ds-analyzing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gold-dim);
    animation: dsAnalyzePulse 1.5s ease-in-out infinite;
}
.ds-analyzing-indicator::before {
    content: '🤖';
    font-size: 14px;
}
/* K线选中柱体高亮指示 */
.kline-selected-indicator {
    text-align: center;
    padding: 8px 16px;
    margin-top: 8px;
    background: rgba(201,169,110,0.1);
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gold);
    display: none;
}
.kline-selected-indicator.active {
    display: block;
}

/* 运势板块底部注释 */
.fortune-disclaimer {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===== 手机端汉堡菜单 ===== */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover {
    background: var(--bg3);
    color: var(--gold);
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 199;
}
.mobile-nav-overlay.open {
    display: block;
}
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.mobile-nav-menu.open {
    display: block;
}
.mobile-nav-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    color: var(--gold);
    background: rgba(201,169,110,0.1);
}

/* ===== 手机端响应式 ===== */
@media (max-width: 900px) {
    .paipan-layout { grid-template-columns: 1fr; }
    .hepan-input-grid { grid-template-columns: 1fr; }
    .hepan-two-cols { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .ai-panel { width: 100%; right: -100%; }
    .fortune-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .fortune-overall-banner {
        padding: 14px;
    }
    .fortune-card {
        min-height: auto;
        padding: 14px;
    }
    .fortune-card-text {
        -webkit-line-clamp: 10;
    }
    .fortune-aspects-section {
        padding: 14px;
    }
    .container { padding: 10px; }
    .card { padding: 12px; }
    /* 弹窗手机端适配 */
    .modal { min-width: auto; max-width: 95vw; width: 95vw; padding: 20px; margin: 10px; max-height: 85vh; overflow-y: auto; }
    .modal-overlay { padding: 10px; }
    /* K线图表手机端 */
    .kline-period-tabs { flex-wrap: wrap; }
    .kline-tab { padding: 6px 12px; font-size: 12px; }
    /* 表单输入框手机端 */
    .form-row { gap: 8px; }
    .form-input { width: 100%; }
    .form-input.wide { width: 100%; }
    .form-group { width: 100%; }
    /* 排盘表格手机端 */
    .yuanju-table .gan-cell { font-size: 22px; }
    .yuanju-table .zhi-cell { font-size: 22px; }
    /* 合盘手机端 */
    .hepan-person { padding: 14px; }
    /* 用户中心手机端 */
    .case-grid { grid-template-columns: 1fr; }
    /* 大运滚动区手机端 */
    .dayun-item { min-width: 50px; padding: 4px 8px; }
    .dayun-item .dy-gan { font-size: 14px; }
    .dayun-item .dy-zhi { font-size: 14px; }
    /* 底部免责声明 */
    .site-footer-disclaimer { font-size: 11px; padding: 16px 12px; }
    /* 充值弹窗 */
    .recharge-plans { flex-direction: column; }
    /* 五行旺衰条 */
    .wuxing-bar { flex-wrap: wrap; gap: 8px; }
    /* 顶部导航栏手机端优化 */
    .header-inner { padding: 0 8px; gap: 4px; }
    .logo-text { font-size: 14px; }
    .logo-icon { width: 36px; height: 36px; }
    .logo-icon img { width: 36px; height: 36px; }
    .logo { gap: 6px; }
    .user-area { gap: 4px; }
    .user-btn { padding: 4px 8px; font-size: 11px; white-space: nowrap; }
    .quota-badge { padding: 2px 6px; font-size: 10px; }
    .mobile-menu-btn { width: 30px; height: 30px; font-size: 18px; }
}

    
/* ===== 个人8维度画像分析 ===== */
.profile-8d-section { margin-top:16px; }
.profile-8d-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.profile-8d-title { font-size:16px; font-weight:600; color:var(--gold); display:flex; align-items:center; gap:8px; }
.profile-8d-actions { display:flex; gap:8px; align-items:center; }
.profile-8d-refresh-btn { padding:4px 12px; border-radius:6px; font-size:12px; background:rgba(201,169,110,0.15); color:var(--gold); border:1px solid rgba(201,169,110,0.3); cursor:pointer; transition:all .2s; }
.profile-8d-refresh-btn:hover { background:rgba(201,169,110,0.25); }
.profile-8d-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.profile-8d-card { padding:14px 16px; background:var(--bg3); border-radius:10px; border-left:3px solid var(--gold-dim); cursor:pointer; transition:all .2s; position:relative; overflow:hidden; }
.profile-8d-card:hover { border-left-color:var(--gold); background:rgba(201,169,110,0.06); transform:translateY(-1px); }
.profile-8d-card.expanded .profile-8d-value { max-height:200px; }
.profile-8d-card-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.profile-8d-icon { font-size:18px; flex-shrink:0; }
.profile-8d-label { font-size:13px; font-weight:600; color:var(--gold); }
.profile-8d-value { font-size:13px; color:var(--text); line-height:1.7; max-height:3.4em; overflow:hidden; transition:max-height .3s ease; }
.profile-8d-expand-hint { font-size:11px; color:var(--text-dim); text-align:right; margin-top:4px; opacity:0.7; }
.profile-8d-detail-btn { padding:6px 14px; border-radius:6px; font-size:12px; cursor:pointer; transition:all .2s; border:1px solid var(--gold); background:rgba(201,169,110,0.08); color:var(--gold); font-weight:500; white-space:nowrap; }
.profile-8d-detail-btn:hover { background:rgba(201,169,110,0.25); }
.profile-8d-detail-btn:disabled { opacity:0.4; cursor:not-allowed; }
.profile-8d-reanalyze-btn { padding:4px 12px; border-radius:6px; font-size:12px; background:var(--gold); color:#000; border:1px solid var(--gold); cursor:pointer; transition:all .2s; font-weight:bold; white-space:nowrap; }
.profile-8d-reanalyze-btn:hover { background:#b8922e; }
.profile-8d-cached-badge { font-size:12px; color:#2ecc71; display:inline-flex; align-items:center; gap:3px; }
.profile-8d-progress { text-align:center; padding:30px 20px; }
.profile-8d-progress-bar-wrap { width:80%; max-width:300px; height:6px; background:var(--border); border-radius:3px; margin:16px auto 0; overflow:hidden; }
.profile-8d-progress-bar { height:100%; background:linear-gradient(90deg, var(--gold), #e8c547); border-radius:3px; transition:width 0.5s ease; width:0%; }
.profile-8d-progress-text { margin-top:10px; font-size:13px; color:var(--text-dim); }
.profile-8d-progress-time { margin-top:4px; font-size:12px; color:var(--text-dim); opacity:0.6; }
.profile-8d-loading { text-align:center; padding:40px 20px; }
.profile-8d-loading .loading-spinner { display:inline-block; width:32px; height:32px; border:3px solid var(--border); border-top-color:var(--gold); border-radius:50%; animation:profile8dSpin 0.8s linear infinite; }
@keyframes profile8dSpin { to { transform:rotate(360deg); } }
.profile-8d-loading-text { margin-top:12px; font-size:13px; color:var(--text-dim); }
.profile-8d-loading-subtext { margin-top:4px; font-size:12px; color:var(--text-dim); opacity:0.6; }
.profile-8d-error { text-align:center; padding:20px; color:var(--danger); font-size:13px; }
.profile-8d-detail-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.7); z-index:200; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; pointer-events:none; }
.profile-8d-detail-overlay.active { opacity:1; pointer-events:auto; }
.profile-8d-detail-modal { background:var(--bg1,var(--bg)); border-radius:16px; width:92%; max-width:820px; max-height:85vh; display:flex; flex-direction:column; border:1px solid var(--gold-dim); box-shadow:0 8px 32px rgba(0,0,0,.5); }
.profile-8d-detail-modal-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.profile-8d-detail-modal-header h3 { margin:0; color:var(--gold); font-size:16px; }
.profile-8d-detail-modal-close { width:44px; height:44px; border-radius:50%; border:1px solid var(--border); background:var(--bg3); color:var(--text); font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.profile-8d-detail-modal-close:hover { background:var(--danger); color:#fff; border-color:var(--danger); }
.profile-8d-detail-modal-body { padding:20px; overflow-y:auto; flex:1; }
.profile-8d-detail-modal-body .answer-content { line-height:1.8; font-size:14px; }
.profile-8d-detail-modal-body .answer-content h1,.profile-8d-detail-modal-body .answer-content h2,.profile-8d-detail-modal-body .answer-content h3,.profile-8d-detail-modal-body .answer-content h4 { color:var(--gold); margin:12px 0 6px 0; font-weight:600; }
.profile-8d-detail-modal-body .answer-content h2 { font-size:16px; border-bottom:1px solid var(--border); padding-bottom:6px; }
.profile-8d-detail-modal-body .answer-content strong { color:var(--gold); }
.profile-8d-detail-modal-body .answer-content p { margin:6px 0; }
.profile-8d-detail-modal-body .answer-content ul,.profile-8d-detail-modal-body .answer-content ol { margin:6px 0; padding-left:20px; }
.profile-8d-detail-modal-body .answer-content blockquote { border-left:3px solid var(--gold); padding:4px 12px; margin:8px 0; background:var(--bg2); border-radius:4px; }
.profile-8d-thinking { margin-top:8px; padding:10px 14px; background:var(--bg2); border-radius:8px; border:1px solid var(--border); }
.profile-8d-thinking-toggle { font-size:12px; color:var(--text-dim); cursor:pointer; display:flex; align-items:center; gap:4px; }
.profile-8d-thinking-toggle:hover { color:var(--gold); }
.profile-8d-thinking-content { display:none; margin-top:8px; font-size:12px; color:var(--text-dim); line-height:1.6; max-height:200px; overflow-y:auto; white-space:pre-wrap; }
@media (max-width:600px) {
    .profile-8d-grid { grid-template-columns:1fr; }
}


/* ===== 夫妻合盘专用样式 ===== */
.couple-score-dashboard { display:flex; align-items:center; justify-content:center; gap:32px; flex-wrap:wrap; margin:16px 0; }
.couple-score-gauge { text-align:center; }
.couple-score-number { font-size:56px; font-weight:bold; color:var(--gold); line-height:1; }
.couple-score-label { font-size:13px; color:var(--text-dim); margin-top:6px; }
.couple-radar-wrap { width:280px; height:280px; }
.couple-sub-scores { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin:12px 0; }
.couple-sub-score { text-align:center; padding:10px 16px; background:var(--bg3); border-radius:10px; min-width:100px; border:1px solid var(--border); }
.couple-sub-score .sub-val { font-size:28px; font-weight:bold; }
.couple-sub-score .sub-label { font-size:11px; color:var(--text-dim); margin-top:4px; }
.cp-section-card { margin-top:16px; }
.cp-section-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.cp-section-title { font-size:16px; font-weight:600; color:var(--gold); }
.cp-section-desc { font-size:12px; color:var(--text-dim); margin-bottom:12px; }
.cp-ai-content { min-height:40px; }
.cp-person-card { background:var(--bg3); border-radius:10px; padding:14px; margin-bottom:10px; border-left:3px solid var(--gold); }
.cp-person-name { font-weight:bold; color:var(--gold); margin-bottom:8px; font-size:15px; }
.cp-dim-row { display:flex; gap:8px; margin-bottom:6px; align-items:flex-start; }
.cp-dim-label { flex-shrink:0; width:70px; font-size:12px; color:var(--text-dim); padding-top:2px; }
.cp-dim-value { font-size:13px; color:var(--text); line-height:1.6; }
.cp-emotion-block { background:var(--bg3); border-radius:8px; padding:12px; margin-bottom:8px; }
.cp-emotion-title { font-size:13px; font-weight:600; color:var(--gold); margin-bottom:6px; }
.cp-emotion-text { font-size:13px; color:var(--text); line-height:1.7; }
.cp-fluct-list { display:flex; flex-direction:column; gap:6px; }
.cp-fluct-item { display:flex; align-items:center; gap:8px; padding:6px 10px; background:var(--bg3); border-radius:6px; flex-wrap:wrap; }
.cp-fluct-year { font-weight:bold; color:var(--gold); font-size:14px; min-width:40px; }
.cp-fluct-type { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:500; background:var(--bg4); color:var(--text-dim); }
.cp-fluct-type.positive { background:rgba(46,204,113,.15); color:#27ae60; }
.cp-fluct-type.negative { background:rgba(231,76,60,.15); color:#e74c3c; }
.cp-fluct-desc { font-size:12px; color:var(--text); flex:1; }
.couple-timeline-container { position:relative; padding:16px 0; }
.couple-timeline-line { position:absolute; left:50%; top:0; bottom:0; width:2px; background:var(--border); transform:translateX(-50%); }
.couple-timeline-item { position:relative; display:flex; width:100%; }
.couple-timeline-item.left .couple-timeline-content { margin-right:auto; margin-left:0; text-align:left; }
.couple-timeline-item.right .couple-timeline-content { margin-left:auto; margin-right:0; text-align:left; }
.couple-timeline-dot { position:absolute; left:50%; top:12px; width:12px; height:12px; border-radius:50%; background:var(--border); transform:translateX(-50%); z-index:1; }
.couple-timeline-dot.golden { background:#27ae60; box-shadow:0 0 8px rgba(39,174,96,.4); }
.couple-timeline-dot.risk { background:#e74c3c; box-shadow:0 0 8px rgba(231,76,60,.4); }
.couple-timeline-content { width:44%; padding:10px 14px; background:var(--bg3); border-radius:8px; border:1px solid var(--border); }
.couple-timeline-content.golden { border-color:rgba(39,174,96,.3); }
.couple-timeline-content.risk { border-color:rgba(231,76,60,.3); }
.couple-timeline-year { font-weight:bold; color:var(--gold); font-size:13px; margin-bottom:4px; }
.couple-timeline-year.golden { color:#27ae60; }
.couple-timeline-year.risk { color:#e74c3c; }
.couple-timeline-badges { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:4px; }
.couple-timeline-badge { padding:2px 6px; border-radius:4px; font-size:10px; }
.couple-timeline-badge.luck-good { background:rgba(46,204,113,.15); color:#27ae60; }
.couple-timeline-badge.luck-bad { background:rgba(231,76,60,.15); color:#e74c3c; }
.couple-timeline-badge.luck-neutral { background:var(--bg4); color:var(--text-dim); }
@media (max-width:600px) {
    .couple-score-dashboard { flex-direction:column; }
    .couple-radar-wrap { width:240px; height:240px; }
    .couple-timeline-line { left:16px; }
    .couple-timeline-dot { left:16px; }
    .couple-timeline-item.left .couple-timeline-content,
    .couple-timeline-item.right .couple-timeline-content { width:calc(100% - 40px); margin-left:32px; margin-right:0; }
}

    /* ===== 命局角色样式 ===== */
    .corp-module { margin-bottom: 24px; }
    .corp-module-title {
font-size: 18px; font-weight: 700; color: var(--gold);
margin-bottom: 16px; padding-bottom: 8px;
border-bottom: 2px solid var(--gold-dim);
    }
    /* 公司概览卡片 */
    .corp-overview-card {
background: linear-gradient(135deg, var(--bg3), var(--bg4));
border: 1px solid var(--gold-dim); border-radius: 12px;
padding: 24px; position: relative; overflow: hidden;
    }
    .corp-overview-card::before {
content: ''; position: absolute; top: -50%; right: -50%;
width: 200%; height: 200%;
background: radial-gradient(circle, var(--gold-dim) 0%, transparent 60%);
opacity: 0.05; pointer-events: none;
    }
    .corp-company-name {
font-size: 28px; font-weight: 800; color: var(--gold);
margin-bottom: 4px;
    }
    .corp-strategy { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; font-style: italic; }
    .corp-info-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px; margin-top: 16px;
    }
    .corp-info-item {
background: var(--bg2); border-radius: 8px; padding: 14px;
border-left: 3px solid var(--gold);
    }
    .corp-info-label { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
    .corp-info-value { font-size: 15px; color: var(--text); font-weight: 500; }
    .corp-info-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
    .corp-rating {
display: inline-flex; align-items: center; gap: 6px;
font-size: 20px; color: var(--gold); margin-top: 12px;
    }
    /* 团队配置表 */
    .corp-team-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
    }
    .corp-team-card {
background: var(--bg3); border: 1px solid var(--border);
border-radius: 12px; padding: 16px 18px; transition: all 0.25s;
position: relative; overflow: hidden;
    }
    .corp-team-card::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    }
    .corp-team-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
    .corp-team-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .corp-team-icon { font-size: 32px; flex-shrink: 0; }
    .corp-team-name { font-size: 16px; font-weight: 700; color: var(--text); }
    .corp-team-stars { font-size: 13px; color: var(--gold); letter-spacing: 1px; margin-top: 2px; }
    .corp-team-roles { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 4px; }
    .corp-team-roles span { display: inline-block; background: var(--bg2); padding: 2px 10px; border-radius: 12px; margin: 2px 4px 2px 0; font-size: 12px; color: var(--gold); border: 1px solid var(--border); }
    /* 主要职位高亮标签 */
    .corp-team-roles span.role-primary { background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.08)); color: var(--gold); border-color: var(--gold); font-weight: 600; }
    .corp-team-roles span.role-primary::before { content: '★ '; font-size: 10px; }
    /* 职位中文副标题 */
    .corp-role-cn { font-size: 10px; color: var(--text-dim); opacity: 0.75; display: block; margin-top: 1px; text-align: center; }
    /* 卡片可点击提示 */
    .corp-team-card { cursor: pointer; }
    .corp-team-card .card-click-hint { font-size: 10px; color: var(--text-dim); opacity: 0.5; margin-top: 8px; text-align: right; }
    /* 卡片弹窗 */
    .corp-card-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); }
    .corp-card-modal-inner { background: var(--bg2); border: 1px solid var(--gold-dim); border-radius: 16px; padding: 24px 28px; max-width: 520px; width: 92%; max-height: 80vh; overflow-y: auto; position: relative; }
    .corp-card-modal-title { font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
    .corp-card-modal-stars { font-size: 14px; color: var(--gold); margin-bottom: 12px; }
    .corp-card-modal-section { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
    .corp-card-modal-section strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 13px; }
    .corp-card-modal-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
    .corp-card-modal-role { padding: 4px 12px; border-radius: 20px; font-size: 12px; border: 1px solid var(--border); }
    .corp-card-modal-role.primary { background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08)); color: var(--gold); border-color: var(--gold); font-weight: 600; }
    .corp-card-modal-role.secondary { background: var(--bg3); color: var(--text-dim); }
    .corp-card-modal-close { position: absolute; top: 8px; right: 8px; font-size: 22px; color: var(--text-dim); cursor: pointer; line-height: 1; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; background:none; border:none; border-radius:50%; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
    .corp-card-modal-close:hover { color: var(--gold); }
    /* 团队总结 */
    .corp-team-summary {
margin-top: 16px; padding: 20px 24px;
background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
border: 1px solid var(--gold-dim); border-radius: 12px;
line-height: 1.8; font-size: 14px; color: var(--text);
    }
    .corp-team-summary h3 { color: var(--gold); font-size: 15px; margin: 14px 0 6px; }
    .corp-team-summary h3:first-child { margin-top: 0; }
    .corp-team-summary p { margin-bottom: 8px; }
    .corp-team-summary strong { color: var(--gold); }
    /* 格局匹配 */
    .corp-pattern-card {
background: var(--bg3); border: 1px solid var(--border);
border-radius: 10px; padding: 18px; margin-bottom: 12px;
    }
    .corp-pattern-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .corp-pattern-icon { font-size: 32px; }
    .corp-pattern-name { font-size: 18px; font-weight: 700; color: var(--gold); }
    .corp-pattern-model { font-size: 13px; color: var(--text-dim); background: var(--bg2); padding: 3px 10px; border-radius: 4px; }
    .corp-pattern-desc { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
    .corp-pattern-tags { display: flex; gap: 12px; flex-wrap: wrap; }
    .corp-pattern-tag {
font-size: 12px; padding: 6px 12px; border-radius: 6px;
    }
    .corp-pattern-tag.strength { background: rgba(39,174,96,0.1); color: #27AE60; border: 1px solid rgba(39,174,96,0.3); }
    .corp-pattern-tag.risk { background: rgba(231,76,60,0.1); color: #E74C3C; border: 1px solid rgba(231,76,60,0.3); }
    /* 大运发展周期 */
    .corp-dayun-timeline {
position: relative; padding-left: 30px;
    }
    .corp-dayun-timeline::before {
content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
width: 2px; background: var(--gold-dim);
    }
    .corp-dayun-item {
position: relative; margin-bottom: 16px; padding: 12px 16px;
background: var(--bg3); border: 1px solid var(--border);
border-radius: 8px; transition: all 0.2s;
    }
    .corp-dayun-item:hover { border-color: var(--gold); }
    .corp-dayun-item::before {
content: ''; position: absolute; left: -24px; top: 16px;
width: 10px; height: 10px; border-radius: 50%;
background: var(--gold); border: 2px solid var(--bg);
    }
    .corp-dayun-age { font-size: 13px; color: var(--gold); font-weight: 700; }
    .corp-dayun-ganzhi { font-size: 15px; color: var(--text); font-weight: 600; margin: 4px 0; }
    .corp-dayun-stage { font-size: 14px; color: var(--gold); font-weight: 600; }
    .corp-dayun-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
    /* AI报告 */
    .corp-ai-thinking {
background: var(--bg3); border: 1px solid var(--border);
border-radius: 8px; padding: 16px; margin-bottom: 16px;
max-height: 200px; overflow-y: auto;
    }
    .corp-ai-thinking .thinking-label { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
    .corp-ai-thinking .thinking-content { font-size: 13px; color: var(--text-dim); line-height: 1.6; white-space: pre-wrap; }
    .corp-ai-content { font-size: 15px; color: var(--text); line-height: 1.8; }
    .corp-ai-content h2 { font-size: 18px; color: var(--gold); margin: 20px 0 10px; }
    .corp-ai-content h3 { font-size: 16px; color: var(--text); margin: 16px 0 8px; }
    .corp-ai-content p { margin-bottom: 12px; }
    .corp-ai-content strong { color: var(--gold); }
    .corp-ai-content ul, .corp-ai-content ol { padding-left: 20px; margin-bottom: 12px; }
    .corp-ai-content li { margin-bottom: 6px; }
    /* 已保存案例 */
    .corp-saved-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }
    .corp-saved-item {
display: flex; justify-content: space-between; align-items: center;
padding: 12px 16px; background: var(--bg3); border: 1px solid var(--border);
border-radius: 8px; cursor: pointer; transition: all 0.2s;
    }
    .corp-saved-item:hover { border-color: var(--gold); background: var(--bg4); }
    @media (max-width: 768px) {
.corp-info-grid { grid-template-columns: 1fr; }
.corp-team-grid { grid-template-columns: repeat(2, 1fr); }
.corp-company-name { font-size: 22px; }
    }

/* 分页控件样式 */
.pagination-bar { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:24px; padding:16px 0; flex-wrap:wrap; grid-column:1/-1; width:100%; }
.pagination-bar .page-btn { padding:8px 16px; border:1px solid var(--border); border-radius:8px; font-size:14px; color:var(--text); background:var(--bg2); cursor:pointer; transition:all .2s; }
.pagination-bar .page-btn:hover:not(.disabled):not(.active) { border-color:var(--gold); color:var(--gold); background:var(--bg3); }
.pagination-bar .page-btn.active { background:var(--gold); color:#000; border-color:var(--gold); font-weight:600; }
.pagination-bar .page-btn.disabled { opacity:0.4; cursor:not-allowed; }
.pagination-bar .page-info { font-size:14px; color:var(--text-dim); margin-left:12px; }
@media (max-width:600px) {
    .pagination-bar { gap:4px; }
    .pagination-bar .page-btn { padding:6px 10px; font-size:12px; }
    .pagination-bar .page-info { display:block; width:100%; text-align:center; margin-left:0; margin-top:8px; }
}
