/* 爆单AI · 豆包式UI（会话72迭代·K哥定·回归黑白极简）
 * 设计原则：和现有正式服页面一致，纯黑白灰，告别橙红
 * 配色基准(来自index.html): 黑#1a1a1a + 白#FFFFFF + 灰#f7f7f8/#e8e8ea
 * 会话72迭代: 去掉头像(豆包式纯内容) + 加搜索框 + 列表...菜单(编辑/删除/置顶)
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* 会话72迭代3: 反转配色(豆包式) - 背景白/AI气泡浅灰，告别灰底白气泡 */
    --bg-main: #ffffff;          /* 主区背景: 白(原#f7f7f8灰) */
    --bg-sidebar: #f7f7f8;       /* 侧边栏背景: 浅灰(原白) */
    --bg-card: #ffffff;
    --bg-bubble-ai: #f1f1f3;     /* AI气泡: 浅灰(原白带边框) - 豆包式 */
    --border: #e8e8ea;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #999;
    --bubble-user: #1a1a1a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    /* 会话95·防微信内置浏览器自动放大字体 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* 会话100·禁止双指缩放+双击放大,让web-view有原生app手感 */
    -webkit-touch-callout: none;          /* 长按不弹菜单(复制/保存等) */
    -webkit-user-select: none;            /* 禁止选中文字(app手感,聊天气泡内单独放开) */
    touch-action: pan-y;                  /* 只允许纵向滚动,禁掉双指缩放手势 */
    -webkit-tap-highlight-color: transparent; /* 去掉点击灰色高亮(app手感) */
}

/* === 整体双栏布局 === */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 会话96·web-view胶囊适配：在微信小程序web-view里，顶部要避开微信右上角胶囊按钮(•••⊗)
   用JS检测UA含miniProgram/webview时给body加.in-wx-webview class。
   普通浏览器/H5不加，不影响。padding-top=胶囊高度(32px)+状态栏(用env动态)+间距 */
body.in-wx-webview .app-layout {
    /* 会话100修复: 去掉padding-top+content-box。
       根因: padding-top:44px + box-sizing:content-box 导致app-layout实际高度=100vh+44px,
       内容被顶下去,底部按钮溢出屏幕看不见(K哥实测截图:顶部留白一大块,聊天按钮没了)。
       真相: 小程序web-view的胶囊是原生UI悬浮在web-view之上,不压H5内容,
       H5占满整个web-view区域不需要避让。会话96误以为web-view里也要避胶囊,这是错的。
       小程序web-view里就用标准100vh,不加padding。 */
}
body.in-wx-webview .chat-header {
    /* header保持原有52px高度,小程序web-view里不需要额外留白 */
    padding-top: 0;
}

/* === 侧边栏（豆包式极简纯文字）=== */
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sidebar-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* 豆包式新建对话：小图标按钮，不要大橙按钮 */
.new-chat-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.new-chat-icon:hover { background: rgba(0,0,0,0.05); color: var(--text-primary); }

/* 会话94·工具栏：账号中心+数据中心入口（logo下/搜索框上，K哥定的位置）*/
.tool-nav {
    margin: 0 12px 8px;
    padding: 6px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tool-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.12s;
}
.tool-nav-item:hover { background: rgba(0,0,0,0.05); color: var(--text-primary); }
.tool-nav-icon { font-size: 15px; line-height: 1; }
.tool-nav-text { line-height: 1; }

/* 搜索框（豆包式极简）*/
.search-box {
    margin: 0 12px 8px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-tertiary);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #f5f5f7;
    outline: none;
    transition: background 0.15s;
    font-family: inherit;
    color: var(--text-primary);
}
.search-input::placeholder { color: var(--text-tertiary); }
.search-input:focus { background: #ededf0; }

/* 会话列表（豆包式：纯文字左对齐 + ...菜单）*/
.conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

/* 会话100续五·左下角固定下载入口(学豆包/ChatGPT·系统级入口) */
.sidebar-download {
    flex-shrink: 0;
    padding: 8px 10px 12px;
    border-top: 1px solid var(--border);
}
.download-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.download-entry:hover {
    background: #fff;
    color: var(--text-primary);
    border-color: #d1d5db;
}
.download-entry svg { color: var(--text-tertiary); flex-shrink: 0; }
.download-entry:hover svg { color: var(--text-secondary); }

/* 会话100续二·sidebar主导航(logo下搜索框上·竖排) */
.sidebar-primary-nav {
    padding: 6px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.primary-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: background 0.12s, color 0.12s;
}
.primary-nav-btn:hover {
    background: rgba(0,0,0,0.04);
}
.primary-nav-btn.active {
    background: rgba(0,0,0,0.06);
    color: var(--text-primary);
    font-weight: 500;
}
.primary-nav-btn span {
    font-size: 13px;
}

/* 会话100续四·账号管理(三层结构·行式列表·impeccable遵守) */
.account-view {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-main);
}
.account-view-inner {
    padding: 8px 40px 56px;
}
@media (max-width: 768px) {
    .account-view-inner { padding: 8px 20px 40px; }
}

/* 顶栏返回(轻量文字按钮,非卡片) */
.acct-topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-main);
    padding: 12px 0;
    margin-bottom: 8px;
}
.acct-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    transition: background 0.12s, color 0.12s;
}
.acct-back:hover {
    background: var(--bg-sidebar);
    color: var(--text-primary);
}

/* 三层:同一时刻只一层可见 */
.acct-layer { animation: acct-fade 0.18s ease-out; }
.acct-layer[hidden] { display: none; }
@keyframes acct-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acct-layer { animation: none; } }

