/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    overflow: hidden;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    height: 100vh;
}

.page {
    width: 100%;
    height: 100vh;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

/* 文本居中 */
.text-center {
    text-align: center !important;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
}

.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.brand-logo i {
    font-size: 2.5rem;
    color: var(--ant-primary);
    background: linear-gradient(135deg, var(--ant-primary), var(--ant-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-title {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--ant-primary), var(--ant-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.brand-subtitle {
    color: var(--ant-text-secondary);
    font-size: 1rem;
    opacity: 0.8;
}

.login-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ant-text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--ant-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--ant-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--ant-bg-page);
}

.form-group input:focus {
    outline: none;
    border-color: var(--ant-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ant-text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ant-primary);
}

.forgot-password {
    color: var(--ant-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--ant-primary);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--ant-primary), var(--ant-primary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--ant-text-tertiary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(5px);
}

.welcome-text {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    text-align: center;
}

.welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.welcome-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ant-bg-card), #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature i {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.feature span {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

/* 后台管理页面样式 */
.admin-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: var(--ant-bg-page);
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.sidebar-logo i {
    font-size: 2rem;
    color: var(--ant-primary);
    background: linear-gradient(135deg, var(--ant-primary), var(--ant-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* 侧边栏用户信息 - 原始设计 */
.user-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--ant-primary);
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--ant-success);
    border-radius: 50%;
    border: 2px solid #2c3e50;
    box-sizing: border-box;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.user-details h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ant-bg-card);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details p {
    font-size: 0.85rem;
    color: var(--ant-text-tertiary);
    margin-bottom: 0;
}

.status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--ant-success);
    margin-top: 2px;
}

.status i {
    font-size: 0.6rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

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

.menu-item {
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    color: var(--ant-text-tertiary);
    min-height: 44px;
    line-height: 1.4;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--ant-primary);
}

.menu-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: white;
    border-left-color: var(--ant-primary);
}

.menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.menu-item .menu-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.menu-item .menu-toggle {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.menu-item.has-submenu:hover .menu-toggle {
    color: white;
}

.menu-item .menu-toggle.rotated {
    transform: rotate(180deg);
    color: var(--ant-primary);
}

/* 菜单内容区域样式 */
.menu-content {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: var(--ant-text-tertiary);
    min-height: 40px;
    line-height: 1.4;
}

.menu-content:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--ant-primary);
}

.menu-content.active {
    background: rgba(102, 126, 234, 0.1);
    color: white;
    border-left-color: var(--ant-primary);
}

