/* 用户中心：由 :root 变量驱动渐变，在 layout 内联脚本中赋值 */
:root{
  --sl-g1:#1c2833;
  --sl-g2:#2d3d4a;
  --sl-accent:#8c9da8;
  --sl-panel:rgba(255,255,255,.06);
  --sl-border:rgba(255,255,255,.12);
  --sl-text:#e8eaed;
  --sl-muted:#9aa7b2;
}
*{box-sizing:border-box}
body.sl-console{margin:0;min-height:100vh;font-family:"Segoe UI",system-ui,sans-serif;color:var(--sl-text);
  background:radial-gradient(1200px 600px at 10% -10%,rgba(255,255,255,.07),transparent 55%),
  linear-gradient(145deg,var(--sl-g1) 0%,var(--sl-g2) 48%,#1a2229 100%);
  background-attachment:fixed;
}
body.sl-console::before{
  content:"";position:fixed;inset:0;pointer-events:none;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.sl-shell{display:flex;min-height:100vh;position:relative;z-index:1}
.sl-side{width:240px;padding:28px 0;border-right:1px solid var(--sl-border);background:rgba(0,0,0,.18);backdrop-filter:blur(12px)}
.sl-side .brand{padding:0 24px 24px;font-weight:700;letter-spacing:.06em;border-bottom:1px solid var(--sl-border);margin-bottom:16px}
.sl-side a{display:block;padding:12px 24px;color:var(--sl-muted);text-decoration:none;font-size:15px;border-left:3px solid transparent}
.sl-side a:hover{color:var(--sl-text)}
.sl-side a.cur{color:var(--sl-text);border-left-color:var(--sl-accent);background:rgba(255,255,255,.04)}
.sl-main{flex:1;padding:32px 40px}
.sl-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
.sl-top .user{color:var(--sl-muted);font-size:14px}
.sl-top a{color:var(--sl-accent);margin-left:16px;text-decoration:none}
.sl-card{max-width:720px;background:var(--sl-panel);border:1px solid var(--sl-border);border-radius:14px;padding:28px;backdrop-filter:blur(8px)}
.sl-card h2{margin:0 0 8px;font-size:20px;font-weight:600}
.sl-card p{margin:0 0 20px;color:var(--sl-muted);font-size:14px;line-height:1.6}
.sl-card label{display:block;font-size:13px;color:var(--sl-muted);margin-bottom:6px}
.sl-card input,.sl-card textarea{width:100%;padding:12px 14px;border-radius:8px;border:1px solid var(--sl-border);background:rgba(0,0,0,.25);color:var(--sl-text);font-size:14px}
.sl-card textarea{min-height:100px;resize:vertical}
.sl-card .row{margin-bottom:16px}
.sl-btn{margin-top:8px;padding:12px 28px;border-radius:8px;border:none;cursor:pointer;font-size:14px;font-weight:600;
  background:linear-gradient(135deg,var(--sl-accent),#5a6b78);color:#0f1419}
.sl-btn:disabled{opacity:.5;cursor:not-allowed}

@media (max-width: 900px){
  body.sl-console{
    background-attachment:scroll;
  }
  .sl-shell{
    flex-direction:column;
    min-height:100vh;
  }
  .sl-side{
    width:100%;
    padding:12px 0 0;
    border-right:none;
    border-bottom:1px solid var(--sl-border);
    backdrop-filter:blur(8px);
  }
  .sl-side .brand{
    padding:0 16px 12px;
    margin-bottom:8px;
    font-size:18px;
  }
  .sl-side a{
    display:inline-block;
    width:50%;
    padding:10px 14px;
    border-left:none;
    border-bottom:2px solid transparent;
    font-size:14px;
  }
  .sl-side a.cur{
    border-bottom-color:var(--sl-accent);
    background:rgba(255,255,255,.06);
  }
  .sl-main{
    padding:16px 14px 22px;
  }
  .sl-top{
    margin-bottom:14px;
  }
  .sl-top > span{
    display:none;
  }
  .sl-top .user{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    row-gap:8px;
    font-size:13px;
  }
  .sl-top a{
    margin-left:10px;
  }
  .sl-card{
    max-width:none;
    width:100%;
    padding:16px 14px;
    border-radius:12px;
  }
  .sl-card h2{
    font-size:18px;
  }
  .sl-card p{
    font-size:13px;
    margin-bottom:14px;
  }
  .sl-card input,.sl-card textarea{
    padding:11px 12px;
    font-size:14px;
  }
  .sl-btn{
    width:100%;
    padding:12px 16px;
  }
}

@media (max-width: 480px){
  .sl-side a{
    width:100%;
  }
  .sl-top .user{
    justify-content:space-between;
  }
  .sl-top .user a{
    margin-left:0;
    margin-right:10px;
  }
}
