/**

 * 用户中心样式
 * @package blocks

 */



/* 用户中心容器 */

.user-center-container {

    padding: 40px 0;

    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);

    min-height: calc(100vh - 200px);

}



.user-center-layout {

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 24px;

}



/* 左侧边�?*/

.user-sidebar {

    position: sticky;

    top: 90px;

    height: fit-content;

}



.user-card {

    background: #fff;

    border-radius: var(--radius-lg);

    padding: 24px;

    box-shadow: 0 2px 15px rgba(0,0,0,0.06);

    text-align: center;

    margin-bottom: 16px;

}



.user-avatar-wrap {

    position: relative;

    display: inline-block;

    margin-bottom: 16px;

}



.user-avatar {

    width: 100px;

    height: 100px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid #f0f7ff;

    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.15);

}



.user-status {

    position: absolute;

    bottom: 6px;

    right: 6px;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    border: 3px solid #fff;

}



.user-status.online {

    background: #10b981;

}



.user-name {

    font-size: 18px;

    font-weight: 700;

    color: #1a1a2e;

    margin-bottom: 8px;

}



.user-bio {

    font-size: 13px;

    color: #64748b;

    line-height: 1.5;

    margin-bottom: 16px;

}



.user-stats {

    display: flex;

    justify-content: center;

    gap: 24px;

    padding-top: 16px;

    border-top: 1px solid #f1f5f9;

}



.stat-item {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.stat-num {

    font-size: 20px;

    font-weight: 700;

    color: #0f52ba;

}



.stat-label {

    font-size: 12px;

    color: #94a3b8;

    margin-top: 2px;

}



/* 用户导航 */

.user-nav {

    background: #fff;

    border-radius: var(--radius-lg);

    padding: 12px;

    box-shadow: 0 2px 15px rgba(0,0,0,0.06);

}



.user-nav-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 16px;

    border-radius: var(--radius-md);

    color: #475569;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: all 0.2s;

}



.user-nav-item:hover {

    background: #f8fafc;

    color: #0f52ba;

}



.user-nav-item.active {

    background: linear-gradient(135deg, #0f52ba, #1e6fdb);

    color: #fff;

    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.25);

}



.user-nav-item.logout {

    color: #ef4444;

}



.user-nav-item.logout:hover {

    background: #fef2f2;

}



.user-nav-item i {

    width: 20px;

    text-align: center;

}



/* 主内容区 */

.user-main {

    display: flex;

    flex-direction: column;

    gap: 24px;

}



.user-welcome-banner {

    background: linear-gradient(135deg, #0f52ba, #1e6fdb);

    border-radius: var(--radius-lg);

    padding: 32px;

    color: #fff;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow: 0 4px 20px rgba(15, 82, 186, 0.2);

}



.welcome-content h2 {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 8px;

}



.welcome-content p {

    font-size: 14px;

    opacity: 0.9;

}



.welcome-icon {

    font-size: 64px;

    opacity: 0.2;

}



/* 内容区块 */

.user-section {

    background: #fff;

    border-radius: var(--radius-lg);

    padding: 24px;

    box-shadow: 0 2px 15px rgba(0,0,0,0.06);

}



.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 24px;

    gap: 16px;

}



.section-title {

    font-size: 18px;

    font-weight: 700;

    color: #1a1a2e;

    margin-bottom: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    flex: 1;

    min-width: 0;

}



.section-title i {

    color: #0f52ba;

}



.section-count {

    font-size: 13px;

    font-weight: 400;

    color: #94a3b8;

    margin-left: 4px;

}



/* 信息网格 */

.info-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 24px;

}