.menu-content i:first-child {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 有子菜单的菜单项样式 - 手风琴式 */
.menu-item.has-submenu {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s ease;
}

.menu-item.has-submenu:hover {
    border-left-color: rgba(102, 126, 234, 0.3);
}

.menu-item.has-submenu.active {
    border-left-color: var(--ant-primary);
}

.menu-item.has-submenu > .menu-content {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    width: 100%;
    cursor: pointer;
    color: var(--ant-text-tertiary);
    background: transparent;
    border-left: none;
}

.menu-item.has-submenu:hover > .menu-content {
    color: white;
}

.menu-item.has-submenu.active > .menu-content {
    background: rgba(102, 126, 234, 0.1);
    color: white;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.submenu.expanded {
    max-height: 1200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    border-left-color: var(--ant-primary);
    animation: submenuExpand 0.4s ease-out;
}

@keyframes submenuExpand {
    0% {
        opacity: 0.7;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu.expanded::-webkit-scrollbar {
    width: 4px;
}

.submenu.expanded::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.submenu.expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.submenu.expanded::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.submenu-item {
    padding: 0.5rem 0.8rem 0.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--ant-text-tertiary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    min-height: 32px;
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: var(--ant-primary);
}

.submenu-item.active {
    background: rgba(118, 75, 162, 0.15);
    color: white;
    border-left-color: var(--ant-primary);
    font-weight: 500;
}

.submenu-item i {
    font-size: 0.65rem;
    width: 12px;
    text-align: center;
    color: var(--ant-text-tertiary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 6px;
}

.submenu-item:hover i {
    color: white;
}

.submenu-item.active i {
    color: var(--ant-primary);
}

.submenu-item span {
    flex: 1;
    white-space: nowrap;
    padding-right: 4px;
    font-size: 0.9rem;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部导航栏样式 */
.top-header {
    background: white;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--ant-primary);
    font-size: 1.2rem;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ant-text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tab-actions {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.tabs-container {
    display: flex;
    gap: 8px;
    background: none;
    padding: 0 1.5rem;
    border-radius: 0;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 0;
    align-items: center;
    height: calc(100% - 10px);
    scrollbar-width: thin;
    scrollbar-color: var(--ant-primary) var(--ant-bg-page);
    position: relative;
    padding-bottom: 10px;
    min-height: 50px;
}

.tabs-container::-webkit-scrollbar {
    height: 8px;
}

.tabs-container::-webkit-scrollbar-track {
    background: var(--ant-bg-page);
    border-radius: 4px;
    margin: 0 1.5rem;
}

.tabs-container::-webkit-scrollbar-thumb {
    background: var(--ant-primary);
    border-radius: 4px;
    border: 1px solid var(--ant-bg-page);
}

.tabs-container::-webkit-scrollbar-thumb:hover {
    background: var(--ant-primary);
}

.tab {
    padding: 10px 20px;
    background: var(--ant-bg-page);
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ant-text-secondary);
    border: 1px solid var(--ant-border);
    border-bottom: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    position: relative;
    top: 0;
    flex-shrink: 0;
}

.tab:hover {
    background: var(--ant-bg-page);
    border-color: var(--ant-border);
    border-bottom-color: var(--ant-bg-page);
}

.tab.active {
    background: white;
    color: var(--ant-primary);
    border-color: var(--ant-border);
    border-bottom-color: white;
    font-weight: 500;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.tab i {
    font-size: 0.8rem;
}

.tab-close {
    margin-left: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 0 8px;
    font-size: 0.8rem;
    color: var(--ant-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.tab-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    color: var(--ant-text-primary);
}

.tab-close i {
    font-size: 0.7rem;
}

.tab-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 0.5rem;
    background: white;
    border-left: 1px solid var(--ant-border);
    height: 100%;
    flex-shrink: 0;
    min-width: 120px;
}

.tab-btn {
    padding: 5px;
    background: var(--ant-bg-page);
    border: 1px solid var(--ant-border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--ant-text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--ant-bg-page);
    border-color: var(--ant-primary);
    color: var(--ant-primary);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--ant-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--ant-bg-page);
    color: var(--ant-primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--ant-border);
    margin: 5px 0;
}

.user-menu {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--ant-bg-page);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #e8eaf6;
}

.profile-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ant-primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    color: var(--ant-text-primary);
    font-size: 0.95rem;
}

.profile-role {
    font-size: 0.8rem;
    color: var(--ant-text-secondary);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
}

/* 模态框基础样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex !important;
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
    width: auto;
    min-width: 320px;
    max-width: 100%;
}

.modal-lg {
    min-width: 400px;
    max-width: 800px;
    width: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    margin: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    max-height: calc(100vh - 100px);
}

.modal-header {
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.modal-header .modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(100vh - 160px);
    box-sizing: border-box;
    width: auto;
    min-width: 280px;
}

.modal-footer {
    padding: 15px 20px;
    background: var(--ant-bg-page);
    border-top: 1px solid var(--ant-divider);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ant-text-primary);
}

.form-group label i {
    color: var(--ant-primary);
    margin-right: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--ant-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--ant-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--ant-border-soft);
    color: var(--ant-text-primary);
}

.btn-secondary:hover {
    background: var(--ant-border);
}

.btn-danger {
    background: var(--ant-error);
    color: white;
}

.btn-danger:hover {
    background: var(--ant-error);
}

.btn-outline {
    background: white;
    border: 1px solid var(--ant-border);
    color: var(--ant-text-secondary);
}

.btn-outline:hover {
    border-color: var(--ant-primary);
    color: var(--ant-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================
   菜单管理表格样式
   ============================================ */

.data-table-container {
    overflow-x: auto;
    padding: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.data-table thead {
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
}

.data-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--ant-divider);
    font-size: 12px;
    color: var(--ant-text-primary);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tbody tr:hover {
    background: var(--ant-bg-page);
}

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

.menu-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.menu-name-cell i {
    color: var(--ant-primary);
    width: 20px;
    text-align: center;
}

.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.type-badge.type-directory {
    background: var(--ant-info-bg);
    color: var(--ant-info);
}

.type-badge.type-menu {
    background: var(--ant-success-bg);
    color: var(--ant-success);
}

.type-badge.type-button {
    background: var(--ant-warning-bg);
    color: var(--ant-warning);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.status-badge.status-disabled {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

.table-actions {
    display: flex;
    gap: 4px; /* 减小间距 */
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    min-height: 40px; /* 确保有足够高度 */
}

.table-actions .btn-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
}

.table-actions .btn-icon i {
    font-size: 12px;
    margin: 0;
}

/* ============================================
   手风琴菜单样式
   ============================================ */

.accordion-container {
    padding: 20px 0;
}

.accordion-item {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: white;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-title i {
    font-size: 20px;
}

.accordion-title span {
    font-size: 16px;
    font-weight: 600;
}

.menu-count {
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
    margin-left: 10px;
}

.accordion-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-actions .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.accordion-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.accordion-icon {
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.expanded .accordion-content {
    max-height: 1000px;
}

/* 子菜单表格样式 */
.menu-table {
    width: 100%;
    border-collapse: collapse;
}

.menu-table thead {
    background: var(--ant-bg-page);
}

.menu-table th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--ant-text-secondary);
    border-bottom: 1px solid var(--ant-divider);
}

.menu-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--ant-divider);
    font-size: 13px;
    color: var(--ant-text-primary);
    text-align: center;
}

.menu-table tbody tr:hover {
    background: var(--ant-bg-page);
}

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

.empty-tip {
    text-align: center;
    color: var(--ant-text-tertiary);
    padding: 30px !important;
    font-style: italic;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--ant-bg-page);
    color: var(--ant-text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--ant-primary);
    color: white;
}

.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.btn-icon.btn-danger:hover {
    background: var(--ant-error);
}

/* 表单行样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row .form-group {
    margin-bottom: 15px;
}

/* 标签页区域样式 */
.tab-area {
    background: white;
    padding: 0;
    border-bottom: 1px solid var(--ant-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 65px;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    overflow: hidden;
    padding: 0;
    background: var(--ant-bg-page);
}

.content-container {
    background: white;
    border-radius: 0 12px 12px 12px;
    height: calc(100% - 1.5rem);
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 1.5rem;
}

.welcome-content {
    text-align: center;
    padding: 3rem;
}

.welcome-content h2 {
    font-size: 2rem;
    color: var(--ant-text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ant-primary), var(--ant-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content p {
    color: var(--ant-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ============================================
   角色管理样式
   ============================================ */

.role-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.role-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--ant-border-soft);
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.role-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
    flex-shrink: 0;
}

.role-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.role-info {
    flex: 1;
}

.role-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.role-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.role-status.status-active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--ant-success);
}

.role-status.status-disabled {
    background: rgba(244, 67, 54, 0.15);
    color: var(--ant-error);
}

.role-card-body {
    padding: 20px;
    flex: 1;
}

.role-desc {
    color: var(--ant-text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.role-permissions {
    margin-bottom: 12px;
}

.perm-label {
    font-size: 13px;
    color: var(--ant-text-tertiary);
    font-weight: 500;
}

.perm-list {
    font-size: 13px;
    color: var(--ant-primary);
}

.role-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--ant-text-tertiary);
}

.role-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.role-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: var(--ant-bg-page);
    border-top: 1px solid var(--ant-divider);
    flex-shrink: 0;
}

.role-card-footer .btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

/* 权限复选框样式 */
.permissions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: var(--ant-bg-page);
    border-radius: 8px;
    border: 1px solid var(--ant-border-soft);
    width: 100%;
    box-sizing: border-box;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--ant-border);
    transition: all 0.2s ease;
    font-size: 13px;
}

