/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Murantech风格色系 - 正红极简 */
    --primary: #FF2442;
    --primary-light: #FF4D63;
    --primary-dark: #D91A36;
    --primary-bg: #FFF0F2;

    /* 背景色系 */
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-sidebar: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    --bg-sidebar-border: #F0F0F0;
    --bg-hover: rgba(255, 36, 66, 0.04);

    /* 文字色系 */
    --text: #262626;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;

    /* 边框与分割 */
    --border: #F0F0F0;
    --border-light: #F5F5F5;

    /* 功能色 */
    --success: #00C853;
    --warning: #FFB300;
    --danger: #FF3D00;
    --info: #2196F3;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* 圆角 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-weight: 500;
}

/* ==================== 布局 ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--bg-sidebar-border);
}

/* Logo区域 */
.logo {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
}

.logo-img {
    width: 270px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    image-rendering: -webkit-optimize-contrast;
    margin-left: -10px;
}

/* 头部Logo样式 */
.header-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    image-rendering: -webkit-optimize-contrast;
}

/* 头部标题样式 */
.chat-header-info h2 {
    font-size: 24px; /* 放大两个号（从18px起） */
}

/* 水印容器 - 铺满整个背景 */
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.watermark-container .watermark-logo {
    position: absolute;
    opacity: 0;
    width: 350px;
    height: auto;
    transform: rotate(45deg);
}

/* 水印网格布局 - 28个水印密集铺满页面，统一倾斜45度 */
.watermark-container .watermark-logo:nth-child(1) { top: 0%; left: -5%; }
.watermark-container .watermark-logo:nth-child(2) { top: 0%; left: 25%; }
.watermark-container .watermark-logo:nth-child(3) { top: 0%; left: 55%; }
.watermark-container .watermark-logo:nth-child(4) { top: 0%; left: 85%; }
.watermark-container .watermark-logo:nth-child(5) { top: 25%; left: -5%; }
.watermark-container .watermark-logo:nth-child(6) { top: 25%; left: 25%; }
.watermark-container .watermark-logo:nth-child(7) { top: 25%; left: 55%; }
.watermark-container .watermark-logo:nth-child(8) { top: 25%; left: 85%; }
.watermark-container .watermark-logo:nth-child(9) { top: 50%; left: -5%; }
.watermark-container .watermark-logo:nth-child(10) { top: 50%; left: 25%; }
.watermark-container .watermark-logo:nth-child(11) { top: 50%; left: 55%; }
.watermark-container .watermark-logo:nth-child(12) { top: 50%; left: 85%; }
.watermark-container .watermark-logo:nth-child(13) { top: 75%; left: -5%; }
.watermark-container .watermark-logo:nth-child(14) { top: 75%; left: 25%; }
.watermark-container .watermark-logo:nth-child(15) { top: 75%; left: 55%; }
.watermark-container .watermark-logo:nth-child(16) { top: 75%; left: 85%; }
.watermark-container .watermark-logo:nth-child(17) { top: 12%; left: 10%; }
.watermark-container .watermark-logo:nth-child(18) { top: 12%; left: 40%; }
.watermark-container .watermark-logo:nth-child(19) { top: 12%; left: 70%; }
.watermark-container .watermark-logo:nth-child(20) { top: 37%; left: 10%; }
.watermark-container .watermark-logo:nth-child(21) { top: 37%; left: 40%; }
.watermark-container .watermark-logo:nth-child(22) { top: 37%; left: 70%; }
.watermark-container .watermark-logo:nth-child(23) { top: 62%; left: 10%; }
.watermark-container .watermark-logo:nth-child(24) { top: 62%; left: 40%; }
.watermark-container .watermark-logo:nth-child(25) { top: 62%; left: 70%; }
.watermark-container .watermark-logo:nth-child(26) { top: 87%; left: 10%; }
.watermark-container .watermark-logo:nth-child(27) { top: 87%; left: 40%; }
.watermark-container .watermark-logo:nth-child(28) { top: 87%; left: 70%; }

.logo-text {
    text-align: center;
}

.logo-title {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.nav-menu {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255,107,107,0.12), transparent);
    transition: width 0.25s ease;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.active {
    background: rgba(255,107,107,0.1);
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active::before {
    width: 100%;
}

/* 导航图标 - 线性风格 */
.nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.nav-text {
    position: relative;
    z-index: 1;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-hover);
}