.info-item {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.info-item.full {

    grid-column: 1 / -1;

}



.info-label {

    font-size: 12px;

    color: #94a3b8;

    font-weight: 500;

}



.info-value {

    font-size: 14px;

    color: #1a1a2e;

    font-weight: 500;

}



.section-actions {

    display: flex;

    justify-content: flex-end;

}



/* 活动选项卡 */

.activity-tabs {

    display: flex;

    gap: 8px;

    margin-bottom: 20px;

    border-bottom: 2px solid #f1f5f9;

    padding-bottom: 16px;

}



.tab-btn {

    padding: 8px 16px;

    border: none;

    background: transparent;

    color: #64748b;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    border-radius: var(--radius-md);

    transition: all 0.2s;

}



.tab-btn:hover {

    background: #f8fafc;

    color: #0f52ba;

}



.tab-btn.active {

    background: #f0f7ff;

    color: #0f52ba;

}



.tab-content {

    display: none;

}



.tab-content.active {

    display: block;

}



/* 活动列表 */

.activity-list {

    list-style: none;

    padding: 0;

    margin: 0;

}



.activity-item {

    display: flex;

    align-items: flex-start;

    gap: 16px;

    padding: 16px;

    border-radius: var(--radius-lg);

    transition: background 0.2s;

}



.activity-item:hover {

    background: #f8fafc;

}



.activity-icon {

    width: 40px;

    height: 40px;

    border-radius: var(--radius-md);

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.activity-icon.article {

    background: #f0f7ff;

    color: #0f52ba;

}



.activity-icon.comment {

    background: #f0fdf4;

    color: #10b981;

}



.activity-content {

    flex: 1;

    min-width: 0;

}



.activity-title {

    font-size: 14px;

    font-weight: 600;

    color: #1a1a2e;

    text-decoration: none;

    display: block;

    margin-bottom: 4px;

}



.activity-title:hover {

    color: #0f52ba;

}



.activity-text {

    font-size: 13px;

    color: #64748b;

    line-height: 1.5;

    margin-bottom: 4px;

}



.activity-link {

    font-size: 12px;

    color: #0f52ba;

    text-decoration: none;

}



.activity-link:hover {

    text-decoration: underline;

}



.activity-time {

    font-size: 12px;

    color: #94a3b8;

}



.activity-badge {

    font-size: 11px;

    padding: 4px 10px;

    border-radius: var(--radius-xl);

    background: #f1f5f9;

    color: #64748b;

    font-weight: 500;

}



.view-more {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 16px;

    padding: 10px 20px;

    background: #f8fafc;

    color: #0f52ba;

    text-decoration: none;

    border-radius: var(--radius-md);

    font-size: 13px;

    font-weight: 500;

    transition: all 0.2s;

}



.view-more:hover {

    background: #f0f7ff;

}



/* 空状态 */

.empty-state {

    text-align: center;

    padding: 48px 24px;

}



.empty-state i {

    font-size: 48px;

    color: #e2e8f0;

    margin-bottom: 16px;

}



.empty-state p {

    font-size: 14px;

    color: #94a3b8;

    margin-bottom: 20px;

}



/* 表单样�?*/

.user-form {

    max-width: 600px;

}



.form-row {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

}



.form-group {

    margin-bottom: 20px;

}



.form-label {

    display: block;

    font-size: 13px;

    font-weight: 600;

    color: #475569;

    margin-bottom: 8px;

}



.form-input,

.form-textarea {

    width: 100%;

    padding: 12px 16px;

    border: 2px solid #e2e8f0;

    border-radius: var(--radius-md);

    font-size: 14px;

    color: #1a1a2e;

    transition: all 0.2s;

    background: #fff;

}



.form-input:focus,

.form-textarea:focus {

    outline: none;

    border-color: #0f52ba;

    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.1);

}



.form-input:disabled {

    background: #f8fafc;

    color: #94a3b8;

    cursor: not-allowed;

}



.form-hint {

    font-size: 12px;

    color: #94a3b8;

    margin-top: 6px;

    display: block;

}



.form-textarea {

    resize: vertical;

    min-height: 100px;

}



.form-actions {

    display: flex;

    gap: 12px;

    margin-top: 24px;

    padding-top: 24px;

    border-top: 1px solid #f1f5f9;

}



/* 头像上传 */

.avatar-upload {

    display: flex;

    align-items: center;

    gap: 16px;

}



.avatar-upload-area {

    position: relative;

    width: 100px;

    height: 100px;

    border-radius: 50%;

    cursor: pointer;

    overflow: hidden;

    flex-shrink: 0;

}



.avatar-upload-area:hover .avatar-overlay {

    opacity: 1;

}



.current-avatar {

    width: 100px;

    height: 100px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #f0f7ff;

    transition: transform 0.2s;

}



.avatar-upload-area:hover .current-avatar {

    transform: scale(1.05);

}



.avatar-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.5);

    border-radius: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    opacity: 0;

    transition: opacity 0.2s;

    color: #fff;

    font-size: 12px;

}



.avatar-overlay i {

    font-size: 20px;

}



.avatar-info p {

    font-size: 13px;

    color: #64748b;

    margin-bottom: 4px;

}



.avatar-hint {

    font-size: 12px;

    color: #94a3b8;

}



/* 提示框 */

.alert {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 18px;

    border-radius: var(--radius-md);

    margin-bottom: 20px;

    font-size: 14px;

}



.alert-success {

    background: #f0fdf4;

    color: #15803d;

    border: 1px solid #bbf7d0;

}



