* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.user-profile-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    transition: background 0.4s ease, color 0.4s ease;
}

/* 星光背景层 默认隐藏 */
.user-profile-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.user-profile-stars::before, .user-profile-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
}
.user-profile-stars::before {
    box-shadow: 
        120px 80px #fff, 260px 150px #fff, 380px 60px #fff, 520px 200px #fff, 680px 120px #fff,
        820px 220px #fff, 960px 80px #fff, 1100px 180px #fff, 150px 320px #fff, 320px 400px #fff,
        480px 350px #fff, 620px 450px #fff, 780px 380px #fff, 920px 500px #fff, 1080px 420px #fff,
        80px 520px #fff, 220px 600px #fff, 400px 550px #fff, 560px 650px #fff, 720px 580px #fff,
        880px 700px #fff, 1020px 620px #fff, 180px 750px #fff, 350px 820px #fff, 500px 780px #fff,
        660px 880px #fff, 820px 800px #fff, 980px 900px #fff, 1120px 850px #fff, 100px 950px #fff,
        300px 100px #fff, 450px 180px #fff, 600px 50px #fff, 750px 150px #fff, 900px 250px #fff,
        1050px 100px #fff, 200px 280px #fff, 420px 220px #fff, 580px 300px #fff, 740px 200px #fff,
        890px 320px #fff, 1040px 280px #fff, 130px 480px #fff, 290px 520px #fff, 440px 450px #fff,
        590px 550px #fff, 750px 480px #fff, 910px 600px #fff, 1060px 520px #fff, 170px 680px #fff;
    animation: twinkle 3s infinite ease-in-out;
}
.user-profile-stars::after {
    width: 1.5px;
    height: 1.5px;
    box-shadow: 
        90px 120px #cbd5e1, 230px 190px #cbd5e1, 370px 90px #cbd5e1, 510px 230px #cbd5e1, 670px 150px #cbd5e1,
        810px 250px #cbd5e1, 950px 110px #cbd5e1, 1090px 210px #cbd5e1, 180px 350px #cbd5e1, 340px 430px #cbd5e1,
        500px 380px #cbd5e1, 640px 480px #cbd5e1, 800px 410px #cbd5e1, 940px 530px #cbd5e1, 1100px 450px #cbd5e1,
        110px 550px #cbd5e1, 250px 630px #cbd5e1, 430px 580px #cbd5e1, 590px 680px #cbd5e1, 750px 610px #cbd5e1,
        900px 730px #cbd5e1, 1040px 650px #cbd5e1, 210px 780px #cbd5e1, 380px 850px #cbd5e1, 530px 810px #cbd5e1,
        690px 910px #cbd5e1, 850px 830px #cbd5e1, 1010px 930px #cbd5e1, 1150px 880px #cbd5e1, 130px 980px #cbd5e1;
    animation: twinkle 4s infinite ease-in-out 1s;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.user-profile-page {
    max-width: 1880px;
    margin: 0 auto;
    padding: 0 20px 30px;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 顶部背景条 */
.user-profile-cover {
    height: 220px;
    margin-top: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 50%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}
.user-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08), transparent 50%);
    transition: background 0.4s ease;
}
.user-profile-cover .flow-light {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 主题切换按钮 */
.user-profile-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.user-profile-theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 用户主信息卡 */
.user-profile-main-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    margin: -70px auto 24px;
    padding: 0 36px 28px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.user-profile-header {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    transform: translateY(-45px);
    margin-bottom: -20px;
}

.user-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.user-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transition: all 0.4s ease;
}
.user-profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #f59e0b);
    z-index: -1;
    opacity: 0.8;
}

.user-profile-info {
    flex: 1;
    padding-bottom: 12px;
}
.user-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.user-profile-name {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.3px;
    transition: color 0.4s ease;
}

