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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== 布局结构 ==================== */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0d1117;
}

/* ==================== 顶部导航栏 ==================== */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #c9d1d9;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn:hover {
    color: #58a6ff;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
    color: #58a6ff;
}

.mobile-menu-btn:focus {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
    border-radius: 4px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #c9d1d9;
}

.logo-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

/* Dashboard页面弱化搜索框 */
#dashboard.active ~ * .search-box-dashboard,
.search-box-dashboard {
    max-width: 300px;
    opacity: 0.6;
    transform: scale(0.95);
}

.search-box-dashboard:focus-within {
    opacity: 1;
    transform: scale(1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: #6e7681;
}

.search-btn {
    background: transparent;
    border: none;
    color: #6e7681;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #58a6ff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.notification-container {
    position: relative;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 1.25rem;
}

.notification-icon:hover {
    background: rgba(88, 166, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f85149;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #30363d;
    background: #0d1117;
}

.notification-header > span {
    font-weight: 600;
    font-size: 1rem;
    color: #c9d1d9;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-action-btn {
    padding: 0.25rem 0.75rem;
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-action-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.3);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #0d1117;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #21262d;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.notification-item-main {
    flex: 1;
    cursor: pointer;
}

.notification-item:hover {
    background: #1c2128;
}

.notification-item.unread {
    background: rgba(88, 166, 255, 0.05);
    border-left: 3px solid #58a6ff;
}

.notification-item.unread:hover {
    background: rgba(88, 166, 255, 0.1);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-item-title {
    font-weight: 600;
    color: #c9d1d9;
    font-size: 0.9rem;
    flex: 1;
}

.notification-item-time {
    font-size: 0.75rem;
    color: #6e7681;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.notification-item-content {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}

.notification-item-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: #6e7681;
    font-size: 0.9rem;
}

.notification-delete-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-delete-btn:hover {
    background: rgba(248, 81, 73, 0.2);
    border-color: rgba(248, 81, 73, 0.3);
    transform: scale(1.1);
}

.user-info-menu {
    position: fixed;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    min-width: 200px;
    display: none;
    overflow: hidden;
}

.user-info-menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #c9d1d9;
}

.user-info-menu-item:hover {
    background: #1c2128;
}

.user-info-menu-item .menu-icon {
    font-size: 1.1rem;
}

.audit-content {
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9d1d9;
}

.user-role {
    font-size: 0.75rem;
    color: #6e7681;
    text-transform: uppercase;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #6e7681;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 6px;
    color: #f85149;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(248, 81, 73, 0.2);
    border-color: rgba(248, 81, 73, 0.3);
}

/* ==================== 左侧菜单栏 ==================== */
.admin-sidebar {
    width: 260px;
    background: rgba(22, 27, 34, 0.95);
    border-right: 1px solid #30363d;
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.admin-sidebar.mobile-open {
    z-index: 1002;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #c9d1d9;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
}

.nav-item:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

.nav-item.active {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border-left-color: #58a6ff;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== 主体内容区 ==================== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    margin-top: 64px;
    padding: 2rem;
    min-height: calc(100vh - 64px);
    background: #0d1117;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363d;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c9d1d9;
    margin: 0;
}

.page-subtitle {
    font-size: 0.9rem;
    color: #6e7681;
    margin-top: 0.5rem;
}

.content-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ==================== Dashboard区域 ==================== */
.dashboard-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #30363d;
}

.charts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #30363d;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 业务指标网格 - 大卡优先 */
.stats-grid-business {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

/* 系统状态网格 - 小卡 */
.stats-grid-system {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    max-width: 600px;
}

.stat-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

/* 大卡样式 - 强指标 */
.stat-card-large {
    padding: 1.75rem;
    min-height: 140px;
}

.stat-card-large .stat-icon {
    font-size: 3rem;
    width: 72px;
    height: 72px;
}

.stat-card-large .stat-value {
    font-size: 2.5rem;
}

.stat-card-large .stat-label {
    font-size: 1rem;
}

/* 小卡样式 - 弱指标 */
.stat-card-small {
    padding: 1rem;
    min-height: 100px;
}

.stat-card-small .stat-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
}

.stat-card-small .stat-value {
    font-size: 1.5rem;
}

.stat-card-small .stat-label {
    font-size: 0.85rem;
}

.stat-value-version {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #8b949e !important;
}

.stat-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.1);
}

