/* 客服后台 - 登录 & 工作台 */
:root {
    --cs-primary: #1e9fff;
    --cs-primary-dark: #0d8aee;
    --cs-bg: #f2f3f5;
    --cs-sidebar: #20222a;
    --cs-border: #e6e6e6;
    --cs-text-muted: #999;
    --cs-header-h: 50px;
    --cs-list-w: 300px;
    --cs-info-w: 280px;
    /* 工作台聊天区（低对比、护眼） */
    --cs-chat-bg: #e9ecef;
    --cs-chat-visitor-bg: #f7f8fa;
    --cs-chat-visitor-text: #4a5568;
    --cs-chat-agent-bg: #d4e3f0;
    --cs-chat-agent-text: #2d4a5e;
    --cs-chat-input-bg: #f3f4f6;
}

* {
    box-sizing: border-box;
}

/* ========== 登录页 ========== */
body.cs-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f4f8;
}

.cs-login-page {
    display: flex;
    min-height: 100vh;
}

/* 左侧品牌 */
.cs-login-brand {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(145deg, #0b6bcb 0%, #1e9fff 42%, #36cfc9 100%);
    overflow: hidden;
}

.cs-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.cs-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    color: #fff;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.brand-desc {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.brand-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.brand-features .layui-icon {
    font-size: 18px;
    color: #a7f3d0;
}

.brand-deco .deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deco-1 {
    width: 280px;
    height: 280px;
    right: -80px;
    top: 10%;
}

.deco-2 {
    width: 160px;
    height: 160px;
    left: -40px;
    bottom: 15%;
}

.deco-3 {
    width: 80px;
    height: 80px;
    right: 25%;
    bottom: 8%;
    background: rgba(255, 255, 255, 0.1);
}

/* 右侧表单区 */
.cs-login-main {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #fff;
    box-shadow: -8px 0 40px rgba(15, 40, 80, 0.06);
}

.cs-login-card {
    width: 100%;
    max-width: 360px;
}

.cs-login-card-head {
    margin-bottom: 36px;
}

.cs-login-card-head .mobile-logo {
    display: none;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e9fff, #36cfc9);
    border-radius: 14px;
    color: #fff;
    font-size: 28px;
    line-height: 52px;
    text-align: center;
}

.cs-login-card-head h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.cs-login-card-head p {
    margin: 0;
    font-size: 14px;
    color: #8c8c9a;
}

.cs-login-form .cs-field {
    margin-bottom: 22px;
}

.cs-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a5e;
}

.cs-input-wrap {
    position: relative;
}

.cs-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #b0b0bc;
    z-index: 1;
    pointer-events: none;
    transition: color 0.2s;
}

.cs-input-wrap .cs-input {
    height: 46px;
    line-height: 46px;
    padding-left: 44px;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cs-input-wrap .cs-input:hover {
    border-color: #c5d9f0;
}

.cs-input-wrap .cs-input:focus {
    border-color: var(--cs-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.12);
}

.cs-input-wrap:focus-within .cs-input-icon {
    color: var(--cs-primary);
}

.cs-login-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.cs-login-captcha-input {
    flex: 1;
    min-width: 0;
}

.cs-login-captcha-img {
    flex-shrink: 0;
    width: 120px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #f5f7fa;
    object-fit: cover;
}

.cs-login-captcha-img:hover {
    border-color: #1e9fff;
}

.cs-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.cs-forgot {
    font-size: 13px;
    color: var(--cs-primary);
    text-decoration: none;
}

.cs-forgot:hover {
    text-decoration: underline;
}

.cs-login-btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #1e9fff 0%, #0d7de8 100%) !important;
    box-shadow: 0 4px 14px rgba(30, 159, 255, 0.35);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s;
}

.cs-login-btn:hover {
    box-shadow: 0 6px 20px rgba(30, 159, 255, 0.45);
    transform: translateY(-1px);
}

.cs-login-btn.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.cs-login-btn .layui-icon-right {
    font-size: 14px;
    margin-top: 1px;
}

.cs-login-footer {
    margin-top: 28px;
    text-align: center;
}

.cs-login-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a0a0b0;
    padding: 8px 14px;
    background: #f5f7fa;
    border-radius: 8px;
}

.cs-login-tip .layui-icon {
    font-size: 14px;
    color: #faad14;
}

.cs-login-copyright {
    margin-top: 32px;
    font-size: 12px;
    color: #c0c4cc;
    text-align: center;
}

/* 登录页响应式 */
@media (max-width: 900px) {
    .cs-login-page {
        flex-direction: column;
    }

    .cs-login-brand {
        display: none;
    }

    .cs-login-main {
        width: 100%;
        flex: 1;
        box-shadow: none;
        padding: 32px 24px;
        background: linear-gradient(180deg, #f0f7ff 0%, #fff 35%);
    }

    .cs-login-card-head .mobile-logo {
        display: block;
    }
}

@media (max-width: 400px) {
    .cs-login-card-head h1 {
        font-size: 22px;
    }

    .cs-login-main {
        padding: 24px 20px;
    }
}

/* 工作台布局 */
body.cs-workbench-body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--cs-bg);
}

.cs-workbench {
    display: flex;
    height: 100vh;
    width: 100%;
}