.user-info:hover {
    background: rgba(255,107,107,0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
    min-height: 100vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* ==================== 智能问答 ==================== */

/* 客服教练固定头部 */
.chat-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 28px;
    text-align: center;
}

.chat-header-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.chat-header-info p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.chat-header .quick-questions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.chat-header .quick-questions button {
    padding: 8px 14px;
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-header .quick-questions button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-top: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
}

/* 滑到最新消息浮动按钮 */
.scroll-to-bottom-btn {
    position: absolute;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    z-index: 10;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.scroll-to-bottom-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,107,107,0.35);
}

.welcome-message {
    text-align: center;
    padding: 48px 24px;
}

.welcome-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.welcome-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

.welcome-message h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.welcome-message p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-questions button {
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    color: var(--text-secondary);
}

.quick-questions button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

/* 消息样式 */
.message {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.ai .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--success), #34D399);
    box-shadow: 0 4px 12px rgba(38, 222, 129, 0.2);
}

.message-avatar svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.message-content {
    max-width: 75%;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: auto;
}

.message.ai .message-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top-left-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border-top-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.message-content p { margin-bottom: 10px; }
.message-content p:last-child { margin-bottom: 0; }

/* ========== AI分析报告专用样式 ========== */

.message.ai .message-content {
    /* 标题层级 */
}
.message.ai .message-content h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
    line-height: 1.4;
}
.message.ai .message-content h1:first-child {
    margin-top: 0;
}
.message.ai .message-content h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 18px 0 10px 0;
    line-height: 1.4;
}
.message.ai .message-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 14px 0 8px 0;
    line-height: 1.4;
}

/* 分隔线：加大间距，变色 */
.message.ai .message-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 20px 0;
}

/* 列表：层级分明 */
.message.ai .message-content ul,
.message.ai .message-content ol {
    margin: 8px 0 12px 0;
    padding-left: 24px;
}
.message.ai .message-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}
.message.ai .message-content ul li {
    list-style-type: disc;
}
.message.ai .message-content ul ul {
    margin: 4px 0 6px 0;
    padding-left: 20px;
}

/* 引用块：突出但克制 */
.message.ai .message-content blockquote {
    border-left: 3px solid var(--accent);
    background: rgba(255,107,107,0.06);
    padding: 10px 16px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
    font-style: normal;
}

/* 表格：紧凑但清晰 */
.message.ai .message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px 0;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.message.ai .message-content th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-light);
    text-align: left;
}
.message.ai .message-content td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.message.ai .message-content tr:last-child td {
    border-bottom: none;
}
.message.ai .message-content tr:nth-child(even) td {
    background: rgba(0,0,0,0.015);
}

/* 强调标签 */
.message.ai .message-content em {
    color: var(--text-secondary);
    font-style: italic;
}

/* 代码块 */
.message.ai .message-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--border-light);
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
    text-align: right;
}

.message.user .message-time {
    color: rgba(255,255,255,0.7);
}

/* 图片样式 */
.chat-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-image:hover {
    transform: scale(1.02);
}

.image-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.image-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    stroke-width: 1.8;
    fill: none;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}

.chat-input-container input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background: var(--bg);
}

.chat-input-container input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 粘贴图片预览区域 */
.pasted-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}

.pasted-images-preview:empty {
    display: none;
}

.pasted-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.pasted-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pasted-image-item .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

/* ==================== 模拟对话 ==================== */
.simulate-container {
    max-width: 900px;
    margin: 0 auto;
}

.simulate-header {
    text-align: center;
    margin-bottom: 36px;
}

.simulate-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.simulate-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.customer-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.customer-type {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.customer-type:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.15);
}

.customer-type.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255,107,107,0.05), rgba(255,107,107,0.1));
}

.type-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.type-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
    fill: none;
}