/* 异常值警告样式 */
.stat-card.alert-zero .stat-value,
.stat-value.alert-zero {
    color: #d29922 !important;
    position: relative;
}

.stat-card.alert-zero .stat-value::after,
.stat-value.alert-zero::after {
    content: '⚠️';
    margin-left: 0.5rem;
    font-size: 0.8em;
    animation: pulse 2s infinite;
}

.stat-card.alert-zero {
    border-color: rgba(210, 153, 34, 0.5);
    background: rgba(210, 153, 34, 0.05);
}

.stat-card.alert-zero:hover {
    border-color: #d29922;
    box-shadow: 0 4px 12px rgba(210, 153, 34, 0.2);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.stat-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(88, 166, 255, 0.1);
}

.stat-success .stat-icon {
    background: rgba(56, 139, 253, 0.1);
}

.stat-info .stat-icon {
    background: rgba(88, 166, 255, 0.1);
}

.stat-warning .stat-icon {
    background: rgba(187, 128, 9, 0.1);
}

.stat-danger .stat-icon {
    background: rgba(248, 81, 73, 0.1);
}

.stat-secondary .stat-icon {
    background: rgba(139, 148, 158, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #c9d1d9;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6e7681;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.8rem;
    color: #6e7681;
}

.stat-sub {
    font-size: 0.85rem;
    color: #6e7681;
    margin-top: 0.5rem;
}

/* ==================== 表格样式 ==================== */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(22, 27, 34, 0.4);
    border-radius: 6px;
    overflow: hidden;
}

.data-table thead {
    background: rgba(22, 27, 34, 0.8);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #c9d1d9;
    border-bottom: 1px solid #30363d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(88, 166, 255, 0.05);
}

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

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6e7681;
    font-size: 0.9rem;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6e7681;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #238636;
    color: white;
}

.btn-primary:hover {
    background: #2ea043;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(35, 134, 54, 0.3);
}

.btn-secondary {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: #58a6ff;
}

.btn-secondary:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.3);
}