.cs-sidebar {
    width: 64px;
    flex-shrink: 0;
    background: var(--cs-sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.cs-sidebar .nav-item.nav-bottom {
    margin-top: auto;
}

.cs-sidebar .nav-item {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cs-sidebar .nav-item:hover,
.cs-sidebar .nav-item.active {
    background: rgba(30, 159, 255, 0.25);
    color: #1e9fff;
}

.cs-sidebar .nav-item {
    position: relative;
}

.cs-nav-unread-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}

.cs-conv-unread {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.cs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.cs-topbar {
    min-height: var(--cs-header-h);
    background: #fff;
    border-bottom: 1px solid var(--cs-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px;
    flex-shrink: 0;
}

.cs-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.cs-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cs-topbar-actions .layui-btn {
    margin-left: 0 !important;
}

.cs-topbar-page-title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-nav-overlay {
    display: none;
}

.cs-topbar .mobile-menu-btn {
    display: none;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    line-height: 36px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.cs-topbar .mobile-menu-btn:active {
    background: #e8eaed;
}

.cs-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.cs-agent-meta {
    min-width: 0;
}

.cs-agent-meta-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-agent-meta-sub {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e9fff, #5fb878);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 1;
}

.cs-agent-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cs-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.cs-status-dot.online {
    background: #5fb878;
}

.cs-body {
    flex: 1;
    display: flex;
    min-height: 0;
}

.cs-conv-list {
    width: var(--cs-list-w);
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--cs-border);
    display: flex;
    flex-direction: column;
}

.cs-conv-list-header {
    padding: 12px;
    border-bottom: 1px solid var(--cs-border);
}

.cs-conv-items {
    flex: 1;
    overflow-y: auto;
}

.cs-conv-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}

.cs-conv-item-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cs-conv-item-body {
    flex: 1;
    min-width: 0;
}

.cs-visitor-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eaed;
}

.cs-visitor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-visitor-avatar--text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    user-select: none;
}

.cs-visitor-avatar--md {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
}

.cs-chat-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cs-chat-header-avatar-wrap {
    flex-shrink: 0;
}

.cs-chat-header-avatar-wrap:empty {
    display: none;
}

.cs-conv-item:hover,
.cs-conv-item.active {
    background: #f0f9ff;
}

.cs-conv-item-body .row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.cs-conv-item-body .visitor-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-conv-item-body .conv-time {
    font-size: 12px;
    color: var(--cs-text-muted);
    flex-shrink: 0;
}

.cs-conv-item-body .preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-conv-item-body .meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--cs-chat-bg);
}

.cs-chat-header {
    height: 52px;
    background: #f7f8fa;
    border-bottom: 1px solid #dfe3e8;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cs-chat-header [style*="font-weight:600"] {
    color: #3d4451 !important;
}

.cs-chat-header [style*="color:#999"] {
    color: #8b95a5 !important;
}

.cs-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    background: var(--cs-chat-bg);
}

.cs-msg {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    max-width: 78%;
}

.cs-msg.visitor {
    align-self: flex-start;
}

.cs-msg.agent {
    align-self: flex-end;
    margin-left: auto;
}

.cs-msg.system {
    align-self: center;
    max-width: 90%;
}

.cs-msg .bubble {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
    box-shadow: none;
}

.cs-msg.visitor .bubble {
    background: var(--cs-chat-visitor-bg);
    border: 1px solid #dde1e6;
    color: var(--cs-chat-visitor-text);
}

.cs-msg.agent .bubble {
    background: var(--cs-chat-agent-bg);
    border: 1px solid #c5d5e4;
    color: var(--cs-chat-agent-text);
}

.cs-msg.system .bubble {
    background: rgba(255, 255, 255, 0.55);
    border: none;
    color: #8b95a5;
    font-size: 12px;
    text-align: center;
}

.cs-msg.has-image .bubble {
    padding: 6px;
    background: var(--cs-chat-visitor-bg);
    border-color: #dde1e6;
}

.cs-msg.agent.has-image .bubble {
    background: var(--cs-chat-agent-bg);
    border-color: #c5d5e4;
}

.cs-msg-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: min(320px, 100%);
}

.cs-msg-image-link {
    display: block;
    line-height: 0;
}

.cs-msg-image {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    object-fit: cover;
    cursor: zoom-in;
    background: #fff;
}

.cs-msg-images .cs-msg-image-link:only-child .cs-msg-image {
    max-width: min(240px, 100%);
    width: auto;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.cs-chat-toolbar .layui-icon.is-disabled {
    cursor: not-allowed;
}

.cs-msg .msg-meta {
    font-size: 11px;
    color: #9aa3b0;
    margin-top: 5px;
    padding: 0 4px;
}

.cs-msg.agent .msg-meta {
    text-align: right;
}

.cs-chat-input {
    background: #f0f2f5;
    border-top: 1px solid #dfe3e8;
    padding: 12px 16px 14px;
}

.cs-chat-input .layui-textarea {
    background: var(--cs-chat-input-bg);
    border-color: #d8dce2;
    color: #4a5568;
    border-radius: 8px;
    resize: none;
}

.cs-chat-input .layui-textarea:focus {
    border-color: #b8c5d4 !important;
    box-shadow: 0 0 0 2px rgba(90, 130, 170, 0.12);
}

.cs-chat-input .layui-textarea::placeholder {
    color: #a8b0bc;
}

.cs-chat-compose {
    position: relative;
}

.cs-paste-preview {
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #e8ecf1;
    border: 1px dashed #c5ced8;
    border-radius: 8px;
}

.cs-paste-preview[hidden] {
    display: none !important;
}

.cs-paste-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-paste-preview-item {
    position: relative;
    flex-shrink: 0;
}

.cs-paste-preview-item img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #dde1e6;
}

