/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单样式 */
.sidebar {
    width: 240px;
    background: #001529;
    color: white;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px;
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 20px;
    color: white;
}

.menu {
    list-style: none;
}

.menu-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    width: 100%;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background-color: #1890ff;
}

.menu-item:hover a,
.menu-item:hover i {
    color: white;
}

.menu-item.active {
    background-color: #1890ff;
}

.menu-item.active a,
.menu-item.active i {
    color: white;
}

/* 确保链接在hover和active状态下都有正确的样式 */
.menu-item:hover a,
.menu-item.active:hover a {
    color: white;
}

.menu-item:hover i,
.menu-item.active:hover i {
    color: white;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 首页样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 32px;
    color: #1890ff;
}

/* 产品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-header h2 {
    color: #1890ff;
    font-size: 18px;
}

.product-icon {
    font-size: 24px;
    color: #1890ff;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.view-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #40a9ff;
}

/* 产品页面通用样式 */
.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #40a9ff;
}

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: #1890ff;
}

/* 统计卡片样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-card h4 {
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

th {
    background-color: #fafafa;
    font-weight: 500;
}

/* 按钮样式 */
button {
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #40a9ff;
}

.add-btn {
    background-color: #52c41a;
}

.add-btn:hover {
    background-color: #73d13d;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.search-box select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

/* 状态样式 */
.status {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    gap: 4px;
}

.status i {
    font-size: 12px;
}

.status.online {
    background-color: #52c41a;
    color: white;
}

.status.offline {
    background-color: #f5222d;
    color: white;
}

.status.active {
    background-color: #1890ff;
    color: white;
}

.status.ended {
    background-color: #d9d9d9;
    color: #666;
}

.status.processed {
    background-color: #52c41a;
    color: white;
}

.status.pending {
    background-color: #faad14;
    color: white;
}

/* 日志级别样式 */
.log-level-info {
    color: #1890ff;
}

.log-level-warning {
    color: #faad14;
}

.log-level-error {
    color: #f5222d;
}

/* 告警级别样式 */
.alert-level-high {
    color: #f5222d;
}

.alert-level-medium {
    color: #faad14;
}

.alert-level-low {
    color: #52c41a;
}

/* 网站管理样式 */
.website-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: #1890ff;
}

.website-table {
    width: 100%;
    margin-top: 20px;
}

.website-table th {
    background-color: #fafafa;
    font-weight: 500;
    padding: 12px;
    text-align: left;
}

.website-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #1890ff;
    color: white;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #40a9ff;
}

.action-btn.warning {
    background-color: #faad14;
}

.action-btn.warning:hover {
    background-color: #ffc53d;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* 配置标签页样式 */
.config-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 按钮样式 */
.cancel-btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    color: #666;
    cursor: pointer;
}

.confirm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #1890ff;
    color: white;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 10px;
    }

    .menu {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .menu-item {
        white-space: nowrap;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .website-table {
        display: block;
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .config-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        text-align: center;
    }
}

/* 个人中心样式 */
.user-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-dropdown-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown-item i {
    color: #1890ff;
    width: 20px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 5px 0;
}

/* 个人中心页面样式 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.profile-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.profile-info p {
    color: #666;
}

.profile-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-section h3 {
    margin-bottom: 20px;
    color: #1890ff;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-label {
    width: 120px;
    color: #666;
}

.info-value {
    flex: 1;
    color: #333;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.security-item:last-child {
    border-bottom: none;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-info i {
    color: #1890ff;
}

.security-status {
    color: #52c41a;
}

.security-status.warning {
    color: #faad14;
}

.security-status.danger {
    color: #f5222d;
}

/* 顶部导航栏样式 */
.top-nav {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: flex-end;
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-info i {
    font-size: 24px;
    margin-right: 8px;
    color: #666;
}

.username {
    font-size: 14px;
    color: #333;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    min-width: 150px;
    z-index: 1000;
}

.user-info:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
}

.user-dropdown a i {
    margin-right: 8px;
    font-size: 14px;
}

/* 用户管理页面样式 */
.user-management {
    padding: 20px;
}

.search-section {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.search-box select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box input {
    flex: 1;
}

.user-list table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-list th,
.user-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-list th {
    background: #f5f5f5;
    font-weight: 600;
}

.user-list tr:hover {
    background: #f9f9f9;
}

.role-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.role-tag.admin {
    background: #e6f7ff;
    color: #1890ff;
}

.role-tag.operator {
    background: #f6ffed;
    color: #52c41a;
}

.role-tag.auditor {
    background: #fff7e6;
    color: #fa8c16;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-tag.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-tag.disabled {
    background: #fff1f0;
    color: #f5222d;
}

.action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.action-btn:hover {
    color: #1890ff;
}

.action-btn.delete:hover {
    color: #f5222d;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-info {
    color: #666;
    font-size: 14px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 4px;
    width: 500px;
    max-width: 90%;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-footer .cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.modal-footer .submit {
    background: #1890ff;
    border: none;
    color: #fff;
}

.modal-footer .btn:hover {
    opacity: 0.9;
}

/* 个人信息页面样式 */
.profile-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.avatar i {
    font-size: 60px;
    color: #666;
}

.profile-info h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.profile-info .role {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.profile-details {
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.security-settings {
    margin-top: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.setting-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn[type="submit"],
.btn.submit {
    background: #1890ff;
    color: #fff;
}

.btn.cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 规则库样式 */
.rules-library {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.rules-library table {
    width: 100%;
    border-collapse: collapse;
}

.rules-library th,
.rules-library td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rules-library th {
    background: #f5f5f5;
    font-weight: 600;
}

.rules-library tr:hover {
    background: #f9f9f9;
}

.rules-library button {
    padding: 6px 12px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #1890ff;
    color: white;
}

.rules-library button:hover {
    background: #40a9ff;
}

/* 规则库搜索框样式 */
.rules-library .search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rules-library .search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rules-library .search-box select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

/* 规则库弹窗样式 */
#rules-library-modal .modal-content {
    width: 800px;
    max-width: 90%;
}

#rules-library-modal .modal-body {
    padding: 20px;
}

#rules-library-modal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* 规则类别标签样式 */
.rule-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.rule-category.web {
    background: #e6f7ff;
    color: #1890ff;
}

.rule-category.network {
    background: #f6ffed;
    color: #52c41a;
}

.rule-category.system {
    background: #fff7e6;
    color: #fa8c16;
}

.rule-category.custom {
    background: #f9f0ff;
    color: #722ed1;
}

/* 规则库信息样式 */
.rules-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rules-update-time {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rules-update-time::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #1890ff;
}

.protection-policies {
    padding: 20px;
}

.policy-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.policy-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 日志表格样式 */
.log-table-section {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-container {
    overflow-x: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.log-table th,
.log-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.log-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.log-table tbody tr:hover {
    background-color: #f8f9fa;
}

.log-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.log-level.info {
    background-color: #e3f2fd;
    color: #1976d2;
}

.log-level.warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.log-level.error {
    background-color: #ffebee;
    color: #d32f2f;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status.failed {
    background-color: #ffebee;
    color: #d32f2f;
}

.btn-detail {
    padding: 4px 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-detail:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.page-info {
    color: #6c757d;
    font-size: 14px;
} 