/* =============================================
 - 智能求职助手聊天页面样式
   ============================================= */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.qcc-header-sub-logo{display:none !important}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f6fa;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
.drop-title:first-of-type {
   display:none !important
}
.tyc-header-nav-item.home::before{ display:none !important}
/* ===== 整体布局 ===== */
.ai-layout {
    display: flex;
    height: calc(100vh - 65px);
    width: 100%;
    overflow: hidden;
}

/* 顶部导航栏左侧 260px 与侧边栏对齐 */
.navbar {
    background: linear-gradient(to right, #f7f8fa 260px, #fff 260px) !important;
    border-bottom: none !important;
}
/* 导航栏底部边框仅从 260px 开始 */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 260px;
    right: 0;
    height: 1px;
    background: #e8ecf0;
}
.zkcb{width:30px;height:30px;position:fixed;top: 16px;    left: 280px;;z-index:9999;  display:flex;
    justify-content:center; /* 水平居中 */
    align-items:center;     /* 垂直居中 */
    transition: left 0.25s ease;
    cursor: pointer;
}
.zkcb img{width: 16px;    height: 16px}
.zkcb:hover{background:#F3F6F9;border-radius:8px}

.navbar.sidebar-collapsed .logo{display:none}
/* 悬停提示 - 右侧弹出 */
.zkcb::after {
    content: '收起侧边栏';
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
    pointer-events: none;
}
.zkcb:hover::after {
    opacity: 1;
    visibility: visible;
}
/* ===== 左侧边栏 ===== */
.ai-sidebar {
    width: 260px;
    min-width: 260px;
    background: #f7f8fa;
    #border-right: 1px solid #e8ecf0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease;
}
.navbar.sticky-top .logo {
    position: fixed !important;
    left: 14px !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 52px !important;
    z-index: 100 !important;
}
.navbar.sticky-top .logo img { width: 221px !important; height:31px !important; }
.qcc-header-sub-logo {
   display:none
}
.ai-sidebar-top {
    padding: 0px 14px 16px;
    flex-shrink: 0;
}

.ai-new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #4DB6AC;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.ai-new-chat-btn:hover {
    background: #3da89e;
    box-shadow: 0 2px 12px rgba(77, 182, 172, 0.35);
}

.ai-new-chat-btn:active {
    transform: scale(0.97);
}

.ai-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ai-new-chat-btn{
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}
.ai-new-chat-btn:hover {
    background: linear-gradient(135deg, #096dd9 0%, #0550ae 100%);
    box-shadow: 0 2px 12px rgba(24, 144, 255, 0.35);
}
.ai-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.ai-menu-item:hover {
    background: #eef2fb;
    #color: #355EB7;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(24, 144, 255, 0.16);
}

.ai-menu-item span {
    flex: 1;
}

.ai-menu-arrow {
    color: #999;
    transition: transform 0.2s;
}

.ai-sidebar-divider {
    height: 1px;
    background: #e0e4e8;
    margin: 8px 14px;
    flex-shrink: 0;
}

.ai-history-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.ai-sidebar-history {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 16px;
}
.ai-history-dots {
    display: none;
}

.ai-sidebar-history::-webkit-scrollbar {
    width: 4px;
}

.ai-sidebar-history::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.ai-history-title {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    padding: 10px 12px 8px;
    letter-spacing: 0.5px;
}

.ai-history-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-history-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    transition: all 0.15s;
}

.ai-history-item:hover {
    background: #e8ecf0;
    color: #333; box-shadow: 0 2px 10px rgba(24, 144, 255, 0.16);
}

.ai-history-item.active {
    background: #fff;
    #color: rgb(24, 144, 255);
    font-weight: 700;
	        box-shadow: 0 2px 10px rgba(24, 144, 255, 0.16);


}

.ai-history-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* 对话图标（随机图片，圆形裁剪） */
.ai-history-item-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
    object-fit: cover;
}

/* 置顶标记：灰色📌（emoji 用灰度滤镜变灰） */
.ai-history-pin-icon {
    margin-left: 4px;
    margin-right: 2px;
    font-size: 12px;
    filter: grayscale(100%);
    opacity: 0.85;
    flex-shrink: 0;
}