.cs-paste-preview-item .cs-paste-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    padding: 0;
}

.cs-paste-preview-item .cs-paste-preview-remove:hover {
    background: rgba(0, 0, 0, 0.75);
}

.cs-paste-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #dde1e6;
}

.cs-paste-preview-hint {
    font-size: 12px;
    color: #8b95a5;
    line-height: 1.4;
}

.cs-paste-preview-clear-all {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #6b8cae;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

.cs-paste-preview-clear-all:hover {
    text-decoration: underline;
}

.cs-chat-input .cs-btn-send {
    background: #6b8cae;
    border-color: #6b8cae;
    color: #fff;
}

.cs-chat-input .cs-btn-send:hover:not(:disabled) {
    background: #5a7a9a;
    border-color: #5a7a9a;
}

.cs-chat-input .cs-btn-send:disabled {
    background: #c5ccd6;
    border-color: #c5ccd6;
    color: #f5f6f8;
}

.cs-chat-toolbar-wrap {
    position: relative;
    margin-bottom: 8px;
}

.cs-chat-toolbar {
    display: flex;
    gap: 10px;
    color: #8b95a5;
}

.cs-chat-toolbar i {
    cursor: pointer;
    font-size: 22px;
    transition: color 0.15s;
}

.cs-chat-toolbar i:hover:not(.is-disabled) {
    color: #6b8cae;
}

.cs-chat-toolbar i.is-active {
    color: #6b8cae;
}

/* 表情面板（仿微信浮层） */
.cs-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    width: 360px;
    max-width: calc(100vw - 48px);
    background: #f7f8fa;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(30, 45, 60, 0.12);
    z-index: 120;
    overflow: hidden;
}

.cs-emoji-panel[hidden] {
    display: none !important;
}

.cs-emoji-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 10px 0;
    border-bottom: 1px solid #e8eaed;
    background: #fff;
}

.cs-emoji-tab {
    padding: 6px 12px;
    font-size: 12px;
    color: #6b7280;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    user-select: none;
    border: none;
    background: transparent;
}

.cs-emoji-tab:hover {
    color: #4a5568;
    background: #f3f4f6;
}

.cs-emoji-tab.is-active {
    color: #4a6fa5;
    font-weight: 600;
    background: #f7f8fa;
}

.cs-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.cs-emoji-item {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: background 0.12s, transform 0.1s;
}

.cs-emoji-item:hover {
    background: #e8ecf1;
    transform: scale(1.12);
}

.cs-emoji-item:active {
    transform: scale(0.95);
}

.cs-info-panel {
    width: var(--cs-info-w);
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid var(--cs-border);
    overflow-y: auto;
    padding: 16px;
}

.cs-info-panel h3 {
    font-size: 14px;
    margin: 0 0 12px;
    color: #333;
}

.cs-info-row {
    font-size: 13px;
    margin-bottom: 10px;
    color: #666;
}

.cs-info-row label {
    color: var(--cs-text-muted);
    display: block;
    margin-bottom: 2px;
}

.cs-mobile-back {
    display: none;
    cursor: pointer;
    margin-right: 8px;
    font-size: 18px;
}

/* 移动端 */
@media (max-width: 992px) {
    .cs-info-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    body.cs-workbench-body {
        --cs-header-h: 50px;
    }

    body.cs-workbench-body.cs-nav-open {
        overflow: hidden;
    }

    .cs-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(15, 23, 42, 0.45);
        -webkit-tap-highlight-color: transparent;
    }

    body.cs-nav-open .cs-nav-overlay {
        display: block;
    }

    .cs-sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1050;
        width: 64px;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    body.cs-nav-open .cs-sidebar {
        transform: translateX(0);
    }

    .cs-topbar {
        padding: 6px 8px;
        gap: 6px;
    }

    .cs-topbar-left {
        gap: 8px;
    }

    .cs-topbar .mobile-menu-btn {
        display: inline-flex;
    }

    .cs-agent-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .cs-agent-meta-hint {
        display: none;
    }

    .cs-agent-meta-sub {
        font-size: 11px;
    }

    .cs-agent-meta-title {
        font-size: 13px;
        max-width: 42vw;
    }

    .cs-topbar-actions {
        gap: 4px;
    }

    .cs-topbar-actions .layui-btn {
        padding: 0 9px;
        height: 32px;
        line-height: 32px;
    }

    .cs-topbar-btn-label {
        display: none;
    }

    .cs-topbar-status .layui-icon {
        margin-right: 0 !important;
    }

    /* 工作台左侧已可进资料，右侧隐藏重复入口 */
    body.cs-workbench-body .cs-topbar-action-profile {
        display: none;
    }

    .cs-conv-list {
        width: 100%;
        position: absolute;
        left: 0;
        top: var(--cs-header-h);
        bottom: 0;
        z-index: 10;
        transition: transform 0.25s ease;
    }

    .cs-workbench.show-chat .cs-conv-list {
        transform: translateX(-100%);
    }

    .cs-workbench.show-chat .cs-chat-panel {
        display: flex;
    }

    .cs-body {
        position: relative;
    }

    .cs-chat-panel {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 11;
    }

    .cs-workbench.show-chat .cs-chat-panel {
        transform: translateX(0);
    }

    .cs-mobile-back {
        display: inline-block;
    }

    .cs-msg {
        max-width: 88%;
    }
}