/* 黄金认证特殊等级徽章 */
/* 成就徽章通用样式（与签到插件一致） */
.user-profile-badge,
.user-profile-badge-special {
    padding: 6px 20px 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
/* 徽章前置V图标 */
.user-profile-badge::before,
.user-profile-badge-special::before {
    content: 'V';
    width: 20px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* 起步认证正式用户 - 黄金徽章样式 */
.user-profile-badge-special {
    background: linear-gradient(135deg, #fff7e6 0%, #ffffff 100%);
    border: 1px solid #f5d06e;
    color: #b8860b;
    box-shadow: 0 2px 8px rgba(245, 208, 110, 0.3);
}
.user-profile-badge-special::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #daa520 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 1px 3px rgba(184, 134, 11, 0.4);
}

/* 起步云仓万王之王 - 黑彩徽章样式 */
.user-profile-badge-special.badge-king {
    background: linear-gradient(135deg, #1f1f29 0%, #2d2d3f 100%);
    border: 1px solid #6366f1;
    color: #e0e7ff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}
.user-profile-badge-special.badge-king::before {
    background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #4f46e5 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 0 6px rgba(139, 92, 246, 0.6);
}

/* 月度达人 - 黄金徽章样式 */
.user-profile-badge.badge-30 {
    background: linear-gradient(135deg, #fff7e6 0%, #ffffff 100%);
    border: 1px solid #f5d06e;
    color: #b8860b;
    box-shadow: 0 2px 8px rgba(245, 208, 110, 0.3);
}
.user-profile-badge.badge-30::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #daa520 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 1px 3px rgba(184, 134, 11, 0.4);
}

/* 百日坚持 - 白金徽章样式 */
.user-profile-badge.badge-100 {
    background: linear-gradient(135deg, #f0f4f9 0%, #ffffff 100%);
    border: 1px solid #b8c8e0;
    color: #475569;
    box-shadow: 0 2px 8px rgba(170, 190, 220, 0.3);
}
.user-profile-badge.badge-100::before {
    background: linear-gradient(135deg, #e8f0f8 0%, #cbd5e1 50%, #94a3b8 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.7), 0 1px 3px rgba(100, 120, 150, 0.3);
}

/* 年度传奇 - 钻石徽章样式 */
.user-profile-badge.badge-365 {
    background: linear-gradient(135deg, #eef8ff 0%, #ffffff 100%);
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.35);
}
.user-profile-badge.badge-365::before {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1d4ed8 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 1px 4px rgba(59, 130, 246, 0.4);
}

.user-profile-desc {
    color: #64748b;
    font-size: 14px;
    max-width: 520px;
    line-height: 1.7;
    transition: color 0.4s ease;
}

/* 数据资产栏 */
.user-profile-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    transition: border-color 0.4s ease;
}

.user-profile-stat-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.user-profile-stat-card:hover {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.user-profile-level-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-profile-level-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-profile-level-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s ease;
}
.user-profile-level-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
    font-weight: 500;
    gap: 2px;
}
.user-profile-level-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}
.user-profile-level-exp-text {
    font-size: 12px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    transition: color 0.4s ease;
}
.user-profile-exp-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    transition: background 0.4s ease;
}
.user-profile-exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #f59e0b);
    border-radius: 999px;
    position: relative;
    transition: width 0.8s ease;
}
.user-profile-exp-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
    border-radius: 999px;
}

.user-profile-stat-small {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.user-profile-stat-num {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.user-profile-stat-num.points {
    color: #3b82f6;
}
.user-profile-stat-num.coins {
    color: #f59e0b;
}
.user-profile-stat-label {
    font-size: 13px;
    color: #64748b;
    transition: color 0.4s ease;
}

/* 勋章墙 */
.user-profile-medal-section {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 24px 28px;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}
.user-profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s ease;
}
.user-profile-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #3b82f6, #f59e0b);
    border-radius: 4px;
}

