/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.nav-logo span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255,255,255,0.2);
}

/* 主内容 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

/* Hero区域 */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #27ae60;
    display: block;
    margin-top: 0.5rem;
}

/* 功能区域 */
.features {
    margin-bottom: 3rem;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.5;
}

/* 快速操作 */
.quick-actions {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-actions h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    font-weight: 600;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #9b59b6;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-primary:hover, .btn-secondary:hover, .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* 在此处或其附近添加忘记密码链接的样式 */
.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #ecf0f1;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
}
/* ===== 现代化用户中心样式 ===== */
.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-avatar {
    text-align: center;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.status-dot.online {
    background: #4caf50;
}

.user-info h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.user-info p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.user-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.premium {
    background: #ffd700;
    color: #000;
}

.badge.verified {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.user-stats-quick {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.quick-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 仪表板网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.card-header i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border-radius: 10px;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.card-action {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    margin-left: auto;
    transition: background 0.3s;
}

.card-action:hover {
    background: #f8f9ff;
}

/* 信息项样式 */
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border-radius: 10px;
    color: #667eea;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.2rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
}

.security-high {
    color: #4caf50;
    font-weight: 600;
}

/* 安全功能样式 */
.security-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.security-feature:last-child {
    border-bottom: none;
}

.security-feature i {
    color: #4caf50;
}

.security-feature i.fa-times-circle {
    color: #f44336;
}

.security-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-security {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-security:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

/* 操作网格 */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: #f8f9ff;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.action-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.action-btn i {
    font-size: 1.8rem;
    color: #667eea;
}

.action-btn span {
    font-weight: 500;
    color: #2c3e50;
}

/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s;
}

.activity-item:hover {
    background: #f1f3f4;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-icon.success {
    background: #e8f5e8;
    color: #4caf50;
}

.activity-icon.primary {
    background: #e3f2fd;
    color: #2196f3;
}

.activity-icon.warning {
    background: #fff3e0;
    color: #ff9800;
}

.activity-details {
    flex: 1;
}

.activity-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.activity-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.activity-time {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-stats-quick {
        margin-left: 0;
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* ===== 现代化管理员页面样式 ===== */
.admin-navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.admin-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-info {
    text-align: right;
    color: white;
}

.admin-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

.notification-btn {
    position: relative;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-btn:hover {
    background: rgba(255,255,255,0.2);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 系统概览 */
.system-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.system-status-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-header i {
    font-size: 2rem;
    color: #3498db;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 12px;
}

.status-header h3 {
    margin: 0;
    color: #2c3e50;
    flex: 1;
}

.status-indicator {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-indicator.online {
    background: #d4edda;
    color: #155724;
}

.status-metrics {
    display: flex;
    gap: 1rem;
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.primary {
    border-left: 4px solid #3498db;
}

.stat-card.success {
    border-left: 4px solid #27ae60;
}

.stat-card.warning {
    border-left: 4px solid #f39c12;
}

.stat-card.danger {
    border-left: 4px solid #e74c3c;
}

.stat-card i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.stat-card.primary i {
    color: #3498db;
    background: #e3f2fd;
}

.stat-card.success i {
    color: #27ae60;
    background: #e8f5e8;
}

.stat-card.warning i {
    color: #f39c12;
    background: #fff3e0;
}

.stat-card.danger i {
    color: #e74c3c;
    background: #fdeaea;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-trend.up {
    color: #27ae60;
}

.stat-trend.down {
    color: #e74c3c;
}

/* 管理功能 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: #2980b9;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.function-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.function-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

.function-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #3498db;
}

.function-card h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.function-card p {
    color: #7f8c8d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.function-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.function-stats .stat {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.function-stats .trend {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.trend.up {
    background: #e8f5e8;
    color: #27ae60;
}

.trend.safe {
    background: #e3f2fd;
    color: #3498db;
}

.trend.stable {
    background: #fff3e0;
    color: #f39c12;
}

/* 实时监控 */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #27ae60;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 1; }
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.monitor-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.monitor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.monitor-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.monitor-header h5 {
    margin: 0;
    color: #2c3e50;
}

.node-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.node {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.node.online {
    background: #e8f5e8;
    color: #27ae60;
}

.node.offline {
    background: #fdeaea;
    color: #e74c3c;
}

.performance-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.performance-bar label {
    min-width: 80px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.3s;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
}

.security-item i {
    font-size: 1.2rem;
}

.security-item.safe i {
    color: #27ae60;
}

.security-item.warning i {
    color: #f39c12;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .system-overview {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .function-grid {
        grid-template-columns: 1fr;
    }
    
    .monitor-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-controls {
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
/* 退出按钮样式 - 添加到文件末尾 */
.logout-btn {
    color: #e74c3c !important;
    border: 1px solid #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
}

.logout-btn:hover {
    background-color: #e74c3c !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}
/* ===== 用户中心主题系统 ===== */
:root {
    /* 浅色主题（默认） */
    --theme-bg-primary: #f8f9fa;
    --theme-bg-secondary: #ffffff;
    --theme-text-primary: #333333;
    --theme-text-secondary: #666666;
    --theme-border: #e0e0e0;
    --theme-accent: #667eea;
    --theme-avatar: linear-gradient(135deg, #667eea, #764ba2);
    --theme-card: #ffffff;
}

[data-theme="dark"] {
    /* 深色主题 */
    --theme-bg-primary: #1a1a1a;
    --theme-bg-secondary: #2d2d2d;
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #cccccc;
    --theme-border: #444444;
    --theme-accent: #8b5cf6;
    --theme-avatar: linear-gradient(135deg, #8b5cf6, #6366f1);
    --theme-card: #333333;
}

[data-theme="auto"] {
    /* 跟随系统主题 */
    --theme-bg-primary: #f8f9fa;
    --theme-bg-secondary: #ffffff;
    --theme-text-primary: #333333;
    --theme-text-secondary: #666666;
    --theme-border: #e0e0e0;
    --theme-accent: #10b981;
    --theme-avatar: linear-gradient(135deg, #10b981, #059669);
    --theme-card: #ffffff;
}

/* 应用主题到用户中心 */
.user-center-container {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    min-height: calc(100vh - 120px);
}

.user-sidebar {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-content {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-avatar {
    background: var(--theme-avatar) !important;
    transition: background 0.5s ease;
}

/* 表单样式 */
.form-control {
    background: var(--theme-card);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border);
}

.form-control:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background: var(--theme-accent);
    border: 1px solid var(--theme-accent);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--theme-accent);
    color: var(--theme-accent);
}

.btn-outline:hover {
    background: var(--theme-accent);
    color: white;
}

/* 导航链接 */
.sidebar-nav a {
    color: var(--theme-text-primary);
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--theme-accent);
    color: white;
}

/* 文本颜色 */
.user-profile h3,
.feature-card h3,
.stat-value {
    color: var(--theme-text-primary);
}

.user-profile p,
.feature-card p,
.stat-label {
    color: var(--theme-text-secondary);
}

/* 边框和分隔线 */
.user-profile {
    border-bottom: 1px solid var(--theme-border);
}

.log-item {
    border-bottom: 1px solid var(--theme-border);
}

/* 复选框样式 */
input[type="checkbox"] {
    accent-color: var(--theme-accent);
}

/* 下拉选择框 */
select {
    background: var(--theme-card);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-border);
}

select:focus {
    border-color: var(--theme-accent);
    outline: none;
}

/* 提示文本 */
small {
    color: var(--theme-text-secondary);
}

/* 卡片悬停效果 */
.feature-card,
.stat-card {
    border: 1px solid var(--theme-border);
    transition: all 0.3s ease;
}

.feature-card:hover,
.stat-card:hover {
    border-color: var(--theme-accent);
    transform: translateY(-2px);
}
/* ===== 用户中心主题系统增强 ===== */
:root {
    /* 浅色主题（默认） */
    --theme-avatar-light: linear-gradient(135deg, #667eea, #764ba2);
    --theme-avatar-dark: linear-gradient(135deg, #8b5cf6, #6366f1);
    --theme-avatar-auto: linear-gradient(135deg, #10b981, #059669);
}

/* 主题相关的头像样式 */
[data-theme="light"] .user-avatar {
    background: var(--theme-avatar-light) !important;
    transition: background 0.5s ease;
}

[data-theme="dark"] .user-avatar {
    background: var(--theme-avatar-dark) !important;
    transition: background 0.5s ease;
}

[data-theme="auto"] .user-avatar {
    background: var(--theme-avatar-auto) !important;
    transition: background 0.5s ease;
}

/* 按钮悬停效果增强 */
.btn-outline {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* ===== 用户中心主题系统 ===== */

/* 主题变量 */
:root {
    /* 浅色主题（默认） */
    --user-avatar-light: linear-gradient(135deg, #667eea, #764ba2);
    --user-avatar-dark: linear-gradient(135deg, #8b5cf6, #6366f1);
    --user-avatar-auto: linear-gradient(135deg, #10b981, #059669);
}

/* 深色主题 */
[data-theme="dark"] {
    --user-avatar-light: linear-gradient(135deg, #8b5cf6, #6366f1);
    --user-avatar-dark: linear-gradient(135deg, #8b5cf6, #6366f1);
    --user-avatar-auto: linear-gradient(135deg, #8b5cf6, #6366f1);
}

/* 跟随系统主题 */
[data-theme="auto"] {
    --user-avatar-light: linear-gradient(135deg, #10b981, #059669);
    --user-avatar-dark: linear-gradient(135deg, #10b981, #059669);
    --user-avatar-auto: linear-gradient(135deg, #10b981, #059669);
}

/* 应用主题到用户中心 */
[data-theme="dark"] .user-center-container {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="dark"] .user-sidebar {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

[data-theme="dark"] .user-content {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

[data-theme="dark"] .sidebar-nav a {
    color: #cccccc;
}

[data-theme="dark"] .sidebar-nav a:hover,
[data-theme="dark"] .sidebar-nav a.active {
    background: #8b5cf6;
    color: white;
}

[data-theme="dark"] .form-control {
    background: #333;
    color: #fff;
    border-color: #555;
}

[data-theme="dark"] .form-group label {
    color: #cccccc;
}

[data-theme="dark"] .log-item {
    border-color: #444;
}

/* 头像主题变化 */
[data-theme="light"] .user-avatar {
    background: var(--user-avatar-light) !important;
}

[data-theme="dark"] .user-avatar {
    background: var(--user-avatar-dark) !important;
}

[data-theme="auto"] .user-avatar {
    background: var(--user-avatar-auto) !important;
}

/* 按钮主题 */
[data-theme="dark"] .btn-primary {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

[data-theme="dark"] .btn-outline {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

[data-theme="dark"] .btn-outline:hover {
    background: #8b5cf6;
    color: white;
}
/* Logout button */
.btn-logout {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-logout:hover { background: #c0392b; }