@media (max-width: 380px) {
    .cs-agent-meta-title {
        max-width: 36vw;
    }

    .cs-topbar-actions .layui-btn {
        padding: 0 7px;
        min-width: 32px;
    }
}

/* 管理页（坐席 / 分组） */
.cs-admin-page {
    flex: 1;
    overflow: auto;
    padding: 16px;
    background: var(--cs-bg);
    min-height: 0;
}

.cs-admin-toolbar {
    background: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cs-admin-toolbar .layui-input {
    width: 220px;
}

.cs-admin-table-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
}

/* 管理列表页（坐席 / 分组等统一布局） */
.cs-list-page,
.cs-agent-page {
    padding: 20px 24px 28px;
}

.cs-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cs-page-header h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.cs-page-header p {
    margin: 0;
    font-size: 13px;
    color: #8c8c9a;
}

.cs-page-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-meta-badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
}

.cs-meta-warn {
    color: #d48806;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}

.cs-meta-stat {
    text-align: center;
    padding: 8px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cs-meta-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--cs-primary);
    line-height: 1.2;
}

.cs-meta-label {
    font-size: 12px;
    color: #999;
}

.cs-help-collapse {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
}

.cs-help-collapse summary {
    padding: 10px 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.cs-help-collapse summary::-webkit-details-marker {
    display: none;
}

.cs-help-collapse summary .layui-icon {
    color: #1e9fff;
    margin-right: 6px;
}

.cs-help-collapse-body {
    padding: 0 12px 12px;
}

.cs-help-collapse-body .cs-help-banner {
    margin-bottom: 0;
}

.cs-help-collapse-body .cs-help-grid {
    padding: 0 4px 4px;
}

.cs-help-collapse-body .cs-help-panel {
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.cs-help-collapse-body .cs-help-body {
    display: block !important;
    padding: 0;
}

.cs-list-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(15, 40, 80, 0.06);
}

.cs-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafbfc;
}

.cs-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.cs-search-box .layui-icon-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    z-index: 1;
    pointer-events: none;
}

.cs-search-box .layui-input {
    height: 38px;
    line-height: 38px;
    padding-left: 36px;
    border-radius: 8px;
    border-color: #e8ecf1;
    background: #fff;
}

.cs-search-box .layui-input:focus {
    border-color: var(--cs-primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.1) !important;
}

