/* 用户中心独立外壳 */
* { box-sizing: border-box; }
.uc-body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
.uc-body a { text-decoration: none; }
.uc-topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.uc-topbar-inner { max-width: 1100px; height: 66px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.uc-brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); }
.uc-brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.uc-brand-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 800; }
.uc-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.uc-brand-text strong { font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-brand-text small { color: var(--text-lighter); font-size: 9px; letter-spacing: .8px; }
.uc-topnav { display: flex; align-items: center; gap: 4px; flex: 1; }
.uc-topnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--text-light); font-size: 12px; }
.uc-topnav a:hover, .uc-topnav a.active { color: var(--primary); background: var(--primary-soft); }
.uc-topbar-user { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.uc-topbar-user > a { color: var(--text-light); }
.uc-topbar-user > a:hover { color: var(--primary); }
.uc-topbar-name { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.uc-topbar-name img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.uc-topbar-register { padding: 7px 12px; border-radius: 8px; background: var(--primary); color: #fff !important; }
.uc-topbar-logout { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg); }
.uc-main { min-height: calc(100vh - 130px); }
.uc-auth-main { display: flex; align-items: center; justify-content: center; padding: 46px 16px; }
.uc-auth-main > div { width: 100%; max-width: 440px !important; margin: 0 !important; padding: 0 !important; }
.uc-footer { max-width: 1100px; margin: 0 auto; padding: 24px 20px 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-lighter); font-size: 11px; }
.uc-footer a { color: var(--text-light); }
.uc-footer a:hover { color: var(--primary); }
.uc-auth-body .uc-topnav { display: none; }
.uc-auth-body .uc-topbar-user { margin-left: auto; }
@media (max-width: 720px) {
    .uc-topbar-inner { height: 58px; padding: 0 13px; gap: 10px; }
    .uc-brand-text small, .uc-topbar-name span { display: none; }
    .uc-topnav a { padding: 7px 8px; }
    .uc-topnav a i { display: none; }
    .uc-topbar-user { gap: 6px; }
    .uc-topbar-name img { width: 26px; height: 26px; }
}

.uc-shell { max-width: 1000px; margin: 0 auto; padding: 24px 16px 48px; }
.uc-shell.uc-narrow { max-width: 820px; }
.uc-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 7px; margin-bottom: 18px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); }
.uc-nav a { padding: 8px 15px; border-radius: 8px; color: var(--text-light); font-size: 13px; font-weight: 500; }
.uc-nav a:hover, .uc-nav a.active { background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.uc-nav .uc-nav-right { margin-left: auto; display: flex; gap: 4px; }
.uc-nav .uc-nav-admin { background: var(--primary); color: #fff; }
.uc-nav .uc-nav-admin:hover { background: var(--primary-light); color: #fff; }
.uc-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 30px; margin-bottom: 18px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--primary), #7c3aed); background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary), #7c3aed 38%)); box-shadow: 0 18px 44px -28px rgba(var(--primary-rgb), .65); }
.uc-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -100px; border-radius: 50%; background: rgba(255,255,255,.12); }
.uc-hero-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.35); flex-shrink: 0; }
.uc-hero-main { flex: 1; min-width: 190px; position: relative; z-index: 1; }
.uc-hero-main h1 { font-size: 22px; font-weight: 800; margin-bottom: 3px; }
.uc-hero-main p { font-size: 12.5px; color: rgba(255,255,255,.72); }
.uc-hero-main .uc-hero-bio { margin-top: 7px; font-size: 12px; color: rgba(255,255,255,.62); }
.uc-hero-stats { display: flex; gap: 22px; text-align: center; position: relative; z-index: 1; }
.uc-hero-stats strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; }
.uc-hero-stats span { font-size: 10px; color: rgba(255,255,255,.65); }
.uc-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.uc-action { display: block; padding: 20px 16px; text-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.uc-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(var(--primary-rgb), .25); color: var(--text); }
.uc-action i { display: block; font-size: 24px; margin-bottom: 9px; color: var(--primary); }
.uc-action strong { display: block; font-size: 13.5px; font-weight: 650; }
.uc-action span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-lighter); }
.uc-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow); padding: 20px 22px; }
.uc-card + .uc-card { margin-top: 16px; }
.uc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.uc-section-head h2 { font-size: 16px; font-weight: 750; }
.uc-section-head h2 i { color: var(--primary); margin-right: 5px; }
.uc-section-head .uc-muted { font-size: 12px; color: var(--text-lighter); }
.uc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.uc-filters { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.uc-filters a { padding: 6px 12px; border-radius: 7px; color: var(--text-light); background: var(--bg); font-size: 12px; }
.uc-filters a:hover, .uc-filters a.active { background: var(--primary); color: #fff; }
.uc-filters a em { font-style: normal; margin-left: 2px; opacity: .65; font-size: 10px; }
.uc-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; border: 0; }
.uc-btn:hover { color: #fff; background: var(--primary-light); }
.uc-post-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.uc-post-row:last-child { border-bottom: 0; }
.uc-post-main { flex: 1; min-width: 0; }
.uc-post-title { display: block; color: var(--text); font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-post-title:hover { color: var(--primary); }
.uc-post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 3px; color: var(--text-lighter); font-size: 10.5px; }
.uc-status { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.uc-status.publish { background: #ecfdf5; color: #059669; }
.uc-status.draft { background: #f1f5f9; color: #64748b; }
.uc-status.pending { background: #fff7ed; color: #d97706; }
.uc-post-edit { color: var(--primary); font-size: 11px; white-space: nowrap; }
.uc-empty { text-align: center; padding: 44px 20px; color: var(--text-light); font-size: 13px; }
.uc-empty i { display: block; margin-bottom: 10px; font-size: 32px; color: var(--border-strong); }
.uc-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 16px; }
.uc-pagination a, .uc-pagination span { min-width: 32px; height: 32px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-light); font-size: 12px; }
.uc-pagination a:hover, .uc-pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.uc-profile-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
.uc-profile-side { background: var(--card-bg); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow); padding: 24px 18px; text-align: center; }
.uc-profile-side img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.uc-profile-side h3 { font-size: 15px; font-weight: 750; }
.uc-profile-side p { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.uc-form-row { margin-bottom: 14px; }
.uc-form-row label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 5px; }
.uc-input, .uc-textarea { width: 100%; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 9px 12px; outline: none; font-size: 13px; }
.uc-input:focus, .uc-textarea:focus { border-color: var(--primary); background: var(--card-bg); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .08); }
.uc-textarea { min-height: 90px; resize: vertical; }
.uc-submit { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.uc-submit:hover { background: var(--primary-light); color: #fff; }
@media (max-width: 720px) {
    .uc-shell { padding: 16px 12px 36px; }
    .uc-nav { overflow-x: auto; flex-wrap: nowrap; }
    .uc-nav a { flex-shrink: 0; }
    .uc-nav .uc-nav-right { margin-left: 0; }
    .uc-hero { padding: 22px 18px; gap: 14px; }
    .uc-hero-avatar { width: 60px; height: 60px; }
    .uc-hero-stats { width: 100%; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.18); }
    .uc-actions { grid-template-columns: 1fr 1fr; }
    .uc-profile-layout { grid-template-columns: 1fr; }
}