.ai-history-item-pinned {
    background: #f8faff;
}
.ai-history-item-pinned:hover {
    background: #e8ecf0;
}

/* 悬停时显示 ... 按钮 */
.ai-history-menu-btn {
    visibility: hidden;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    border: none;
    background: transparent;
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    padding: 0;
    transition: background 0.15s;
}
.ai-history-menu-btn:hover {
    background: #d0d5dd;
    color: #555;
}
.ai-history-item:hover .ai-history-menu-btn {
    visibility: visible;
}

/* 操作弹窗 */
.ai-history-menu {
    display: none;
    position: absolute;
    right: 8px;
    top: 34px;
    z-index: 100;
    min-width: 100px;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 4px 0;
}
.ai-history-menu.open {
    display: block;
}

.ai-history-menu-item {
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s;
}
.ai-history-menu-item:hover {
    background: #f5f6fa;
}

.ai-history-menu-item-danger {
    color: #444654;
}
.ai-history-menu-item-danger:hover {
    background: #f2f3f5;
}

.ai-history-empty {
    font-size: 13px;
    color: #bbb;
    padding: 10px 12px;
    text-align: center;
}

/* ===== 侧边栏收起状态（仅图标）===== */
.ai-sidebar.collapsed {
    width: 64px;
    min-width: 64px;
    overflow: visible;
}
.ai-sidebar.collapsed .ai-new-chat-btn {
    padding: 10px;
    min-width: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 auto 12px;
    font-size: 0;
    gap: 0;
}
.ai-sidebar.collapsed .ai-new-chat-btn svg {
    width: 12px;
    height: 12px;
}
.ai-sidebar.collapsed .ai-sidebar-top {
    padding: 12px 8px;
}
.ai-sidebar.collapsed .ai-menu-item {
    justify-content: center;
    padding: 12px 8px;
    border-radius: 6px;
}
.ai-sidebar.collapsed .ai-menu-item span,
.ai-sidebar.collapsed .ai-menu-arrow {
    display: none;
}
.ai-sidebar.collapsed .ai-sidebar-divider {
    margin: 8px 12px;
}
/* 折叠状态：历史区域容器 flex 归零，overflow 可见以支持弹出面板 */
.ai-sidebar.collapsed .ai-history-section {
    flex: 0 0 auto;
    position: relative;
    overflow: visible;
}
/* 折叠状态：... 按钮 */
.ai-sidebar.collapsed .ai-history-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 4px;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    line-height: 1;
    transition: background 0.15s;
	 
}
.ai-sidebar.collapsed .ai-history-dots:hover {
        background: #eef2fb;
    color: #355EB7;
}
/* 折叠状态：历史记录弹出面板（悬停 ... 时显示） */
.ai-sidebar.collapsed .ai-sidebar-history {
    display: block;
    position: absolute;
    left: 64px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    max-height: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    z-index: 10000;
    padding: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    flex: none;
}
/* 悬停历史区域容器（含 ... 按钮）时显示弹出面板 */
.ai-sidebar.collapsed .ai-history-section:hover .ai-sidebar-history {
    opacity: 1;
    visibility: visible;
}
/* 弹出面板内的标题和历史项微调 */
.ai-sidebar.collapsed .ai-sidebar-history .ai-history-title {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    padding: 10px 14px 8px;
}
.ai-sidebar.collapsed .ai-sidebar-history .ai-history-list {
    padding-bottom: 8px;
}
.ai-sidebar.collapsed .ai-sidebar-history .ai-history-item {
    padding: 9px 14px;
}
/* 收起状态下按钮/菜单项右侧悬停提示 */
.ai-sidebar.collapsed .ai-new-chat-btn,
.ai-sidebar.collapsed .ai-menu-item {
    position: relative;
}
.ai-sidebar.collapsed .ai-new-chat-btn::after {
    content: '开启新对话';
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 10000;
}
.ai-sidebar.collapsed .ai-menu-item[data-action="job"]::after {
    content: 'AI智能荐岗';
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 10000;
}
.ai-sidebar.collapsed .ai-menu-item[data-action="resume"]::after {
    content: 'AI简历优化';
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 10000;
}
.ai-sidebar.collapsed .ai-new-chat-btn:hover::after,
.ai-sidebar.collapsed .ai-menu-item:hover::after {
    opacity: 1;
    visibility: visible;
}
/* 导航栏渐变随侧边栏收起调整 */
.navbar.sidebar-collapsed {
    background: linear-gradient(to right, #f7f8fa 64px, #fff 64px) !important;
}
.navbar.sidebar-collapsed::after {
    left: 64px !important;
}
/* zkcb 按钮随侧边栏收起左移 */
.zkcb.collapsed {
    left: 16px !important;
}
.zkcb.collapsed:hover {
       background: #eef2fb;
    color: #355EB7; ;border-radius:6px;
}
/* 收起状态下提示文字 */
.zkcb.collapsed::after {
    content: '展开侧边栏';
}

/* ===== 右侧主区域 ===== */
.ai-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ===== 聊天容器（适配新布局）===== */
.ai-chat-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
    max-width: none;
    margin: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    border-radius: 0;
    box-sizing: border-box;
    padding-bottom: 12px;
}

