/* CSS变量定义 */
:root {
    --primary-color: #4a90e2;
    --primary-light: #e8f0fe;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --background-color: #f8f8f8;
    --card-background: #fff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --button-background: #2c5fc9;
    --button-hover: #1a4ab8;
    --reset-button-color: #666;
}

/* 整体布局 */
.profile-content {
    padding: 20px 0;
    background-color: var(--background-color);
    min-height: calc(100vh - 130px); /* 减去头部和底部高度 */
}

.profile-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

/* 侧边栏导航 */
.profile-sidebar {
    width: 200px;
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.sidebar-nav h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav > h3:not(:first-child) {
    margin-top: 25px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* 主内容区域 */
.profile-main {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 25px 0;
}

/* 用户信息展示样式 */
.user-info-section {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 80px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 头像样式 */
.user-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #a37edb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(163, 126, 219, 0.2);
}

.avatar-text {
    line-height: 1;
}

/* 用户详细信息 */
.user-details {
    flex: 1;
}

.account-info {
    margin-bottom: 25px;
}

.account-info p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-color);
}

.account-info p:last-child {
    margin-bottom: 0;
}

.account-value, .email-value {
    font-weight: 500;
    color: var(--primary-color);
}

/* 用户统计信息 */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* .stat-item:last-child {
    border-bottom: none;
} */

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.level-value {
    color: var(--primary-color);
    font-weight: 600;
}

/* 查询结果区域样式 */
.search-results-section {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.results-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 20px 0;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.results-list {
    /* 结果列表样式将通过JavaScript动态添加 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
    }
    
    .profile-sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .user-info-section, .search-results-section {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar-circle {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .user-details {
        width: 100%;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: 15px 0;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        /*gap: 15px;*/
    }
    
    .sidebar-nav > h3 {
        width: 100%;
        margin-top: 15px !important;
        margin-bottom: 10px;
        padding-bottom: 5px;
        font-size: 14px;
    }
    
    .sidebar-nav > h3:first-child {
        margin-top: 0 !important;
    }
    
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .sidebar-nav li {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .order-search-section, .search-results-section {
        padding: 15px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .search-input {
        height: 40px;
        font-size: 13px;
    }
    
    .search-button, .reset-button {
        padding: 8px 20px;
        font-size: 13px;
        flex: 1;
    }
    
    .search-buttons {
        gap: 10px;
    }
    
    .results-title {
        font-size: 16px;
    }
    
    .no-results {
        padding: 30px 0;
        font-size: 13px;
    }
}