.alert-error {

    background: #fef2f2;

    color: #dc2626;

    border: 1px solid #fecaca;

}



/* 按钮样式 */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 24px;

    border-radius: var(--radius-md);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: all 0.2s;

    border: none;

}



.btn-primary {

    background: linear-gradient(135deg, #0f52ba, #1e6fdb);

    color: #fff;

    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.25);

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(15, 82, 186, 0.35);

}



.btn-outline {

    background: transparent;

    color: #0f52ba;

    border: 2px solid #e2e8f0;

}



.btn-outline:hover {

    border-color: #0f52ba;

    background: #f0f7ff;

}



.btn-danger {

    background: #fff;

    color: #dc2626;

    border: 2px solid #fecaca;

}



.btn-danger:hover {

    background: #fef2f2;

    border-color: #dc2626;

}



.btn-sm {

    padding: 8px 16px;

    font-size: 13px;

    white-space: nowrap;

    flex-shrink: 0;

}



/* 微语列�?*/

.weiyu-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.weiyu-item {

    background: #f8fafc;

    border-radius: var(--radius-lg);

    padding: 20px;

}



.weiyu-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;

}



.weiyu-avatar {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    object-fit: cover;

}



.weiyu-meta {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.weiyu-author {

    font-size: 14px;

    font-weight: 600;

    color: #1a1a2e;

}



.weiyu-time {

    font-size: 12px;

    color: #94a3b8;

}



.weiyu-content {

    font-size: 14px;

    color: #475569;

    line-height: 1.7;

    margin-bottom: 12px;

}



.weiyu-actions {

    display: flex;

    justify-content: flex-end;

}



.weiyu-action {

    font-size: 13px;

    color: #64748b;

    text-decoration: none;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 12px;

    border-radius: var(--radius-sm);

    transition: all 0.2s;

}



.weiyu-action:hover {

    background: #fee2e2;

    color: #dc2626;

}



.weiyu-action.delete:hover {

    color: #dc2626;

}



/* 订单样�?*/

.order-tabs {

    display: flex;

    gap: 8px;

    margin-bottom: 20px;

}



.order-tab {

    padding: 10px 20px;

    border: none;

    background: #f8fafc;

    color: #64748b;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    border-radius: var(--radius-md);

    transition: all 0.2s;

}



.order-tab:hover {

    background: #f0f7ff;

    color: #0f52ba;

}



.order-tab.active {

    background: linear-gradient(135deg, #0f52ba, #1e6fdb);

    color: #fff;

}



.order-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.order-item {

    background: #f8fafc;

    border-radius: var(--radius-lg);

    overflow: hidden;

}



.order-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 14px 20px;

    background: #f1f5f9;

    border-bottom: 1px solid #e2e8f0;

}



.order-id {

    font-size: 13px;

    color: #64748b;

}



.order-status {

    font-size: 12px;

    padding: 4px 12px;

    border-radius: var(--radius-xl);

    font-weight: 600;

}



.order-status.completed {

    background: #dcfce7;

    color: #15803d;

}



.order-status.pending {

    background: #fef3c7;

    color: #b45309;

}



.order-status.cancelled {

    background: #fee2e2;

    color: #dc2626;

}



.order-body {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    gap: 20px;

}



.order-product {

    display: flex;

    align-items: center;

    gap: 16px;

    flex: 1;

}



.product-img {

    width: 80px;

    height: 80px;

    border-radius: var(--radius-md);

    object-fit: cover;

    background: #e2e8f0;

}



.product-name {

    font-size: 15px;

    font-weight: 600;

    color: #1a1a2e;

    margin-bottom: 6px;

}



.product-desc {

    font-size: 13px;

    color: #64748b;

}



.order-price {

    font-size: 18px;

    font-weight: 700;

    color: #0f52ba;

}



.order-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 14px 20px;

    border-top: 1px solid #e2e8f0;

}



.order-time {

    font-size: 12px;

    color: #94a3b8;

}



.order-actions {

    display: flex;

    gap: 10px;

}



/* 响应式 */

@media (max-width: 992px) {

    .user-center-layout {

        grid-template-columns: 1fr;

    }

    

    .user-sidebar {

        position: static;

    }

    

    .user-nav {

        display: flex;

        flex-wrap: wrap;

        gap: 8px;

    }

    

    .user-nav-item {

        flex: 1;

        min-width: 140px;

        justify-content: center;

    }

    

    .form-row {

        grid-template-columns: 1fr;

    }

    

    .order-body {

        flex-direction: column;

        align-items: flex-start;

    }

}