/* ===== 顶部栏 ===== */
.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(77, 182, 172, 0.3);
}

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

.ai-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
}

.ai-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-header-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ai-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: pulse-dot 2s infinite;
}

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

/* ===== 消息列表区 ===== */
.ai-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.ai-messages::-webkit-scrollbar {
    width: 5px;
}

.ai-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

/* ===== 消息气泡 ===== */
.ai-message {
    display: flex;
    max-width: 100%;
    animation: fadeInUp 0.3s ease-out;
}

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

.ai-message-user {
    align-self: flex-end;
    justify-content: flex-end;
}

.ai-message-bot {
    align-self: flex-start;
}

.ai-bubble {
    border-radius: 16px;
    padding: 12px 16px;
    line-height: 1.65;
    word-break: break-word;
    position: relative;
}

.ai-message-user .ai-bubble {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
}

.ai-message-bot .ai-bubble {
    background: #f8f9fc;
    color: #1a1a2e;
    border: 1px solid #e8ecf4;
    border-bottom-left-radius: 4px;
	width: 100%;
}

.ai-bubble-content {
    font-size: 14.5px;
}

/* Markdown 渲染样式 */
.ai-message-bot .ai-bubble-content h1,
.ai-message-bot .ai-bubble-content h2,
.ai-message-bot .ai-bubble-content h3,
.ai-message-bot .ai-bubble-content h4 {
    margin: 12px 0 6px;
    font-weight: 600;
    color: #1a1a2e;
}

.ai-message-bot .ai-bubble-content h3 {
    font-size: 16px;
}

.ai-message-bot .ai-bubble-content h4 {
    font-size: 14px;
}

.ai-message-bot .ai-bubble-content p {
    margin: 6px 0;
}

.ai-message-bot .ai-bubble-content ul,
.ai-message-bot .ai-bubble-content ol {
    padding-left: 20px;
    margin: 6px 0;
}

.ai-message-bot .ai-bubble-content li {
    margin: 3px 0;
}

.ai-message-bot .ai-bubble-content strong {
    color: #667eea;
    font-weight: 600;
}

.ai-message-bot .ai-bubble-content code {
    background: #e8ecf4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.ai-message-bot .ai-bubble-content pre {
    background: #1a1a2e;
    color: #e8ecf4;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
}

.ai-message-bot .ai-bubble-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ===== 打字节动画 ===== */
.ai-typing-bubble {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

.ai-typing-dots {
    display: flex;
    gap: 5px;
}

.ai-typing-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(1) { animation-delay: 0s; }
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

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

/* ===== 快捷标签栏 ===== */
.ai-quick-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
    -webkit-overflow-scrolling: touch;
}

.ai-quick-actions::-webkit-scrollbar {
    display: none;
}

.ai-quick-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    color: #4a5568;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.ai-quick-btn:hover {
    background: linear-gradient(135deg, #4DB6AC 0%, #26A69A 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(77, 182, 172, 0.3);
    transform: translateY(-1px);
}

.ai-quick-btn i {
    font-size: 13px;
}

/* ===== 底部输入区 ===== */
.ai-input-area {
    flex-shrink: 0;
    padding: 24px 120px 30px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
	
}