.permission-checkbox:hover {
    border-color: var(--ant-primary);
    background: #f5f7ff;
}

.permission-checkbox input {
    display: none;
}

.permission-checkbox .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ant-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.permission-checkbox input:checked + .checkbox-custom {
    background: var(--ant-primary);
    border-color: var(--ant-primary);
}

.permission-checkbox input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.permission-checkbox i {
    color: var(--ant-primary);
    font-size: 14px;
}

/* 权限分类样式 */
.perm-category {
    margin-bottom: 16px;
}

.perm-category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ant-text-primary);
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perm-category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--ant-bg-page);
    border: 1px solid var(--ant-border-soft);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* 角色卡片中的权限显示 */
.role-permissions {
    margin: 10px 0;
}

.perm-group {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.6;
}

.perm-cat {
    font-weight: 600;
    color: var(--ant-primary);
}

.perm-items {
    color: var(--ant-text-secondary);
}

.dashboard-card {
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.dashboard-card i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dashboard-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.card-detail {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.text-success { color: var(--ant-success) !important; }
.text-warning { color: var(--ant-warning) !important; }
.text-danger { color: var(--ant-error) !important; }
.text-muted { color: rgba(255, 255, 255, 0.6) !important; }

/* 快捷操作区域 */
.quick-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-actions h3 {
    font-size: 1.2rem;
    color: var(--ant-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--ant-bg-page);
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 1.2rem;
}

/* 欢迎内容区域 */
.welcome-content {
    padding: 1rem 0;
}

.welcome-content h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--ant-primary), var(--ant-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.welcome-content > p {
    color: var(--ant-text-secondary);
    margin-bottom: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .action-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 页面内容样式 */
.page-content {
    padding: 2rem;
}

.page-content h2 {
    font-size: 1.8rem;
    color: var(--ant-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ant-bg-page);
}

.page-content p {
    color: var(--ant-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sidebar {
        width: 180px;
    }
    
    .tabs-container {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left, .login-right {
        flex: none;
        height: 50vh;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .sidebar {
        width: 60px;
    }
    
    .sidebar-header h2,
    .user-details,
    .menu-text,
    .submenu-item {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 1rem;
    }
    
    .tabs-container {
        display: none;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ant-bg-page);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--ant-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ant-text-tertiary);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ============================================
   应用列表页面样式
   ============================================ */
.search-bar {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--ant-bg-page) 0%, var(--ant-border-soft) 100%);
    border-radius: 8px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-inline label {
    white-space: nowrap;
    font-weight: 500;
    color: var(--ant-text-secondary);
}

.form-group-inline .form-control {
    width: auto;
    min-width: 150px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--ant-border-soft);
}

.page-info {
    color: var(--ant-text-secondary);
    font-size: 14px;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-select {
    width: auto !important;
    min-width: 100px;
}

.page-num {
    padding: 4px 12px;
    background: var(--ant-info);
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.page-input {
    width: 60px !important;
    text-align: center;
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--ant-bg-page);
    border-radius: 8px;
}

.form-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ant-border);
    color: var(--ant-text-secondary);
    font-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--ant-border-soft);
}

.level-reward-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--ant-border);
}