.user-profile-medal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}
.user-profile-medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 70px;
}
.user-profile-medal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    border: 2px solid #fff;
    transition: all 0.25s ease;
}
.user-profile-medal-item:hover .user-profile-medal-icon {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.user-profile-medal-name {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    transition: color 0.4s ease;
}
.user-profile-medal-item.locked .user-profile-medal-icon {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    filter: grayscale(1);
}

/* 内容区 标签页 */
.user-profile-content-section {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 20px 28px;
    transition: all 0.4s ease;
}

.user-profile-content-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f5f7fa;
    padding: 6px;
    border-radius: 14px;
    transition: background 0.4s ease;
}
.user-profile-tab-btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    font-family: inherit;
}
.user-profile-tab-btn.active {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.user-profile-tab-btn:hover:not(.active) {
    color: #333;
}

.user-profile-tab-panel {
    display: none;
}
.user-profile-tab-panel.active {
    display: block;
}

/* 讨论列表 */
.user-profile-discuss-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}
.user-profile-discuss-item {
    padding: 18px 20px;
    background: #fff;
    transition: all 0.25s ease;
}
.user-profile-discuss-item:hover {
    background: #f8fafc;
    padding-left: 24px;
}
.user-profile-discuss-post-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.user-profile-discuss-post-title a {
    color: inherit;
    text-decoration: none;
}
.user-profile-discuss-item:hover .user-profile-discuss-post-title {
    color: #3b82f6;
}
.user-profile-discuss-content {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.4s ease;
}
.user-profile-discuss-meta {
    font-size: 12px;
    color: #94a3b8;
    transition: color 0.4s ease;
}

/* 作品列表 */
.user-profile-post-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}

.user-profile-post-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    transition: all 0.25s ease;
}
.user-profile-post-item:hover {
    background: #f8fafc;
    padding-left: 24px;
}

.user-profile-post-thumb {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
}
.user-profile-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.user-profile-post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.user-profile-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}
.user-profile-post-title a {
    color: inherit;
    text-decoration: none;
}
.user-profile-post-item:hover .user-profile-post-title {
    color: #3b82f6;
}
.user-profile-post-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.4s ease;
}
.user-profile-post-meta {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    transition: color 0.4s ease;
}

/* 加载更多 + 分页 */
.user-profile-load-more-wrap {
    margin-top: 16px;
    text-align: center;
}
.user-profile-load-more-btn {
    padding: 10px 32px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.user-profile-load-more-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}
.user-profile-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.user-profile-load-more-btn.loading::after {
    content: '...';
    margin-left: 4px;
}
.user-profile-no-more {
    margin-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    transition: color 0.4s ease;
}