/* 页头:标题左,主操作右(无eyebrow,标题自承其重) */
.acct-pagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 18px;
}
.acct-pagehead h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* 主操作按钮(实色橙,文字用同色系深色保证对比) */
/* 添加账号主按钮:黑底白字(对齐视频管理页强调风格,非橙) */
.acct-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #111827;                 /* bg-black/gray-900 */
    color: #fff;
    border: none;
    border-radius: 8px;                  /* rounded-lg */
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background 0.12s, transform 0.08s;
}
.acct-add-btn:hover { background: #000; }
.acct-add-btn:active { transform: scale(0.98); }
.acct-add-btn:focus-visible { outline: 2px solid #9ca3af; outline-offset: 2px; }

/* 第1层·账号行式列表(蝉妈妈式:左mark+中信息+右状态,整行无外卡片) */
/* 账号卡片网格(对齐视频管理视频卡骨架) */
.acct-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
@media (max-width: 600px) {
    .acct-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* 配色对齐视频管理页Tailwind灰阶(非橙色) */
.acct-card {
    background: #ffffff;                 /* bg-white */
    border: 1px solid #f3f4f6;           /* border-gray-100 */
    border-radius: 12px;                 /* rounded-xl(同视频卡) */
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);  /* shadow-sm */
    transition: box-shadow 0.18s;
}
.acct-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }  /* hover:shadow-md */
.acct-card.is-expired { opacity: 0.85; }

/* 卡片顶部·头像/平台logo区(对应视频卡封面位) */
.acct-card-cover {
    position: relative;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;                 /* bg-gray-100 */
}
.acct-card-cover-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.acct-card-cover-logo svg { display: block; width: 56px; height: 56px; }
.acct-card-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 状态角标:右上角胶囊(色值对齐视频卡状态:正常green/失败red) */
.acct-card-status {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: #16a34a;                      /* green-600(同视频卡"已完成") */
    backdrop-filter: blur(2px);
}
.acct-card-status::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.acct-card-status.is-bad { color: #dc2626; }  /* red-600(同视频卡"失败") */

/* 卡片中部·标题+meta */
.acct-card-body { padding: 12px 14px 8px; }
.acct-card-title {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 700;                    /* font-bold(同视频卡标题) */
    color: #111827;                      /* text-gray-900 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acct-card.is-expired .acct-card-title { color: #6b7280; }  /* gray-500 */
.acct-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.acct-card-plat {
    font-size: 12px;
    color: #6b7280;                      /* gray-500 */
    padding: 2px 9px;
    border: 1px solid #e5e7eb;           /* gray-200 */
    border-radius: 999px;
}
.acct-card-fans { font-size: 12px; color: #9ca3af; }      /* gray-400 */
.acct-card-fans-num { font-weight: 700; color: #111827; } /* gray-900 */

/* 卡片底部·双按钮(完全对齐视频卡:制作过程/下载 同款灰按钮,无橙) */
.acct-card-actions {
    display: flex;
    gap: 10px;
    padding: 4px 14px 14px;
}
.acct-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;                   /* font-medium */
    color: #4b5563;                     /* text-gray-600 */
    background: #f9fafb;                /* bg-gray-50 */
    border: 1px solid #f3f4f6;          /* border-gray-100 */
    border-radius: 8px;                 /* rounded-lg */
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.acct-card-btn:hover {
    background: #f3f4f6;                /* hover:bg-gray-100 */
    color: #111827;                     /* hover:text-gray-900 */
    border-color: #d1d5db;             /* hover:border-gray-300 */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);  /* hover:shadow-md */
    transform: translateY(-2px);       /* hover:-translate-y-0.5 */
}
.acct-card-btn:active { transform: translateY(0); }
.acct-card-btn:focus-visible { outline: 2px solid #9ca3af; outline-offset: 2px; }
/* 过期账号:重新登录按钮文字转红(提醒,但保持灰底灰边,不破坏统一) */
.acct-card.is-expired .acct-relogin { color: #dc2626; }  /* red-600 */
.acct-card.is-expired .acct-relogin:hover { color: #b91c1c; }  /* red-700 */

/* 第1层·空/加载态 */
.acct-empty, .acct-loading {
    padding: 40px 8px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}
.acct-footnote {
    margin: 22px 4px 0;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* 第2层·平台logo墙(蚁小二式·网格平铺,一个个logo摆出来) */
.acct-pagehead-hint {
    font-size: 12.5px;
    color: var(--text-tertiary);
    font-weight: 400;
}
.acct-platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 8px 0 0;
}
.acct-platform-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    transition: transform 0.1s, border-color 0.12s, box-shadow 0.12s;
}
.acct-platform-tile:hover:not(:disabled) {
    border-color: #d1d5db;              /* gray-300 */
    box-shadow: 0 6px 16px -8px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}
.acct-platform-tile:active:not(:disabled) { transform: translateY(0); }
.acct-platform-tile:focus-visible { outline: 2px solid #9ca3af; outline-offset: 2px; }
.acct-platform-tile:disabled { cursor: not-allowed; }
.acct-platform-tile:disabled .acct-tile-logo { filter: grayscale(1); opacity: 0.45; }
.acct-platform-tile:disabled .acct-tile-name { color: var(--text-secondary); }

.acct-tile-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.acct-tile-logo svg { display: block; }
.acct-tile-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}
.acct-tile-status {
    font-size: 11.5px;
    color: var(--text-tertiary);
    line-height: 1;
}
.acct-platform-tile:not(:disabled) .acct-tile-status {
    color: #111827;                      /* gray-900(可点=深色) */
}
@media (max-width: 900px) {
    .acct-platform-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .acct-platform-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 第3层·扫码态(居中单卡,信息聚焦) */
#acctLayerScan {
    padding-top: 24px;
}
.acct-scan-card {
    max-width: 420px;
    margin: 12px auto 0;
    padding: 40px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}
.acct-scan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.acct-scan-icon svg { display: block; }
#acctScanIcon:empty { display: none; }
.acct-scan-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.acct-scan-text {
    margin: 0 0 24px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.acct-scan-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.acct-btn-ghost {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    transition: background 0.12s;
}
.acct-btn-ghost:hover { background: var(--bg-sidebar); }
.acct-btn-ghost:focus-visible { outline: 2px solid #9ca3af; outline-offset: 2px; }

.conv-item {
    display: flex;
    align-items: center;
    padding: 9px 12px 9px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: background 0.12s;
    position: relative;
    line-height: 1.4;
}
.conv-item:hover { background: rgba(0,0,0,0.04); color: var(--text-primary); }
.conv-item.active { background: rgba(0,0,0,0.06); color: var(--text-primary); font-weight: 500; }
.conv-item.pinned .conv-title::before {
    content: '📌 ';
    font-size: 11px;
}

.conv-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
}

/* 豆包式 ... 菜单按钮 */
.conv-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}
.conv-item:hover .conv-menu-btn,
.conv-item.active .conv-menu-btn { display: block; }
.conv-menu-btn:hover { background: rgba(0,0,0,0.08); color: var(--text-primary); }

/* 下拉菜单 */
.conv-menu {
    position: absolute;
    right: 8px;
    top: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 4px;
    z-index: 50;
    min-width: 100px;
}
.conv-menu-item {
    display: block;
    width: 100%;
    padding: 7px 12px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
}
.conv-menu-item:hover { background: #f5f5f7; }
.conv-menu-item.danger:hover { background: #fff1f0; color: #cf1322; }

/* === 主区 === */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-main);
}

.chat-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;  /* 会话72: 让标题绝对居中 */
}
.chat-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: absolute;  /* 豆包式: 标题绝对居中 */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 200px);  /* 两侧避开菜单/头像 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.header-spacer { flex: 1; }

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.icon-btn:hover { background: rgba(0,0,0,0.04); }

/* 右上角个人中心入口（和正式服index.html一致：头像按钮+下拉菜单）*/
.avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s;
    border: 1px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}
.avatar-btn:hover { background: #e8e8ea; }
.avatar-placeholder { font-size: 15px; }
#avatarImg { width: 100%; height: 100%; object-fit: cover; display: none; }

/* 会话92：header 右侧按钮组（客服钮 + 头像钮并排）*/
.header-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.kefu-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f2;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.15s;
}
.kefu-btn:hover { background: #e8e8ea; }

/* 会话92：客服二维码弹窗（极简：全屏遮罩+居中图，点遮罩任意处关闭）*/
.kefu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}
.kefu-overlay.hidden { display: none; }
.kefu-img {
    width: 274px;            /* 原图548宽的50% */
    height: auto;            /* 保持比例(408高) */
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* 下拉菜单（和正式服dropdownMenu一致结构）*/
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dd-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f7;
}
.dd-user .dd-icon { font-size: 16px; }
.dd-nickname { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.dd-uid { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    transition: background 0.12s;
}
.dd-item:hover { background: #f7f7f8; color: var(--text-primary); }
.dd-icon-gray { color: var(--text-tertiary); }
.dd-icon-orange { color: #ff6b00; }
.dd-logout { border-top: 1px solid #f5f5f7; color: #cf1322; }
.dd-logout:hover { background: #fff1f0; color: #cf1322; }

/* === 消息流 === */
.messages-wrap {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.messages {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 32px;
}

.msg {
    display: flex;
    margin-bottom: 24px;
}
.msg.user { justify-content: flex-end; }

/* 豆包式：无头像，纯内容 */
.bubble-wrap {
    max-width: 78%;
    display: flex;
    flex-direction: column;
}
.msg.user .bubble-wrap { align-items: flex-end; }

.bubble {
    padding: 11px 15px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.msg.user .bubble {
    background: var(--bubble-user);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg.assistant .bubble {
    background: var(--bg-bubble-ai);  /* 豆包式: 浅灰气泡,无边框 */
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
/* AI bubble 内的 markdown 渲染 */
.msg.assistant .bubble { white-space: normal; }
/* 会话100·消息气泡单独放开文字选中(全局html禁了,这里补回,用户能长按复制AI回复) */
.msg.assistant .bubble,
.msg.user .bubble,
.msg .bubble {
    -webkit-user-select: text;
    user-select: text;
}
.msg.assistant .bubble p { margin: 8px 0; white-space: pre-wrap; }
.msg.assistant .bubble p:first-child { margin-top: 0; }
.msg.assistant .bubble p:last-child { margin-bottom: 0; }
.msg.assistant .bubble h1,
.msg.assistant .bubble h2,
.msg.assistant .bubble h3 {
    margin: 16px 0 8px;
    font-weight: 600;
    line-height: 1.3;
}
.msg.assistant .bubble h1 { font-size: 18px; }
.msg.assistant .bubble h2 { font-size: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.msg.assistant .bubble h3 { font-size: 15px; }
.msg.assistant .bubble ul,
.msg.assistant .bubble ol { margin: 8px 0; padding-left: 24px; }
.msg.assistant .bubble li { margin: 4px 0; }
.msg.assistant .bubble code {
    background: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SF Mono", Consolas, Monaco, monospace;
    font-size: 13px;
}
.msg.assistant .bubble pre {
    background: #1a1a1a;
    color: #f1f1f3;
    padding: 12px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 8px 0;
}
.msg.assistant .bubble pre code { background: none; color: inherit; padding: 0; }
.msg.assistant .bubble table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}
.msg.assistant .bubble th,
.msg.assistant .bubble td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.msg.assistant .bubble th { background: #f5f5f7; font-weight: 600; }
.msg.assistant .bubble tr:nth-child(even) { background: #fafafa; }
.msg.assistant .bubble a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.msg.assistant .bubble img {
    max-width: 220px;
    max-height: 220px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    cursor: pointer;
}
.msg.assistant .bubble strong { font-weight: 600; }
.msg.assistant .bubble blockquote {
    border-left: 3px solid var(--border);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--text-secondary);
}

/* 流式中的loading状态 */
.loading {
    color: var(--text-tertiary);
    font-style: italic;
}
.loading::after {
    content: '...';
    animation: dots 1.4s infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* OPTIONS按钮区（保留会话67逻辑）*/
.options-container {
    max-width: 820px;
    margin: 0 auto 20px;
    padding: 0 20px;
}
.options-container.dismissed { display: none; }
.options-prompt {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.option-btn {
    display: inline-block;
    padding: 7px 14px;
    margin: 4px 6px 4px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
}
.option-btn:hover { border-color: var(--text-primary); }
.option-btn.recommended {
    /* 会话117·K哥令：推荐≠选中。虚线边+角标提示，不再用与selected相同的实心填充 */
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px dashed var(--text-primary);
    font-weight: 600;
    position: relative;
}
.option-btn.recommended::after {
    content: '荐';
    position: absolute;
    top: -7px;
    right: -7px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--text-primary);
    border-radius: 50%;
}
.option-btn.recommended:hover { background: var(--bg-card); border-style: solid; }
.option-btn.selected {
    background: var(--bubble-user);
    color: #fff;
    border-color: var(--bubble-user);
    opacity: 1;
}
/* 会话90修复第2条：去掉 .option-btn:not(.selected){opacity:0.4}
   原来点一个按钮后其余全变40%透明（白色遮罩感看不清）。改为只给选中态加高亮，其他保持正常可读。 */

/* 文件卡片（保留会话67逻辑）*/
.file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    max-width: 320px;
    transition: all 0.15s;
}
.file-card:hover { box-shadow: var(--shadow); }
.file-card-icon { font-size: 28px; }
.file-card-info { flex: 1; min-width: 0; }
.file-card-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.file-card-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.file-card-action { color: var(--text-tertiary); font-size: 18px; }

/* === 输入栏（豆包式：白底+浅灰输入框）=== */
.chat-input-bar {
    background: var(--bg-card);  /* 白底 */
    padding: 12px 20px 12px;
}
.chat-input-bar.active .input-row {
    border-color: var(--text-primary);
}
.input-row {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;  /* 会话97修复: 垂直居中(之前flex-end导致icon贴底) */
    position: relative;   /* 会话97: 让转文字中::after提示能定位 */
    gap: 8px;
    background: var(--bg-bubble-ai);  /* 浅灰输入框(豆包式) */
    border: 1px solid transparent;    /* 无边框(豆包式) */
    border-radius: 22px;
    padding: 6px 6px 6px 8px;  /* 会话97: 上下padding对称 */
    transition: all 0.15s;
}
/* 会话97·附件+号钮(和voice-toggle统一风格, PC+移动都用这个) */
.attach-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #8a8a8e;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s;
}
.attach-btn:hover { color: #1a1a1a; }
.attach-btn svg { width: 24px; height: 24px; }

/* === 会话97·微信同款语音输入(精确复刻微信截图) === */

/* 语音/键盘切换图标钮(输入框左侧, 微信同款·灰色无背景框图标) */
.voice-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #8a8a8e;  /* 微信切换图标真实灰色 */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s;
}
.voice-toggle:hover { color: #1a1a1a; }
.voice-toggle:active { color: #1a1a1a; }
.voice-toggle svg { width: 24px; height: 24px; }

/* 按住说话·长条钮(微信官方WeUI源码精确复刻, 非截图推测)
   数值来源: Tencent/weui → weui-button.less + light.less */
.hold-to-talk {
    flex: 1;
    min-height: 48px;                    /* @weuiBtnHeight */
    background: rgba(0,0,0,0.05);        /* --weui-FG-5 ≈ #F2F2F2 */
    color: rgba(0,0,0,0.9);              /* --weui-FG-0 ≈ #1A1A1A */
    border: none;
    border-radius: 8px;                  /* @weuiBtnBorderRadius */
    font-size: 17px;                     /* @weuiBtnFontSize */
    font-weight: 500;                    /* WeUI官方字重 */
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.1s;
    -webkit-touch-callout: none;
    touch-action: none;
    position: relative;
    line-height: 1.41;                   /* (48-24)/17 ≈ 1.41 微信行高 */
}
/* 按下/录音中: 微信用::before盖一层rgba(0,0,0,0.2)遮罩(官方做法, 不是改背景色) */
.hold-to-talk:active::before,
.hold-to-talk.recording::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);         /* --weui-BTN-ACTIVE-MASK */
    border-radius: 8px;
    pointer-events: none;
}
.hold-to-talk.cancel {
    background: rgba(0,0,0,0.05);        /* 取消态按钮不变, 由中央浮层表达 */
}

/* 录音中底部提示条(微信同款·输入栏上方居中小胶囊"手指上滑 取消发送") */
.recording-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 16px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
}
.recording-tip.show { display: block; animation: rec-tip-in 0.15s ease; }
.recording-tip.cancel-mode { background: rgba(250, 81, 81, 0.9); }  /* 微信红#FA5151 */
@keyframes rec-tip-in {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 会话97·录音浮层(微信同款·上下双弧形大块)
   定位: 屏幕下半部, 输入栏正上方
   录音态: 只显示下方绿色音浪块
   上滑态: 上方灰色取消块淡入 + 下方音浪块变暗 */
.recording-toast {
    display: none;
    position: fixed;
    left: 0; right: 0;
    bottom: 90px;  /* 输入栏上方 */
    z-index: 300;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none;
}
.recording-toast.show { display: flex; }

/* 上方取消块(默认隐藏, 上滑时显示) - 灰色弧形 */
.rec-cancel-block {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 110px 110px 12px 12px;  /* 上圆下直=下半弧形 */
    color: #fff;
    margin-bottom: -1px;
}
.recording-toast.cancel .rec-cancel-block { display: flex; }
.rec-cancel-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}
.rec-cancel-text {
    font-size: 11px;
    opacity: 0.9;
}

/* 下方绿色音浪块 - 上圆下直弧形 */
.rec-wave-block {
    width: 110px;
    height: 110px;
    background: #07C160;  /* 微信品牌绿 --weui-BRAND */
    border-radius: 12px 12px 110px 110px;  /* 上直下圆=上半弧形 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s, background 0.15s;
}
.recording-toast.cancel .rec-wave-block {
    opacity: 0.4;  /* 上滑时下方变暗 */
}

/* 音浪动画(9根竖条, 微信同款跳动) */
.rec-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
}
.rec-waves span {
    display: block;
    width: 4px;
    background: #fff;
    border-radius: 2px;
    animation: wave-bounce 0.9s ease-in-out infinite;
}
.rec-waves span:nth-child(1) { height: 14px; animation-delay: 0s; }
.rec-waves span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.rec-waves span:nth-child(3) { height: 34px; animation-delay: 0.2s; }
.rec-waves span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.rec-waves span:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.rec-waves span:nth-child(6) { height: 30px; animation-delay: 0.3s; }
.rec-waves span:nth-child(7) { height: 40px; animation-delay: 0.2s; }
.rec-waves span:nth-child(8) { height: 24px; animation-delay: 0.1s; }
.rec-waves span:nth-child(9) { height: 14px; animation-delay: 0s; }
@keyframes wave-bounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* 会话97·语音转文字中锁定输入(输入栏整体变灰, 明确告诉用户请稍候) */
body.voice-transcribing .input-row {
    opacity: 0.6;
    pointer-events: none;  /* 禁用所有交互(打字/点钮都拦) */
}
body.voice-transcribing .input-row::after {
    content: '语音转文字中…';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* 会话97·语音占位气泡(松手立刻出, 转完换文字) - 绿色用户气泡里的小音浪 */
.msg.user .bubble.voice-bubble-loading {
    background: #07C160;  /* 微信品牌绿 */
    color: #fff;
    padding: 12px 20px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.voice-placeholder-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 22px;
}
.voice-placeholder-wave span {
    display: block;
    width: 3px;
    background: #fff;
    border-radius: 2px;
    animation: voice-ph-bounce 0.9s ease-in-out infinite;
}
.voice-placeholder-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-placeholder-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.voice-placeholder-wave span:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.voice-placeholder-wave span:nth-child(4) { height: 16px; animation-delay: 0.45s; }
.voice-placeholder-wave span:nth-child(5) { height: 8px; animation-delay: 0.6s; }
@keyframes voice-ph-bounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* 旧voice-btn/voice-status/旧toast已废弃(会话97重构为微信同款双弧形) */

/* 会话96·骨架屏(AI回复前的占位, 比三点动画更专业) */
.skeleton-msg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ececee 25%, #f5f5f7 37%, #ececee 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 95%; }
@keyframes skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 会话96·下拉刷新指示器(顶部下拉时出现) */
.pull-refresh-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0;
    z-index: 5;
}
.pull-refresh-indicator.show { opacity: 1; }
.pull-refresh-indicator.refreshing {
    animation: voice-pulse 1s linear infinite;
    background: var(--bubble-user);
    color: #fff;
}

/* 会话96·网络断线提示条(顶部) */
.network-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9500;
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 4px;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.3s;
}
.network-banner.show { transform: translateY(0); }

/* 会话97·消息底部复制/转发按钮(豆包同款·纯icon无文字) */
.msg-actions-wrap {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}
.msg-action-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);  /* #999 灰 */
    padding: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
    line-height: 1;
}
.msg-action-btn:hover:not(:disabled) {
    color: var(--text-secondary);
}
.msg-action-btn:disabled { opacity: 0.5; cursor: default; }
.msg-action-btn svg { width: 16px; height: 16px; }  /* 豆包同款纯icon */

/* 会话96·图文卡片转发弹层(长按保存) */
.share-card-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}
.share-card-modal.show { display: flex; }
.share-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}
.share-card-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}
.share-card-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    display: block;
}
.share-card-close {
    position: absolute;
    top: 8px; right: 12px;
    background: none; border: none;
    font-size: 24px; color: var(--text-secondary);
    cursor: pointer;
}
.share-card-tip {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-tertiary);
}

.chat-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 4px;
    height: calc(1.5em + 16px);      /* 会话105d: 固定单行高,治安卓web-view长placeholder撑2行(对齐iOS) */
    min-height: calc(1.5em + 16px);
    max-height: 160px;
    box-sizing: border-box;
    overflow-y: auto;                /* 输入多时内部滚动,不撑高布局 */
    font-family: inherit;
    color: var(--text-primary);
}
.chat-input::placeholder { color: var(--text-tertiary); }

.send-btn {
    background: var(--bubble-user);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.send-btn:hover:not(:disabled) { background: #333; }
.send-btn:disabled { background: #ccc; cursor: not-allowed; }
/* 会话74: 停止模式 - 按钮变红色,提示用户可点击停止 */
.send-btn.stop-mode { background: #1a1a1a; animation: pulse-stop 1.5s ease-in-out infinite; }
.send-btn.stop-mode:hover { background: #000; }
@keyframes pulse-stop {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(26, 26, 26, 0); }
}

/* === 响应式：移动端侧边栏可折叠 === */
.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: 260px;
        transform: translateX(-100%);
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        padding-top: env(safe-area-inset-top);  /* 会话95·iPhone刘海屏安全区 */
    }
    .sidebar.open { transform: translateX(0); }
    .messages { padding: 16px 12px 24px; }
    .bubble-wrap { max-width: 85%; }
    .chat-header { padding: 0 12px; }
    .chat-input-bar {
        padding: 10px 12px 6px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));  /* 会话95·iPhone home条安全区 */
    }
}

/* 会话95·移动端侧栏遮罩层(点空白关闭侧栏,之前打开关不掉卡死) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;  /* 低于侧栏100,高于内容 */
    display: block;
}
@media (min-width: 769px) {
    .sidebar-overlay { display: none; }  /* PC端不需要遮罩 */
}

/* 会话95·小屏断点(480px): 放大字体提升微信内可读性 + 左右留白对称 */
@media (max-width: 480px) {
    .bubble { font-size: 15px; }          /* 原14px偏小 */
    .chat-title { font-size: 15px; }
    .messages { padding: 12px 14px 20px; }  /* 左右14px对称留白(原8px太贴边) */
    .msg.assistant .bubble-wrap { max-width: 100%; }  /* AI气泡撑满,左右靠padding对称 */
    .msg.user .bubble-wrap { max-width: 85%; }         /* 用户气泡保持靠右收窄 */
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d0d4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b0b0b4; }


/* === 爆单侠公众号异步任务扫码弹窗（会话73·对齐扫码登录样式） === */
.async-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.async-modal.hidden { display: none; }
.async-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
}
/* 卡片:对齐扫码登录(w-80=320px px-8=32px py-7=28px rounded-2xl=16px) */
.async-card {
    position: relative; z-index: 10;
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    width: 320px; padding: 28px 32px;
    display: flex; flex-direction: column; align-items: center;
}
.async-header {
    width: 100%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; position: relative;
}
.async-title {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
}
.async-close {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 22px;
    color: var(--text-tertiary); cursor: pointer; line-height: 1;
    padding: 4px 8px;
}
.async-close:hover { color: var(--text-primary); }
/* 二维码容器:对齐扫码登录(130x130) */
.async-qr-container {
    width: 130px; height: 130px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px auto;
    overflow: hidden;
}
.async-qr-container img {
    width: 130px; height: 130px; object-fit: contain;
}
.async-qr-loading {
    font-size: 13px; color: var(--text-tertiary);
}
/* 微信icon:对齐扫码登录(w-10 h-10容器+w-14 h-14图) */
.async-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 10px auto;
}
.async-icon img {
    width: 28px; height: 28px; object-fit: contain;
}
.async-subtitle {
    font-size: 12px; color: var(--text-tertiary);
    margin-bottom: 14px; text-align: center;
}
.async-status {
    font-size: 12px; color: var(--text-secondary);
    text-align: center; margin-bottom: 16px;
    padding: 8px 12px; background: #f1f1f3; border-radius: 6px;
    width: 100%;
}
.async-status.hidden { display: none; }
/* 确认按钮:对齐扫码登录的黑色按钮 */
.async-btn-primary {
    width: 100%; padding: 10px; margin-top: 10px;
    background: var(--bubble-user); color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer;
}
.async-btn-primary:hover { opacity: 0.9; }
/* 会话76·复刻商品图预览(豆包样式·输入框内部) */
.input-container {
    flex: 1; display: flex; flex-direction: column;
    background: var(--bubble-ai, #f5f5f5); border-radius: 12px;
    padding: 4px 8px; min-width: 0; max-width: 100%;
}
.image-preview {
    display: inline-flex; align-items: flex-end; gap: 2px;
    padding: 4px 0;
    width: fit-content;
}
.image-preview img {
    width: 56px; height: 56px; object-fit: cover;
    border-radius: 8px; border: 1px solid rgba(0,0,0,0.1);
}
.image-preview button {
    background: rgba(0,0,0,0.6); color: #fff; border: none;
    border-radius: 50%; width: 18px; height: 18px;
    font-size: 11px; cursor: pointer; padding: 0;
    margin-bottom: 2px; margin-left: -6px;
    display: flex; align-items: center; justify-content: center;
}
.image-preview button:hover { background: rgba(0,0,0,0.8); }
.replicate-status { margin-top: 8px; padding: 8px; background: rgba(0,0,0,0.04); border-radius: 6px; font-size: 13px; }

/* 会话76·拖拽上传高亮 */
.chat-input-bar.drag-over {
    background: rgba(0, 120, 212, 0.08);
    border-top: 2px dashed #0078d4;
}

/* ============ 会话100续五·数据中心(卧槽级·shadcn单色+tabular-nums+语义色) ============ */
.data-panel {
    font-variant-numeric: tabular-nums;  /* 等宽数字·数据页专业感命门 */
    padding-bottom: 16px;
}

/* 页头 */
.data-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}
.data-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;       /* gray-900 */
}
.data-sub {
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;       /* gray-500 */
}
.data-head-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.data-range {
    display: inline-flex;
    background: #f3f4f6;   /* gray-100 */
    border-radius: 8px;
    padding: 3px;
}
.range-btn {
    padding: 5px 14px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.range-btn:hover { color: #111827; }
.range-btn.active { background: #111827; color: #fff; }
.data-sync { font-size: 11.5px; color: #9ca3af; }

/* ① KPI条 */
.data-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.kpi-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
}
.kpi-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
}
.kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.kpi-foot {
    margin-top: 8px;
    font-size: 11.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kpi-sub { color: #9ca3af; }
.tnum { font-variant-numeric: tabular-nums; }
/* 趋势:涨绿/跌红/平灰(语义色·非装饰) */
.trend { font-weight: 600; font-size: 11.5px; }
.trend.up { color: #16a34a; }     /* green-600 */
.trend.down { color: #dc2626; }   /* red-600 */
.trend.flat { color: #9ca3af; }

/* 区块通用 */
.data-block {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
}
.data-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.data-block-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
}
.data-block-tag {
    font-size: 11.5px;
    color: #9ca3af;
}
/* 双栏网格 */
.data-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.data-grid-2 .data-block { margin-bottom: 0; }

/* ② 留存曲线 */
.retention-chart { width: 100%; }
.rt-svg { width: 100%; height: auto; display: block; }
.rt-grid { stroke: #f3f4f6; stroke-width: 1; }
.rt-ylabel, .rt-xlabel { font-size: 10px; fill: #9ca3af; font-family: inherit; }
.rt-line { fill: none; stroke: #111827; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rt-node { fill: #111827; stroke: #fff; stroke-width: 2; }
.rt-node-3 { fill: #dc2626; }   /* 3秒节点红·警示 */
.rt-node-5 { fill: #d97706; }   /* 5秒节点橙 */
.rt-nodelabel { font-size: 11px; font-weight: 700; fill: #111827; font-family: inherit; }
.retention-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
}
.rl-item { display: inline-flex; align-items: center; gap: 6px; }
.rl-dot { width: 8px; height: 8px; border-radius: 50%; }
.rl-good { background: #dc2626; }
.rl-mid { background: #d97706; }
.rl-hint { color: #9ca3af; font-size: 11.5px; margin-left: auto; }

/* ③ 流量来源漏斗 */
.funnel-row { margin-bottom: 14px; }
.funnel-row:last-child { margin-bottom: 0; }
.funnel-label {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #374151;
    margin-bottom: 5px;
}
.funnel-label .tnum { font-weight: 600; color: #111827; }
.funnel-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}
.funnel-fill {
    height: 100%;
    background: #111827;
    border-radius: 999px;
    transition: width 0.4s ease;
}
/* 推荐流(第一项)用深色强调·其余渐浅 */
.funnel-row:nth-child(1) .funnel-fill { background: #111827; }
.funnel-row:nth-child(2) .funnel-fill { background: #374151; }
.funnel-row:nth-child(3) .funnel-fill { background: #6b7280; }
.funnel-row:nth-child(4) .funnel-fill { background: #9ca3af; }
.funnel-row:nth-child(5) .funnel-fill { background: #d1d5db; }

/* ④ 互动率细分 */
.engage-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f9fafb;
}
.engage-row:last-child { border-bottom: none; }
.engage-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.eg-high { background: #dcfce7; color: #15803d; }   /* green-100/700 转发评论高价值 */
.eg-mid  { background: #f3f4f6; color: #374151; }   /* 灰 点赞中等 */
.eg-low  { background: #fef3c7; color: #b45309; }   /* amber 收藏偏低提醒 */
.engage-info { flex: 1; min-width: 0; }
.engage-name { font-size: 13px; font-weight: 600; color: #111827; }
.engage-desc { font-size: 11px; color: #9ca3af; }
.engage-num { font-size: 18px; font-weight: 700; color: #111827; }
.engage-unit { font-size: 11px; color: #9ca3af; font-weight: 500; margin-left: 2px; }

/* ⑤ 粉丝画像 */
.demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.demo-row:last-child { margin-bottom: 0; }
.demo-label {
    font-size: 12px;
    color: #6b7280;
    width: 48px;
    flex-shrink: 0;
}
.demo-chip {
    padding: 3px 10px;
    font-size: 12px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
}
.demo-chip .tnum { font-weight: 600; }
.demo-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 64px;
    flex: 1;
}
.demo-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}
.demo-bar-fill {
    width: 100%;
    max-width: 28px;
    background: #111827;
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}
.demo-bar-val { font-size: 10px; color: #9ca3af; }

/* ⑥ 视频表现榜 */
.vlist-head, .vlist-row {
    display: grid;
    grid-template-columns: 1fr 80px 70px 70px;
    gap: 10px;
    align-items: center;
}
.vlist-head {
    font-size: 11px;
    color: #9ca3af;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vlist-head span:nth-child(n+2) { text-align: right; }
.vlist-row {
    padding: 11px 0;
    border-bottom: 1px solid #f9fafb;
    font-size: 13px;
}
.vlist-row:last-child { border-bottom: none; }
.vlist-title {
    color: #111827;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.vlist-title > span:not(.vlist-rank) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vlist-rank {
    width: 18px; height: 18px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vlist-row:nth-child(1) .vlist-rank { background: #111827; color: #fff; }
.vlist-play, .vlist-er { color: #374151; text-align: right; }
.vlist-cr { text-align: right; font-weight: 600; }
.vlist-cr.eg-high { color: #15803d; }
.vlist-cr.eg-mid { color: #374151; }
.vlist-cr.eg-low { color: #b45309; }

/* 响应式:窄屏KPI变2列,双栏变单栏 */
@media (max-width: 900px) {
    .data-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .data-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .data-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kpi-value { font-size: 22px; }
    .data-head-right { width: 100%; justify-content: space-between; }
}

/* ============ 数据板块·新增组件CSS(会话100续五) ============ */
/* AI洞察条 */
.insight-bar {
    display: flex;
    gap: 14px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.insight-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fbbf24;  /* 金·醒目 */
}
.insight-body { flex: 1; min-width: 0; }
.insight-headline {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.insight-points { margin: 0; padding-left: 16px; }
.insight-points li {
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    margin-bottom: 3px;
}
.insight-points li:last-child { margin-bottom: 0; }

/* KPI卡:顶部布局+sparkline+对标 */
.kpi-card { display: flex; flex-direction: column; gap: 6px; }
.kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.kpi-card.kpi-drill { cursor: pointer; transition: box-shadow 0.15s, transform 0.1s; }
.kpi-card.kpi-drill:hover { box-shadow: 0 4px 12px -4px rgba(0,0,0,0.12); transform: translateY(-1px); }
.spark { color: #9ca3af; flex-shrink: 0; }
.kpi-card:hover .spark { color: #6b7280; }
.kpi-bench {
    font-size: 11px;
    color: #16a34a;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
    margin-top: 2px;
}
.kpi-bench .tnum { font-weight: 600; }

/* 账号切换器 + 贡献占比 */
.acct-scope { margin-bottom: 20px; }
.scope-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.scope-tabs::-webkit-scrollbar { height: 4px; }
.scope-tabs::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }
.scope-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.scope-tab:hover { border-color: #9ca3af; color: #111827; }
.scope-tab.active { background: #111827; color: #fff; border-color: #111827; }
.scope-cnt {
    background: rgba(255,255,255,0.2);
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
}
.scope-tab:not(.active) .scope-cnt { background: #f3f4f6; color: #6b7280; }
.scope-plat {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255,255,255,0.18);
}
.scope-tab:not(.active) .scope-plat { background: #f3f4f6; color: #6b7280; }
/* 贡献占比条 */
.scope-contrib {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
}
.sc-label {
    font-size: 11.5px;
    color: #9ca3af;
    display: block;
    margin-bottom: 10px;
}
.sc-bars { display: flex; flex-direction: column; gap: 8px; }
.sc-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}
.sc-bar-fill {
    height: 22px;
    border-radius: 5px;
    min-width: 4px;
    transition: width 0.4s ease;
}
.sc-fill-douyin { background: #111827; }
.sc-fill-xhs { background: #ff2442; }
.sc-fill-kuaishou { background: #ff7a00; }
.sc-fill-shipinhao { background: #07c160; }
.sc-bar-name {
    position: absolute;
    left: 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.sc-bar-pct {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    flex-shrink: 0;
}

/* 区块下钻入口 */
.block-drill {
    font-size: 11.5px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 8px;
    cursor: pointer;
}
.block-drill:hover { color: #111827; }

/* 互动细分·对标标签 */
.eg-bench {
    font-size: 10.5px;
    font-weight: 500;
    color: #16a34a;
    background: #dcfce7;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}
.engage-row.eg-low-row .eg-bench { color: #b45309; background: #fef3c7; }

/* 评论情感分析 */
.sentiment-bar {
    display: flex;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}
.seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    min-width: 0;
}
.seg-pos { background: #16a34a; }
.seg-neu { background: #9ca3af; }
.seg-neg { background: #dc2626; }
.sentiment-legend {
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 12px;
}
.sl-pos { color: #16a34a; }
.sl-neu { color: #9ca3af; }
.sl-neg { color: #dc2626; }
.sentiment-hot { font-size: 11.5px; color: #6b7280; }
.hot-chip {
    display: inline-block;
    padding: 2px 8px;
    margin: 3px 4px 0 0;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 11.5px;
    color: #374151;
}

/* 粉丝画像·活跃时段 */
.demo-time { font-size: 12px; color: #374151; }

/* 同行对比表 */
.peer-row {
    display: grid;
    grid-template-columns: 1fr 70px 60px 60px;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f9fafb;
    font-size: 12.5px;
}
.peer-row:last-child { border-bottom: none; }
.peer-head {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #f3f4f6;
}
.peer-head span:nth-child(n+2) { text-align: right; }
.peer-row span:nth-child(n+2) { text-align: right; color: #374151; }
.peer-name { color: #6b7280; }
.peer-row.is-me {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 9px 10px;
    margin: 0 -10px;
    border-bottom: none;
}
.peer-row.is-me .peer-name { color: #15803d; font-weight: 600; }
.peer-row.is-me i {
    font-style: normal;
    font-size: 10px;
    background: #15803d;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
}
.peer-row.is-me span:nth-child(n+2) { color: #15803d; font-weight: 600; }

/* 视频榜·可点击 */
.vlist-drill { cursor: pointer; transition: background 0.12s; }
.vlist-drill:hover { background: #f9fafb; }

/* 下钻浮层 */
.drill-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: drillFade 0.15s ease-out;
}
@keyframes drillFade { from { opacity: 0; } to { opacity: 1; } }
.drill-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25);
}
.drill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
}
.drill-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #111827; }
.drill-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.drill-close:hover { color: #111827; }
.drill-body { padding: 22px; }
.drill-chart { margin-bottom: 18px; }
.drill-compare { display: flex; flex-direction: column; gap: 12px; }
.dc-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.dc-row > span:first-child { width: 90px; color: #6b7280; flex-shrink: 0; }
.dc-row > span:last-child { width: 56px; text-align: right; font-weight: 600; color: #111827; }
.dc-me { color: #15803d !important; font-weight: 600; }
.dc-bar { flex: 1; height: 18px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.dc-bar > div { height: 100%; background: #15803d; border-radius: 4px; }
.dc-peer > div { background: #9ca3af; }
.dc-top > div { background: #6b7280; }
.drill-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.ds-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.ds-item span { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.ds-item b { font-size: 17px; color: #111827; font-weight: 700; }
.drill-insight {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.6;
}
.drill-bigstat { text-align: center; margin-bottom: 18px; }
.dbs-val { font-size: 32px; font-weight: 700; color: #111827; letter-spacing: -0.02em; }
.dbs-bench { font-size: 12px; color: #16a34a; margin-top: 6px; }
.drill-subhead {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.drill-vrow {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f9fafb;
    font-size: 13px;
    color: #374151;
}
.drill-vrow:last-child { border-bottom: none; }

/* 导出按钮 */
.data-export {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.data-export:hover { border-color: #9ca3af; color: #111827; }

/* 图文阅读曲线复用rt样式·节点用橙系 */

/* 会话100续五·账号过期红色横条(客户端检测到cookie失效时弹) */
.acct-expired-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13.5px;
}
.ae-icon {
    width: 22px; height: 22px;
    background: #dc2626; color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}
.ae-text { flex: 1; font-weight: 500; }
.ae-btn {
    padding: 6px 16px;
    background: #dc2626; color: #fff;
    border: none; border-radius: 6px;
    font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; flex-shrink: 0;
    transition: background 0.12s;
}
.ae-btn:hover { background: #b91c1c; }
.ae-close {
    background: none; border: none;
    color: #991b1b; font-size: 20px;
    cursor: pointer; padding: 0 4px; line-height: 1;
    opacity: 0.6;
}
.ae-close:hover { opacity: 1; }