.cs-btn-primary {
    background: linear-gradient(135deg, #1e9fff 0%, #0d7de8 100%) !important;
    border: none !important;
    border-radius: 8px !important;
}

.cs-table-container {
    padding: 4px 8px 12px;
}

.cs-table-container .layui-table-view {
    border: none;
    margin: 0;
}

.cs-table-container .layui-table-header,
.cs-table-container .layui-table-body {
    border-color: #f0f0f0;
}

.cs-table-container .layui-table thead th {
    background: #f8fafc !important;
    color: #666;
    font-weight: 600;
    font-size: 13px;
}

.cs-table-container .layui-table tbody tr:hover {
    background: #f8fbff !important;
}

/* 覆盖 layui 表格单元格单行裁切，避免头像/标签/操作图标显示不全 */
.cs-table-container .layui-table-cell,
.cs-admin-table-wrap .layui-table-cell {
    height: auto !important;
    min-height: 38px;
    line-height: 1.5 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    padding: 10px 12px !important;
}

.cs-table-container .layui-table-fixed .layui-table-cell,
.cs-admin-table-wrap .layui-table-fixed .layui-table-cell {
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

.cs-table-container .layui-table-cell .layui-icon,
.cs-admin-table-wrap .layui-table-cell .layui-icon {
    font-size: inherit;
    line-height: 1;
}

.cs-cell-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.cs-cell-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1e9fff, #36cfc9);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 1;
}

.cs-cell-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-cell-avatar-group {
    background: linear-gradient(145deg, #597ef7, #9254de);
    font-size: 18px;
}

.cs-cell-avatar-group .layui-icon {
    font-size: 20px;
    color: #fff;
}

.cs-cell-user-text .name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.cs-cell-user-text .sub {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

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

.cs-role-admin {
    color: #531dab;
    background: #f9f0ff;
    border: 1px solid #d3adf7;
}

.cs-role-supervisor {
    color: #0958d9;
    background: #e6f4ff;
    border: 1px solid #91caff;
}

.cs-role-agent {
    color: #389e0d;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}

.cs-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cs-tag {
    font-size: 12px;
    padding: 2px 8px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cs-tag-count {
    background: #e6f4ff;
    color: #0958d9;
    border-color: #91caff;
    font-weight: 500;
}

.cs-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.cs-status-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.cs-status-on {
    color: #389e0d;
    background: #f6ffed;
}

.cs-status-on i {
    background: #52c41a;
}

.cs-status-off {
    color: #8c8c8c;
    background: #f5f5f5;
}

.cs-status-off i {
    background: #bfbfbf;
}

.cs-presence-online {
    color: #389e0d;
    background: #f6ffed;
}

.cs-presence-online i {
    background: #52c41a;
}

.cs-presence-busy {
    color: #d48806;
    background: #fffbe6;
}

.cs-presence-busy i {
    background: #faad14;
}

.cs-presence-offline {
    color: #8c8c8c;
    background: #f5f5f5;
}

.cs-presence-offline i {
    background: #bfbfbf;
}

.cs-text-muted {
    color: #bbb;
    font-size: 12px;
}

.cs-text-time {
    font-size: 13px;
    color: #666;
}

.cs-action-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cs-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #666;
    transition: all 0.15s;
}

.cs-action-link:hover {
    background: #e6f4ff;
    color: var(--cs-primary);
}

.cs-action-link.cs-action-warn:hover {
    background: #fff7e6;
    color: #fa8c16;
}

.cs-action-link .layui-icon {
    font-size: 18px;
}

/* 管理弹窗（新建 / 编辑 / 成员等） */
.cs-layer-form .layui-layer-title {
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.cs-modal-form,
.cs-agent-modal-form {
    padding: 8px 20px 16px;
}

.cs-modal-section {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #eee;
}

.cs-modal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

.cs-modal-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-primary);
    margin-bottom: 14px;
    padding-left: 8px;
    border-left: 3px solid var(--cs-primary);
}

.cs-modal-form .layui-form-label,
.cs-agent-modal-form .layui-form-label {
    width: 88px;
}

.cs-modal-form .layui-input-block,
.cs-agent-modal-form .layui-input-block {
    margin-left: 108px;
}

.cs-member-modal .cs-member-tip {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    background: #f8fbff;
    border-radius: 8px;
    border: 1px solid #d6ebff;
}

.cs-member-modal .cs-member-tip p {
    margin: 0 0 6px;
}

.cs-member-modal .cs-member-tip p:last-child {
    margin-bottom: 0;
}

.cs-member-checkboxes {
    max-height: 320px;
}

.cs-modal-footer {
    text-align: right;
    padding-top: 8px;
}

.cs-group-checkboxes {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fafbfc;
}

.cs-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.cs-check-item input {
    margin: 0;
}

/* 占位 / 空状态页 */
.cs-empty-state {
    max-width: 480px;
    margin: 48px auto;
    padding: 48px 32px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(15, 40, 80, 0.06);
}

.cs-empty-state .layui-icon {
    font-size: 56px;
    color: var(--cs-primary);
    opacity: 0.85;
}

.cs-empty-state h2 {
    margin: 20px 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.cs-empty-state p {
    margin: 0;
    font-size: 14px;
    color: #8c8c9a;
    line-height: 1.6;
}

.cs-empty-state .layui-btn {
    margin-top: 24px;
    border-radius: 8px;
}

.cs-conv-query-toolbar .cs-filter-select {
    width: 140px;
    height: 38px;
    border-radius: 8px;
}

.cs-embed-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-family: Consolas, monospace;
    font-size: 13px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    resize: vertical;
    background: #f8fafc;
}

.cs-conv-detail-modal {
    padding: 0 4px 8px;
}

.cs-conv-detail-meta {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.cs-conv-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 13px;
}

.cs-conv-dl > div {
    display: flex;
    gap: 8px;
}

.cs-conv-dl dt {
    margin: 0;
    color: #999;
    flex-shrink: 0;
    min-width: 48px;
}

.cs-conv-dl dd {
    margin: 0;
    color: #333;
    word-break: break-all;
}

.cs-conv-detail-msgs {
    max-height: 52vh;
    overflow-y: auto;
    padding: 4px 0;
}

.cs-msg-log-item {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f5f5;
}

.cs-msg-log-item.cs-msg-visitor {
    background: #f0f9ff;
    border-left: 3px solid #1e9fff;
}

.cs-msg-log-item.cs-msg-agent {
    background: #f6ffed;
    border-left: 3px solid #52c41a;
}

.cs-msg-log-item.cs-msg-system {
    background: #fffbe6;
    border-left: 3px solid #faad14;
}

.cs-msg-log-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.cs-msg-log-head span {
    font-weight: 600;
    color: #666;
}

.cs-msg-log-body {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.cs-form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.4;
}

.cs-msg-query-toolbar {
    flex-wrap: wrap;
    gap: 8px;
}

.cs-msg-query-toolbar .cs-filter-input-num {
    width: 100px;
}

.cs-msg-query-toolbar .cs-filter-date {
    width: 128px;
}

.cs-msg-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.cs-msg-pill-visitor {
    background: #e0f2fe;
    color: #0369a1;
}

.cs-msg-pill-agent {
    background: #f1f5f9;
    color: #475569;
}

.cs-msg-pill-system {
    background: #fef3c7;
    color: #b45309;
}

.cs-msg-pill--tag {
    flex-shrink: 0;
    padding: 2px 6px;
    font-size: 11px;
}

.cs-msg-sender-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.cs-msg-sender-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #475569;
}

.cs-msg-detail-modal,
.cs-oplog-detail-modal {
    padding: 4px 8px 12px;
}

.cs-oplog-detail-subtitle {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.cs-oplog-request {
    max-height: 36vh;
    margin: 0;
}

.cs-oplog-method {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    vertical-align: middle;
}

.cs-oplog-method-post {
    background: #dbeafe;
    color: #1d4ed8;
}

.cs-oplog-method-get {
    background: #e2e8f0;
    color: #475569;
}

.cs-oplog-method-del {
    background: #fee2e2;
    color: #b91c1c;
}

.cs-oplog-method-default {
    background: #f1f5f9;
    color: #64748b;
}

.cs-oplog-path {
    font-size: 12px;
    word-break: break-all;
}

.cs-msg-detail-body {
    margin-top: 12px;
    max-height: 40vh;
    overflow-y: auto;
}

.cs-msg-detail-text {
    margin: 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.cs-msg-detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cs-msg-detail-images img {
    max-width: 160px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.cs-action-danger {
    color: #dc2626 !important;
}

/* ---------- 功能中心（/admin/more）全屏铺满主区域，不产生整页滚动 ---------- */
.cs-admin-page.cs-hub-page {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cs-hub-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 20px;
    -webkit-overflow-scrolling: touch;
}

.cs-hub-section {
    margin-bottom: 20px;
}

.cs-hub-section:last-child {
    margin-bottom: 0;
}

.cs-hub-section-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

.cs-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.cs-hub-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cs-hub-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.cs-hub-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

.cs-hub-card-icon .layui-icon {
    font-size: 22px;
}

.cs-hub-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-hub-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.cs-hub-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.cs-hub-card-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: #94a3b8;
}

.cs-hub-empty {
    padding: 48px 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
}

.cs-hub-empty p {
    margin: 0 0 16px;
}

@media (max-width: 768px) {
    .cs-hub-body {
        padding: 12px;
    }

    .cs-hub-grid {
        grid-template-columns: 1fr;
    }

    .cs-list-page,
    .cs-agent-page {
        padding: 12px;
    }

    .cs-setting-page.cs-list-page {
        padding: 12px 12px 0;
    }

    .cs-page-header {
        flex-direction: column;
    }

    .cs-list-toolbar {
        padding: 12px;
    }

    .cs-search-box {
        max-width: none;
        width: 100%;
    }
}

.cs-form-popup {
    padding: 20px 24px 8px;
}

.cs-form-popup .layui-form-label {
    width: 90px;
}

.cs-form-popup .layui-input-block {
    margin-left: 120px;
}

.cs-group-checkboxes {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 12px;
}

.cs-group-checkboxes label {
    display: block;
    margin: 6px 0;
    cursor: pointer;
}

/* 账号设置页 */
.cs-profile-page {
    padding: 20px 24px 32px;
}

.cs-profile-layout {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.cs-profile-side {
    position: sticky;
    top: 16px;
}

.cs-profile-hero {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(15, 40, 80, 0.06);
    border: 1px solid rgba(30, 159, 255, 0.08);
}

.cs-avatar-uploader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    cursor: pointer;
    border-radius: 50%;
}

.cs-avatar-uploader:hover .cs-avatar-mask {
    opacity: 1;
}

.cs-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e9fff 0%, #36cfc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(30, 159, 255, 0.25);
}

.cs-profile-avatar .avatar-text {
    line-height: 1;
}

.cs-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-avatar-mask {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
}

.cs-avatar-mask .layui-icon {
    font-size: 28px;
}

.cs-profile-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.cs-profile-account {
    margin: 0 0 12px;
    font-size: 13px;
    color: #8c8c9a;
}

.cs-profile-role-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    color: #1e9fff;
    background: #f0f9ff;
    border-radius: 20px;
    border: 1px solid #d6ebff;
}

.cs-avatar-hint {
    margin: 16px 0 0;
    font-size: 12px;
    color: #b0b0bc;
    line-height: 1.5;
}

.cs-profile-main {
    min-width: 0;
}

.cs-profile-panel {
    background: #fff;
    border-radius: 12px;
    padding: 22px 26px 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(15, 40, 80, 0.06);
    border: 1px solid #f0f0f0;
}

.cs-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cs-panel-title .layui-icon {
    font-size: 18px;
    color: var(--cs-primary);
}

.cs-panel-sub {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    font-style: normal;
}

.cs-profile-fields {
    padding-bottom: 8px;
}

.cs-field-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.cs-field-row > label {
    font-size: 13px;
    color: #666;
    text-align: right;
    margin: 0;
}

.cs-field-value {
    min-width: 0;
}

.cs-field-readonly .cs-value-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.cs-field-tag {
    margin-left: 10px;
    font-size: 11px;
    color: #999;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.cs-input-modern {
    height: 42px;
    line-height: 42px;
    border-radius: 8px;
    border-color: #e8ecf1;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cs-input-modern:hover {
    border-color: #c5d9f0;
}

.cs-input-modern:focus {
    border-color: var(--cs-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.1) !important;
}

.cs-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 16px;
}

.cs-btn-save {
    height: 44px;
    line-height: 44px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 15px;
    background: linear-gradient(135deg, #1e9fff 0%, #0d7de8 100%) !important;
    box-shadow: 0 4px 14px rgba(30, 159, 255, 0.3);
}

.cs-btn-back {
    height: 44px;
    line-height: 44px;
    padding: 0 24px;
    border-radius: 8px;
}

.cs-profile-form .layui-form-item {
    margin-bottom: 0;
}

/* 功能说明面板 */
.cs-help-panel {
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
    border: 1px solid #d6ebff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.06);
}

.cs-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background: rgba(30, 159, 255, 0.06);
}

.cs-help-header:hover {
    background: rgba(30, 159, 255, 0.1);
}

.cs-help-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a5fb4;
}