.level-label {
    min-width: 60px;
    font-weight: 600;
    color: var(--ant-info);
}

.level-reward-input {
    width: 120px !important;
}

.media-upload-area {
    border: 2px dashed var(--ant-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: white;
}

.upload-placeholder {
    position: relative;
    cursor: pointer;
    padding: 20px;
}

.upload-placeholder i {
    font-size: 40px;
    color: var(--ant-border);
    margin-bottom: 10px;
}

.upload-placeholder p {
    color: var(--ant-text-secondary);
    margin: 0;
}

.upload-placeholder input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.media-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--ant-border);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    font-size: 14px;
}

.link-list {
    margin-bottom: 15px;
}

.link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.link-name {
    flex: 1;
}

.link-url {
    flex: 2;
}

.income-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.income-config-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--ant-border);
}

.income-config-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--ant-text-secondary);
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-with-unit .form-control {
    flex: 1;
}

.input-with-unit .unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--ant-success);
}

.income-config-item small {
    display: block;
    margin-top: 8px;
    color: var(--ant-text-secondary);
    font-size: 12px;
}

.form-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--ant-border);
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ant-info);
    cursor: pointer;
}

.risk-score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

#riskScoreValue {
    font-size: 24px;
    font-weight: 700;
    color: var(--ant-info);
}

.risk-level {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--ant-border);
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: var(--ant-info);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================
   包列表和用户列表页面样式
   ============================================ */

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ant-bg-page);
}

.page-header h2 {
    font-size: 1.8rem;
    color: var(--ant-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 i {
    color: var(--ant-primary);
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

/* 统计卡片 */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 15px;
    flex-shrink: 0;
}

.stat-card .stat-content {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-align: center;
    display: block;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    display: block;
    text-align: center;
}

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

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 8px 0;
}

.stat-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 搜索框 */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ant-text-tertiary);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 1px solid var(--ant-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--ant-bg-card);
}

.search-input:focus {
    outline: none;
    border-color: var(--ant-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 筛选和操作区域 */
.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-outline-secondary {
    background: white;
    border: 1px solid var(--ant-border);
    color: var(--ant-text-secondary);
}

.btn-outline-secondary:hover {
    border-color: var(--ant-primary);
    color: var(--ant-primary);
    background: var(--ant-bg-card);
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table thead {
    background: linear-gradient(135deg, var(--ant-bg-page) 0%, var(--ant-border-soft) 100%);
}

.table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--ant-text-secondary);
    border-bottom: 2px solid var(--ant-border);
    white-space: nowrap;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--ant-divider);
    font-size: 13px;
    color: var(--ant-text-primary);
    text-align: center;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--ant-bg-page);
}

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

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--ant-warning);
}

.badge-danger {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

.badge-info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--ant-info);
}