@media (max-width: 576px) {

    .user-center-container {

        padding: 20px 0;

    }

    

    .user-welcome-banner {

        flex-direction: column;

        text-align: center;

        gap: 16px;

    }

    

    .welcome-icon {

        font-size: 48px;

    }

    

    .info-grid {

        grid-template-columns: 1fr;

    }

    

    .order-tabs {

        flex-wrap: wrap;

    }

    

    .order-tab {

        flex: 1;

        min-width: 80px;

        text-align: center;

    }

}



/* 下载列表 */

.download-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.download-item {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 20px;

    background: #f8fafc;

    border-radius: var(--radius-lg);

    transition: all 0.2s;

}



.download-item:hover {

    background: #f0f7ff;

    box-shadow: 0 2px 8px rgba(15, 82, 186, 0.08);

}



.download-icon {

    width: 48px;

    height: 48px;

    border-radius: var(--radius-md);

    background: linear-gradient(135deg, #0f52ba, #1e6fdb);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 20px;

    flex-shrink: 0;

}



.download-info {

    flex: 1;

    min-width: 0;

}



.download-title {

    font-size: 15px;

    font-weight: 600;

    color: #1a1a2e;

    margin-bottom: 6px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.download-meta {

    display: flex;

    gap: 16px;

    font-size: 13px;

    color: #64748b;

}



.download-meta i {

    margin-right: 4px;

    color: #94a3b8;

}



.download-actions {

    flex-shrink: 0;

}



.download-tips {

    margin-top: 24px;

    padding: 20px;

    background: #f8fafc;

    border-radius: var(--radius-lg);

    border-left: 4px solid #0f52ba;

}



.download-tips h4 {

    font-size: 14px;

    font-weight: 600;

    color: #1a1a2e;

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    gap: 8px;

}



.download-tips h4 i {

    color: #0f52ba;

}



.download-tips p {

    font-size: 13px;

    color: #64748b;

    margin-bottom: 10px;

}



.download-tips ol {

    padding-left: 20px;

    font-size: 13px;

    color: #64748b;

}



.download-tips li {

    margin-bottom: 6px;

    line-height: 1.6;

}



.download-tips code {

    background: #e2e8f0;

    padding: 2px 6px;

    border-radius: var(--radius-sm);

    font-family: monospace;

    font-size: 12px;

}



/* 权限提示 */

.permission-hint {

    font-size: 13px;

    color: #64748b;

    margin-top: 8px;

}



.permission-hint i {

    color: #94a3b8;

    margin-right: 4px;

}



/* 驳回原因 */

.reject-reason {

    margin-top: 8px;

    padding: 8px 12px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    border-radius: var(--radius-md);

    font-size: 13px;

    color: #dc2626;

    line-height: 1.5;

}



.reject-reason i {

    margin-right: 4px;

    color: #ef4444;

}



/* 驳回标�?*/

.badge-danger {

    background: #fef2f2;

    color: #dc2626;

    border: 1px solid #fecaca;

}



/* 已发布标签 */

.badge-success {

    background: #f0fdf4;

    color: #16a34a;

    border: 1px solid #bbf7d0;

}

/* ===== 深色模式 — 用户中心 ===== */
[data-theme="dark"] .user-center-container {
    background: #171923;
}

[data-theme="dark"] .user-card,
[data-theme="dark"] .user-nav,
[data-theme="dark"] .user-section {
    background: #1a202c;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

[data-theme="dark"] .user-avatar {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .user-status { border-color: #1a202c; }

[data-theme="dark"] .user-name,
[data-theme="dark"] .section-title,
[data-theme="dark"] .info-value,
[data-theme="dark"] .activity-title,
[data-theme="dark"] .weiyu-author,
[data-theme="dark"] .download-title,
[data-theme="dark"] .product-name,
[data-theme="dark"] .download-tips h4 { color: #e2e8f0; }

[data-theme="dark"] .user-bio,
[data-theme="dark"] .activity-text,
[data-theme="dark"] .weiyu-action,
[data-theme="dark"] .order-id,
[data-theme="dark"] .product-desc,
[data-theme="dark"] .download-meta,
[data-theme="dark"] .download-tips p,
[data-theme="dark"] .download-tips ol,
[data-theme="dark"] .permission-hint { color: #718096; }

[data-theme="dark"] .stat-label,
[data-theme="dark"] .activity-time,
[data-theme="dark"] .weiyu-time,
[data-theme="dark"] .order-time,
[data-theme="dark"] .info-label,
[data-theme="dark"] .section-count,
[data-theme="dark"] .form-hint,
[data-theme="dark"] .download-meta i,
[data-theme="dark"] .permission-hint i { color: #a0aec0; }

[data-theme="dark"] .stat-num { color: #4a90d9; }
[data-theme="dark"] .activity-link,
[data-theme="dark"] .activity-title:hover { color: #93c5fd; }

[data-theme="dark"] .user-stats,
[data-theme="dark"] .form-actions { border-top-color: rgba(255,255,255,0.1); }

[data-theme="dark"] .user-nav-item {
    color: #a0aec0;
}
[data-theme="dark"] .user-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #93c5fd;
}
[data-theme="dark"] .user-nav-item.logout:hover {
    background: rgba(239,68,68,0.1);
}

[data-theme="dark"] .activity-tabs { border-bottom-color: rgba(255,255,255,0.1); }

[data-theme="dark"] .tab-btn { color: #718096; }
[data-theme="dark"] .tab-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #93c5fd;
}
[data-theme="dark"] .tab-btn.active {
    background: rgba(66,153,225,0.15);
    color: #93c5fd;
}

[data-theme="dark"] .activity-item:hover { background: rgba(255,255,255,0.05); }

[data-theme="dark"] .view-more {
    background: rgba(255,255,255,0.05);
    color: #93c5fd;
}
[data-theme="dark"] .view-more:hover { background: rgba(66,153,225,0.15); }

[data-theme="dark"] .activity-icon.article { background: rgba(66,153,225,0.15); color: #93c5fd; }
[data-theme="dark"] .activity-icon.comment { background: rgba(16,185,129,0.15); color: #34d399; }
[data-theme="dark"] .activity-badge { background: rgba(255,255,255,0.1); color: #718096; }

[data-theme="dark"] .form-label { color: #a0aec0; }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
    background: #2d3748;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}
[data-theme="dark"] .form-input:disabled {
    background: #171923;
    color: #a0aec0;
}

[data-theme="dark"] .weiyu-item,
[data-theme="dark"] .order-item,
[data-theme="dark"] .download-item {
    background: #171923;
}
[data-theme="dark"] .weiyu-content { color: #cbd5e1; }
[data-theme="dark"] .weiyu-action:hover { background: rgba(239,68,68,0.1); color: #f87171; }

[data-theme="dark"] .order-header {
    background: rgba(255,255,255,0.05);
    border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .order-footer { border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .order-price { color: #4a90d9; }

[data-theme="dark"] .order-tab { background: var(--bg-body); color: #718096; }
[data-theme="dark"] .order-tab:hover {
    background: rgba(66,153,225,0.15);
    color: #93c5fd;
}

[data-theme="dark"] .download-item:hover {
    background: rgba(66,153,225,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .download-tips {
    background: #171923;
    border-left-color: #4a90d9;
}
[data-theme="dark"] .download-tips code { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .product-img { background: var(--bg-input); }

[data-theme="dark"] .empty-state i { color: #475569; }
[data-theme="dark"] .empty-state p { color: #a0aec0; }

[data-theme="dark"] .btn-outline {
    color: #93c5fd;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .btn-outline:hover {
    border-color: #4a90d9;
    background: rgba(66,153,225,0.15);
}
[data-theme="dark"] .btn-danger {
    background: #1a202c;
    color: #f87171;
    border-color: rgba(239,68,68,0.3);
}
[data-theme="dark"] .btn-danger:hover {
    background: rgba(239,68,68,0.1);
    border-color: #f87171;
}

[data-theme="dark"] .current-avatar { border-color: rgba(255,255,255,0.1); }

[data-theme="dark"] .reject-reason,
[data-theme="dark"] .badge-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #f87171; }
[data-theme="dark"] .badge-success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.2); color: #34d399; }

/**
 * 用户中心新页面样�? * 我的文章、我的草稿、我的评论、我的回�?
 */



/* 文章列表 */

.user-center-container .article-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.user-center-container .article-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    background: #f8fafc;

    border-radius: var(--radius-lg);

    transition: all 0.2s;

}



.user-center-container .article-item:hover {

    background: #f0f7ff;

    box-shadow: 0 2px 8px rgba(15, 82, 186, 0.08);

}



.user-center-container .article-info {

    flex: 1;

    min-width: 0;

}



.user-center-container .article-title {

    font-size: 15px;

    font-weight: 600;

    margin-bottom: 8px;

}



.user-center-container .article-title a {

    color: #1a1a2e;

    text-decoration: none;

}



.user-center-container .article-title a:hover {

    color: #0f52ba;

}



.user-center-container .article-meta {

    display: flex;

    gap: 16px;

    font-size: 13px;

    color: #64748b;

}



.user-center-container .article-meta i {

    margin-right: 4px;

    color: #94a3b8;

}



.user-center-container .badge {

    display: inline-block;

    padding: 4px 10px;

    border-radius: var(--radius-xl);

    font-size: 12px;

    font-weight: 600;

}



.user-center-container .badge-gray {

    background: #f1f5f9;

    color: #64748b;

}



.user-center-container .badge-warning {

    background: #fef3c7;

    color: #b45309;

}



/* 评论列表 */

.user-center-container .comment-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.user-center-container .comment-item {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    padding: 20px;

    background: #f8fafc;

    border-radius: var(--radius-lg);

    transition: all 0.2s;

}



.user-center-container .comment-item:hover {

    background: #f0f7ff;

}



.user-center-container .comment-content {

    flex: 1;

    min-width: 0;

}



.user-center-container .comment-text {

    font-size: 14px;

    color: #475569;

    line-height: 1.6;

    margin-bottom: 10px;

}



.user-center-container .comment-meta {

    display: flex;

    flex-direction: column;

    gap: 6px;

    font-size: 13px;

    color: #64748b;

}



.user-center-container .comment-meta a {

    color: #0f52ba;

    text-decoration: none;

}



.user-center-container .comment-meta a:hover {

    text-decoration: underline;

}



/* 回复列表 */

.user-center-container .reply-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.user-center-container .reply-item {

    padding: 20px;

    background: #f8fafc;

    border-radius: var(--radius-lg);

    transition: all 0.2s;

}



.user-center-container .reply-item:hover {

    background: #f0f7ff;

}



.user-center-container .reply-header {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    font-size: 13px;

    color: #64748b;

}



.user-center-container .replyer {

    font-weight: 600;

    color: #0f52ba;

}



.user-center-container .reply-time {

    margin-left: auto;

    color: #94a3b8;

}



.user-center-container .reply-parent {

    background: #fff;

    padding: 12px 16px;

    border-radius: var(--radius-md);

    margin-bottom: 12px;

    border-left: 3px solid #e2e8f0;

    display: flex;

    gap: 10px;

    align-items: flex-start;

}



.user-center-container .reply-parent i {

    color: #94a3b8;

    font-size: 12px;

    margin-top: 3px;

}



.user-center-container .reply-parent p {

    font-size: 13px;

    color: #64748b;

    line-height: 1.5;

    margin: 0;

}



.user-center-container .reply-content {

    background: #fff;

    padding: 12px 16px;

    border-radius: var(--radius-md);

    margin-bottom: 12px;

}



.user-center-container .reply-content p {

    font-size: 14px;

    color: #1a1a2e;

    line-height: 1.6;

    margin: 0;

}



.user-center-container .reply-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

}



.user-center-container .reply-meta span {

    color: #64748b;

}



.user-center-container .reply-meta a {

    color: #0f52ba;

    text-decoration: none;

}



.user-center-container .reply-meta a:hover {

    text-decoration: underline;

}



/* 分页 */

.user-center-container .pagination {

    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 24px;

}



.user-center-container .pagination a,

.user-center-container .pagination span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 36px;

    height: 36px;

    padding: 0 12px;

    border-radius: var(--radius-md);

    font-size: 14px;

    text-decoration: none;

    transition: all 0.2s;

}



.user-center-container .pagination a {

    background: #f8fafc;

    color: #475569;

}



.user-center-container .pagination a:hover {

    background: #f0f7ff;

    color: #0f52ba;

}



.user-center-container .pagination .current {

    background: linear-gradient(135deg, #0f52ba, #1e6fdb);

    color: #fff;

}



/* 响应�?*/

@media (max-width: 768px) {

    .user-center-container .article-item,

    .user-center-container .comment-item {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

    }

    

    .user-center-container .article-actions,

    .user-center-container .comment-actions {

        align-self: flex-end;

    }

    

    .user-center-container .article-meta {

        flex-wrap: wrap;

    }

    

    .user-center-container .reply-meta {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

}

/* ===== 深色模式 �?用户中心新样�?===== */
[data-theme="dark"] .user-center-container .article-item,
[data-theme="dark"] .user-center-container .comment-item,
[data-theme="dark"] .user-center-container .reply-item {
    background: #171923;
}

[data-theme="dark"] .user-center-container .article-item:hover,
[data-theme="dark"] .user-center-container .comment-item:hover,
[data-theme="dark"] .user-center-container .reply-item:hover {
    background: rgba(66,153,225,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .user-center-container .article-title a {
    color: #e2e8f0;
}
[data-theme="dark"] .user-center-container .article-title a:hover {
    color: #93c5fd;
}

[data-theme="dark"] .user-center-container .article-meta,
[data-theme="dark"] .user-center-container .comment-meta,
[data-theme="dark"] .user-center-container .reply-header {
    color: #718096;
}

[data-theme="dark"] .user-center-container .article-meta i,
[data-theme="dark"] .user-center-container .reply-time {
    color: #a0aec0;
}

[data-theme="dark"] .user-center-container .badge-gray {
    background: rgba(255,255,255,0.1);
    color: #718096;
}

[data-theme="dark"] .user-center-container .comment-text {
    color: #cbd5e1;
}

[data-theme="dark"] .user-center-container .comment-meta a,
[data-theme="dark"] .user-center-container .reply-meta a,
[data-theme="dark"] .user-center-container .replyer {
    color: #93c5fd;
}

[data-theme="dark"] .user-center-container .reply-parent {
    background: #1a202c;
    border-left-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .user-center-container .reply-parent i { color: #718096; }
[data-theme="dark"] .user-center-container .reply-parent p {
    color: #718096;
}

[data-theme="dark"] .user-center-container .reply-content {
    background: #1a202c;
}
[data-theme="dark"] .user-center-container .reply-content p {
    color: #e2e8f0;
}

[data-theme="dark"] .user-center-container .reply-meta span {
    color: #718096;
}

[data-theme="dark"] .user-center-container .pagination a {
    background: #171923;
    color: #a0aec0;
}
[data-theme="dark"] .user-center-container .pagination a:hover {
    background: rgba(66,153,225,0.15);
    color: #93c5fd;
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .user-center-container {
        padding: 16px 0;
    }
    .user-center-layout {
        gap: 16px;
    }
    .user-welcome-banner {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    .welcome-content h2 {
        font-size: 20px;
    }
    .welcome-icon {
        display: none;
    }
    .user-section {
        padding: 16px;
        border-radius: var(--radius-lg);
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .section-title {
        font-size: 16px;
    }
    .user-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .user-nav-item {
        flex: 1 1 calc(50% - 6px);
        min-width: auto;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
    .user-nav-item i {
        width: auto;
        margin-right: 4px;
    }
    .user-nav-item .nav-label-short {
        display: inline;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .order-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .order-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .order-tab {
        flex: 1 1 auto;
        min-width: 60px;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .download-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .user-stats {
        gap: 12px;
        flex-wrap: wrap;
    }
    .stat-item {
        flex: 1 1 auto;
    }
    .user-center-container .article-item,
    .user-center-container .comment-item,
    .user-center-container .reply-item {
        flex-direction: column;
        gap: 8px;
    }
    .user-center-container .article-actions,
    .user-center-container .comment-actions {
        align-self: flex-end;
    }
    .user-center-container .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    .user-center-container .reply-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
/* ============================================
 * 积分记录列表样式
 * ============================================ */
.credits-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.credits-balance { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 8px 20px; border-radius: var(--radius-xl); font-size: 14px; font-weight: 600; }
.credits-balance .balance-num { font-size: 20px; }
.credits-log-list { display: flex; flex-direction: column; gap: 8px; }
.credits-log-item { display: flex; align-items: center; padding: 16px 20px; background: #fff; border-radius: var(--radius-md); box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: box-shadow 0.2s; }
.credits-log-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.credits-log-item .log-type { flex-shrink: 0; width: 80px; }
.credits-log-item .log-remark { flex: 1; color: #666; font-size: 14px; padding: 0 16px; }
.credits-log-item .log-time { flex-shrink: 0; color: #999; font-size: 13px; width: 140px; text-align: right; }
.credits-log-item .log-credits { flex-shrink: 0; width: 80px; text-align: right; font-size: 16px; font-weight: 700; }
.credits-log-item .log-credits.positive { color: #52c41a; }
.credits-log-item .log-credits.negative { color: #ff4d4f; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.credits-empty { text-align: center; padding: 60px 20px; color: #999; }
.credits-empty i { font-size: 48px; margin-bottom: 16px; color: #ddd; }

/* 暗色模式 - 积分记录 */
[data-theme="dark"] .credits-log-item { background: var(--bg-card, #1e293b); }
[data-theme="dark"] .credits-log-item .log-remark { color: var(--text-secondary, #94a3b8); }
[data-theme="dark"] .credits-log-item .log-time { color: var(--text-muted, #64748b); }
[data-theme="dark"] .credits-empty { color: var(--text-muted, #64748b); }
[data-theme="dark"] .credits-empty i { color: var(--border-color, #334155); }

/* 暗色模式 - 480px 响应式下的积分 */
@media (max-width: 480px) {
    .credits-log-item { flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
    .credits-log-item .log-type { width: auto; }
    .credits-log-item .log-remark { flex: 1 1 100%; order: 1; padding: 4px 0; }
    .credits-log-item .log-time { width: auto; text-align: left; }
    .credits-log-item .log-credits { width: auto; }
    .credits-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}


/* ========================================
   签到页面
   ======================================== */
.checkin-hero { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: var(--radius-lg); color: #fff; margin-bottom: 30px; }
.checkin-hero h3 { font-size: 24px; margin-bottom: 8px; }
.checkin-hero .checkin-date { font-size: 14px; opacity: 0.85; margin-bottom: 24px; }
.checkin-btn { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.checkin-btn:hover:not(.checked-in) { background: rgba(255,255,255,0.35); border-color: #fff; transform: scale(1.05); }
.checkin-btn.checked-in { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); cursor: default; color: rgba(255,255,255,0.6); }
.checkin-btn .btn-icon { font-size: 32px; display: block; margin-bottom: 4px; }
.checkin-btn .btn-text { font-size: 14px; }
.checkin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.checkin-stat-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.checkin-stat-card .stat-value { font-size: 28px; font-weight: 700; color: #667eea; }
.checkin-stat-card .stat-label { font-size: 13px; color: #999; margin-top: 4px; }
.checkin-calendar { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.checkin-calendar .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.checkin-calendar .calendar-title { font-size: 16px; font-weight: 600; color: #333; }
.checkin-calendar .calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.checkin-calendar .weekday { text-align: center; font-size: 12px; color: #999; padding: 8px 0; font-weight: 500; }
.checkin-calendar .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.checkin-calendar .day-cell { text-align: center; padding: 10px 0; border-radius: var(--radius-md); font-size: 14px; color: #666; position: relative; }
.checkin-calendar .day-cell.empty { visibility: hidden; }
.checkin-calendar .day-cell.today { font-weight: 700; color: #667eea; }
.checkin-calendar .day-cell.checked { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-weight: 600; border-radius: 50%; }
.checkin-calendar .day-cell.today.checked { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #667eea; }
.checkin-credits-info { background: #f8f9fa; border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; font-size: 13px; color: #666; line-height: 1.8; }
.checkin-credits-info h4 { font-size: 14px; color: #333; margin-bottom: 8px; }
.checkin-credits-info .credits-highlight { color: #667eea; font-weight: 600; }
.checkin-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 12px 24px; border-radius: var(--radius-md); font-size: 14px; z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.checkin-toast.show { opacity: 1; }
/* 暗色模式 - 签到 */
[data-theme="dark"] .checkin-stat-card { background: var(--bg-card, #1e293b); }
[data-theme="dark"] .checkin-stat-card .stat-value { color: #818cf8; }
[data-theme="dark"] .checkin-stat-card .stat-label { color: var(--text-muted, #64748b); }
[data-theme="dark"] .checkin-calendar { background: var(--bg-card, #1e293b); }
[data-theme="dark"] .checkin-calendar .calendar-title { color: var(--text-primary, #e2e8f0); }
[data-theme="dark"] .checkin-calendar .day-cell { color: var(--text-secondary, #94a3b8); }
[data-theme="dark"] .checkin-calendar .day-cell.today { color: #818cf8; }
[data-theme="dark"] .checkin-credits-info { background: rgba(255,255,255,0.04); color: var(--text-secondary, #94a3b8); }
[data-theme="dark"] .checkin-credits-info h4 { color: var(--text-primary, #e2e8f0); }
[data-theme="dark"] .checkin-toast { background: var(--bg-card, #1e293b); color: var(--text-primary, #e2e8f0); }
@media (max-width: 480px) {
    .checkin-hero { padding: 24px 16px; }
    .checkin-hero h3 { font-size: 20px; }
    .checkin-btn { width: 90px; height: 90px; font-size: 15px; }
    .checkin-btn .btn-icon { font-size: 26px; }
    .checkin-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .checkin-stat-card { padding: 14px 8px; }
    .checkin-stat-card .stat-value { font-size: 22px; }
    .checkin-stat-card .stat-label { font-size: 12px; }
    .checkin-calendar { padding: 16px; }
    .checkin-calendar .day-cell { padding: 6px 0; font-size: 12px; }
}