.cs-help-title .layui-icon-about {
    font-size: 18px;
}

.cs-help-tag {
    font-size: 11px;
    font-weight: 400;
    color: #1e9fff;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #d6ebff;
    font-style: normal;
}

.cs-help-arrow {
    font-size: 14px;
    color: #1e9fff;
    transition: transform 0.2s;
}

.cs-help-panel.is-collapsed .cs-help-arrow {
    transform: rotate(-90deg);
}

.cs-help-panel.is-collapsed .cs-help-body {
    display: none;
}

.cs-help-body {
    padding: 18px 20px 20px;
}

.cs-help-grid {
    display: grid;
    gap: 16px;
}

.cs-help-block h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-help-block h4 .layui-icon {
    color: var(--cs-primary);
    font-size: 16px;
}

.cs-help-block p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.cs-help-block ul,
.cs-help-block ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.75;
    color: #555;
}

.cs-help-block li {
    margin-bottom: 6px;
}

.cs-help-block li:last-child {
    margin-bottom: 0;
}

.cs-help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cs-help-table th,
.cs-help-table td {
    border: 1px solid #e8ecf1;
    padding: 8px 12px;
    text-align: left;
}

.cs-help-table th {
    background: #f5f9fc;
    color: #666;
    font-weight: 600;
}

