/* 用户中心页面样式 */

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-header {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.profile-icon {
    font-size: 3.5rem;
    color: #4a90e2;
    margin-right: 1.5rem;
}

.profile-info h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.profile-info p {
    color: #666;
    margin: 0;
}

.user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    min-width: 120px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1rem;
}

.content-section h2 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.action-card:hover {
    background-color: #e9f0f8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-card i {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.action-card span {
    font-weight: 500;
}

.recent-searches {
    min-height: 200px;
}

.empty-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem 0;
}

/* 升级会员模态框 */
.upgrade-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-content ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.price-info {
    text-align: center;
    margin: 1.5rem 0;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.price-note {
    font-size: 0.9rem;
    color: #888;
}

.upgrade-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upgrade-btn:hover {
    background-color: #3a7bc8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-profile {
        margin-bottom: 1.5rem;
    }
    
    .user-stats {
        justify-content: space-between;
        width: 100%;
    }
    
    .stat-card {
        flex: 1;
        min-width: 0;
    }
    
    .action-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
}

/* 当模态框显示时的样式 */
.upgrade-modal.show {
    display: flex;
} 