.badge-primary {
    background: rgba(103, 58, 183, 0.1);
    color: var(--ant-primary);
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-outline-primary, .btn-outline-info, .btn-outline-warning, .btn-outline-danger, .btn-outline-secondary {
    background: white;
    border: 1px solid var(--ant-border);
}

.btn-outline-primary {
    color: var(--ant-primary);
    border-color: var(--ant-primary);
}

.btn-outline-primary:hover {
    background: var(--ant-primary);
    color: white;
}

.btn-outline-info {
    color: var(--ant-info);
    border-color: var(--ant-info);
}

.btn-outline-info:hover {
    background: var(--ant-info);
    color: white;
}

.btn-outline-warning {
    color: var(--ant-warning);
    border-color: var(--ant-warning);
}

.btn-outline-warning:hover {
    background: var(--ant-warning);
    color: white;
}

.btn-outline-danger {
    color: var(--ant-error);
    border-color: var(--ant-error);
}

.btn-outline-danger:hover {
    background: var(--ant-error);
    color: white;
}

.btn-outline-success {
    color: var(--ant-success);
    border-color: var(--ant-success);
}

.btn-outline-success:hover {
    background: var(--ant-success);
    color: white;
}

/* 表格底部 */
.table-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--ant-divider);
}

.data-summary {
    color: var(--ant-text-secondary);
    font-size: 14px;
}

.pagination {
    margin: 0;
}

.page-item.active .page-link {
    background: var(--ant-primary);
    border-color: var(--ant-primary);
}

.page-link {
    color: var(--ant-primary);
    border: 1px solid var(--ant-border);
    padding: 8px 16px;
}

.page-link:hover {
    color: var(--ant-primary);
    background: var(--ant-bg-page);
    border-color: var(--ant-border);
}

/* 模态框通用样式扩展 */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-actions {
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ============================================
   包列表和用户列表增强样式
   ============================================ */

/* 统计卡片容器 */
.stat-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* 筛选容器 */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.search-section {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* 限制最大宽度，避免占据太大空间 */
}

.search-box {
    position: relative;
    flex: 1; /* 占据剩余空间 */
    min-width: 200px; /* 最小宽度 */
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ant-text-tertiary);
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 42px;
    border: 1px solid var(--ant-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--ant-bg-card);
    height: 44px; /* 固定高度与按钮一致 */
    box-sizing: border-box; /* 确保内边距不影响高度 */
}

.search-box input:focus {
    outline: none;
    border-color: var(--ant-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}





/* 数据表格容器 */
.data-table-container {
    background: white;
    border-radius: 12px;
    overflow-x: auto; /* 移除此行使表格不左右滚动 */
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 280px); /* 限制高度，允许上下滚动 */
}

/* 动作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-view {
    background: rgba(33, 150, 243, 0.1);
    color: var(--ant-info);
}

.btn-view:hover {
    background: var(--ant-info);
    color: white;
}

.btn-edit {
    background: rgba(255, 193, 7, 0.1);
    color: var(--ant-warning);
}

.btn-edit:hover {
    background: var(--ant-warning);
    color: white;
}

.btn-block {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

.btn-block:hover {
    background: var(--ant-error);
    color: white;
}

.btn-unblock {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.btn-unblock:hover {
    background: var(--ant-success);
    color: white;
}

.btn-activate {
    background: rgba(103, 58, 183, 0.1);
    color: var(--ant-primary);
}

.btn-activate:hover {
    background: var(--ant-primary);
    color: white;
}

.btn-download {
    background: rgba(0, 150, 136, 0.1);
    color: #009688;
}

.btn-download:hover {
    background: #009688;
    color: white;
}

.btn-delete {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

.btn-delete:hover {
    background: var(--ant-error);
    color: white;
}

.btn-test {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

.btn-test:hover {
    background: #ff5722;
    color: white;
}

.btn-publish {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.btn-publish:hover {
    background: var(--ant-success);
    color: white;
}

/* 设备徽章 */
.device-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.device-badge.ios {
    background: rgba(0, 122, 255, 0.1);
    color: var(--ant-info);
}

.device-badge.android {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.device-badge.other {
    background: rgba(158, 158, 158, 0.1);
    color: var(--ant-text-tertiary);
}

/* 包类型徽章 */
.package-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.package-type-badge.android {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.package-type-badge.ios {
    background: rgba(0, 122, 255, 0.1);
    color: var(--ant-info);
}

.package-type-badge.other {
    background: rgba(158, 158, 158, 0.1);
    color: var(--ant-text-tertiary);
}

.package-type-badge i {
    font-size: 12px;
}

/* 版本徽章 */
.version-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--ant-primary) 0%, var(--ant-primary) 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* 状态徽章扩展 */
.status-badge.status-blocked {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

.status-badge.status-inactive {
    background: rgba(158, 158, 158, 0.1);
    color: var(--ant-text-tertiary);
}

.status-badge.status-draft {
    background: rgba(255, 193, 7, 0.1);
    color: var(--ant-warning);
}

.status-badge.status-testing {
    background: rgba(156, 39, 176, 0.1);
    color: var(--ant-primary);
}

.status-badge.status-warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--ant-warning);
}