.cs-help-tip {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px 14px !important;
}

.cs-help-tip h4 .layui-icon {
    color: #faad14 !important;
}

.cs-help-steps {
    list-style: decimal;
}

.cs-help-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f0f9ff;
    border: 1px solid #d6ebff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.65;
    color: #555;
}

.cs-help-banner > .layui-icon {
    font-size: 20px;
    color: #1e9fff;
    margin-top: 2px;
    flex-shrink: 0;
}

.cs-help-banner a {
    color: #1e9fff;
    margin-left: 4px;
}

.cs-help-banner a:hover {
    text-decoration: underline;
}

.cs-member-tip {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #1e9fff;
}

.cs-member-tip p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.cs-member-tip p:last-child {
    margin-bottom: 0;
}

.cs-form-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

@media (min-width: 900px) {
    .cs-help-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-help-block:first-child,
    .cs-help-block.cs-help-tip,
    .cs-help-block:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .cs-profile-layout {
        grid-template-columns: 1fr;
    }

    .cs-profile-side {
        position: static;
    }

    .cs-profile-hero {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 20px;
    }

    .cs-avatar-uploader {
        margin: 0;
        width: 80px;
        height: 80px;
    }

    .cs-profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }

    .cs-profile-name,
    .cs-profile-account,
    .cs-profile-role-badge,
    .cs-avatar-hint {
        flex: 1;
        min-width: 120px;
    }

    .cs-avatar-hint {
        width: 100%;
        margin-top: 0;
    }

    .cs-field-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cs-field-row > label {
        text-align: left;
    }

    .cs-profile-page {
        padding: 12px;
    }
}

/* 快捷回复管理 Tab */
.cs-qr-tabs {
    display: flex;
    gap: 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid #eef1f4;
    margin-bottom: 12px;
}

.cs-qr-tab {
    padding: 6px 14px;
    font-size: 13px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.cs-qr-tab.is-active {
    color: #4a6fa5;
    border-color: #b8cce8;
    background: #eef4fa;
    font-weight: 600;
}

/* 数据统计 */
.cs-stats-page .cs-stats-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cs-stats-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cs-stats-range .layui-input {
    width: 140px;
    height: 32px;
}

.cs-range-btn.is-active {
    background: #6b8cae !important;
    color: #fff !important;
}

.cs-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cs-stats-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cs-stats-card-wide {
    grid-column: span 2;
}

.cs-stats-card .num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d4a5e;
    line-height: 1.2;
}

.cs-stats-card .label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.cs-stats-subtitle {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* 工作台快捷回复浮层 */
.cs-quick-reply-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    width: 320px;
    max-width: calc(100vw - 48px);
    max-height: 280px;
    background: #f7f8fa;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(30, 45, 60, 0.12);
    z-index: 121;
    overflow: hidden;
}

.cs-quick-reply-panel[hidden] {
    display: none !important;
}

