/* 🏠 用户个人空间仪表板样式 */

.user-dashboard {
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at top, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2c1810 50%, #1a1a1a 100%);
    color: #FFD700;
    font-family: 'Noto Serif SC', serif;
}

/* 用户头部信息 */
.dashboard-header {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.6));
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.user-level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #8B4513;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.5);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.user-title {
    font-size: 1.2em;
    color: #DAA520;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.user-stats-mini {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-weight: 700;
    color: #FFD700;
}

.stat-label {
    color: rgba(255, 215, 0, 0.8);
}

.join-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 215, 0, 0.7);
}

.join-icon {
    font-size: 16px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #8B4513;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.btn-icon {
    font-size: 16px;
}

.btn-text {
    font-size: 14px;
}

/* 主要内容区域 */
.dashboard-main {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* 左侧边栏 */
.dashboard-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.stats-card,
.achievements-card,
.daily-tasks-card {
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #FFD700;
    text-align: center;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.stat-box.rare {
    border-color: rgba(147, 51, 234, 0.5);
}

.stat-box.legendary {
    border-color: rgba(251, 191, 36, 0.5);
}

.stat-box.social {
    border-color: rgba(34, 197, 94, 0.5);
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 215, 0, 0.8);
}

/* 成就系统 */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.achievement-item.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 12px;
    color: rgba(255, 215, 0, 0.7);
}

/* 每日任务 */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
}

.task-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #DAA520;
}

.task-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.task-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.task-icon {
    font-size: 16px;
}

.task-text {
    flex: 1;
    font-size: 14px;
    color: #FFD700;
}

.task-reward {
    font-size: 12px;
    color: #DAA520;
    font-weight: 600;
}

/* 主要内容区域 */
.dashboard-content {
    flex: 1;
}

.cards-section {
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(218, 165, 32, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 15px;
}

.filter-select,
.sort-select {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 25px;
    color: #FFD700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.sort-select:hover {
    border-color: rgba(218, 165, 32, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.filter-select option,
.sort-select option {
    background: #2c1810;
    color: #FFD700;
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.wish-card-item {
    position: relative;
    transition: all 0.3s ease;
}

.wish-card-item:hover {
    transform: translateY(-5px);
}

.card-container {
    margin-bottom: 15px;
}

.card-info {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.card-title {
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 8px;
    font-size: 16px;
}

.card-date {
    font-size: 12px;
    color: rgba(255, 215, 0, 0.6);
    margin-bottom: 8px;
}

.card-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.card-level-badge.basic {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.card-level-badge.rare {
    background: rgba(147, 51, 234, 0.2);
    color: #9333EA;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.card-level-badge.legendary {
    background: rgba(251, 191, 36, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 卡片统计 */
.card-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.card-stats .stat-icon {
    font-size: 14px;
}

.card-stats .stat-value {
    font-weight: 600;
    color: #FFD700;
}

/* 卡片操作按钮 */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.card-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(218, 165, 32, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 15px;
    color: #FFD700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-action-btn:hover {
    background: rgba(218, 165, 32, 0.3);
    border-color: rgba(218, 165, 32, 0.5);
    transform: translateY(-1px);
}

.card-action-btn .btn-icon {
    font-size: 12px;
}

.card-action-btn .btn-text {
    font-size: 11px;
}

/* 加载更多 */
.load-more-section {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #8B4513;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 10px;
}

.empty-description {
    color: rgba(255, 215, 0, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #8B4513;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.empty-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.5);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #2c1810, #1a1a1a);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.modal-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
}

/* 设置表单 */
.settings-section {
    margin-bottom: 30px;
}

.settings-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #FFD700;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFD700;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    color: #FFD700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(218, 165, 32, 0.6);
    background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    accent-color: #DAA520;
}

.checkbox-text {
    color: #FFD700;
    font-size: 14px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #8B4513;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .dashboard-main {
        flex-direction: column;
        padding: 20px;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .header-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .user-name {
        font-size: 2em;
    }
    
    .user-stats-mini {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stats-mini {
        flex-direction: column;
        gap: 10px;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
}
