/**
 * 具象汇率大师 - 前台预警设置样式
 */

/* ============================================================
   容器
   ============================================================ */
.nextick-alert-settings-wrap {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.nextick-alert-settings-wrap * {
    box-sizing: border-box;
}

.nextick-alert-settings-wrap .alert-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nextick-alert-settings-wrap .alert-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* ============================================================
   添加表单
   ============================================================ */
.nextick-alert-form {
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
    margin-bottom: 24px;
}

.nextick-alert-form .form-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px 0;
}

.nextick-alert-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
}

.nextick-alert-form .form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 130px;
}

.nextick-alert-form .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nextick-alert-form .form-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: transparent !important;
    transition: border-color 0.2s;
    width: 100%;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
}

.nextick-alert-form .form-group input[type="number"],
.nextick-alert-form .form-group input[type="email"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: transparent !important;
    transition: border-color 0.2s;
    width: 100%;
}

/* 下拉选项保持可读 */
.nextick-alert-form .form-group select option {
    background: #fff;
    color: #333;
}

/* 暗色模式下拉选项 */
@media (prefers-color-scheme: dark) {
    .nextick-alert-form .form-group select option {
        background: #2a2a2a;
        color: #e0e0e0;
    }
}

.nextick-alert-form .form-group select:focus,
.nextick-alert-form .form-group input:focus {
    border-color: #4a6cf7;
    outline: none;
}

.nextick-alert-form .form-group input[type="number"] {
    width: 100%;
}

.nextick-alert-form .form-group input[type="email"] {
    min-width: 180px;
}

.nextick-alert-form .form-group .hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.nextick-alert-form .form-group-checkbox {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 6px;
    flex-wrap: wrap;
}

.nextick-alert-form .form-group-checkbox label {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nextick-alert-form .form-group-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.nextick-alert-form .btn-add {
    padding: 8px 28px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-end;
    min-width: 100px;
    height: 40px;
}

.nextick-alert-form .btn-add:hover {
    background: #3a5cd7;
}

.nextick-alert-form .btn-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   规则列表
   ============================================================ */
.nextick-alert-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px 0;
}

.nextick-alert-list-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.nextick-alert-list-header .count {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.nextick-alert-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
}

.nextick-alert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    min-width: 680px;
}

.nextick-alert-table thead th {
    background: #f5f7fa;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #e8ecf0;
    white-space: nowrap;
}

.nextick-alert-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

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

.nextick-alert-table tbody tr:hover td {
    background: #fafbfc;
}

.nextick-alert-table .pair {
    font-weight: 600;
    font-size: 14px;
}

.nextick-alert-table .rule-type {
    font-size: 12px;
    background: #f0f0f1;
    padding: 2px 12px;
    border-radius: 12px;
    color: #666;
    display: inline-block;
}

.nextick-alert-table .threshold {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.nextick-alert-table .notify-badge {
    font-size: 12px;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 4px;
}

.nextick-alert-table .notify-badge.email {
    background: #e8f5e9;
    color: #2e7d32;
}

.nextick-alert-table .notify-badge.sms {
    background: #e3f2fd;
    color: #0d47a1;
}

.nextick-alert-table .status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 12px;
    display: inline-block;
}

.nextick-alert-table .status-badge.enabled {
    background: #e8f5e9;
    color: #2e7d32;
}

.nextick-alert-table .status-badge.disabled {
    background: #ffebee;
    color: #c62828;
}

.nextick-alert-table .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nextick-alert-table .actions button {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}

.nextick-alert-table .actions .btn-toggle {
    color: #4a6cf7;
    border-color: #4a6cf7;
}

.nextick-alert-table .actions .btn-toggle:hover {
    background: #4a6cf7;
    color: #fff;
}

.nextick-alert-table .actions .btn-toggle.enabled {
    background: #4a6cf7;
    color: #fff;
}

.nextick-alert-table .actions .btn-toggle.enabled:hover {
    background: #3a5cd7;
}

.nextick-alert-table .actions .btn-delete {
    color: #e74c3c;
    border-color: #e74c3c;
}

.nextick-alert-table .actions .btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

.nextick-alert-table .empty-row td {
    text-align: center;
    color: #999;
    padding: 30px 14px;
    font-size: 14px;
}

/* ============================================================
   预警日志
   ============================================================ */
.nextick-log-section {
    margin-top: 30px;
}

.nextick-log-section .log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nextick-log-section .log-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.nextick-log-section .log-header .mark-all-btn {
    padding: 4px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: #555;
    transition: all 0.2s;
}

.nextick-log-section .log-header .mark-all-btn:hover {
    background: #f0f0f1;
}

.nextick-log-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
}

.nextick-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    min-width: 680px;
}

