/* 用户中心页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* 顶部导航栏 */
.user-navbar {
    background: linear-gradient(135deg, #2B7CD3 0%, #1a5fa8 100%);
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    font-size: 22px;
    font-weight: 700;
    color: #4CAF50;
    letter-spacing: 2px;
}

.navbar-brand .logo-badge {
    /*ceshi  git */
    background: #fff;
    color: #2B7CD3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.navbar-brand .logo-dot {
    color: #fff;
    font-size: 14px;
    margin-left: 2px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
}

.navbar-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar-menu li a:hover {
    color: #fff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-right .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.navbar-right .nav-link:hover {
    color: #fff;
}

.navbar-right .notify-link {
    position: relative;
}

.navbar-right .notify-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.navbar-right .vip-link {
    color: #ffd700;
    font-weight: 500;
}

.navbar-right .nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 主体布局 */
.user-main {
    display: flex;
    padding-top: 60px;
    min-height: 100vh;
}

/* 左侧边栏 */
.user-sidebar {
    width: 240px;
    background: #fff;
    min-height: calc(100vh - 60px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

/* 用户信息 */
.user-profile {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.user-tags .tag {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    color: #666;
    background: #fff;
}

.user-tags .tag.active {
    background: #2B7CD3;
    color: #fff;
    border-color: #2B7CD3;
}

/* 侧边菜单 */
.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu .menu-item {
    display: block;
    padding: 14px 25px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu .menu-item:hover {
    background: #f5f7fa;
    color: #2B7CD3;
}

.sidebar-menu .menu-item.active {
    background: #e6f4ff;
    color: #2B7CD3;
    border-left-color: #2B7CD3;
}

.sidebar-menu .menu-item.sub {
    padding-left: 35px;
    font-size: 14px;
    color: #2B7CD3;
}

.sidebar-menu .menu-group {
    margin-top: 10px;
}

.sidebar-menu .menu-group-title {
    padding: 14px 25px 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* 右侧内容区 */
.user-content {
    flex: 1;
    margin-left: 240px;
    padding: 25px;
    background: #f5f7fa;
}

/* 工具栏 */
.content-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #2B7CD3 0%, #1a5fa8 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 124, 211, 0.3);
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    position: relative;
}

.filter-select select {
    appearance: none;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    min-width: 130px;
    transition: border-color 0.3s;
}

.filter-select select:focus {
    outline: none;
    border-color: #2B7CD3;
}

.filter-select .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.btn-search {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2B7CD3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    background: #1a5fa8;
}

.btn-search img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* 数据表格 */
.data-table-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.data-table th {
    background: #fafafa;
    color: #333;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.status-pending {
    color: #2B7CD3;
    background: #e6f4ff;
}

.status-approved {
    color: #52c41a;
    background: #f6ffed;
}

.status-rejected {
    color: #ff4d4f;
    background: #fff2f0;
}

/* 操作按钮 */
.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #f0f0f0;
}

.action-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.action-btn:hover img {
    opacity: 1;
}

/* 分页 */
.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.total-info {
    font-size: 14px;
    color: #666;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-btn:hover,
.page-num:hover {
    border-color: #2B7CD3;
    color: #2B7CD3;
}

.page-num.active {
    background: #2B7CD3;
    border-color: #2B7CD3;
    color: #fff;
}

.page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

.page-size select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M2 4l4 4 4-4z"/></svg>') no-repeat right 10px center;
    appearance: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.btn-refresh {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    border-color: #2B7CD3;
}

.btn-refresh img {
    width: 16px;
    height: 16px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.page-jump input {
    width: 50px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.page-jump input:focus {
    outline: none;
    border-color: #2B7CD3;
}

.btn-jump {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-jump:hover {
    border-color: #2B7CD3;
    color: #2B7CD3;
}

/* 响应式 */
@media (max-width: 1200px) {
    .user-sidebar {
        width: 200px;
    }
    .user-content {
        margin-left: 200px;
    }
}

@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }
    
    .user-sidebar {
        width: 180px;
    }
    
    .user-content {
        margin-left: 180px;
        padding: 15px;
    }
    
    .sidebar-menu .menu-item {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .user-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        top: auto;
    }
    
    .user-content {
        margin-left: 0;
    }
    
    .user-main {
        flex-direction: column;
    }
    
    .navbar-right {
        gap: 12px;
    }
    
    .navbar-right .nav-link {
        font-size: 13px;
    }
    
    .content-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toolbar-filters {
        width: 100%;
    }
    
    .data-table-wrapper {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