.customer-type:nth-child(1) .type-icon {
    background: linear-gradient(135deg, #E8F4FD, #D4EBFC);
}
.customer-type:nth-child(1) .type-icon svg { stroke: #3B82F6; }

.customer-type:nth-child(2) .type-icon {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}
.customer-type:nth-child(2) .type-icon svg { stroke: #F59E0B; }

.customer-type:nth-child(3) .type-icon {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}
.customer-type:nth-child(3) .type-icon svg { stroke: #10B981; }

.customer-type:nth-child(4) .type-icon {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}
.customer-type:nth-child(4) .type-icon svg { stroke: #8B5CF6; }

.type-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.type-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.simulate-chat {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.simulate-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}

.customer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.customer-badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.role-switch {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.role-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.role-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.role-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-text:hover {
    color: var(--accent);
    background: var(--bg-hover);
}

.simulate-messages {
    height: 400px;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
}

.simulate-tips {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.simulate-tips h4 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simulate-tips h4 svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.simulate-tips ul {
    list-style: none;
}

.simulate-tips li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.simulate-tips li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.simulate-input-container {
    display: flex;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}

.simulate-input-container input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background: var(--bg);
    transition: all 0.2s;
}

.simulate-input-container input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
}

/* ==================== 聊天分析 ==================== */
.analyze-container {
    max-width: 900px;
    margin: 0 auto;
}

.analyze-header {
    text-align: center;
    margin-bottom: 36px;
}

.analyze-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

/* 可折叠分析大纲 */
.analyze-outline {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    overflow: hidden;
}

.outline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--primary-bg);
    cursor: pointer;
}

.outline-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.outline-toggle {
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.2s;
}

.outline-content {
    padding: 16px 18px;
    display: block;
}

.outline-content.collapsed {
    display: none;
}

.outline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.outline-item:last-child {
    border-bottom: none;
}

.outline-num {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.outline-item span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.analyze-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.upload-area {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: scale(1.01);
}

.upload-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bg), var(--border));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    stroke-width: 1.8;
    fill: none;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

.upload-area input[type="file"] {
    display: none;
}

.btn-primary {
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
    margin-top: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    padding: 14px 36px;
    background: var(--bg-card);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    margin-top: 16px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.analyze-result {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}

.result-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.result-actions {
    display: flex;
    gap: 12px;
}

.result-content {
    padding: 28px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
}

/* 分析报告Markdown内容样式优化 */
.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4 {
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.result-content h1 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.result-content h2 {
    font-size: 18px;
    color: var(--primary);
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.result-content h3 {
    font-size: 16px;
    color: var(--text);
}

.result-content p {
    margin: 12px 0;
    color: var(--text-secondary);
}

.result-content ul,
.result-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.result-content li {
    margin: 8px 0;
    color: var(--text-secondary);
}

.result-content strong {
    color: var(--text);
    font-weight: 600;
}

.result-content em {
    color: var(--accent);
}

.result-content blockquote {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
}

.result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.result-content table th,
.result-content table td {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.result-content table th {
    background: var(--primary-bg);
    font-weight: 600;
    color: var(--text);
}

/* ==================== 快捷话术 ==================== */
.scripts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.scripts-header {
    text-align: center;
    margin-bottom: 24px;
}

.scripts-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.scripts-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.scripts-filter {
    margin-bottom: 28px;
}

.scripts-filter input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    background: var(--bg-card);
    transition: all 0.2s;
}

.scripts-filter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
}

.script-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.script-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.12);
    border-color: var(--primary);
}

.script-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.script-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.script-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 12px;
    color: var(--text-light);
}

.script-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
    max-height: 100px;
    overflow: hidden;
}

.script-content.expanded {
    max-height: none;
}

.script-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.script-tag {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.copy-btn {
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: var(--success);
}

/* ==================== 暴风AI学习中心 ==================== */
.learn-container {
    max-width: 1100px;
    margin: 0 auto;
}

.learn-header {
    text-align: center;
    margin-bottom: 40px;
}

.learn-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.learn-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.learn-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.learn-card {
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.learn-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.learn-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.learn-card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.learn-card h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.learn-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.learn-upload-area {
    background: var(--bg-hover);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.learn-upload-area h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.upload-zone {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(255,107,107,0.05);
}

.upload-zone svg {
    width: 48px;
    height: 48px;
    fill: var(--text-light);
    margin-bottom: 16px;
}

.upload-zone p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-zone span {
    font-size: 13px;
    color: var(--text-light);
}

.learn-data-list h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

#learnDataItems {
    background: var(--bg-hover);
    border-radius: var(--radius);
    min-height: 200px;
}

/* ==================== 暴风学习助理 ==================== */

/* 主卡片样式 */
.learn-card-primary {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(255,107,107,0.08) 100%);
    border: 2px solid var(--border);
}

.learn-card-primary:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(255,107,107,0.05) 100%);
}

