/* 手相 / 面相分析工具样式 */
.fhr-wrap{max-width:1080px;margin:0 auto;color:var(--text,#243247)}
.fhr-tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.fhr-tab{padding:10px 22px;border:1px solid var(--border,#e3e7ee);border-radius:10px;background:var(--card,#fff);color:var(--text,#243247);font-size:15px;cursor:pointer;transition:.15s}
.fhr-tab:hover{border-color:#c9a227}
.fhr-tab.on{background:linear-gradient(135deg,#8a5a1a,#c9a227);color:#fff;border-color:#a67c3d;font-weight:700}
.fhr-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:860px){.fhr-grid{grid-template-columns:1fr}}
.fhr-card{background:var(--card,#fff);border:1px solid var(--border,#e8dcc3);border-radius:12px;padding:16px 18px;margin-bottom:14px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
.fhr-card h3{margin:0 0 12px;font-size:16px;color:#8a5a1a;border-bottom:1px solid #f0e6d2;padding-bottom:8px}
.fhr-upload{display:block;border:2px dashed #d8c7a5;border-radius:10px;padding:20px;text-align:center;cursor:pointer;background:#fffdf6;transition:.15s}
.fhr-upload:hover{border-color:#c9a227;background:#fff9ea}
.fhr-upload input{display:none}
.fhr-upload span{color:#8a5a1a;font-weight:600}
.fhr-preview{margin-top:12px;min-height:180px;max-height:300px;border-radius:10px;overflow:hidden;background:#faf8f2;display:flex;align-items:center;justify-content:center;color:#a99}
.fhr-preview img{max-width:100%;max-height:300px;object-fit:contain;display:block}
.fhr-mini{font-size:12px;color:var(--muted,#8a8a8a);margin:8px 0 0;line-height:1.6}
.fhr-group{margin-bottom:14px;padding-bottom:12px;border-bottom:1px dashed #eee4d0}
.fhr-group:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.fhr-gtitle{font-weight:700;color:#6b3d08;margin-bottom:2px}
.fhr-gdesc{font-size:12px;color:var(--muted,#8a8a8a);margin-bottom:8px}
.fhr-opts{display:flex;flex-wrap:wrap;gap:6px}
.fhr-opt{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid #e3dbc9;border-radius:16px;background:#fff;font-size:13px;cursor:pointer;transition:.15s;user-select:none}
.fhr-opt input{display:none}
.fhr-opt:hover{border-color:#c9a227}
.fhr-opt.on{background:#faf0d8;border-color:#a67c3d;color:#6b3d08;font-weight:600}
.fhr-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.fhr-btn{padding:9px 18px;border:1px solid #d8c7a5;border-radius:8px;background:#fff;color:#6b3d08;cursor:pointer;font-size:14px;transition:.15s}
.fhr-btn:hover{border-color:#c9a227;background:#fffaf0}
.fhr-btn.primary{background:linear-gradient(135deg,#8a5a1a,#c9a227);color:#fff;border-color:#a67c3d;font-weight:700}
.fhr-btn.ghost{color:var(--muted,#8a8a8a)}
.fhr-btn:disabled{opacity:.6;cursor:not-allowed}
.fhr-status{font-size:13px;margin-bottom:8px;min-height:18px;color:var(--muted,#8a8a8a)}
.fhr-status.ok{color:#2e7d32}
.fhr-status.err{color:#c62828}
.fhr-result{min-height:120px}
.fhr-empty{color:var(--muted,#9a9a9a);text-align:center;padding:28px 10px}
.fhr-report h4{margin:0 0 12px;color:#6b3d08;font-size:15px}
.fhr-sec{margin-bottom:12px;padding:10px 12px;background:#fffdf6;border:1px solid #f0e6d2;border-radius:8px}
.fhr-sec h5{margin:0 0 6px;font-size:14px;color:#8a5a1a}
.fhr-sec ul{margin:0;padding-left:18px}
.fhr-sec li{line-height:1.8;font-size:13px;margin:3px 0}
.fhr-ai-text{line-height:1.9;font-size:14px;padding:12px;background:#faf8f2;border-radius:8px;border:1px solid #eee4d0}
.fhr-foot{font-size:12px;color:var(--muted,#9a9a9a);line-height:1.6;margin-top:14px;padding-top:10px;border-top:1px dashed #e8dcc3}
.fhr-disclaimer p{font-size:12px;color:var(--muted,#8a8a8a);line-height:1.7;margin:6px 0 0}

.fhr-side{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:10px;font-size:13px;color:var(--muted,#8a8a8a)}
.fhr-side label{cursor:pointer;color:var(--text,#243247)}
.fhr-side input{accent-color:#c9a227;margin-right:3px}
.fhr-meta{font-size:12px;color:var(--muted,#8a8a8a);margin-bottom:10px;padding:6px 10px;background:#faf8f2;border-radius:6px}
.fhr-stars-box{margin-bottom:14px;padding:10px 12px;background:linear-gradient(135deg,#fffaf0,#fff);border:1px solid #f0e6d2;border-radius:8px}
.fhr-stars-box>b{font-size:13px;color:#8a5a1a}
.fhr-star-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin-top:8px}
.fhr-star-grid>div{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.fhr-stars{color:#e0a020;letter-spacing:1px}
.fhr-stars span{color:#ddd}