.user-profile-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    transition: border-color 0.4s ease;
}
.user-profile-pagination a, .user-profile-pagination span {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.user-profile-pagination a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.user-profile-pagination .current {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* 深色模式样式 */
.user-profile-body.dark-mode {
    background: #0b1120;
    color: #e2e8f0;
    background-image: none;
}
.user-profile-body.dark-mode .user-profile-stars {
    opacity: 1;
}
.user-profile-body.dark-mode .user-profile-cover {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e293b 100%);
}
.user-profile-body.dark-mode .user-profile-cover .flow-light {
    opacity: 1;
    animation: flowLight 8s infinite linear;
}
@keyframes flowLight {
    0% { left: -100%; }
    100% { left: 100%; }
}
.user-profile-body.dark-mode .user-profile-theme-toggle {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-profile-body.dark-mode .user-profile-main-card,
.user-profile-body.dark-mode .user-profile-medal-section,
.user-profile-body.dark-mode .user-profile-content-section {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.user-profile-body.dark-mode .user-profile-avatar {
    border-color: #1e293b;
}
.user-profile-body.dark-mode .user-profile-name,
.user-profile-body.dark-mode .user-profile-section-title,
.user-profile-body.dark-mode .user-profile-level-name,
.user-profile-body.dark-mode .user-profile-post-title,
.user-profile-body.dark-mode .user-profile-discuss-post-title {
    color: #f1f5f9;
}
.user-profile-body.dark-mode .user-profile-desc,
.user-profile-body.dark-mode .user-profile-stat-label,
.user-profile-body.dark-mode .user-profile-medal-name,
.user-profile-body.dark-mode .user-profile-post-excerpt,
.user-profile-body.dark-mode .user-profile-discuss-content,
.user-profile-body.dark-mode .user-profile-level-exp-text,
.user-profile-body.dark-mode .user-profile-post-meta,
.user-profile-body.dark-mode .user-profile-discuss-meta,
.user-profile-body.dark-mode .user-profile-no-more {
    color: #94a3b8;
}
.user-profile-body.dark-mode .user-profile-stats {
    border-top-color: #334155;
}
.user-profile-body.dark-mode .user-profile-stat-card {
    background: #0f172a;
}
.user-profile-body.dark-mode .user-profile-stat-card:hover {
    border-color: #475569;
    background: #1e293b;
}
.user-profile-body.dark-mode .user-profile-exp-bar {
    background: #334155;
}
.user-profile-body.dark-mode .user-profile-badge-special {
    background: linear-gradient(135deg, #422006 0%, #1e293b 100%);
    border-color: #ca8a04;
    color: #fbbf24;
}
.user-profile-body.dark-mode .user-profile-content-tabs {
    background: #0f172a;
}
.user-profile-body.dark-mode .user-profile-tab-btn {
    color: #94a3b8;
}
.user-profile-body.dark-mode .user-profile-tab-btn.active {
    background: #1e293b;
    color: #818cf8;
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.2);
}
.user-profile-body.dark-mode .user-profile-tab-btn:hover:not(.active) {
    color: #e2e8f0;
}
.user-profile-body.dark-mode .user-profile-post-list,
.user-profile-body.dark-mode .user-profile-discuss-list {
    background: #334155;
    border-color: #334155;
}
.user-profile-body.dark-mode .user-profile-post-item,
.user-profile-body.dark-mode .user-profile-discuss-item {
    background: #1e293b;
}
.user-profile-body.dark-mode .user-profile-post-item:hover,
.user-profile-body.dark-mode .user-profile-discuss-item:hover {
    background: #273449;
}
.user-profile-body.dark-mode .user-profile-post-item:hover .user-profile-post-title,
.user-profile-body.dark-mode .user-profile-discuss-item:hover .user-profile-discuss-post-title {
    color: #818cf8;
}
.user-profile-body.dark-mode .user-profile-load-more-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
.user-profile-body.dark-mode .user-profile-load-more-btn:hover {
    border-color: #818cf8;
    color: #818cf8;
    background: #273449;
}
.user-profile-body.dark-mode .user-profile-pagination {
    border-top-color: #334155;
}
.user-profile-body.dark-mode .user-profile-pagination a,
.user-profile-body.dark-mode .user-profile-pagination span {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
.user-profile-body.dark-mode .user-profile-pagination a:hover {
    border-color: #818cf8;
    color: #818cf8;
}
.user-profile-body.dark-mode .user-profile-pagination .current {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.user-profile-body.dark-mode .user-profile-medal-item.locked .user-profile-medal-icon {
    background: #334155;
    color: #64748b;
}

/* 顶部导航 深色模式 */
.user-profile-body.dark-mode nav.top-nav {
    background-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > a {
    color: #94a3b8;
    background-color: transparent;
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > a:hover {
    color: #818cf8;
    background-color: #334155;
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > a.active,
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > a.layui-this {
    color: #818cf8;
    background-color: transparent;
}
/* 清除所有可能的白色背景 */
.user-profile-body.dark-mode nav.top-nav * {
    background-color: inherit !important;
}
/* 下拉菜单深色模式 */
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > dl.layui-nav-child {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > dl.layui-nav-child > dd > a {
    color: #94a3b8;
    background-color: transparent;
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > dl.layui-nav-child > dd > a:hover {
    background-color: #334155;
    color: #818cf8;
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > ul {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > ul > li > a {
    color: #94a3b8;
    background-color: transparent;
}
.user-profile-body.dark-mode nav.top-nav .top-nav-container > ul > li > ul > li > a:hover {
    background-color: #334155;
    color: #818cf8;
}
.user-profile-body.dark-mode nav.top-nav .mobile-menu-btn {
    color: #94a3b8;
    background-color: transparent;
}
.user-profile-body.dark-mode nav.top-nav + nav.mobile-sidebar-nav {
    background-color: #1e293b;
}
.user-profile-body.dark-mode nav.top-nav + nav.mobile-sidebar-nav a {
    color: #94a3b8;
    background-color: transparent;
}
.user-profile-body.dark-mode nav.top-nav + nav.mobile-sidebar-nav a:hover {
    color: #818cf8;
    background-color: #334155;
}

/* 友情链接 深色模式 */
.user-profile-body.dark-mode .links-section > div {
    background-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.user-profile-body.dark-mode .links-section a {
    background-color: #1e293b;
    border-color: #334155;
}
.user-profile-body.dark-mode .links-section a:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.user-profile-body.dark-mode .links-section a span:first-of-type {
    color: #94a3b8;
}
.user-profile-body.dark-mode .links-section a span:last-child {
    background: rgba(39, 52, 73, 0.5);
}
.user-profile-body.dark-mode .links-section .no-links {
    color: #64748b;
}

/* Footer 深色模式 */
.user-profile-body.dark-mode footer {
    color: #94a3b8;
}
.user-profile-body.dark-mode footer a {
    color: #818cf8;
}
.user-profile-body.dark-mode .github-badge {
    border-color: #334155;
}
.user-profile-body.dark-mode .github-badge .badge-subject {
    background-color: #475569;
}
.user-profile-body.dark-mode .github-badge .badge-value {
    background-color: #334155;
}
.user-profile-body.dark-mode .github-badge .bg-fen {
    background-color: #7c3aed;
}
.user-profile-body.dark-mode .github-badge .bg-red {
    background-color: #dc2626;
}
.user-profile-body.dark-mode .github-badge .bg-bei {
    background-color: #16a34a;
}
.user-profile-body.dark-mode .github-badge .bg-green {
    background-color: #22c55e;
}
.user-profile-body.dark-mode .github-badge .bg-cai {
    background-image: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
}
.user-profile-body.dark-mode .social-icons a img {
    filter: brightness(0.9);
}
.user-profile-body.dark-mode .blog-footer {
    background-color: #1e293b;
    color: #94a3b8;
}

/* 背景微光浮动 深色模式 */
.user-profile-body.dark-mode::after {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    animation: bgFloat 15s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes bgFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, -30px); }
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .user-profile-page {
        max-width: 100%;
        padding: 0 15px 20px;
    }
}

@media (max-width: 768px) {
    .user-profile-page {
        padding: 0 12px 15px;
    }
    .user-profile-cover { height: 180px; border-radius: 16px; }
    .user-profile-main-card { padding: 0 16px 20px; border-radius: 16px; margin-top: -55px; }
    .user-profile-header { flex-direction: column; align-items: center; text-align: center; transform: translateY(-35px); gap: 16px; margin-bottom: -15px; }
    .user-profile-avatar { width: 90px; height: 90px; }
    .user-profile-name { font-size: 22px; }
    .user-profile-name-row { justify-content: center; }
    .user-profile-desc { margin: 0 auto; }
    
    .user-profile-stats { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; padding-top: 18px; }
    .user-profile-stat-card { padding: 14px 16px; }
    
    .user-profile-medal-section, .user-profile-content-section { padding: 16px; border-radius: 16px; }
    .user-profile-content-tabs { overflow-x: auto; }
    .user-profile-tab-btn { flex-shrink: 0; padding: 10px 16px; }
    
    .user-profile-post-item { flex-direction: column; gap: 12px; padding: 16px; }
    .user-profile-post-thumb { width: 100%; height: 140px; }
}