.nextick-log-table thead th {
    background: #f5f7fa;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #e8ecf0;
    white-space: nowrap;
}

.nextick-log-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

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

.nextick-log-table tbody tr:hover td {
    background: #fafbfc;
}

.nextick-log-table .log-pair {
    font-weight: 600;
    font-size: 14px;
}

.nextick-log-table .log-message {
    color: #555;
}

.nextick-log-table .log-price {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.nextick-log-table .log-time {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.nextick-log-table .log-status .unread-badge {
    font-size: 11px;
    background: #e74c3c;
    color: #fff;
    padding: 1px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.nextick-log-table .log-status .read-badge {
    font-size: 11px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.nextick-log-table .actions .btn-mark-read {
    padding: 4px 12px;
    border: 1px solid #4a6cf7;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: #4a6cf7;
    transition: all 0.2s;
}

.nextick-log-table .actions .btn-mark-read:hover {
    background: #4a6cf7;
    color: #fff;
}

.nextick-log-table .log-empty td {
    text-align: center;
    color: #999;
    padding: 30px 14px;
    font-size: 14px;
}

/* ============================================================
   消息提示
   ============================================================ */
.nextick-alert-message {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
}

.nextick-alert-message.success {
    display: block;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.nextick-alert-message.error {
    display: block;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

.nextick-alert-message.info {
    display: block;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
}

/* ============================================================
   加载动画
   ============================================================ */
.nextick-alert-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 8px;
    color: #999;
    font-size: 14px;
}

.nextick-alert-loading .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: alert-dot-bounce 1.4s ease-in-out infinite both;
}

.nextick-alert-loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.nextick-alert-loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes alert-dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   移动端优化 - 侧边栏 & 手机端
   ============================================================ */

/* 侧边栏适配 */
@media (max-width: 992px) {
    .nextick-alert-settings-wrap {
        padding: 0 2px;
        max-width: 100%;
    }

    .nextick-alert-form .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .nextick-alert-form .form-group {
        min-width: 100%;
        width: 100%;
    }

    .nextick-alert-form .form-group select,
    .nextick-alert-form .form-group input {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 8px 10px;
    }

    .nextick-alert-form .form-group input[type="number"] {
        width: 100%;
    }

    .nextick-alert-form .form-group input[type="email"] {
        min-width: 100%;
    }

    .nextick-alert-form .btn-add {
        width: 100%;
        height: 44px;
        justify-content: center;
    }

    .nextick-alert-table-wrap,
    .nextick-log-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        margin: 0;
    }

    .nextick-alert-table,
    .nextick-log-table {
        min-width: 480px;
        font-size: 13px;
    }

    .nextick-alert-table thead th,
    .nextick-alert-table tbody td,
    .nextick-log-table thead th,
    .nextick-log-table tbody td {
        padding: 6px 10px;
    }

    .nextick-alert-table .actions {
        flex-direction: row;
        gap: 4px;
    }

    .nextick-alert-table .actions button {
        padding: 3px 10px;
        font-size: 11px;
    }

    .nextick-alert-list-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .nextick-log-section .log-header {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* 手机端全面优化 - 表格转为卡片 */
@media (max-width: 768px) {
    .nextick-alert-settings-wrap {
        padding: 0 4px;
    }

    .nextick-alert-settings-wrap .alert-title {
        font-size: 18px;
        flex-wrap: wrap;
    }

    .nextick-alert-settings-wrap .alert-subtitle {
        font-size: 12px;
    }

    .nextick-alert-form {
        padding: 12px 10px;
        margin: 0 0 16px 0;
        border-radius: 6px;
    }

    .nextick-alert-form .form-title {
        font-size: 14px;
    }

    .nextick-alert-form .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .nextick-alert-form .form-group {
        min-width: 100%;
        width: 100%;
    }

    .nextick-alert-form .form-group select,
    .nextick-alert-form .form-group input {
        font-size: 16px;
        padding: 10px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .nextick-alert-form .form-group input[type="number"] {
        width: 100%;
    }

    .nextick-alert-form .form-group input[type="email"] {
        min-width: 100%;
    }

    .nextick-alert-form .form-group-checkbox {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 14px;
        padding-top: 2px;
    }

    .nextick-alert-form .form-group-checkbox label {
        font-size: 13px;
    }

    .nextick-alert-form .btn-add {
        width: 100%;
        height: 44px;
        font-size: 15px;
        justify-content: center;
    }

    /* 规则列表 - 卡片模式替代表格 */
    .nextick-alert-list-header {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 8px;
    }

    .nextick-alert-list-header h3 {
        font-size: 14px;
    }

    .nextick-alert-table-wrap {
        border: none;
        border-radius: 0;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .nextick-alert-table,
    .nextick-log-table {
        min-width: auto;
        font-size: 13px;
        display: block;
        border: none;
    }

    .nextick-alert-table thead,
    .nextick-log-table thead {
        display: none;
    }

    .nextick-alert-table tbody,
    .nextick-log-table tbody {
        display: block;
    }

    .nextick-alert-table tbody tr,
    .nextick-log-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e8ecf0;
        border-radius: 8px;
        padding: 12px 14px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    .nextick-alert-table tbody tr:last-child,
    .nextick-log-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .nextick-alert-table tbody td,
    .nextick-log-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border: none;
        border-bottom: 1px solid #f5f5f5;
        font-size: 13px;
        text-align: left;
        white-space: normal;
        word-break: break-word;
        background: transparent !important;
    }

    .nextick-alert-table tbody td:last-child,
    .nextick-log-table tbody td:last-child {
        border-bottom: none;
    }

    .nextick-alert-table tbody td::before,
    .nextick-log-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex-shrink: 0;
        margin-right: 12px;
        min-width: 70px;
    }

    .nextick-alert-table tbody td .pair {
        font-size: 14px;
        font-weight: 600;
    }

    .nextick-alert-table tbody td .rule-type {
        font-size: 11px;
        padding: 1px 10px;
    }

    .nextick-alert-table tbody td .threshold {
        font-size: 13px;
    }

    .nextick-alert-table tbody td .notify-badge {
        font-size: 11px;
        padding: 1px 8px;
    }

    .nextick-alert-table tbody td .status-badge {
        font-size: 11px;
        padding: 1px 10px;
    }

    .nextick-alert-table tbody td .actions {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        margin-top: 2px;
    }

    .nextick-alert-table tbody td .actions button {
        padding: 5px 14px;
        font-size: 12px;
        border-radius: 4px;
        flex: 0 1 auto;
        min-width: 60px;
        text-align: center;
    }

    /* 日志卡片 */
    .nextick-log-table tbody td .log-pair {
        font-size: 14px;
        font-weight: 600;
    }

    .nextick-log-table tbody td .log-message {
        font-size: 13px;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: break-word;
    }

    .nextick-log-table tbody td .log-price {
        font-size: 13px;
        font-weight: 500;
    }

    .nextick-log-table tbody td .log-time {
        font-size: 12px;
    }

    .nextick-log-table tbody td .log-status .unread-badge,
    .nextick-log-table tbody td .log-status .read-badge {
        font-size: 11px;
        padding: 1px 10px;
    }

    .nextick-log-table tbody td .actions .btn-mark-read {
        padding: 4px 14px;
        font-size: 12px;
    }

    /* 空状态 */
    .nextick-alert-table tbody .empty-row td,
    .nextick-log-table tbody .log-empty td {
        display: block;
        text-align: center;
        padding: 20px 14px;
        color: #999;
        font-size: 14px;
        border: none;
    }

    .nextick-alert-table tbody .empty-row td::before,
    .nextick-log-table tbody .log-empty td::before {
        display: none;
    }

    /* 日志头部 */
    .nextick-log-section {
        margin-top: 20px;
    }

    .nextick-log-section .log-header {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 8px;
    }

    .nextick-log-section .log-header h3 {
        font-size: 14px;
    }

    .nextick-log-section .log-header .mark-all-btn {
        padding: 4px 14px;
        font-size: 12px;
    }

    /* 消息提示 */
    .nextick-alert-message {
        font-size: 13px;
        padding: 10px 14px;
        margin: 0 0 12px 0;
        border-radius: 4px;
    }
}

/* 小屏手机 (iPhone SE / 折叠屏) */
@media (max-width: 420px) {
    .nextick-alert-settings-wrap .alert-title {
        font-size: 16px;
    }

    .nextick-alert-settings-wrap .alert-subtitle {
        font-size: 11px;
    }

    .nextick-alert-form {
        padding: 10px 8px;
    }

    .nextick-alert-form .form-group-checkbox {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .nextick-alert-table tbody tr,
    .nextick-log-table tbody tr {
        padding: 10px 10px;
    }

    .nextick-alert-table tbody td,
    .nextick-log-table tbody td {
        font-size: 12px;
        padding: 3px 0;
        flex-wrap: wrap;
        gap: 2px 0;
    }

    .nextick-alert-table tbody td::before,
    .nextick-log-table tbody td::before {
        min-width: 60px;
        font-size: 10px;
        margin-right: 8px;
    }

    .nextick-alert-table tbody td .actions button {
        font-size: 11px;
        padding: 4px 10px;
        min-width: 50px;
    }

    .nextick-alert-table tbody td .pair {
        font-size: 13px;
    }

    .nextick-log-table tbody td .log-message {
        font-size: 12px;
    }

    .nextick-log-table tbody td .log-price {
        font-size: 12px;
    }
}

/* ============================================================
   暗色模式兼容
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .nextick-alert-settings-wrap {
        color: #e0e0e0;
    }

    .nextick-alert-form {
        background: #2a2a2a;
        border-color: #444;
    }

    .nextick-alert-form .form-group label {
        color: #aaa;
    }

    .nextick-alert-form .form-group select,
    .nextick-alert-form .form-group input {
        background: #1e1e1e;
        border-color: #555;
        color: #e0e0e0;
    }

    .nextick-alert-form .form-group select:focus,
    .nextick-alert-form .form-group input:focus {
        border-color: #4a6cf7;
    }

    .nextick-alert-table-wrap,
    .nextick-log-table-wrap {
        border-color: #444;
    }

    .nextick-alert-table,
    .nextick-log-table {
        background: #1e1e1e;
    }

    .nextick-alert-table thead th,
    .nextick-log-table thead th {
        background: #2a2a2a;
        color: #aaa;
        border-bottom-color: #444;
    }

    .nextick-alert-table tbody td,
    .nextick-log-table tbody td {
        border-bottom-color: #333;
    }

    .nextick-alert-table tbody tr:hover td,
    .nextick-log-table tbody tr:hover td {
        background: #2a2a2a;
    }

    .nextick-alert-table .rule-type {
        background: #333;
        color: #aaa;
    }

    .nextick-alert-table .actions button {
        background: #2a2a2a;
        border-color: #555;
        color: #ccc;
    }

    .nextick-alert-table .actions .btn-toggle {
        color: #4a6cf7;
        border-color: #4a6cf7;
    }

    .nextick-alert-table .actions .btn-toggle:hover {
        background: #4a6cf7;
        color: #fff;
    }

    .nextick-alert-table .actions .btn-delete {
        color: #e74c3c;
        border-color: #e74c3c;
    }

    .nextick-alert-table .actions .btn-delete:hover {
        background: #e74c3c;
        color: #fff;
    }

    .nextick-log-section .log-header .mark-all-btn {
        background: #2a2a2a;
        border-color: #555;
        color: #ccc;
    }

    .nextick-log-table .actions .btn-mark-read {
        background: #2a2a2a;
        border-color: #4a6cf7;
        color: #4a6cf7;
    }

    .nextick-log-table .actions .btn-mark-read:hover {
        background: #4a6cf7;
        color: #fff;
    }

    .nextick-alert-message.success {
        background: #1a3a1a;
        border-color: #2e7d32;
        color: #81c784;
    }

    .nextick-alert-message.error {
        background: #3a1a1a;
        border-color: #c62828;
        color: #ef9a9a;
    }

    .nextick-alert-message.info {
        background: #1a2a3a;
        border-color: #0d47a1;
        color: #90caf9;
    }
}

/* ============================================================
   表格容器 - 可拖动滚动（触屏+鼠标）
   ============================================================ */
.nextick-alert-table-wrap,
.nextick-log-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scroll-behavior: smooth;
    position: relative;
    touch-action: pan-x;
}

.nextick-alert-table-wrap:active,
.nextick-log-table-wrap:active {
    cursor: grabbing;
}

/* 自定义滚动条 */
.nextick-alert-table-wrap::-webkit-scrollbar,
.nextick-log-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.nextick-alert-table-wrap::-webkit-scrollbar-track,
.nextick-log-table-wrap::-webkit-scrollbar-track {
    background: #f0f0f1;
    border-radius: 3px;
}

.nextick-alert-table-wrap::-webkit-scrollbar-thumb,
.nextick-log-table-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
    transition: background 0.2s;
}

.nextick-alert-table-wrap::-webkit-scrollbar-thumb:hover,
.nextick-log-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Firefox 滚动条 */
.nextick-alert-table-wrap,
.nextick-log-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f1;
}

/* 暗色模式滚动条 */
@media (prefers-color-scheme: dark) {
    .nextick-alert-table-wrap::-webkit-scrollbar-track,
    .nextick-log-table-wrap::-webkit-scrollbar-track {
        background: #2a2a2a;
    }
    .nextick-alert-table-wrap::-webkit-scrollbar-thumb,
    .nextick-log-table-wrap::-webkit-scrollbar-thumb {
        background: #555;
    }
    .nextick-alert-table-wrap::-webkit-scrollbar-thumb:hover,
    .nextick-log-table-wrap::-webkit-scrollbar-thumb:hover {
        background: #777;
    }
    .nextick-alert-table-wrap,
    .nextick-log-table-wrap {
        scrollbar-color: #555 #2a2a2a;
    }
}