/* 标签页容器与切换 */
.tabs { display: flex; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.12); margin: -4px -4px 12px -4px; padding: 0 4px 8px 4px; }
.tab-btn { background: transparent; border: none; color: rgba(255,255,255,0.85); padding: 6px 10px; cursor: pointer; font-weight: 600; border-radius: 6px; }
.tab-btn:hover { background: rgba(255,255,255,0.06); }
.tab-btn.active { color: #f093fb; box-shadow: inset 0 -2px 0 0 #f093fb; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 能量组件通用样式 */
.power-section { margin-top: 12px; }
.wx-title { margin-bottom: 10px; color: #f093fb; font-weight: 700; }
.wx-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wx-label { width: 30px; font-size: 1rem; font-weight: 600; }
.wx-bar-bg { position: relative; flex: 1; height: 22px; background: rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.wx-bar-fill { height: 100%; border-radius: 12px; box-shadow: 0 0 8px rgba(255,255,255,0.25); transition: width .4s ease; }
.wx-bar-value { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; color: rgba(255,255,255,0.9); font-weight: 600; }
.wx-empty { color: rgba(255,255,255,0.6); font-size: 0.9rem; padding: 10px; text-align: center; }

/* 流动行 */
.flow-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; }
.flow-end { font-weight: 600; font-size: 0.95rem; }
.flow-arrow { font-size: 1.1rem; }
.flow-type { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.flow-power { margin-left: auto; color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600; }

/* 分析卡片与平衡条 */
.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.analysis-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px; }
.analysis-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.analysis-value { font-size: 1.4rem; font-weight: 800; }
.analysis-sub { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.balance-box { padding: 12px; background: rgba(255,255,255,0.06); border: 2px solid #54e6a5; border-radius: 10px; }
.balance-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.balance-bar { margin-top: 8px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.balance-fill { height: 100%; width: 0; transition: width .4s ease; }
.balance-sub { margin-top: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* 模态框 */
.modal-overlay { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(10,10,20,0.6); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-card { background: rgba(26,26,46,0.98); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 20px; max-width: 420px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.modal-title { color: #f093fb; margin-bottom: 12px; font-size: 1.2rem; }
.modal-info { margin-top: 10px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.modal-close { margin-top: 14px; padding: 10px; background: #f093fb; border: none; border-radius: 8px; color: #fff; cursor: pointer; width: 100%; font-weight: 700; }

/* 增强藏干 */
.canggan-wrapper { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.canggan-ratio-indicator { height: 4px; border-radius: 2px; opacity: 0.8; }

@media (max-width: 900px) {
  .analysis-grid { grid-template-columns: 1fr; }
}