.cs-qr-panel-body {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.cs-qr-panel-section-title {
    font-size: 11px;
    color: #9ca3af;
    padding: 6px 8px 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cs-qr-panel-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    cursor: pointer;
    border: 1px solid #eef1f4;
}

.cs-qr-panel-item:hover {
    border-color: #b8cce8;
    background: #f0f6fc;
}

.cs-qr-panel-item .t {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.cs-qr-panel-item .c {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-qr-panel-empty {
    padding: 16px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* 系统设置（全屏 + 移动端） */
.cs-setting-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding: 20px 24px 0;
    box-sizing: border-box;
}

.cs-setting-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cs-setting-form-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}

.cs-setting-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 16px 18px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.cs-setting-card-full {
    grid-column: 1 / -1;
}

.cs-setting-card-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.cs-setting-badge {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

.cs-setting-row {
    display: grid;
    grid-template-columns: 1fr minmax(100px, 160px);
    gap: 10px 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.cs-setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cs-setting-row-switch {
    align-items: center;
}

.cs-setting-row-main {
    min-width: 0;
}

.cs-setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 4px;
}

.cs-setting-desc {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.cs-setting-input {
    width: 100%;
    max-width: 160px;
    height: 38px;
}

.cs-setting-row-switch .layui-form-switch {
    margin: 0;
    justify-self: end;
}

.cs-setting-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.cs-setting-hint code {
    font-size: 11px;
    word-break: break-all;
}

.cs-setting-dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 10px 16px;
    font-size: 13px;
}

.cs-setting-dl dt {
    color: #6b7280;
    margin: 0;
}

.cs-setting-dl dd {
    margin: 0;
    color: #1f2937;
    word-break: break-all;
}

.cs-setting-gateway-status.cs-gateway-ok {
    color: #059669;
    font-weight: 600;
}

.cs-setting-gateway-status.cs-gateway-warn {
    color: #d97706;
    font-weight: 600;
}

.cs-setting-gateway-status.cs-gateway-bad {
    color: #dc2626;
    font-weight: 600;
}

.cs-setting-actions {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -24px;
    padding: 12px 24px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(245, 246, 248, 0) 0%, rgba(245, 246, 248, 0.92) 24%, #f5f6f8 100%);
    border-top: 1px solid #e8eaed;
}

.cs-setting-actions .layui-btn-fluid {
    max-width: 360px;
    margin: 0 auto;
    display: block;
    height: 42px;
    line-height: 42px;
    border-radius: 10px;
}

.cs-setting-readonly-tip {
    text-align: center;
    margin: 0;
}

.cs-setting-card-readonly {
    background: #f9fafb;
}

@media (max-width: 992px) {
    .cs-setting-form-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cs-setting-page {
        padding: 12px 12px 0;
    }

    .cs-setting-form-body {
        gap: 12px;
        padding-bottom: 12px;
    }

    .cs-setting-card {
        padding: 14px 14px 10px;
        border-radius: 8px;
    }

    .cs-setting-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
        padding: 14px 0;
    }

    .cs-setting-input {
        max-width: none;
    }

    .cs-setting-row-switch {
        grid-template-columns: 1fr auto;
    }

    .cs-setting-row-switch .layui-form-switch {
        justify-self: end;
    }

    .cs-setting-dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .cs-setting-dl dt {
        font-weight: 500;
        padding-top: 8px;
    }

    .cs-setting-dl dt:first-child {
        padding-top: 0;
    }

    .cs-setting-actions {
        margin: 0 -12px;
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .cs-setting-actions .layui-btn-fluid {
        max-width: none;
    }
}

/* 敏感词 — 过滤策略面板 */
.cs-sensitive-policy-wrap {
    padding: 4px 0 20px;
}

.cs-sensitive-policy-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.cs-sensitive-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
    border: 1px solid #e8eaed;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.cs-sensitive-stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cs-sensitive-stat-icon--words {
    background: #eff6ff;
    color: #2563eb;
}

.cs-sensitive-stat-icon--hits {
    background: #fff7ed;
    color: #ea580c;
}

.cs-sensitive-stat-icon--status {
    background: #f0fdf4;
    color: #16a34a;
}

.cs-sensitive-stat-card--status .cs-sensitive-stat-icon--status {
    background: #f3f4f6;
    color: #6b7280;
}

.cs-sensitive-stat-card--status.is-on .cs-sensitive-stat-icon--status {
    background: #f0fdf4;
    color: #16a34a;
}

.cs-sensitive-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cs-sensitive-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.cs-sensitive-stat-label {
    font-size: 12px;
    color: #6b7280;
}

.cs-sensitive-status-pill {
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
}

.cs-sensitive-stat-card--status.is-on .cs-sensitive-status-pill {
    color: #059669;
}

.cs-sensitive-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cs-sensitive-policy-card {
    margin: 0;
}

.cs-sensitive-policy-card--wide {
    grid-column: 1 / -1;
}

.cs-sensitive-enable-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0 12px;
}

.cs-sensitive-enable-text {
    flex: 1;
    min-width: 0;
}

.cs-sensitive-enable-text .cs-setting-label {
    margin-bottom: 6px;
}

.cs-sensitive-policy-tip {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #eef2f6;
}

.cs-sensitive-policy-tip .layui-icon {
    margin-right: 4px;
    color: #94a3b8;
}

.cs-sensitive-policy-tip strong {
    color: #475569;
    font-weight: 600;
}

.cs-sensitive-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cs-sensitive-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    text-align: left;
    background: #fafbfc;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.cs-sensitive-mode-card:hover {
    border-color: #c7d2fe;
    background: #fff;
}

.cs-sensitive-mode-card.is-active {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.cs-sensitive-mode-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cs-sensitive-mode-card-icon--block {
    background: #fef2f2;
    color: #dc2626;
}

.cs-sensitive-mode-card.is-active .cs-sensitive-mode-card-icon--block {
    background: #fee2e2;
}

.cs-sensitive-mode-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.cs-sensitive-mode-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.cs-sensitive-replace-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: start;
}

.cs-sensitive-char-input {
    width: 72px;
    height: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.cs-sensitive-preview-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.cs-sensitive-preview-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-sensitive-preview-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-sensitive-preview-tag {
    flex-shrink: 0;
    width: 40px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: right;
}

.cs-sensitive-preview-bubble {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
}

.cs-sensitive-preview-bubble--orig {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.cs-sensitive-preview-bubble--result {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-weight: 500;
}

.cs-sensitive-preview-hit {
    color: #dc2626;
    background: #fef2f2;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 600;
}

.cs-sensitive-preview-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.cs-sensitive-preview-label strong {
    color: #4f46e5;
    font-weight: 600;
}

.cs-sensitive-policy-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cs-sensitive-policy-footer-hint {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.cs-sensitive-policy-footer .layui-btn {
    min-width: 140px;
    height: 40px;
    line-height: 40px;
    border-radius: 8px;
}

.cs-sensitive-word-textarea {
    min-height: 200px;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
}

.cs-sensitive-word-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

@media (max-width: 992px) {
    .cs-sensitive-policy-stats {
        grid-template-columns: 1fr;
    }

    .cs-sensitive-policy-grid {
        grid-template-columns: 1fr;
    }

    .cs-sensitive-mode-cards {
        grid-template-columns: 1fr;
    }

    .cs-sensitive-replace-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cs-sensitive-policy-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cs-sensitive-policy-footer .layui-btn {
        width: 100%;
    }
}