.btn-danger {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.btn-danger:hover {
    background: rgba(248, 81, 73, 0.2);
    border-color: rgba(248, 81, 73, 0.3);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==================== 状态徽章 ==================== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.status-inactive {
    background: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

.status-pending {
    background: rgba(187, 128, 9, 0.2);
    color: #d29922;
    border: 1px solid rgba(187, 128, 9, 0.3);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-danger {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.badge-warning {
    background: rgba(187, 128, 9, 0.2);
    color: #d29922;
}

.badge-info {
    background: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
}

/* ==================== 操作按钮 ==================== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.btn-edit:hover {
    background: rgba(88, 166, 255, 0.2);
}

.btn-delete {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.2);
}

.btn-delete:hover {
    background: rgba(248, 81, 73, 0.2);
}

.btn-reset {
    background: rgba(255, 167, 0, 0.1);
    color: #ffa700;
    border: 1px solid rgba(255, 167, 0, 0.2);
}

.btn-reset:hover {
    background: rgba(255, 167, 0, 0.2);
}

/* ==================== 文件上传 ==================== */
.upload-area {
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    background: rgba(22, 27, 34, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.05);
}

.upload-area.dragover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1rem;
    color: #c9d1d9;
    margin-bottom: 1rem;
}

.upload-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 6px;
    color: #58a6ff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: rgba(88, 166, 255, 0.2);
}

.file-input {
    display: none;
}

.file-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(22, 27, 34, 0.4);
    border-radius: 6px;
    display: none;
}

.file-info.active {
    display: block;
}

.file-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: #6e7681;
}

.detail-value {
    font-size: 0.9rem;
    color: #c9d1d9;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #161b22;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #1f6feb);
    transition: width 0.3s ease;
    width: 0%;
}

/* ==================== 版本历史 ==================== */
.version-history {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.history-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.history-version {
    font-weight: 600;
    color: #58a6ff;
}

.history-size {
    color: #6e7681;
    font-size: 0.85rem;
}

.history-date {
    color: #6e7681;
    font-size: 0.85rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.current-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================== 统计报表 ==================== */
.stats-overview {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(22, 27, 34, 0.4);
    border-radius: 8px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #6e7681;
    margin-bottom: 0.5rem;
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #58a6ff;
}

.chart-container {
    background: rgba(22, 27, 34, 0.4);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    height: 300px;
}

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

.charts-section .content-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #58a6ff;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.15);
    transition: all 0.3s ease;
}

.charts-section .content-card:hover {
    border-color: #79c0ff;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.25);
    transform: translateY(-2px);
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #30363d;
}

.chart-container {
    background: rgba(22, 27, 34, 0.4);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    height: 380px;
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"],
.modal.show,
.modal.active {
    display: flex !important;
}

.modal-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #30363d;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c9d1d9;
    margin: 0;
}

.close {
    font-size: 1.5rem;
    color: #6e7681;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #c9d1d9;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #30363d;
}

/* ==================== 消息提示 ==================== */
.message {
    position: fixed;
    top: 80px;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.message.success {
    border-color: #3fb950;
    background: rgba(35, 134, 54, 0.1);
}

.message.error {
    border-color: #f85149;
    background: rgba(248, 81, 73, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 底部 ==================== */
.admin-footer {
    background: rgba(22, 27, 34, 0.95);
    border-top: 1px solid #30363d;
    padding: 1.5rem 2rem;
    margin-left: 260px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    font-size: 0.85rem;
    color: #6e7681;
    margin: 0;
}

.footer-content a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #79c0ff;
}

/* ==================== 响应式设计 ==================== */
/* ==================== 响应式设计 ==================== */

/* 超大屏幕 (>= 1920px) */
@media (min-width: 1920px) {
    .admin-sidebar {
        width: 280px;
    }
    
    .admin-main {
        margin-left: 280px;
        padding: 2.5rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 大屏幕桌面 (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .admin-sidebar {
        width: 260px;
    }
    
    .admin-main {
        margin-left: 260px;
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕桌面/平板横屏 (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-main {
        margin-left: 240px;
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* 平板竖屏/小屏幕桌面 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .admin-sidebar {
        width: 220px;
        transform: translateX(-100%);
        z-index: 1002;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* 侧边栏遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        backdrop-filter: blur(4px);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .admin-footer {
        margin-left: 0;
    }
    
    .header-center {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .search-bar {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
    }
}

    /* 手机端 (< 768px) */
@media (max-width: 767px) {
    /* 顶部导航栏 */
    .admin-header {
        padding: 0 1rem;
        height: 56px;
        z-index: 1003;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 1.25rem;
    }
    
    .logo-text {
        display: none; /* 小屏幕隐藏文字，只显示图标 */
    }
    
    .header-center {
        display: none;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .user-info {
        display: none; /* 小屏幕隐藏用户信息 */
    }
    
    .user-details {
        display: none;
    }
    
    /* 侧边栏 */
    .admin-sidebar {
        width: 100%;
        max-width: 280px;
        transform: translateX(-100%);
        z-index: 1002;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        top: 56px;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* 侧边栏遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        backdrop-filter: blur(4px);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* 主内容区 */
    .admin-main {
        margin-left: 0;
        margin-top: 56px;
        padding: 1rem;
    }
    
    .admin-footer {
        margin-left: 0;
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    /* 页面标题 */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-subtitle {
        font-size: 0.85rem;
    }
    
    /* 内容卡片 */
    .content-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
    
    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
    }
    
    .stat-icon {
        font-size: 2rem;
        width: 56px;
        height: 56px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* 图表 */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-container {
        height: 250px !important;
    }
    
    /* 表格 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .data-table {
        font-size: 0.8rem;
        min-width: 600px; /* 确保表格可以横向滚动 */
    }
    
    .data-table thead {
        display: none; /* 移动端隐藏表头 */
    }
    
    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #30363d;
        border-radius: 6px;
        background: rgba(22, 27, 34, 0.6);
        padding: 0.75rem;
    }
    
    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #30363d;
        text-align: right;
    }
    
    .data-table tbody td:last-child {
        border-bottom: none;
    }
    
    .data-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #8b949e;
        text-align: left;
        flex: 0 0 40%;
    }
    
    /* 搜索栏 */
    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-bar > * {
        width: 100%;
    }
    
    .form-input,
    .form-select {
        width: 100%;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* 表单 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* 按钮 */
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* 安全选项卡 */
    .security-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .security-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        min-width: calc(50% - 0.25rem);
    }
    
    /* 模态框 */
    .modal {
        padding: 1rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 上传区域 */
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-text {
        font-size: 0.9rem;
    }
    
    /* 文件信息 */
    .file-info {
        padding: 1rem;
    }
    
    .file-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* 通知下拉 */
    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: auto;
        max-width: 400px;
    }
    
    /* 用户下拉菜单 */
    .user-dropdown {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: auto;
        max-width: 250px;
    }
    
    /* 空状态 */
    .empty-state {
        padding: 2rem 1rem;
        font-size: 0.85rem;
    }
}

/* 超小屏幕手机 (< 480px) */
@media (max-width: 479px) {
    .admin-header {
        padding: 0 0.75rem;
    }
    
    .admin-main {
        padding: 0.75rem;
    }
    
    .content-card {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-icon {
        font-size: 1.75rem;
        width: 48px;
        height: 48px;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 0.625rem;
    }
}

/* 横屏模式 (高度 < 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .admin-header {
        height: 48px;
    }
    
    .admin-sidebar {
        top: 48px;
    }
    
    .admin-main {
        margin-top: 48px;
        padding: 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .chart-container {
        height: 200px !important;
    }
}

/* 打印样式 */
@media print {
    .admin-sidebar,
    .admin-header,
    .admin-footer,
    .btn,
    .action-buttons {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
        margin-top: 0;
        padding: 0;
    }
    
    .content-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* ==================== 标签页内容 ==================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== 代码样式 ==================== */
code {
    background: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #58a6ff;
}

/* ==================== 安全防控样式 ==================== */
.security-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #30363d;
}

.security-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #8b949e;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.security-tab-btn:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.security-tab-btn.active {
    color: #58a6ff;
    border-bottom-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.security-tab-content {
    display: none;
}

.security-tab-content.active {
    display: block;
}

.behavior-profile-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.behavior-profile-card h3 {
    color: #58a6ff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-label {
    color: #8b949e;
    font-weight: 500;
    min-width: 100px;
}

.profile-value {
    color: #c9d1d9;
    word-break: break-all;
}

.config-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 8px;
}

.config-section h4 {
    color: #58a6ff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.config-item label {
    min-width: 200px;
    color: #c9d1d9;
}

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

.badge-danger {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.badge-warning {
    background: rgba(251, 188, 5, 0.2);
    color: #fbb305;
}

.badge-info {
    background: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
}

.badge-success {
    background: rgba(56, 139, 253, 0.2);
    color: #388bfd;
}

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

/* ==================== 卡密管理页改进 ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 筛选区域 */
.filter-section {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #30363d;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #c9d1d9;
    margin: 0;
}

.btn-link {
    background: transparent;
    border: none;
    color: #58a6ff;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #79c0ff;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-link.active .toggle-icon {
    transform: rotate(180deg);
}

.filter-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row-primary {
    margin-bottom: 0.5rem;
}

.filter-row-advanced {
    padding-top: 1rem;
    border-top: 1px solid #30363d;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-range,
.filter-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    color: #8b949e;
    font-size: 0.875rem;
    white-space: nowrap;
}

.range-separator {
    color: #8b949e;
    font-size: 0.875rem;
}

/* 表格区域 */
.table-section {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.table-fixed-header {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    position: relative;
}

.table-fixed-header thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(10px);
}

/* 卡密复制功能 */
.key-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-text {
    font-family: 'Courier New', monospace;
    color: #58a6ff;
    word-break: break-all;
}

.copy-btn {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 4px;
    color: #58a6ff;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.3);
}

.copy-btn.copied {
    background: rgba(35, 134, 54, 0.2);
    border-color: rgba(35, 134, 54, 0.3);
    color: #3fb950;
}

.copy-btn.copied::after {
    content: ' ✓';
}

/* 状态颜色规范 */
.status-badge.status-unused {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.status-badge.status-used {
    background: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

.status-badge.status-expired {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.status-badge.status-invalid {
    background: rgba(187, 128, 9, 0.2);
    color: #d29922;
    border: 1px solid rgba(187, 128, 9, 0.3);
}

/* ==================== 软件版本管理页改进 ==================== */
.upload-section,
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid #30363d;
    border-radius: 8px;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.version-hint,
.markdown-hint {
    font-size: 0.75rem;
    color: #8b949e;
    font-weight: normal;
}

.form-input:invalid {
    border-color: rgba(248, 81, 73, 0.5);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: rgba(35, 134, 54, 0.5);
}

.markdown-textarea {
    font-family: 'Courier New', monospace;
    min-height: 150px;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.btn.btn-uploading {
    background: rgba(88, 166, 255, 0.3);
    pointer-events: none;
}

.btn.btn-success {
    background: rgba(35, 134, 54, 0.2);
    border-color: rgba(35, 134, 54, 0.3);
    color: #3fb950;
}

/* ==================== 历史版本列表独立区域 ==================== */
.history-section {
    margin-top: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #30363d;
}

.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(22, 27, 34, 0.4);
    border-radius: 6px;
    overflow: hidden;
}

.history-table thead {
    background: rgba(22, 27, 34, 0.8);
}

.history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #c9d1d9;
    border-bottom: 1px solid #30363d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.history-table tbody tr {
    transition: background 0.3s ease;
}

.history-table tbody tr:hover {
    background: rgba(88, 166, 255, 0.05);
}

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

.history-version {
    font-weight: 600;
    color: #58a6ff;
    font-family: 'Courier New', monospace;
}

.current-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

/* ==================== IP白名单页改进 ==================== */
.whitelist-warning {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d29922;
}

.warning-icon {
    font-size: 1.25rem;
}

.warning-text {
    font-size: 0.9rem;
}

.whitelist-add-section {
    margin-bottom: 1.5rem;
}

.whitelist-import-export {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 状态三态样式 */
.status-badge.status-effective {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.status-badge.status-expired {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.status-badge.status-invalid {
    background: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

/* ==================== 数据清理页改进 ==================== */
.cleanup-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid #30363d;
    border-radius: 6px;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(88, 166, 255, 0.05);
}

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

/* 预计影响预览 */
.cleanup-preview {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #58a6ff;
}

.preview-icon {
    font-size: 1.1rem;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-label {
    color: #8b949e;
}

.preview-value {
    color: #c9d1d9;
    font-weight: 600;
}

/* 危险操作按钮 */
.btn-danger-cleanup {
    background: rgba(248, 81, 73, 0.2) !important;
    border: 2px solid #f85149 !important;
    color: #f85149 !important;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-danger-cleanup:hover {
    background: rgba(248, 81, 73, 0.3) !important;
    border-color: #f85149 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

/* 清理摘要 */
.cleanup-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(35, 134, 54, 0.1);
    border: 1px solid rgba(35, 134, 54, 0.3);
    border-radius: 8px;
}

.cleanup-summary h3 {
    color: #3fb950;
    margin-bottom: 1rem;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    padding: 0.75rem;
    background: rgba(22, 27, 34, 0.6);
    border-radius: 4px;
    border: 1px solid #30363d;
}

.summary-item-label {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.summary-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3fb950;
}

/* ==================== 操作日志页改进 ==================== */
.audit-search-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363d;
}

.audit-details-cell {
    position: relative;
}

.details-preview {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details-toggle {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #58a6ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.details-toggle:hover {
    color: #79c0ff;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.details-expanded {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

.details-content {
    color: #c9d1d9;
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-word;
}

.json-details {
    margin: 0;
    padding: 0.5rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #58a6ff;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.json-details-full {
    margin: 0;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #58a6ff;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.ip-address-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ip-block-btn {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 4px;
    color: #f85149;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    line-height: 1;
}

.ip-block-btn:hover {
    background: rgba(248, 81, 73, 0.2);
    border-color: rgba(248, 81, 73, 0.3);
    transform: scale(1.1);
}

.audit-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: #c9d1d9;
}

/* ==================== 动态内容样式补充 ==================== */
/* MFA管理 */
.mfa-status {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mfa-qr-code {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.mfa-secret {
    font-family: 'Courier New', monospace;
    color: #58a6ff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0.75rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 6px;
    text-align: center;
    margin: 1rem 0;
}

/* 警告信息框 */
.warning-box {
    background: rgba(210, 153, 34, 0.15);
    border: 1px solid rgba(210, 153, 34, 0.4);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.warning-box strong {
    color: #d29922;
    display: block;
    margin-bottom: 0.5rem;
}

/* 信息框 */
.info-box {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.4);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.info-box strong {
    color: #58a6ff;
    display: block;
    margin-bottom: 0.5rem;
}

/* 字符计数器 */
.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #6e7681;
    margin-top: 0.25rem;
}

.char-count.warning {
    color: #d29922;
}

.char-count.danger {
    color: #f85149;
}

/* 复选框样式 */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.form-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #58a6ff;
}

.form-checkbox span:not(.checkmark) {
    color: #c9d1d9;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 单选框组 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid #30363d;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: rgba(88, 166, 255, 0.05);
    border-color: rgba(88, 166, 255, 0.3);
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #58a6ff;
}

.radio-label input[type="radio"]:checked + span {
    color: #58a6ff;
    font-weight: 600;
}

.radio-label span {
    color: #c9d1d9;
    font-size: 0.9rem;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    font-size: 2rem;
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 搜索结果部分 */
.search-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-section h4 {
    color: #58a6ff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 统计数据网格 */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.statistics-grid .stat-card {
    min-height: 100px;
}

/* 页面分隔符 */
.page-break-inside-avoid {
    page-break-inside: avoid;
}

/* 滚动条优化 */
.modal-body::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-body::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.detail-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #30363d;
}

.detail-section h4 {
    color: #58a6ff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* ==================== 模态框增强样式 ==================== */
/* 模态框入场动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal[style*="display: block"],
.modal.show {
    animation: modalFadeIn 0.3s ease-out;
}

.modal[style*="display: block"] .modal-content,
.modal.show .modal-content {
    animation: modalScaleIn 0.3s ease-out;
}

/* 模态框响应式优化 */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 200px);
    }

    .modal-footer {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1 1 100%;
    }
}

/* 模态框大号尺寸 */
.modal-content-large {
    max-width: 900px !important;
}

.modal-content-xl {
    max-width: 1200px !important;
}

/* 模态框小号尺寸 */
.modal-content-small {
    max-width: 400px !important;
}

/* 模态框全屏（移动端） */
@media (max-width: 640px) {
    .modal-content-fullscreen {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
}

/* 模态框关闭按钮增强 */
.modal-header .close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-header .close:hover {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
}

/* ==================== 表格增强样式 ==================== */
/* 表格行选中效果 */
.data-table tbody tr.selected {
    background: rgba(88, 166, 255, 0.15);
    border-left: 3px solid #58a6ff;
}

/* 表格排序指示器 */
.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
}

.data-table th.sortable:hover {
    background: rgba(88, 166, 255, 0.05);
}

.data-table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 0.75rem;
    opacity: 0.3;
    font-size: 0.8rem;
}

.data-table th.sortable.sort-asc::after {
    content: '▲';
    opacity: 1;
    color: #58a6ff;
}

.data-table th.sortable.sort-desc::after {
    content: '▼';
    opacity: 1;
    color: #58a6ff;
}

/* 表格加载状态 */
.table-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(88, 166, 255, 0.2);
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 表格无数据状态美化 */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state::before {
    content: '📭';
    font-size: 3rem;
    opacity: 0.5;
}

/* ==================== 分页控件增强 ==================== */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(22, 27, 34, 0.4);
    border-top: 1px solid #30363d;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pagination-info {
    color: #8b949e;
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 6px;
    color: #58a6ff;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

/* ==================== 工具提示 ==================== */
.tooltip {
    position: absolute;
    background: rgba(22, 27, 34, 0.98);
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #c9d1d9;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #30363d;
}

/* ==================== 进度条增强 ==================== */
.progress-bar {
    position: relative;
    overflow: visible;
}

.progress-fill {
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

/* 进度百分比文本 */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================== 徽章增强 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-success::before {
    background: #3fb950;
}

.badge-danger::before {
    background: #f85149;
}

.badge-warning::before {
    background: #d29922;
}

.badge-info::before {
    background: #58a6ff;
}

/* ==================== 卡片悬停效果 ==================== */
.content-card {
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==================== 输入框焦点效果增强 ==================== */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

/* ==================== 按钮加载状态 ==================== */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-loading > * {
    opacity: 0;
}

/* ==================== 代码块样式 ==================== */
pre {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #c9d1d9;
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* ==================== 滚动条全局优化 ==================== */
* {
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #0d1117;
}

*::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
    border: 2px solid #0d1117;
}

*::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

*::-webkit-scrollbar-corner {
    background: #0d1117;
}

/* ==================== 性能优化 ==================== */
/* 减少重绘 */
.stat-card,
.content-card,
.modal,
.nav-item {
    will-change: transform;
}

/* GPU加速 */
.modal-content,
.notification-dropdown,
.sidebar-overlay {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==================== 可访问性增强 ==================== */
/* 键盘焦点可见性 */
*:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