.ai-input-area.is-replying .ai-input {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 滚动到底部箭头 ===== */
.ai-scroll-bottom {
    position: absolute;
    bottom: 158px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: #666;
    transition: all 0.25s ease;
}

.ai-scroll-bottom.visible {
    display: flex;
    animation: aiScrollIn 0.25s ease;
}

.ai-scroll-bottom:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #1890ff;
    box-shadow: 0 4px 16px rgba(24,144,255,0.25);
    transform: translateX(-50%) translateY(-2px);
}

@keyframes aiScrollIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.ai-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f6fa;
    border-radius: 15px;
    padding: 6px 4px 6px 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s;

	margin: 0px auto;
	width: 100%;
 
    
}


.ai-input-row:focus-within {
    border-color: #1890ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}
.ai-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    padding: 10px 0;
    resize: none;
    color: #1a1a2e;
    line-height: 1.5;
}

.ai-input::placeholder {
    color: #a0aec0;
}

/* ===== 模式选择器（自定义下拉面板） ===== */
.ai-mode-picker {
    position: relative;
    flex-shrink: 0;
}

/* 触发按钮 */
.ai-mode-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding:12px 12px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #eef0ff 0%, #e8ecf8 100%);
    color: #1890ff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 2;
}

.ai-mode-trigger:hover {
    background: linear-gradient(135deg, #dce0ff 0%, #d0d6f6 100%);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.ai-mode-trigger:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.ai-mode-trigger-icon {
    font-size: 14px;
}

.ai-mode-trigger-label {
    font-size: 14px;
}

.ai-mode-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
    margin-left: 2px;
}

.ai-mode-picker.open .ai-mode-arrow {
    transform: rotate(180deg);
}

/* 下拉面板 - 从触发按钮上方弹出 */
.ai-mode-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12), 0 -2px 8px rgba(0,0,0,0.06);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 9999;
    border: 1px solid #e8ecf4;
}

.ai-mode-picker.open .ai-mode-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 选项卡片 */
.ai-mode-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.ai-mode-option:hover {
    background: #f5f7ff;
}