.status-badge.status-danger {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--ant-bg-page);
    border-top: 1px solid var(--ant-divider);
}

.pagination-info {
    color: var(--ant-text-secondary);
    font-size: 14px;
}

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

.page-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--ant-border);
    border-radius: 6px;
    color: var(--ant-text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--ant-primary);
    border-color: var(--ant-primary);
    color: white;
}

.page-btn.active {
    background: var(--ant-primary);
    border-color: var(--ant-primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--ant-text-tertiary);
    padding: 0 4px;
}

.page-size-selector {
    margin-left: 16px;
}

.page-size-select {
    padding: 8px 12px;
    border: 1px solid var(--ant-border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: var(--ant-text-primary);
}

/* 页面头部操作按钮组 */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 页面响应式调整 */
@media (max-width: 768px) {
    .stat-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-container {
        flex-wrap: wrap; /* 移动端恢复wrap */
    }
    
    .search-section {
        min-width: unset;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .search-section .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .filter-section {
        flex-wrap: wrap;
    }
    
    .filter-select {
        min-width: 120px;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   包列表新功能样式
   ============================================ */

/* 下载链接样式 */
.download-link {
    color: var(--ant-info);
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-link:hover {
    color: var(--ant-info);
    text-decoration: underline;
}

/* 图标图片样式 */
.icon-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--ant-border);
    vertical-align: middle;
}

.icon-image:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 搜索按钮样式（在搜索框中） */
.search-section .btn-primary {
    white-space: nowrap;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px; /* 与搜索框高度一致 */
    margin-left: 0; /* 移除左边距 */
    border-radius: 8px; /* 与搜索框一致的圆角 */
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.search-section .btn-primary:hover {
    background: var(--ant-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 表格列宽度优化 */
.data-table th:nth-child(1) { /* 序号 */
    width: 60px;
}

.data-table th:nth-child(2) { /* 应用名 */
    width: 100px;
}

.data-table th:nth-child(3) { /* 包名 */
    width: 180px;
}

.data-table th:nth-child(4) { /* 下载地址 */
    width: 200px;
}

.data-table th:nth-child(5) { /* icon图 */
    width: 70px;
    text-align: center;
}

.data-table th:nth-child(6) { /* 状态 */
    width: 80px;
    text-align: center; /* 确保状态列标题居中对齐 */
}

.data-table th:nth-child(7) { /* 下载次数 */
    width: 100px;
    text-align: center; /* 确保下载次数列标题居中对齐 */
}

.data-table th:nth-child(8) { /* 操作 */
    width: 140px; /* 增加宽度以容纳五个按钮 */
    text-align: center;
}

.data-table td:nth-child(5) { /* icon图 - 包列表 */
    text-align: center;
}

.data-table td:nth-child(6) { /* 状态列 - 应用列表 */
    text-align: center;
}

.data-table td:nth-child(7) { /* 下载次数 - 包列表，状态徽章居中对齐 */
    text-align: center;
    font-weight: 500;
    color: var(--ant-text-primary);
}

.data-table td:nth-child(8) { /* 操作列 - 应用列表 */
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px !important;
}

/* 确保状态徽章在表格单元格中正确居中显示 */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 40px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 分页功能状态显示 */
.page-btn.active {
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.page-btn:hover:not(.active):not(:disabled) {
    background: #f5f7ff;
}

/* 搜索筛选区域优化 - 与搜索区域对齐 */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.filter-section .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.filter-section .filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 200px;
}

.filter-section .filter-item:last-of-type {
    flex: 0 0 auto;
}

.filter-section .filter-item label {
    white-space: nowrap;
    font-size: 13px;
    color: var(--ant-text-secondary);
}

.filter-section .filter-select,
.filter-section .filter-input,
.filter-section .filter-datetime {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--ant-border);
    border-radius: 6px;
    font-size: 13px;
}

.filter-section .filter-datetime {
    min-width: 120px;
    max-width: 150px;
}

.filter-section .btn-secondary {
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 筛选选择器样式优化 - 统一大小 */
.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--ant-border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: var(--ant-text-primary);
    min-width: 120px;
    max-width: 160px;
    width: 100%;
    cursor: pointer;
    flex-shrink: 0;
    height: 36px;
    line-height: 20px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--ant-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.filter-select:hover {
    border-color: var(--ant-primary);
}

/* APP应用数据接口预留样式提示 */
.api-reserved {
    font-size: 12px;
    color: var(--ant-text-tertiary);
    font-style: italic;
    margin-top: 5px;
}

.api-reserved i {
    color: var(--ant-success);
    margin-right: 5px;
}

/* ============================================
   用户列表专用样式
   ============================================ */

/* 高级筛选区域 */
.advanced-filters {
    width: 100%;
    margin-top: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 200px;
}

/* 针对注册时间筛选的特殊处理 */
.filter-group .datetime-input {
    width: 100%;
    min-width: 140px;
}

/* 注册时间筛选框容器 */
.filter-group > div {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* 确保datetime输入框不会太小 */
.filter-input.datetime-input {
    flex: 1;
    min-width: 140px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ant-text-secondary);
    white-space: nowrap;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--ant-border);
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    background: white;
    height: 36px;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: var(--ant-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.datetime-input {
    min-width: 140px;
    max-width: 160px;
}

.number-input {
    min-width: 120px;
}

/* 用户头像样式 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ant-divider);
    vertical-align: middle;
}

/* 侧边栏用户头像 - 优先级更高 */
.sidebar .user-avatar,
.sidebar-header + .user-info .user-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    border: 3px solid var(--ant-primary);
    box-sizing: border-box;
    overflow: visible;
}

.sidebar .user-avatar img,
.sidebar-header + .user-info .user-avatar img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.user-avatar:hover {
    border-color: var(--ant-primary);
    transform: scale(1.1);
    transition: all 0.2s;
}

/* 用户等级徽章 */
.level-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.level-badge.level-vip {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #8b4513;
    border: 1px solid #ffa500;
}

.level-badge.level-normal {
    background: var(--ant-divider);
    color: var(--ant-text-secondary);
    border: 1px solid var(--ant-border);
}

/* 状态徽章扩展 */
.status-badge.status-normal {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ant-success);
}

.status-badge.status-blocked {
    background: rgba(244, 67, 54, 0.1);
    color: var(--ant-error);
}

.status-badge.status-frozen {
    background: rgba(33, 150, 243, 0.1);
    color: var(--ant-info);
}

.status-badge.status-logout {
    background: rgba(158, 158, 158, 0.1);
    color: var(--ant-text-tertiary);
}

/* 操作按钮扩展 */
.btn-action.btn-bind-master {
    background: rgba(255, 152, 0, 0.1);
    color: var(--ant-warning);
}

.btn-action.btn-bind-master:hover {
    background: var(--ant-warning);
    color: white;
}

.btn-action.btn-promote-leader {
    background: rgba(156, 39, 176, 0.1);
    color: var(--ant-primary);
}

.btn-action.btn-promote-leader:hover {
    background: var(--ant-primary);
    color: white;
}

.btn-action.btn-demote-leader {
    background: rgba(121, 85, 72, 0.1);
    color: #795548;
}

.btn-action.btn-demote-leader:hover {
    background: #795548;
    color: white;
}

.btn-action.btn-unfreeze {
    background: rgba(33, 150, 243, 0.1);
    color: var(--ant-info);
}

.btn-action.btn-unfreeze:hover {
    background: var(--ant-info);
    color: white;
}

.btn-action.btn-restore {
    background: rgba(0, 150, 136, 0.1);
    color: #009688;
}

.btn-action.btn-restore:hover {
    background: #009688;
    color: white;
}

/* 表格列宽优化 - 用户列表（紧凑布局，无需左右滚动） */
.data-table th:nth-child(1) { /* 用户ID */
    width: 70px;
    min-width: 70px;
}

.data-table th:nth-child(2) { /* 用户昵称 */
    width: 70px;
    min-width: 70px;
}

.data-table th:nth-child(3) { /* 头像 */
    width: 40px;
    min-width: 40px;
    text-align: center;
}

.data-table th:nth-child(4) { /* 用户等级 */
    width: 50px;
    min-width: 50px;
}

.data-table th:nth-child(5) { /* 师傅ID */
    width: 70px;
    min-width: 70px;
}

.data-table th:nth-child(6) { /* 师傅昵称 */
    width: 60px;
    min-width: 60px;
}

.data-table th:nth-child(7) { /* 团长ID */
    width: 70px;
    min-width: 70px;
}

.data-table th:nth-child(8) { /* 团长昵称 */
    width: 60px;
    min-width: 60px;
}

.data-table th:nth-child(9) { /* 累计金币 */
    width: 70px;
    min-width: 70px;
    text-align: right;
}

.data-table th:nth-child(10) { /* 累计提现（元） */
    width: 80px;
    min-width: 80px;
    text-align: right;
}

.data-table th:nth-child(11) { /* 可提现金币 */
    width: 70px;
    min-width: 70px;
    text-align: right;
}

.data-table th:nth-child(12) { /* 状态 */
    width: 50px;
    min-width: 50px;
}

.data-table th:nth-child(13) { /* 注册时间 */
    width: 90px;
    min-width: 90px;
}

.data-table th:nth-child(14) { /* 登陆时间 */
    width: 90px;
    min-width: 90px;
}

.data-table th:nth-child(15) { /* 登录IP */
    width: 80px;
    min-width: 80px;
}

.data-table th:nth-child(16) { /* 封禁次数 */
    width: 50px;
    min-width: 50px;
    text-align: center;
}

.data-table th:nth-child(17) { /* 操作 */
    width: 80px;
    min-width: 80px;
}

.data-table td:nth-child(3),
.data-table td:nth-child(12),
.data-table td:nth-child(16) {
    text-align: center;
}

.data-table td:nth-child(9),
.data-table td:nth-child(10),
.data-table td:nth-child(11) {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: var(--ant-text-primary);
}

/* 金额数字样式 */
.amount-number {
    font-weight: 600;
    color: var(--ant-success);
}

.amount-number.zero {
    color: var(--ant-text-tertiary);
}

/* 分页增强功能 */
.pagination-controls .btn-primary {
    margin-left: 10px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-jump span,
.page-jump button {
    white-space: nowrap;
    flex-shrink: 0;
}

.page-jump-input {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--ant-border);
    border-radius: 4px;
    text-align: center;
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
    
    .datetime-input {
        min-width: calc(50% - 6px);
    }
    
    .filter-select {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-action {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 广告管理页面样式 */
.ad-management-container {
    margin-top: 20px;
}

/* 开关切换按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ant-border);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--ant-success);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--ant-success);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 状态文本 */
.status-text {
    font-size: 14px;
    font-weight: 500;
    vertical-align: middle;
}

.status-enabled {
    color: var(--ant-success);
}

.status-disabled {
    color: var(--ant-error);
}

/* 广告管理操作按钮 */
.btn-action {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-view-slot {
    background-color: var(--ant-info-bg);
    color: var(--ant-info);
    border-color: var(--ant-info-bg);
}

.btn-manage-code {
    background-color: #f3e5f5;
    color: var(--ant-primary);
    border-color: #e1bee7;
}

.btn-disable-false-ban {
    background-color: var(--ant-error-bg);
    color: var(--ant-error);
    border-color: var(--ant-error-bg);
}

.btn-action:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-view-slot:hover {
    background-color: var(--ant-info-bg);
    border-color: var(--ant-info);
}

.btn-manage-code:hover {
    background-color: #e1bee7;
    border-color: #ce93d8;
}

.btn-disable-false-ban:hover {
    background-color: var(--ant-error-bg);
    border-color: var(--ant-error);
}

/* 广告管理表格特定样式 */
.data-table-container.ad-management {
    margin-top: 15px;
}

.data-table-container.ad-management th,
.data-table-container.ad-management td {
    padding: 12px 8px;
}

/* 广告平台徽章 */
.ad-platform-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 12px;
    background-color: var(--ant-bg-page);
    color: var(--ant-text-secondary);
}

/* API预留接口提示 */
.api-reserved {
    margin-top: 20px;
    padding: 12px;
    background-color: var(--ant-bg-page);
    border: 1px solid var(--ant-border-soft);
    border-radius: 6px;
    color: var(--ant-text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-reserved i {
    color: var(--ant-info);
}

/* 代码位管理模态框 */
.code-slot-management {
    padding: 10px;
}

.code-slot-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.code-slot-table th,
.code-slot-table td {
    padding: 8px 12px;
    border: 1px solid var(--ant-border);
    text-align: center;
}

.code-slot-table th {
    background-color: var(--ant-bg-page);
    font-weight: 600;
    text-align: center;
}

.code-slot-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ant-border);
}

.code-slot-header p {
    margin: 5px 0;
}

.api-info {
    margin-top: 15px;
    color: var(--ant-text-secondary);
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--ant-border);
}

/* 响应式调整 - 广告管理特定 */
@media (max-width: 992px) {
    .btn-action {
        margin-right: 3px;
        padding: 3px 6px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .switch {
        width: 40px;
        height: 20px;
    }
    
    .slider:before {
        height: 12px;
        width: 12px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px);
    }
}