/* 上传区域提示 */
.upload-hint {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-hint ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.upload-hint li {
    margin: 4px 0;
}

/* 指令输入区域 */
.learn-command-area {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.learn-command-area h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.command-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.command-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.command-tag {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.command-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.command-input-wrapper {
    display: flex;
    gap: 12px;
}

.command-input-wrapper textarea {
    flex: 1;
    min-height: 100px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text);
}

.command-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.command-input-wrapper .btn-primary {
    align-self: flex-end;
    padding: 12px 24px;
}

/* 学习记录卡片 */
.learn-record-card {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}

.learn-record-card:last-child {
    border-bottom: none;
}

.learn-record-card:hover {
    background: var(--bg-card);
}

.learn-record-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.learn-record-icon {
    font-size: 18px;
}

.learn-record-type {
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.learn-record-time {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
}

.learn-record-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.learn-record-summary {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* 学习统计样式 */
.learn-stats-display {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 16px;
}

.learn-stats-display .stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    flex: 1;
}

.learn-stats-display .stats-icon {
    font-size: 18px;
}

.learn-stats-display .stats-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.learn-stats-display .stats-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-left: auto;
}

/* ==================== 数据统计 ==================== */
.stats-container {
    max-width: 1100px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 36px;
}

.stats-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.stats-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
    fill: none;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #E8F4FD, #D4EBFC);
}
.stat-card:nth-child(1) .stat-icon svg { stroke: #3B82F6; }

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}
.stat-card:nth-child(2) .stat-icon svg { stroke: #F59E0B; }

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}
.stat-card:nth-child(3) .stat-icon svg { stroke: #10B981; }

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}
.stat-card:nth-child(4) .stat-icon svg { stroke: #8B5CF6; }

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.stats-chart {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.stats-chart h3 {
    margin-bottom: 24px;
    font-size: 17px;
    color: var(--text);
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
}

.chart-bar {
    width: 60px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: all 0.3s;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

.chart-bar:hover {
    opacity: 0.85;
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.chart-bar span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.stats-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.stats-table h3 {
    margin-bottom: 18px;
    font-size: 17px;
    color: var(--text);
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.stats-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.stats-table tr:hover {
    background: var(--bg-hover);
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==================== 加载状态 ==================== */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==================== 清空历史按钮 ==================== */
.clear-history-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.clear-history-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

/* ==================== 登录弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0;
    width: 380px;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

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

/* Murantech风格登录弹窗 */
.login-modal {
    padding: 48px 40px;
    text-align: center;
    width: 440px;
}

.login-header {
    margin-bottom: 32px;
}

.login-logo-full {
    width: 270px;
    height: auto;
    margin-bottom: 24px;
    margin-left: -10px;
    object-fit: contain;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.modal-box .form-group {
    margin-bottom: 16px;
}

.modal-box .form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: left;
    font-weight: 500;
}

.modal-box .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background: var(--bg);
    color: var(--text);
}

.modal-box .form-group input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* 登录按钮 - Murantech风格 */
.modal-box .btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255, 36, 66, 0.3);
    margin-top: 8px;
}

.modal-box .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.4);
}

.modal-box .btn-primary:active {
    transform: translateY(0);
}

/* 游客模式按钮 */
.modal-box .btn-text {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
}

.modal-box .btn-text:hover {
    color: var(--primary);
}

/* ==================== 图片预览 ==================== */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: transform 0.2s;
}

.image-preview-close:hover {
    transform: scale(1.2);
}

/* 聊天图片可点击样式 */
.chat-image {
    cursor: zoom-in;
    border-radius: 8px;
    transition: transform 0.2s;
}

.chat-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 64px;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        flex-direction: row;
        z-index: 200;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-light);
    }

    /* 移动端隐藏logo */
    .logo {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .nav-menu {
        flex-direction: row;
        padding: 0;
        gap: 0;
        flex: 1;
        justify-content: space-around;
    }

    .nav-item {
        flex: 1;
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        font-size: 10px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .nav-text {
        font-size: 10px;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-bottom: 80px;
    }

    .chat-container {
        height: calc(100vh - 64px - 32px);
        border-radius: var(--radius);
    }

    .message-content {
        max-width: 85%;
        padding: 14px 16px;
        font-size: 14px;
    }

    .chat-input-container {
        padding: 12px 16px;
        gap: 8px;
    }

    .chat-input-container input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .send-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .customer-types {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .customer-type {
        padding: 20px 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .type-icon {
        width: 48px;
        height: 48px;
    }

    .type-icon svg {
        width: 24px;
        height: 24px;
    }

    .simulate-header-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .role-switch {
        width: 100%;
        order: 3;
    }

    .role-btn {
        flex: 1;
        text-align: center;
    }

    .scripts-grid {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 18px;
        gap: 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .upload-area {
        padding: 36px 24px;
    }

    .welcome-message {
        padding: 24px 12px;
    }

    .welcome-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .welcome-icon svg {
        width: 30px;
        height: 30px;
    }

    .quick-questions button {
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