.ai-mode-option.active {
    background: linear-gradient(135deg, #eef7ee 0%, #e3f2e3 100%);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.ai-mode-option.active:hover {
    background: linear-gradient(135deg, #e2f2e2 0%, #d4ead4 100%);
}

/* 选项图标 */
.ai-mode-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: #f0f4ff;
    color: #667eea;
}

.ai-mode-option.active .ai-mode-option-icon {
    background: #e3f2e3;
    color: #22c55e;
}

/* 选项文本 */
.ai-mode-option-body {
    flex: 1;
    min-width: 0;
}

.ai-mode-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.ai-mode-option.active .ai-mode-option-title {
    color: #15803d;
}

.ai-mode-option-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.ai-mode-option.active .ai-mode-option-desc {
    color: #65a30d;
}

/* 选中勾 */
.ai-mode-option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ai-mode-option.active .ai-mode-option-check {
    background: #22c55e;
    color: #fff;
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: scale(1.05);
   box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.ai-send-btn:active {
    transform: scale(0.95);
}

.ai-input-hint {
    text-align: center;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 6px;
}

/* ===== 岗位卡片列表 ===== */
.ai-position-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.ai-position-card {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ai-position-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.ai-position-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ai-position-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.ai-position-company {
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.ai-position-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: #718096;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ai-position-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-position-card-meta i {
    font-size: 11px;
    color: #a0aec0;
}

.ai-position-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ai-position-label {
    display: inline-block;
    padding: 2px 8px;
    background: #ebf4ff;
    color: #4a6fe4;
    font-size: 11px;
    border-radius: 10px;
}

.ai-position-card-type {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.ai-position-card-intro {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.5;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== 关联追问标签 ===== */
.ai-related-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.ai-related-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #f0f4ff;
    border: 1px solid #d6e4ff;
    border-radius: 20px;
    font-size: 13px;
    color: #2b6de9;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
}

.ai-related-chip:hover {
    background: #d6e4ff;
    border-color: #2b6de9;
    color: #1a4fc9;
}

.ai-related-chip:active {
    transform: scale(0.97);
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .ai-chat-wrapper {
        max-width: 100%;
        height: 100dvh;
    }

    /* 移动端隐藏侧边栏 */
    .ai-sidebar {
        display: none;
    }

    .ai-home-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ai-home-tagline {
        font-size: 18px;
    }

    .ai-home-subtitle {
        font-size: 13px;
    }

    .ai-prompt-card {
        padding: 12px 14px;
    }

    .ai-prompt-card-title {
        font-size: 14px;
    }

    .ai-prompt-card-desc {
        font-size: 12px;
    }

    .ai-message {
        max-width: 92%;
    }

    .ai-header {
        padding: 10px 14px;
    }

    .ai-title {
        font-size: 16px;
    }

    .ai-messages {
        padding: 14px 10px;
    }

    .ai-input-area {
        padding: 8px 10px 12px;
    }

    .ai-quick-actions {
        padding: 8px 10px;
        gap: 6px;
    }

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

    .ai-mode-dropdown {
        min-width: 230px;
        left: auto;
        right: 0;
    }

    .ai-mode-trigger-label {
        display: none;
    }

    .ai-mode-trigger {
        padding: 7px 10px;
    }

    .ai-position-card-meta {
        gap: 10px;
        font-size: 12px;
    }

    .ai-position-name {
        font-size: 14px;
    }

    /* 小屏：岗位网格改为单列 */
    .ai-job-grid {
        grid-template-columns: 1fr;
    }

    .ai-drawer {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ai-header-center {
        gap: 6px;
    }

    .ai-avatar-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .ai-title {
        font-size: 15px;
    }

    .ai-bubble {
        padding: 10px 14px;
    }

    .ai-bubble-content {
        font-size: 14px;
    }
}

/* ===== 思考过程折叠块 ===== */
.ai-thinking-bubble {
    background: linear-gradient(135deg, #f8f4e8 0%, #fdf8f0 100%);
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    max-width: 100%;
}
.ai-thinking-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: #8b7355;
    transition: background 0.15s;
}
.ai-thinking-toggle:hover {
    background: rgba(0,0,0,0.03);
}
.ai-thinking-icon {
    font-size: 16px;
}
.ai-thinking-label {
    font-weight: 600;
    flex: 1;
    text-align: left;
}
.ai-thinking-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}
.ai-thinking-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.ai-thinking-text {
    padding: 0 16px 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #7a6a52;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 展开状态 */
.ai-thinking-expanded .ai-thinking-content {
    max-height: 30000px;
    overflow-y: auto;
    padding-top: 0;
}
.ai-thinking-expanded .ai-thinking-arrow {
    transform: rotate(180deg);
}
.ai-thinking-expanded .ai-thinking-toggle {
    border-bottom: 1px solid #e8dcc8;
}
.ai-bubble-content    a{
	position: relative;
	font-weight:bold;color:#4DB6AC;
}


.ai-bubble-content    a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: #4DB6AC;
  transition: width 0.3s;
}
.ai-bubble-content    a:hover::after {
  width: 100%;
}
#aiModeSelect option{cursor:pointer}

/* ===== 岗位网格卡片（仿 quanzhi.com，一行两个）===== */
.ai-job-grid-msg {
    max-width: none !important;
 /*    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px; */
    align-self: center;
	width: 100%;
}

.ai-job-grid-bubble {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ai-job-grid {
    display: grid;
    grid-template-columns:  1fr 1fr;
    gap: 12px;
}

.ai-job-grid-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #eef0f4;
}

.ai-job-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0px 12px;
    border-radius: 16px;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
	height:32px
}
.ai-job-footer-btn.ai-job-footer-sub{
	color:#9E6A3D
}
.ai-job-footer-btn:hover {
    border-color: rgb(24, 144, 255);
    color: rgb(24, 144, 255);
    background: #e8f4ff;
}
.ai-job-footer-btn.ai-job-footer-sub:hover{
	color:#784E29;
	border-color:#784E29
}
.ai-job-footer-btn i {
    font-size: 13px;
}
.ai-job-footer-btn img{width:16px}
.ai-job-footer-sub i {
    color: #4DB6AC;
}

.ai-job-footer-all {
    background: #f0faf9;
    border-color: #4DB6AC;
    color: #4DB6AC;
    font-weight: 600;
}

.ai-job-footer-today i {
    color: #4DB6AC;
}

.ai-job-card {
    background: #FAFBFF;
    #border: 1px solid #e8ecf4;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    #box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
img.dateicon{
	  vertical-align: text-bottom;
    margin-right: 2px;height:15px
}
.ai-job-card .ai-job-company .ai-job-company-name a{color:rgb(24, 144, 255);font-weight:600;}
.ai-job-card .ai-job-company .ai-job-company-name a:hover{text-decoration:underline}
.ai-job-card:hover {
  
    box-shadow: 0 0 20px #96aab880;
    transform: translateY(-2px);
}
.ai-job-card:hover .ai-job-name{
  
    color:rgb(24, 144, 255)
}

.ai-job-card:hover .ai-job-company-name a{color:#1a1a2e}
.ai-job-card .ai-job-company-name a:hover{ color:rgb(24, 144, 255)}

/* 已选中（抽屉打开中）的岗位卡片 */
.ai-job-card-active {
    border: 2px solid #467AF6;
    box-shadow: 0 0 20px rgba(70, 122, 246, 0.25);
}

.ai-job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ai-job-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    flex: 1;
    margin-right: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-job-salary {
    font-size: 13px;
    font-weight: 600;
    color: #e87830;
    white-space: nowrap;
    flex-shrink: 0;
	font-weight: 500;
    color: #999;
}

.ai-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ai-job-tag {
    display: inline-block;
    padding: 2px 8px;
	color:#475569;
    background: #f5f6fa;
    color: #666;
    font-size: 11px;
    border-radius: 9999px;
    white-space: nowrap;
	 font-weight: 500;
    background: #f1f5f9;
	 border: 1px solid #f1f5f9;
}



.ai-job-tag i{margin-right:3px

}
i.fa-solid.fa-hourglass-end{color:#E4E5E9;margin-right:3px;font-size:12px}
.ai-job-tag-edu {
    background: #f3f0ff;
    color: #68C4C7;
}

.ai-job-tag-spec {
    background: #fff7f0;
    color: #e87830;
	  max-width: 190px;    /* 限制div最大宽度 */
  white-space: nowrap; /* 文字不换行 */
  overflow: hidden;    /* 超出隐藏 */
  text-overflow: ellipsis; /* 末尾显示省略号 ... */
  
   color: #00864b;
   
    background: #e6f7ef;
}

.ai-job-company {
    display: flex;
    align-items: center;
    gap: 8px;
        margin-bottom: 2px;
    margin-top: 14px;
    font-size: 13px;
}

.ai-job-company-name {
    color: #333;
    font-weight: 500;
}

.ai-job-company-type {
    color: #999;
    font-size: 11px;
	    display: inline-flex;
    align-items: center;
    padding: 0px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.ai-job-company-type.知名企业 {
    background: linear-gradient(90deg, #409eff, #00c6ff);
    color: #ffffff;
}
.ai-job-company-type.央国企 {
   background: linear-gradient(to right, rgb(255, 59, 59) 0%, rgb(255, 164, 90) 100%);color:#ffffff
}

.ai-job-company-type.事业单位 {
   background: linear-gradient(90deg, rgb(250, 140, 22), rgb(255, 208, 75));;color:#ffffff 
}
 
.ai-job-company-type.外企 {
   background: linear-gradient(to right, #722ED1 0%, #B37FEB 100%);;;color:#ffffff 
}
 
.ai-job-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ===== 右侧抽屉 ===== */
.ai-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ai-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 32vw;
    min-width: 32vw;
    max-width: 80vw;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
	
}
/* 拖拽手柄（左侧8px区域） */
.ai-drawer::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 100%;
    cursor: col-resize;
    z-index: 10;
}
/* 拖拽手柄中间的滑块指示 */
.ai-drawer::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 48px;
    border-radius: 2px;
    background: #c5cdd8;
    opacity: 0;
    transition: opacity 0.22s;
    z-index: 11;
    pointer-events: none;
}
.ai-drawer:hover::after {
    opacity: 1;
}
.ai-drawer-title a{font-weight:400; font-size: 14px;
    color: #444;
    margin-right: 20px;
    cursor: pointer;}
	.ai-drawer-title a:hover{
    color: #1890ff;
   }
.ai-drawer.open {
    transform: translateX(0);
}

.ai-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.ai-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.ai-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f6fa;
    border-radius: 50%;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-drawer-close:hover {
    background: #e8ecf4;
    color: #333;
}

.ai-drawer-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ai-drawer-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.footerbg{display:none}
.float-button{display:none !important}

/* ===== 首页卡片视图 ===== */
.ai-home-view {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 120px 16px;
    flex-shrink: 0;
	#margin-top:10px
}

.ai-home-view::-webkit-scrollbar {
    width: 5px;
}

.ai-home-view::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ai-home-hero {
    text-align: center;
    margin-bottom: 32px;
}

.ai-home-logo {
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.ai-home-tagline {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.ai-home-subtitle {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
	    font-weight: 400;
    font-size: 16px;
    color: #444;
	margin-top:-20px
}

/* ===== 快捷提示卡片网格 ===== */
.ai-home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 20px;
    width: 100%;
}

.ai-prompt-card {
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;

    width: 100%;
    height: 79px;
    border-radius: 10px;
    background: #f8f8f8;
    border: 1px solid #eef0f4;
    box-sizing: border-box;
    padding: 15px;
    display: flex;
    flex-direction: column;
}


.ai-prompt-card:hover {
    background: #edf6f5;
    border-color: #b2dfdb;
    box-shadow: 0 4px 16px rgba(77, 182, 172, 0.12);
    transform: translateY(-2px);
}

.ai-prompt-card:active {
    transform: scale(0.98);
}

.ai-prompt-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ai-prompt-card-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 0;
    flex: 1;
}
.ai-home-logo img{
    width: 330px;
    height: 200px;
    object-fit: cover;
}

/* ===== 自定义确认弹窗 ===== */
.ai-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.ai-confirm-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    text-align: center;
    animation: scaleIn 0.2s ease-out;
}

.ai-confirm-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.ai-confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.ai-confirm-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.ai-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ai-confirm-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.ai-confirm-cancel {
    background: #f0f2f5;
    color: #555;
}
.ai-confirm-cancel:hover {
    background: #e4e6eb;
}

.ai-confirm-ok {
    background: #e74c3c;
    color: #fff;
}
.ai-confirm-ok:hover {
    background: #d63a2a;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== 加载消息样式 ===== */
.ai-message.is-loading .ai-bubble {
    background: #f0f9ff;
    border: 1.5px solid #bae0ff;
    border-radius: 12px 12px 12px 0;
    padding: 12px 18px;
}
.loading-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ai-bubble .ai-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 3px solid #bae0ff;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-top: 1px;
}
.loading-text {
    font-size: 15px;
    color: #1890ff;
    line-height: 1.5;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 淡出动画（加载消息消失时） ===== */
.ai-bubble.fade-out {
    animation: bubble-fade-out 0.35s ease forwards;
}
@keyframes bubble-fade-out {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ===== 抽屉 iframe 加载动画 ===== */
.ai-drawer-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2;
    gap: 16px;
}
.ai-drawer-loading.show {
    display: flex;
}
.ai-drawer-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8f0fe;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: drawer-spin 0.7s linear infinite;
}
@keyframes drawer-spin {
    to { transform: rotate(360deg); }
}
.ai-drawer-loading-text {
    margin: 0;
    font-size: 14px;
    color: #8c8c8c;
    letter-spacing: 0.5px;
}

/* ===== AI 轻提示 Toast ===== */
.ai-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
   background: rgba(24, 144, 255, 0.78);
    color: #fff;
    padding: 10px 24px;
    border-radius: 22px;
    font-size: 14px;
    letter-spacing: 0.5px;
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}
.ai-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== 岗位导出按钮 ===== */
.ai-job-footer-btn.ai-job-footer-export {
    background: #52c41a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ai-job-footer-btn.ai-job-footer-export:hover {
    background: #45a818;
    box-shadow: 0 2px 12px rgba(82, 196, 26, 0.35);
    transform: translateY(-1px);
    color: #fff;
}
.ai-job-footer-btn.ai-job-footer-export svg {
    flex-shrink: 0;
}

/* ===== 看更多按钮（分页）===== */
.ai-job-footer-btn.ai-job-footer-more {
    background: #fff;
    color: #1890ff;
    border-color: #1890ff;
    font-weight: 500;
}
.ai-job-footer-btn.ai-job-footer-more:hover {
    background: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
}
.ai-job-footer-btn.ai-job-footer-more.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

