/* 旺财信用独立详情页 V45 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f5f7fa; color: #2a1b0e; font-size: 14px; min-height: 100vh; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
a { color: inherit; text-decoration: none; }

/* 顶栏 */
.cr-topbar { position: sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background: linear-gradient(135deg,#1890ff 0%, #722ed1 50%, #eb2f96 100%); color:white; }
.cr-back { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; color:white; transition: background .2s; }
.cr-back:hover { background:rgba(255,255,255,0.15); }
.cr-title { font-size:17px; font-weight:700; }
.cr-share { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; color:white; }

/* Hero */
.cr-hero { position: relative; background: linear-gradient(135deg,#1890ff 0%, #722ed1 50%, #eb2f96 100%); color:white; padding: 20px 16px 80px; overflow:hidden; }
.cr-hero-bg { position:absolute; inset:0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,215,0,0.15) 0%, transparent 50%); }
.cr-hero-inner { position:relative; z-index:2; text-align:center; }
.cr-hero-label { font-size:13px; opacity:0.9; margin-bottom:8px; }
.cr-hero-score { font-size:84px; font-weight:900; letter-spacing:-3px; font-variant-numeric: tabular-nums; text-shadow: 0 4px 20px rgba(0,0,0,0.2); line-height:1; }
.cr-hero-lv { display:inline-block; margin-top:8px; padding:4px 16px; background:rgba(255,255,255,0.2); backdrop-filter:blur(10px); border-radius:20px; font-size:14px; font-weight:700; border:1px solid rgba(255,255,255,0.3); }
.cr-hero-range { font-size:11px; opacity:0.85; margin-top:12px; }
.cr-hero-gauge { margin: 24px 20px 16px; position:relative; }
.cr-gauge-track { position:relative; height:8px; background:rgba(255,255,255,0.2); border-radius:4px; overflow:visible; }
.cr-gauge-fill { position:absolute; left:0; top:0; height:100%; background: linear-gradient(90deg,#52c41a,#faad14,#ff4d4f,#722ed1); border-radius:4px; transition: width 1s ease; }
.cr-gauge-marks { position:absolute; top:14px; left:0; right:0; display:flex; justify-content:space-between; font-size:10px; opacity:0.7; }
.cr-gauge-pointer { position:absolute; top:-6px; width:20px; height:20px; background:white; border:4px solid #eb2f96; border-radius:50%; transform:translateX(-50%); transition:left 1s ease; box-shadow:0 2px 8px rgba(0,0,0,0.2); }
.cr-hero-tip { font-size:12px; background:rgba(255,255,255,0.15); backdrop-filter:blur(10px); padding:10px 16px; border-radius:12px; margin:20px 20px 0; border:1px solid rgba(255,255,255,0.2); line-height:1.6; }
.cr-hero-tip b { color:#ffd700; font-size:14px; }

/* 卡片 */
.cr-card { margin: -40px 12px 12px; padding:16px; background:white; border-radius:16px; box-shadow:0 4px 20px rgba(0,0,0,0.06); position:relative; z-index:3; }
.cr-card:first-of-type { margin-top:-40px; }
.cr-card-title { font-size:15px; font-weight:700; color:#2a1b0e; display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cr-card-tip { font-size:11px; color:#999; font-weight:400; }

/* 维度 */
.cr-dim-item { display:flex; align-items:center; padding:10px 0; border-bottom:1px solid #f5f5f5; }
.cr-dim-item:last-child { border-bottom:none; }
.cr-dim-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; margin-right:12px; flex-shrink:0; }
.cr-dim-meta { flex:1; min-width:0; }
.cr-dim-name { font-size:13px; font-weight:600; }
.cr-dim-desc { font-size:11px; color:#999; margin-top:2px; }
.cr-dim-bar-wrap { margin-top:6px; height:6px; background:#f5f5f5; border-radius:3px; overflow:hidden; }
.cr-dim-bar { height:100%; border-radius:3px; transition: width 1s ease; }
.cr-dim-score { width:44px; text-align:right; font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; margin-left:10px; }
.cr-dim-summary { margin-top:12px; padding:10px 12px; background:linear-gradient(135deg,#fff5eb,#ffe8d6); border-radius:10px; font-size:12px; line-height:1.7; color:#8b4513; }

/* 额度 */
.cr-quota-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:8px; }
.cr-quota { padding:14px 8px; border-radius:12px; text-align:center; }
.cr-quota.orange { background:linear-gradient(135deg,#fff5eb,#ffe8d6); }
.cr-quota.green { background:linear-gradient(135deg,#f6ffed,#d9f7be); }
.cr-quota.red { background:linear-gradient(135deg,#fff1f0,#ffccc7); }
.cr-quota-label { font-size:11px; color:#666; }
.cr-quota-val { font-size:20px; font-weight:800; margin-top:6px; font-variant-numeric:tabular-nums; }
.cr-quota.orange .cr-quota-val { color:#ff6a00; }
.cr-quota.green .cr-quota-val { color:#52c41a; }
.cr-quota.red .cr-quota-val { color:#ff4d4f; }
.cr-quota-unit { font-size:10px; color:#999; margin-top:2px; }
.cr-quota-actions { display:flex; gap:8px; margin-top:12px; }
.cr-btn-primary { flex:1; padding:12px; background:linear-gradient(135deg,#1890ff,#722ed1); color:white; border-radius:12px; font-size:13px; font-weight:600; transition: transform .15s; }
.cr-btn-primary:active { transform:scale(0.97); }
.cr-btn-secondary { flex:1; padding:12px; background:white; color:#ff6a00; border:1px solid #ffd8bf; border-radius:12px; font-size:13px; font-weight:600; }
.cr-quota-tip { margin-top:10px; font-size:11px; color:#999; text-align:center; line-height:1.6; }

/* 权益 */
.cr-benefits { display:grid; grid-template-columns: repeat(2,1fr); gap:10px; }
.cr-bn-item { padding:12px; border-radius:12px; border:1px solid #f0f0f0; background:#fafafa; position:relative; transition: all .2s; }
.cr-bn-item.unlocked { background:linear-gradient(135deg,#fff5eb,#ffe8d6); border-color:#ffd8bf; }
.cr-bn-icon { font-size:28px; margin-bottom:6px; }
.cr-bn-name { font-size:13px; font-weight:700; }
.cr-bn-req { font-size:10px; color:#999; margin-top:3px; }
.cr-bn-desc { font-size:10px; color:#666; margin-top:4px; line-height:1.4; }
.cr-bn-status { position:absolute; top:8px; right:8px; font-size:10px; padding:2px 8px; border-radius:10px; font-weight:600; }
.cr-bn-status.ok { background:#52c41a; color:white; }
.cr-bn-status.lock { background:#f5f5f5; color:#999; }

/* 任务 */
.cr-task-item { display:flex; align-items:center; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.cr-task-item:last-child { border-bottom:none; }
.cr-task-icon { width:40px; height:40px; border-radius:12px; background:linear-gradient(135deg,#e6f7ff,#d6e8ff); color:#1890ff; display:flex;align-items:center;justify-content:center; font-size:20px; margin-right:12px; flex-shrink:0; }
.cr-task-info { flex:1; min-width:0; }
.cr-task-title { font-size:14px; font-weight:600; }
.cr-task-reward { font-size:11px; color:#ff6a00; margin-top:3px; }
.cr-task-bar { height:4px; background:#f0f0f0; border-radius:2px; margin-top:6px; overflow:hidden; }
.cr-task-bar-fill { height:100%; background:linear-gradient(90deg,#1890ff,#722ed1); border-radius:2px; }
.cr-task-btn { padding:6px 14px; background:linear-gradient(135deg,#ff6a00,#ff4d4f); color:white; border-radius:14px; font-size:12px; font-weight:600; }
.cr-task-btn.done { background:#f5f5f5; color:#999; }
.cr-task-btn.progress { background:linear-gradient(135deg,#faad14,#fa8c16); }

/* 历史 */
.cr-his-item { display:flex; align-items:center; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.cr-his-item:last-child { border-bottom:none; }
.cr-his-dot { width:10px; height:10px; border-radius:50%; margin-right:12px; flex-shrink:0; }
.cr-his-dot.up { background:#52c41a; box-shadow:0 0 0 4px rgba(82,196,26,0.15); }
.cr-his-dot.down { background:#ff4d4f; box-shadow:0 0 0 4px rgba(255,77,79,0.15); }
.cr-his-info { flex:1; }
.cr-his-reason { font-size:13px; color:#2a1b0e; font-weight:500; }
.cr-his-date { font-size:11px; color:#999; margin-top:3px; }
.cr-his-change { font-size:15px; font-weight:800; font-variant-numeric:tabular-nums; }
.cr-his-change.up { color:#52c41a; }
.cr-his-change.down { color:#ff4d4f; }
.cr-his-after { font-size:11px; color:#999; margin-left:10px; }

/* 建议 */
.cr-sug-item { display:flex; gap:10px; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.cr-sug-item:last-child { border-bottom:none; }
.cr-sug-num { width:24px; height:24px; border-radius:50%; background:linear-gradient(135deg,#1890ff,#722ed1); color:white; font-size:12px; font-weight:700; display:flex;align-items:center;justify-content:center; flex-shrink:0; }
.cr-sug-text { font-size:13px; color:#555; line-height:1.7; flex:1; }

/* 等级 */
.cr-level-row { display:flex; align-items:center; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.cr-level-row:last-child { border-bottom:none; }
.cr-level-tag { width:60px; text-align:center; padding:6px 0; border-radius:8px; font-size:12px; font-weight:700; color:white; margin-right:12px; flex-shrink:0; }
.cr-level-meta { flex:1; }
.cr-level-name { font-size:14px; font-weight:700; }
.cr-level-range { font-size:11px; color:#999; margin-top:2px; }
.cr-level-desc { font-size:11px; color:#666; margin-top:4px; line-height:1.5; }
.cr-level-status { font-size:11px; padding:3px 8px; border-radius:10px; font-weight:600; }
.cr-level-status.cur { background:#1890ff; color:white; }
.cr-level-status.reached { background:#f6ffed; color:#52c41a; }
.cr-level-status.locked { background:#f5f5f5; color:#999; }

/* Toast */
.cr-toast { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,0.8); color:white; padding:12px 20px; border-radius:12px; font-size:14px; z-index:999; display:none; }
.cr-toast.show { display:block; animation: crtoast .2s; }
@keyframes crtoast { from{opacity:0; transform:translate(-50%,-60%);} to{opacity:1; transform:translate(-50%,-50%);} }

/* 响应式 */
@media (min-width:640px){ body { max-width:640px; margin:0 auto; background:#f5f7fa; box-shadow:0 0 40px rgba(0,0,0,0.08); } }
@media (max-width:380px){ .cr-hero-score{font-size:68px;} .cr-benefits{grid-template-columns:1fr;} }
