/* ==================== 重置基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 整体字体 16px */
html {
    font-size: 16px;
}
html, body {
    height: 100%;
}
body {
    font-size: 16px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* ==================== 整体布局 ==================== */
.layout {
    display: flex;
    height: 100vh;
}

/* ==================== 左侧侧边栏 ==================== */
.sidebar {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #d0def2 url('../images/left_bg.png') no-repeat center / cover;
    color: #333;
    position: relative;
    z-index: 2;
}

/* 第一个区块：logo，180px，居中，上20px、下10px */
.logo-box {
    padding: 20px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-box img {
    width: 180px;
    height: auto;
    display: block;
}

/* 菜单 */
.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-align: left;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e7e7e7;
    border-radius: 999px; /* 胶囊状 */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.menu-item .menu-icon {
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 18px;
    line-height: 1;
}
.menu-item .menu-label {
    font-size: 14px;
}
.menu-item:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.menu-item.active {
    background: linear-gradient(60deg, #7083d3, #997cc2);
    border-color: transparent;
    color: #fff;
}

/* 第四个区块：空白，预留 */
.spacer-box {
    height: 50px;
}

/* ==================== 右侧主区域 ==================== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f5f9fc;
}

/* 头部：60px 通栏 */
.header {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #f7f9fa;
    border-bottom: 1px solid #e7e9eb;
}
.header-msg {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #243a5c;
}
.header-member {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* 会员区域按钮：胶囊圆角矩形，常态白底淡灰边框轻阴影，悬停与左侧菜单选中同色 */
.btn {
    position: relative;
    isolation: isolate;
    padding: 5px 14px;
    border: none;
    border-radius: 999px;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
    transition: color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
/* 悬停渐变背景：伪元素淡入，保证颜色过渡平滑 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(60deg, #7083d3, #997cc2);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.btn:hover {
    color: #fff;
    box-shadow: 0 4px 12px rgba(112, 131, 211, 0.30);
}
.btn:hover::before {
    opacity: 1;
}
/* 注册/登录合并按钮：文字增多，略宽 */
.btn-auth {
    padding: 5px 16px;
}
/* 未认证文字链接：常态灰色，悬停紫色 */
.verify-link {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.verify-link:hover {
    color: #a855f7;
}
/* 已认证徽标 */
.verified-badge {
    font-size: 11px;
    color: #a855f7;
    margin-left: 4px;
}
/* 顶部消息链接 */
.msg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #243a5c;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.msg-link:hover {
    color: #000;
}
.msg-icon {
    font-size: 24px;
}
.msg-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.msg-dot {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: #f5222d;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #fff;
    white-space: nowrap;
}

.member-guest {
    display: flex;
    align-items: center;
    gap: 10px;
}
.member-user {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}
/* 头像 + 名字/昵称/手机号 作为一个整体 */
.member-id {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}
.member-id .phone {
    white-space: nowrap;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}
.phone {
    font-size: 14px;
    color: #243a5c;
}

/* PC 端介绍区：左介绍右机器人，无背景（独立代码块） */
.pc-hero {
    padding: 20px 40px 0;
}
.pc-intro {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pc-intro-text {
    flex: 1;
    min-width: 0;
}
.pc-site-name {
    font-size: 24px;
    font-weight: 700;
    color: #155f8f;
    letter-spacing: 1px;
}
.pc-site-desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #4d82a6;
}
.pc-robot {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .pc-hero {
        display: none;
    }
}

/* 中间主要部分 */
.content {
    flex: 1;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffffff transparent;
}
.home-view {
    padding: 20px 40px;
}

/* 细滚动条（WebKit 内核） */
.content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.content::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.content::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 3px;
}
.content::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff;
}
.content::-webkit-scrollbar-track {
    background-color: transparent;
}

/* 子页面（我的案件 / 专业资源库等）滚动条：与执行AI页面一致 */
html:has(body.card-page) {
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
html:has(body.card-page)::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
html:has(body.card-page)::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
html:has(body.card-page)::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 3px;
}
html:has(body.card-page)::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
}
html:has(body.card-page)::-webkit-scrollbar-track {
    background-color: transparent;
}

.card-section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #155f8f;
    margin-bottom: 16px;
}
.section-title .iconfont {
    margin-right: 8px;
    font-size: 18px;
    color: #155f8f;
}

/* 卡片容器：弹性盒子，靠左 */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}
.card {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: calc(20% - 16px);
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.card-icon .iconfont {
    font-size: 20px;
    color: #2588bf;
}
.card-info {
    flex: 1;
    min-width: 0;
}
.card-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 入口页面 ==================== */
.entry-view {
    display: block;
    height: 100%;
}
.entry-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}
body.card-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px 40px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}
.breadcrumb-link {
    color: #243a5c;
    text-decoration: none;
    cursor: pointer;
}
.breadcrumb-link:hover {
    color: #2588bf;
    text-decoration: underline;
}
.breadcrumb-sep {
    color: #ccc;
}
.breadcrumb-current {
    color: #243a5c;
    font-weight: bold;
}
.breadcrumb-current.breadcrumb-current-plain {
    font-weight: normal;
}
.breadcrumb-icon {
    margin-right: 6px;
    color: #243a5c;
}
.breadcrumb-back {
    color: #243a5c;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb-back:hover {
    color: #7c3aed;
}
.breadcrumb-asset {
    padding-left: 10px;
}
.page-intro {
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #fff;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}
.page-intro-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-intro-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: #47aed9;
}
/* ==================== 工具页：使用说明 ==================== */
.page-intro-head {
    align-items: center;
}
.page-intro-head .page-intro-icon {
    margin-top: 0;
    font-size: 14px;
    color: #2588bf;
    line-height: 1;
}
.page-intro-desc {
    margin: 0;
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.75;
    text-align: justify;
}
/* ==================== 工具页：面包屑与使用说明合并为一行（独立代码块） ==================== */
.breadcrumb:has(.page-intro-desc) {
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #fff;
}
.breadcrumb .page-intro-desc {
    margin-left: 12px;
    font-size: 12px;
}
.case-create-btn {
    position: relative;
    isolation: isolate;
    margin-left: auto;
    flex-shrink: 0;
    border: none;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    cursor: pointer;
}
.case-create-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.case-create-btn:hover::before {
    opacity: 1;
}
.entry-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}
.upload-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
}
.upload-zone {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border: 2px dashed #bcd9ea;
    border-radius: 8px;
    background-color: #fafcfe;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: #2588bf;
    background-color: #eef6fb;
}
.upload-input {
    display: none;
}
.upload-icon {
    font-size: 48px;
    color: #47aed9;
}
.upload-title {
    font-size: 14px;
    color: #333;
}
.upload-tip {
    font-size: 12px;
    color: #999;
    word-break: break-all;
}
.entry-input {
    margin-top: 16px;
}
.attachment-input {
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f7f8fa;
    outline: none;
    cursor: text;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.attachment-input:hover {
    background-color: #f2f5f8;
}
.attachment-input:focus {
    border-color: #2588bf;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 136, 191, 0.12);
}
.attachment-input:empty::before {
    content: attr(data-placeholder);
    color: #999;
}
.file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 134px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
.file-list::-webkit-scrollbar {
    width: 6px;
}
.file-list::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 3px;
}
.file-list-empty {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: #bbb;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background-color: #fff;
}
.file-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.file-item-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item-meta {
    font-size: 12px;
    color: #999;
}
.file-item-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-progress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background-color: #eef1f5;
    overflow: hidden;
}
.file-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background-color: #2588bf;
    transition: width 0.2s ease;
}
.file-item-status {
    font-size: 12px;
    color: #2588bf;
    white-space: nowrap;
    min-width: 84px;
    text-align: right;
}
.file-item-status.done {
    color: #52c41a;
}
.file-item-status.aborted {
    color: #faad14;
}
.file-item-status.error {
    color: #f5222d;
}
.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.file-btn {
    position: relative;
    isolation: isolate;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #666;
    transition: color 0.25s ease;
}
.file-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.file-btn:hover {
    color: #fff;
}
.file-btn:hover::before {
    opacity: 1;
}
.file-btn:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}
.file-btn:disabled::before {
    display: none;
}
.file-btn-delete::before {
    background: linear-gradient(60deg, #e85959, #f5222d);
}
.file-btn-delete:hover:not(:disabled) {
    color: #fff;
}
.entry-actions {
    margin-top: 0;
    display: flex;
    justify-content: center;
}
.start-btn {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    padding: 10px 40px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(111, 131, 212, 0.35);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.start-btn:hover::before {
    opacity: 1;
}
.start-btn:active {
    transform: scale(0.96);
}
.start-btn:disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.start-btn:disabled::before {
    display: none;
}

/* ==================== 我的案件 ==================== */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.case-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
}
.case-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.case-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-actions,
.case-file-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.case-files {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.case-files-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}
.case-files-scroll::-webkit-scrollbar {
    width: 6px;
}
.case-files-scroll::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 3px;
}
.case-files-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.case-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background-color: #f7f8fa;
    border-radius: 6px;
}
.case-files-empty {
    padding: 8px 12px;
    font-size: 12px;
    color: #aaa;
}
.case-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.case-file-icon {
    color: #47aed9;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.case-file-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.file-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.file-item-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}
.case-file-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-icon-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    transition: color 0.3s ease;
}
.case-icon-btn:hover {
    color: #2588bf;
}
.case-icon-btn.case-icon-danger:hover {
    color: #f5222d;
}
.case-text-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    transition: color 0.3s ease;
}
.case-text-btn:hover {
    color: #2588bf;
}
/* AI分析：蓝色胶囊按钮（与创建案件按钮同色） */
.case-ai-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    color: #fff;
    background-color: #2588bf;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}
.case-ai-btn:hover {
    background-color: #0d77b5;
}
.case-msg-due {
    color: #e6a23c;
    font-weight: 600;
}
.case-msg-due:hover {
    color: #d18b1f;
}

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reminder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.reminder-item input {
    vertical-align: middle;
}

/* 我的案件：底部分页与链接 */
.case-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 16px;
    margin-bottom: 30px;
}
.case-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}
.case-link:hover {
    color: #000;
}
.pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.page-btn:hover:not(:disabled) {
    border-color: #2588bf;
    color: #2588bf;
}
.page-btn.active {
    border-color: #2588bf;
    background-color: #2588bf;
    color: #fff;
}
.page-btn:disabled {
    color: #ccc;
    border-color: #eee;
    background-color: #fafafa;
    cursor: not-allowed;
}

/* ==================== 创建案件 ==================== */
.create-panel {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.create-field {
    display: flex;
    align-items: center;
    gap: 10px;
}
.create-label {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.create-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.create-input:focus {
    border-color: #2588bf;
    background-color: #fff;
}
.create-actions {
    display: flex;
    justify-content: center;
}
.case-file-list {
    max-height: none;
    overflow-y: visible;
}
.case-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.case-file-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.case-file-icon svg {
    width: 100%;
    height: 100%;
}
.case-file-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-file-meta {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}
.case-file-percent {
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
    font-size: 12px;
    color: #2588bf;
}
.case-file-percent.done {
    color: #52c41a;
}
.case-file-percent.error {
    color: #f5222d;
}
.case-file-del {
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.3s ease;
}
.case-file-del:hover {
    color: #f5222d;
}
/* 上传进度：紫色旋转圆环 + 右侧百分比（分离，独立代码块） */
.case-file-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.case-file-ring {
    width: 20px;
    height: 20px;
    border: 3px solid #ede9fe;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: case-file-spin 0.8s linear infinite;
}
.case-file-pct {
    min-width: 40px;
    font-size: 13px;
    color: #7c3aed;
}
.case-file-pct.done {
    color: #2e8b57;
}
.case-file-pct.error {
    color: #f5222d;
}
@keyframes case-file-spin {
    to { transform: rotate(360deg); }
}
.history-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}
.history-title-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.history-title {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-meta {
    font-size: 12px;
    color: #999;
}
.history-status {
    flex-shrink: 0;
    font-size: 13px;
}
.history-download {
    flex-shrink: 0;
    font-size: 13px;
    color: #2588bf;
    text-decoration: none;
    cursor: pointer;
}
.history-download:hover {
    color: #0d77b5;
    text-decoration: underline;
}
.history-del {
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.3s ease;
}
.history-del:hover {
    color: #f5222d;
}
.history-empty {
    padding: 40px;
    text-align: center;
    font-size: 14px;
    color: #bbb;
}
.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.history-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}
.history-page-btn:hover:not(:disabled):not(.active) {
    border-color: #2588bf;
    color: #2588bf;
}
.history-page-btn.active {
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    border-color: transparent;
    color: #fff;
}
.history-page-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #fafafa;
}
.history-page-ellipsis {
    color: #999;
    padding: 0 2px;
}
.history-bottom-space {
    height: 30px;
}
.import-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.import-case-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.import-case-name:empty::before {
    content: '尚未导入案件';
    color: #bbb;
}
.import-btn {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    border: none;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    cursor: pointer;
}
.import-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.import-btn:hover::before {
    opacity: 1;
}
.case-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tool-picker-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}
.tool-picker-item {
    flex: 1 1 200px;
    min-width: 190px;
    max-width: calc(25% - 16px);
    background-color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tool-picker-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.tool-picker-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tool-picker-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.tool-picker-icon .iconfont {
    font-size: 20px;
    color: #2588bf;
}
.tool-picker-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.tool-picker-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-picker-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.case-picker-item:hover {
    border-color: #2588bf;
    background-color: #eef6fb;
}
.case-picker-name {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-picker-count {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}

/* ==================== 专业资源库 ==================== */
.resource-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.match-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.match-box:focus-within {
    border-color: #2588bf;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 136, 191, 0.12);
}
.match-input {
    min-height: 96px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    outline: none;
    cursor: text;
}
.match-input:empty::before {
    content: attr(data-placeholder);
    color: #999;
}
.match-file-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px 20px 0;
}
.match-file-list:empty {
    display: none;
}
.match-file-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background-color: #fafbfc;
    min-width: 0;
}
.match-file-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding-right: 20px;
}
.match-file-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.match-file-item-remove:hover {
    color: #f5222d;
    background-color: #fff1f0;
}
.match-file-item-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.match-file-item-icon svg {
    width: 100%;
    height: 100%;
}
.match-file-item-name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-file-item-meta {
    font-size: 11px;
    color: #999;
}
.match-file-item-line {
    display: flex;
    align-items: center;
    gap: 8px;
}
.match-file-progress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background-color: #eef1f5;
    overflow: hidden;
}
.match-file-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background-color: #2588bf;
    transition: width 0.2s ease;
}
.match-file-item-status {
    font-size: 11px;
    color: #2588bf;
    white-space: nowrap;
}
.match-file-item-status.done {
    color: #52c41a;
}
.match-file-item-status.aborted {
    color: #faad14;
}
.match-file-item-status.error {
    color: #f5222d;
}
.match-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid #eee;
}
.match-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}
.match-tool {
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.match-tool:hover {
    background-color: #eef6fb;
    color: #2588bf;
}
.match-tool .iconfont {
    margin-right: 4px;
    font-size: 14px;
}
.match-btn {
    position: relative;
    isolation: isolate;
    border: none;
    border-radius: 999px;
    padding: 8px 24px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.match-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.match-btn:hover::before {
    opacity: 1;
}
.match-btn:active {
    transform: scale(0.96);
}
.region-select {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background-color: #fafbfc;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}
.region-select label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.region-amount {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
@media (max-width: 768px) {
    .region-amount {
        flex-basis: 100%;
    }
}
.region-select select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.region-select select:focus {
    border-color: #2588bf;
}
.lawyer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.lawyer-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.lawyer-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}
.lawyer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2588bf, #47aed9);
    color: #fff;
}
.lawyer-head-info {
    flex: 1;
    min-width: 0;
}
.lawyer-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}
.lawyer-firm {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}
.lawyer-intro {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-top: 6px;
}
.lawyer-ai {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #333;
}
.lawyer-ai-label {
    color: #999;
}
.lawyer-ai-value {
    color: #2588bf;
    font-weight: bold;
}
.lawyer-ai-review {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.lawyer-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.92);
    color: #2588bf;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lawyer-photo .iconfont {
    font-size: 32px;
}
.lawyer-photo-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    color: #555;
    font-size: 22px;
}
.lawyer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lawyer-btn {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    color: #666;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.lawyer-btn:hover {
    border-color: #2588bf;
    color: #2588bf;
}
.lawyer-btn-primary {
    margin-left: auto;
    border-color: #2588bf;
    background-color: #2588bf;
    color: #fff;
}
.lawyer-btn-primary:hover {
    background-color: #0d77b5;
    border-color: #0d77b5;
    color: #fff;
}
.lawyer-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

/* 律师详情模态框 / 专业资源库页面共享样式（原资产样式段中复用部分，资产功能撤下后保留） */
.asset-bottom-space {
    height: 30px;
}
.card-bottom-space {
    height: 40px;
}
.asset-links {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.asset-bottom-space2 {
    height: 20px;
}
.asset-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}
.asset-link:hover {
    color: #000;
}
.asset-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.asset-detail-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.asset-detail-photo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2588bf, #47aed9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
}
.asset-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.asset-detail-photo-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    color: #555;
    font-size: 20px;
}
.asset-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.asset-detail-meta {
    font-size: 13px;
    color: #666;
}
.asset-detail-intro {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    background-color: #f7f9fb;
    border-radius: 8px;
    padding: 12px 14px;
}
.asset-detail-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
}
.asset-detail-extra-title {
    font-weight: 600;
    color: #333;
}
.asset-detail-ai {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f0f8ff;
    border: 1px solid #d8ecf9;
    border-radius: 8px;
    padding: 12px 14px;
}
.asset-detail-ai-item {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.asset-detail-ai-label {
    color: #2588bf;
    font-weight: 600;
}
.asset-detail-ai-value {
    color: #fa8c16;
    font-weight: 700;
}
.asset-detail-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px dashed #e0e0e0;
    padding-top: 12px;
}
.asset-detail-contact-item {
    font-size: 14px;
    color: #333;
}
.asset-detail-contact-label {
    color: #999;
    margin-right: 4px;
}

/* 底部：暂时空 div */
.footer {
    height: 50px;
    flex-shrink: 0;
}

/* 侧边栏底部：关于我们/版权声明 + 备案号（淡灰，hover 深灰） */
.sidebar-footer {
    margin-top: auto;
    padding: 0 16px 16px;
    text-align: center;
}
.sidebar-footer-links a {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.sidebar-footer-links a:hover {
    color: #000;
}
.sidebar-footer-sep {
    display: inline-block;
    width: 1px;
    height: 10px;
    background: #999999;
    margin: 0 10px;
    vertical-align: middle;
}
.sidebar-footer-beian {
    margin-top: 6px;
}
.sidebar-footer-beian a {
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sidebar-footer-beian a:hover {
    color: #000;
}

/* ==================== 模态框 ==================== */
.modal-mask {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-mask-stacked {
    z-index: 10000;
}
.modal-warn {
    width: 360px;
}
.modal {
    width: 480px;
    max-width: 92%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f8fa;
    border: 1px solid #fff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
/* 标题栏：固定高度，不随内容收缩；标题垂直居中 */
.modal-header {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    margin-bottom: -10px;
}
.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
/* 自建弹窗 header 内的裸 span 标题统一为 modal-title 样式 */
.modal-header > span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.modal-close {
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    transition: color 0.3s ease, transform 0.15s ease;
}
.modal-close:hover {
    color: #000;
}
.modal-close:active {
    transform: scale(0.85);
}
/* 主内容区域：占据剩余空间，内容多时自身滚动 */
.modal-body {
    flex: 1 1 auto;
    background-color: transparent;
    border-radius: 0;
    padding: 20px 24px 32px;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
.modal-body::-webkit-scrollbar {
    width: 4px;
}
.modal-body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.modal-body::-webkit-scrollbar-track {
    background-color: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 2px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}
.modal-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    text-align: left;
}
.modal-msg {
    text-align: center;
    font-size: 14px;
    color: #666;
}
.modal-frame {
    width: 100%;
    height: 360px;
    border: none;
    display: block;
    border-radius: 6px;
}
body.card-page.modal-mode {
    background-color: transparent;
    background-image: none;
    padding: 0;
}
html.modal-mode {
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
html.modal-mode::-webkit-scrollbar {
    width: 6px;
}
html.modal-mode::-webkit-scrollbar-track {
    background-color: transparent;
}
html.modal-mode::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 3px;
}
html.modal-mode::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}
body.card-page.modal-mode .breadcrumb,
body.card-page.modal-mode .page-intro {
    display: none;
}
/* 模态框模式下隐藏手机端子页面左上角的消息 / 私信图标（api.js 注入，窄 iframe 会误触发移动端样式） */
body.card-page.modal-mode .m-sub-msg-bar {
    display: none;
}
body.card-page.modal-mode .create-panel {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}
.modal-footer {
    margin-top: 28px;
    padding: 0 0 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
/* 模态框配套按钮：常态#7baed9，悬停#2588bf，点击缩放 */
.modal-btn {
    position: relative;
    isolation: isolate;
    border: none;
    border-radius: 999px;
    height: 40px;
    padding: 0 28px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.modal-btn:hover::before {
    opacity: 1;
}
.modal-btn:active {
    transform: scale(0.95);
}
.modal-btn-block {
    width: 100%;
}
/* 加载动画 */
.modal-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border: 4px solid #dbe9f4;
    border-top-color: #2588bf;
    border-radius: 50%;
    animation: modal-spin 0.8s linear infinite;
}
@keyframes modal-spin {
    to {
        transform: rotate(360deg);
    }
}
/* 大号模态框 */
.modal-lg {
    width: 720px;
}
/* 超宽模态框（如「选择分析工具」） */
.modal-xl {
    width: 960px;
}
/* 窄版模态框（登录/注册，宽度缩小 20%） */
.modal-narrow {
    width: 384px;
}
/* 选项卡 */
.modal-tab-wrapper {
    display: flex;
    flex-direction: column;
}
.modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #eee;
}
.modal-tab {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.modal-tab:hover {
    color: #2588bf;
}
.modal-tab.active {
    color: #2588bf;
    border-bottom-color: #2588bf;
    font-weight: bold;
}
.modal-tab-panes {
    min-height: 200px;
    padding-top: 12px;
}
.modal-tab-panes::-webkit-scrollbar {
    width: 6px;
}
.modal-tab-panes::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 3px;
}
.modal-tab-panes::-webkit-scrollbar-track {
    background-color: transparent;
}
.modal-tab-pane {
    display: none;
    font-size: 12px;
    line-height: 1.8;
    color: #333;
}
.modal-tab-pane.active {
    display: block;
}
.modal-tab-pane h3 {
    font-size: 15px;
    margin-bottom: 10px;
}
.modal-tab-pane h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 14px 0 6px 0;
}
.modal-tab-pane p {
    margin-bottom: 8px;
}
.modal-tab-pane ul,
.modal-tab-pane ol {
    padding-left: 24px;
    margin: 0 0 10px 0;
}
.modal-tab-pane ul {
    list-style: disc;
}
.modal-tab-pane ol {
    list-style: decimal;
}
.modal-tab-pane li {
    margin-bottom: 4px;
}
/* 个人资料只读文本 */
.profile-text {
    font-size: 14px;
    color: #333;
    line-height: 40px;
}
/* 证件/头像上传控件 */
.cert-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.cert-upload input[type="file"] {
    font-size: 13px;
    color: #555;
}
.cert-upload-tip {
    font-size: 12px;
    color: #999;
}
/* 全宽上传区域（个人中心 / 律师认证） */
.upload-block-full {
    width: 100%;
}
.upload-zone-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}
/* 头像上传裁剪 */
.avatar-uploader {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.avatar-crop-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.avatar-crop-stage {
    position: relative;
    width: 240px;
    height: 240px;
    background-color: #e9eef2;
    overflow: hidden;
    border-radius: 8px;
    user-select: none;
    touch-action: none;
}
.avatar-crop-stage img {
    position: absolute;
    display: block;
}
.avatar-crop-box {
    position: absolute;
    border: 2px solid #2588bf;
    cursor: move;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}
.avatar-crop-handle {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 20px;
    height: 20px;
    background-color: #2588bf;
    border: 2px solid #fff;
    cursor: nwse-resize;
}
.avatar-crop-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
/* 裁剪按钮统一为胶囊：确认裁剪=渐变，取消=淡灰，两按钮各占 45% */
.avatar-crop-actions .modal-btn,
.avatar-crop-actions .start-btn {
    flex: 0 0 108px;
    width: 108px;
    height: 40px;
    min-width: 60px;
    padding: 0;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
/* 取消按钮：淡灰 */
.avatar-crop-actions .modal-btn {
    background: #f2f2f2;
    color: #666;
    border: 1px solid #dcdcdc;
}
.avatar-crop-actions .modal-btn::before {
    display: none;
}
.avatar-crop-actions .modal-btn:hover {
    background-color: #e6e6e6;
}
/* 确认裁剪按钮：渐变 */
.avatar-crop-actions .start-btn {
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    color: #fff;
}
.avatar-result {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar-result img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    background-color: #f5f5f5;
}
.avatar-result-del {
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    color: #f5222d;
    cursor: pointer;
}
.avatar-result-del:hover {
    border-color: #f5222d;
}
.publish-upload-zone.disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}
.profile-save-row {
    margin-top: 8px;
}
.profile-save-row .start-btn {
    min-width: auto;
    width: 100%;
}
/* 当前头像（显示在上传按钮下方） */
.avatar-current {
    display: flex;
    align-items: center;
    gap: 10px;
}
.avatar-current-label {
    font-size: 12px;
    color: #999;
}
.avatar-current-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e8e8e8;
}
/* 性别单选 */
.gender-radio-group {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 40px;
}
.gender-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.gender-radio input[type="radio"] {
    accent-color: #2588bf;
    cursor: pointer;
}
/* 账户余额卡片 */
.balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.balance-card {
    border-radius: 12px;
    background-color: #f8f9fb;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.balance-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.balance-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}
/* ==================== 个人中心（余额卡片 + 胶囊 tab） ==================== */
.profile-balance-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eaf1f8, #efe9f7);
    color: #333;
    margin-bottom: 18px;
}
.profile-balance-item {
    flex: 1;
    min-width: 0;
}
.profile-balance-label {
    font-size: 13px;
    color: #5f6b7a;
    margin-bottom: 4px;
}
.profile-balance-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}
.profile-balance-token {
    color: #1a1a1a;
}
.profile-balance-divider {
    width: 1px;
    height: 36px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0 20px;
}
.profile-tabs {
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: none;
    margin-bottom: 16px;
}
.profile-tab {
    padding: 8px 18px;
    border-radius: 999px;
    background-color: #f2f4f7;
    color: #555;
    font-size: 14px;
    border-bottom: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.profile-tab:hover {
    background-color: #e6eef5;
    color: #2588bf;
}
.profile-tab.active {
    background-color: #2588bf;
    color: #fff;
    border-bottom: none;
    font-weight: 600;
}
.refund-tip {
    font-size: 13px;
    color: #8a8a8a;
    line-height: 1.7;
    margin-bottom: 12px;
}
/* 个人中心模态框纯白背景 + 去除内部按钮阴影 */
.modal:has(.profile-wrapper) {
    background-image: none;
    background-color: #fff;
}
.profile-wrapper .start-btn {
    box-shadow: none;
}
/* 充值预设金额按钮（独立代码块） */
.recharge-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.recharge-preset-btn {
    padding: 6px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.recharge-preset-btn:hover {
    border-color: #2588bf;
    color: #2588bf;
    background-color: #f0f7fb;
}
/* 充值成功余额强调 */
.recharge-success-balance {
    color: #2588bf;
    font-weight: 700;
}
/* 充值订单 */
.recharge-order-item {
    display: flex;
    justify-content: space-between;
    padding: 4.8px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px dashed #eee;
}
.recharge-order-label {
    color: #999;
}
.recharge-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.recharge-qr-wrap canvas {
    border: 1px solid #eee;
    border-radius: 4px;
}
.recharge-qr-wrap img {
    width: 160px;
    height: 160px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.recharge-qr-tip {
    font-size: 12px;
    color: #999;
}
.balance-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}
/* 消费 / 充值记录表格 */
.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.record-table th,
.record-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.record-table th {
    color: #888;
    font-weight: 600;
    background-color: #f8f9fb;
}
.record-table td {
    color: #333;
}
.record-table tr:last-child td {
    border-bottom: none;
}
/* 消息分类 tab 与列表 */
.msg-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.msg-type-tab {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    border-radius: 999px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.msg-type-tab:hover {
    color: #2588bf;
}
.msg-type-tab.active {
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
}
.msg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.msg-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.msg-item-title {
    font-weight: 600;
    color: #333;
}
.msg-item-title.unread {
    color: #f5222d;
}
.msg-item-time {
    font-size: 12px;
    color: #999;
}
.msg-item-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
}
/* 私信列表与工具条 */
.pm-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.pm-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.pm-item-sender {
    font-weight: 600;
    color: #333;
}
.pm-item-time {
    font-size: 12px;
    color: #999;
}
.pm-item-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}
.pm-item-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
    margin-bottom: 6px;
}
.pm-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
}
.pm-tool {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: #2588bf;
    cursor: pointer;
}
.pm-tool.pm-del {
    color: #f5222d;
}
.pm-tool:hover {
    text-decoration: underline;
}
/* 发送私信按钮：各占 40% 宽度 */
.pm-send-btns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.pm-send-btns .modal-btn {
    flex: 0 0 40%;
    width: 40%;
    padding: 0;
}
.modal-btn-cancel {
    border: 1px solid #dcdcdc;
    background: #f2f2f2;
    color: #666;
}
.modal-btn-cancel::before {
    display: none;
}
.modal-btn-cancel:hover {
    background: #e6e6e6;
}
/* 模态框内表单 */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 6px;
}
.form-label {
    flex-shrink: 0;
    width: auto;
    text-align: left;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}
.form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.form-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.form-input-row .form-input {
    flex: 1;
    width: auto;
}
.form-input:focus {
    border-color: #2588bf;
    background-color: #fff;
}
.form-textarea {
    width: 100%;
    min-height: 76px;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.form-textarea:focus {
    border-color: #2588bf;
    background-color: #fff;
}
.form-error {
    display: none;
    font-size: 12px;
    color: #f5222d;
}
.form-row-top {
    align-items: flex-start;
}
.publish-upload {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.publish-upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 72px;
    border: 1px dashed #c0c0c0;
    border-radius: 8px;
    background-color: #fafbfc;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.publish-upload-zone:hover {
    border-color: #2588bf;
    color: #2588bf;
}
.publish-upload-zone .iconfont {
    font-size: 18px;
}
.publish-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.publish-upload-preview:empty {
    display: none;
}
.publish-preview-item {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
.publish-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.publish-preview-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}
.publish-preview-del:hover {
    background-color: #f5222d;
}
.code-btn {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background-color: #f2f2f2;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
}
.code-btn:hover {
    background-color: #e6e6e6;
}
.code-btn:active {
    transform: scale(0.95);
}
.code-btn.code-btn-disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    transform: none;
}
/* 验证码行：输入框与按钮各占一半 */
.code-row .form-input {
    flex: 1 1 0;
    min-width: 0;
}
.code-row .code-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
}
.form-check {
    padding-left: 0;
}
.form-check-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.form-checkbox {
    vertical-align: middle;
    margin-right: 4px;
}
.check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
}
.check-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

/* ==================== 移动端头部（桌面端隐藏） ==================== */
.mobile-header {
    display: none;
}
.mobile-menu-mask,
.mobile-menu-panel {
    display: none;
}
.m-sub-msg-bar {
    display: none;
}

/* ==================== 响应式：手机端 ==================== */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }
    .sidebar {
        display: none;
    }
    .layout {
        display: block;
        height: 100vh;
    }
    .main {
        height: 100vh;
    }

    /* 头部：蓝色通栏 72px */
    .header {
        height: 72px;
        padding: 0 12px;
        background-color: #0d77b5;
    }
    .header-msg,
    .header-member {
        display: none;
    }
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        height: 100%;
    }
    .mobile-logo {
        max-width: 33%;
        max-height: 36px;
        width: auto;
        height: auto;
        display: block;
        object-fit: contain;
    }
    .mobile-menu-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border: none;
        background: none;
        cursor: pointer;
        color: #fff;
        font-size: 24px;
        line-height: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu-btn .iconfont {
        font-size: 24px;
    }
    .mobile-menu-btn:hover,
    .mobile-menu-btn:active {
        color: #fff;
    }
    .mobile-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-btn {
        flex-shrink: 0;
        height: 28px;
        line-height: 28px;
        padding: 0 12px;
        font-size: 13px;
        border: none;
        border-radius: 999px;
        background-color: #fff;
        color: #2588bf;
        box-shadow: none;
    }
    .mobile-btn:hover,
    .mobile-btn:active {
        background-color: #fff;
        color: #2588bf;
        box-shadow: none;
    }
    .mobile-btn::before {
        display: none;
    }
    .mobile-btn-auth {
        padding: 0 16px;
    }

    /* 移动端登录后：右侧消息 + 会员两个图标 */
    .mobile-member-actions {
        margin-left: auto;
        display: none;
        align-items: center;
        gap: 16px;
    }
    .mobile-icon-btn {
        position: relative;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        cursor: pointer;
        color: #fff;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-icon-btn .iconfont {
        font-size: 26px;
    }
    .mobile-dot {
        position: absolute;
        top: 3px;
        right: 3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #f5222d;
        border: 1px solid #fff;
    }

    /* 移动端会员半屏菜单：从右侧滑出，占宽度一半 */
    .mobile-sheet-mask {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.45);
        z-index: 10000;
        display: flex;
        justify-content: flex-end;
    }
    .mobile-sheet {
        width: 50%;
        height: 100%;
        background-color: #fff;
        border-radius: 16px 0 0 16px;
        padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        gap: 16px;
        animation: mobile-sheet-in 0.25s ease;
    }
    @keyframes mobile-sheet-in {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    .mobile-sheet-user {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mobile-sheet-user .avatar {
        flex-shrink: 0;
    }
    .mobile-sheet-name {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
    .mobile-sheet-list {
        display: flex;
        flex-direction: column;
    }
    .mobile-sheet-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 4px;
        border: none;
        background: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        color: #333;
        text-align: left;
        cursor: pointer;
    }
    .mobile-sheet-item .iconfont {
        font-size: 18px;
        color: #2588bf;
    }
    .mobile-sheet-item:active {
        color: #2588bf;
    }
    .mobile-sheet-close {
        margin-top: auto;
        height: 44px;
        border: none;
        border-radius: 8px;
        background-color: #f2f2f2;
        color: #666;
        font-size: 15px;
        cursor: pointer;
    }

    /* 移动端模态框适配 */
    .modal {
        max-width: 92%;
        max-height: 82vh;
    }
    .modal-lg {
        width: 92%;
    }

    /* 移动端菜单面板 */
    .mobile-menu-mask {
        display: none;
        position: fixed;
        inset: 0;
        top: 72px;
        background-color: rgba(0, 0, 0, 0.35);
        z-index: 9990;
    }
    .mobile-menu-mask.show {
        display: block;
    }
    .mobile-menu-panel {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 9991;
        background-color: #0d77b5;
        padding: 12px;
        flex-direction: column;
        gap: 10px;
    }
    .mobile-menu-panel.open {
        display: flex;
    }
    .mobile-menu-item {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff;
        text-decoration: none;
        font-size: 15px;
    }
    .mobile-menu-item:hover,
    .mobile-menu-item.active {
        background-color: rgba(255, 255, 255, 0.6);
        color: #0d77b5;
    }
    .mobile-menu-item .iconfont {
        margin-right: 8px;
    }

    /* 首页卡片两列 */
    .content {
        width: 100%;
        overflow-x: hidden;
    }
    .home-view {
        padding: 12px;
    }
    .cards {
        width: 100%;
        gap: 12px;
    }
    .card {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 0;
        padding: 16px 10px;
    }

    /* 子页面：手机端顶部预留 80px 空位 + bg_head2 头部背景（主色 #f5f9fc，背景图渐隐到主色） */
    body.card-page {
        position: relative;
        padding: 80px 12px 12px;
        background-color: #f5f9fc;
        background-image:
            linear-gradient(to bottom, rgba(245, 249, 252, 0) 0%, rgba(245, 249, 252, 1) 320px),
            url('../images/bg_head2.png');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 100% auto, 100% auto;
    }

    /* 子页面左上角消息 / 私信图标：上、左、中间均间隔 20px，随页面滚动 */
    .m-sub-msg-bar {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 20;
        display: flex;
        gap: 20px;
    }
    .m-sub-msg-bar .m-sub-msg-btn {
        position: relative;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2588bf;
        text-decoration: none;
    }
    .m-sub-msg-bar .m-sub-msg-btn .iconfont {
        font-size: 28px;
        line-height: 1;
    }
    .m-sub-msg-bar .m-sub-msg-dot {
        position: absolute;
        top: -6px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        line-height: 14px;
        padding: 0 4px;
        border-radius: 999px;
        background-color: #f5222d;
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        text-align: center;
        box-sizing: border-box;
        border: 1px solid #fff;
        white-space: nowrap;
    }

    /* 历史时间列收窄 */
    .history-time {
        width: 88px;
    }

    /* 匹配文件列表 3 列 */
    .match-file-list {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 工具选择：手机端一行 2 个（与首页卡片一致） */
    .tool-picker-list {
        width: 100%;
        gap: 12px;
    }
    .tool-picker-item {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 0;
        padding: 16px 10px;
    }

    /* 律师卡片单列 */
    .lawyer-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 结果页按钮响应式：两按钮均分宽度并自动缩短 */
    .result-actions {
        gap: 10px;
    }
    .result-actions .start-btn {
        min-width: 0;
        flex: 1;
        padding: 10px 14px;
        font-size: 15px;
    }

    /* 入口页 / 创建案件页按钮：手机端占满一行，不再固定 320px */
    .entry-actions .start-btn,
    .create-actions .start-btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }

    /* 处理页按钮（后台运行 / 中止任务）：均分一行并自动缩短 */
    .proc-actions {
        gap: 10px;
    }
    .proc-actions .start-btn {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* ==================== 响应式：小屏手机（≤360px） ==================== */
@media (max-width: 360px) {
    /* 移动端头部：登录后 logo + 菜单按钮 + 三个图标，收紧间距防止溢出 */
    .mobile-header {
        gap: 8px;
    }
    .mobile-member-actions {
        gap: 10px;
    }
}

/* ==================== 分析工具三阶段流程 ==================== */
.start-wait-tip {
    margin: -4px auto 0;
    width: fit-content;
    font-size: 12px;
    color: #ff7a00;
    text-align: center;
}
.start-wait-tip.clickable {
    color: #2588bf;
    cursor: pointer;
}
.start-wait-tip.clickable:hover {
    text-decoration: underline;
}
.stage-processing {
    padding: 0;
}
.stage-result {
    padding: 0;
}
.proc-block {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}
.proc-block-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.proc-collapse-toggle {
    float: right;
    margin-left: 12px;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    cursor: pointer;
    user-select: none;
}
.proc-collapse-toggle:hover {
    color: #555;
}
.proc-block.collapsed .proc-material-list {
    display: none;
}
.proc-material-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.proc-material-count {
    display: none;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}
.proc-block.collapsed .proc-material-count {
    display: block;
}
.proc-material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f7f9fb;
    font-size: 13px;
    color: #444;
}
.proc-material-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.proc-material-icon svg {
    width: 20px;
    height: 20px;
}
.proc-material-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proc-material-size {
    flex-shrink: 0;
    color: #999;
    font-size: 12px;
}
.proc-meta {
    font-size: 13px;
    color: #666;
}
.proc-meta b {
    color: #333;
    font-weight: 600;
}
.proc-step-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.proc-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
}
.proc-step-item.loading {
    color: #2588bf;
}
.proc-step-item.done {
    color: #2e8b57;
}
.proc-step-item.fail {
    color: #d9534f;
}
.proc-step-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.step-check,
.step-fail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}
.step-check {
    background: #2e8b57;
}
.step-fail {
    background: #d9534f;
}
.step-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d9e6f0;
    border-top-color: #2588bf;
    border-radius: 50%;
    animation: step-spin 0.8s linear infinite;
}
@keyframes step-spin {
    to { transform: rotate(360deg); }
}
.step-pending {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e3e8ec;
}
.proc-step-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}
/* 分析中：进度简化为单行状态（不公开分析步骤） */
.proc-step-analyzing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2588bf;
}
.proc-analyzing-text {
    font-size: 14px;
    color: #2588bf;
}
/* 分析材料汇总：一行文件名合集 */
.proc-material-summary {
    margin-bottom: 12px;
    font-size: 13px;
    color: #444;
    line-height: 1.8;
    word-break: break-all;
}
/* 任务进度标题下的蓝色预计用时提示 */
.proc-duration-tip {
    margin-bottom: 14px;
    font-size: 13px;
    color: #2588bf;
}
/* 团队分析模态框：上传框上方「案件名称 · 分析工具名称」 */
.team-case-analysis-header {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.proc-step-name {
    flex: 1;
    min-width: 0;
}
.proc-step-detail {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 12px;
    color: #2588bf;
}
.result-block {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}
.result-block-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.result-material-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.result-download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.result-download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    background: #fafcfe;
}
.result-download-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f3fb;
    color: #2588bf;
    font-size: 24px;
}
.result-download-icon svg {
    width: 24px;
    height: 24px;
}
.result-download-info {
    flex: 1;
    min-width: 0;
}
.result-download-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.result-download-format {
    margin-top: 2px;
    font-size: 12px;
    color: #999;
}
.result-download-btn {
    flex-shrink: 0;
    border: 1px solid #2588bf;
    border-radius: 6px;
    background: #fff;
    color: #2588bf;
    font-size: 13px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.result-download-btn:hover {
    background: #2588bf;
    color: #fff;
}
.result-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}
.result-stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}
.result-stat-label {
    font-size: 12px;
    color: #999;
}
.result-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #2588bf;
}
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.start-btn.secondary {
    background: #fff;
    color: #2588bf;
    border: 1px solid #2588bf;
}
.start-btn.secondary::before {
    display: none;
}
.start-btn.secondary:hover {
    background: #e8f3fb;
}
.start-btn.danger {
    background: #fff;
    color: #d9534f;
    border: 1px solid #d9534f;
}
.start-btn.danger::before {
    display: none;
}
.start-btn.danger:hover {
    background: #fdecea;
}

/* ==================== 上传区支持说明 ==================== */
.upload-support {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e5e5;
}
.upload-support p {
    margin: 2px 0;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* ==================== 处理页按钮区 ==================== */
.proc-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

/* ==================== 结果页 ==================== */
.result-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}
.result-task-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.result-delete-btn {
    flex-shrink: 0;
    border: 1px solid #d9534f;
    border-radius: 6px;
    background: #fff;
    color: #d9534f;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.result-delete-btn:hover {
    background: #d9534f;
    color: #fff;
}
.result-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.result-meta-line {
    margin: 12px 0 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
}
/* 结果页状态区：标题 + 统计信息，同行左对齐、垂直居中 */
.result-status {
    margin-bottom: 16px;
    padding: 14px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.result-status-ok {
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
    white-space: nowrap;
}
.result-status-fail {
    color: #d9534f;
}
.result-status-meta {
    min-width: 0;
    font-size: 12px;
    color: #999;
}

/* ==================== 首页运行中任务卡片 ==================== */
.running-tasks {
    margin-bottom: 18px;
    padding: 14px 20px;
    border: 1px solid #d8ecf9;
    border-radius: 10px;
    background: #f0f8ff;
}
.running-title {
    font-size: 14px;
    font-weight: 600;
    color: #2588bf;
    margin-bottom: 8px;
}
.running-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.running-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}
.running-name {
    flex: 1;
    min-width: 0;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.running-link {
    flex-shrink: 0;
    color: #2588bf;
    text-decoration: none;
    font-size: 13px;
}
.running-link:hover {
    text-decoration: underline;
}

/* 历史页彻底删除 */
.history-danger {
    color: #d9534f;
}
.history-danger:hover {
    color: #b52b26;
}

/* 历史页：中止（独立分析未完成） */
.history-stop {
    color: #e6a23c;
}
.history-stop:hover {
    color: #b8741a;
}

/* 历史页：来自我的案件提示（含直达案件页链接） */
.history-source-hint {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}
.history-source-hint a {
    color: #2588bf;
    text-decoration: none;
    cursor: pointer;
}
.history-source-hint a:hover {
    color: #0d77b5;
    text-decoration: underline;
}

/* 案件页：从历史直达时的高亮 */
.case-item-focus {
    box-shadow: 0 0 0 2px #2588bf;
    transition: box-shadow .3s;
}

/* ==================== 我的案件界面改版 ==================== */
/* 顶部：导航 + 简介 + 创建按钮合并为一行 */
.case-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #fff;
}
.case-header-bar .breadcrumb-back {
    color: #555;
    font-size: 18px;
}
.case-header-intro {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-row {
    background-color: #f1f6fa;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}
.case-tasks {
    margin: 16px 16px 16px;
}
.case-item {
    padding: 0;
    overflow: hidden;
}
.case-tool-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.case-tool-btn:hover {
    background: linear-gradient(60deg, #7083d3, #997cc2);
    color: #fff;
}
.case-tool-btn.case-tool-danger:hover {
    background-color: #d9534f;
}
.case-files {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 16px 0;
}
.case-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
}
.case-task-files {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.case-task-file {
    display: block;
    font-size: 13px;
    color: #2588bf;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-task-file:hover {
    color: #0d77b5;
    text-decoration: underline;
}
.case-task-file-empty {
    color: #333;
    cursor: default;
}
.case-task-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.case-task-title {
    flex-shrink: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: bold;
    color: #2588bf;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-task-title:hover {
    color: #0d77b5;
    text-decoration: underline;
}
.case-task-title-plain {
    color: #333;
    cursor: default;
}
.case-task-info .case-task-meta {
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0;
}
.case-task-actions {
    flex-shrink: 0;
    align-self: center;
}
.case-bottom-space {
    height: 30px;
    flex-shrink: 0;
}
/* 提醒模态框表单控件（与其他模态框一致） */
.reminder-label {
    font-size: 13px;
    color: #666;
    margin: 12px 0 6px;
}
.reminder-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    background: #fff;
}
.reminder-input:focus {
    border-color: #2588bf;
}
.reminder-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    outline: none;
}
.reminder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.reminder-item-info {
    flex: 1;
    min-width: 0;
}
.reminder-item-name {
    color: #333;
    font-weight: 600;
}
.reminder-item-meta {
    color: #999;
    margin-top: 2px;
}
.reminder-item-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #333;
}
.reminder-item-danger {
    border: none;
    color: #f5222d;
}

/* ==================== 费用预估确认框 ==================== */
.estimate-box {
    text-align: center;
}
.estimate-line {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
}
.estimate-cost {
    color: #fa8c16;
    font-size: 16px;
}
.estimate-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}
.estimate-warn {
    margin-top: 10px;
    font-size: 14px;
    color: #d9534f;
    font-weight: 600;
}
.pay-qr {
    margin-top: 14px;
}
.pay-qr-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px dashed #bbb;
    border-radius: 8px;
    font-size: 20px;
    color: #999;
    letter-spacing: 2px;
}
.pay-qr p {
    margin: 0;
    font-size: 13px;
    color: #666;
}
/* 费用预估弹窗操作区：上下结构，胶囊圆角按钮 */
.estimate-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.estimate-btn {
    position: relative;
    isolation: isolate;
    border: none;
    border-radius: 20px;
    width: 100%;
    height: 40px;
    padding: 0 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
}
.estimate-btn:active {
    transform: scale(0.95);
}
.estimate-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
}
.estimate-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.estimate-btn-primary:hover::before {
    opacity: 1;
}
.estimate-btn-cancel {
    color: #666;
    background-color: #f2f2f2;
    border: 1px solid #dcdcdc;
}
.estimate-btn-cancel:hover {
    background-color: #e6e6e6;
}

/* ==================== 追问会话窗口（独立代码块） ==================== */
.fu-block {
    margin-top: 16px;
}
.fu-conv {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fu-bubble {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 10px;
    line-height: 1.6;
    font-size: 14px;
    word-break: break-word;
    white-space: pre-wrap;
}
.fu-user {
    align-self: flex-end;
    background: #2588bf;
    color: #fff;
}
.fu-sys {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border: 1px solid #e3e8ef;
}
.fu-card {
    align-self: flex-start;
    max-width: 92%;
    background: #fff;
    border: 1px solid #dce5ef;
    border-left: 3px solid #2588bf;
    border-radius: 8px;
    padding: 10px 12px;
}
.fu-card-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.fu-card-excerpt {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f4f7fa;
    border-radius: 6px;
    font-size: 13px;
    color: #556;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
}
.fu-card-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.fu-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #333;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
}
.fu-btn-primary {
    background: #2588bf;
    border-color: #2588bf;
    color: #fff;
}
.fu-btn:hover {
    opacity: .9;
}
.fu-input-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.fu-input {
    flex: 1;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}
.fu-input:focus {
    border-color: #2588bf;
}
.fu-send-btn {
    min-width: 0;
    padding: 0 18px;
    height: 38px;
}
@media (max-width: 360px) {
    .fu-input-row {
        flex-direction: column;
    }
    .fu-send-btn {
        width: 100%;
    }
}

/* ==================== 执行分析卡片专家版红色 ==================== */
.card-name-red {
    color: #e23b3b;
}

/* ==================== 法官联系方式（独立代码块） ==================== */
.jc-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.jc-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    background: #fff;
}
.jc-input:focus {
    border-color: #2588bf;
}
.jc-search-btn {
    min-width: 0;
    width: auto;
    padding: 0 26px;
    height: 42px;
    white-space: nowrap;
    box-sizing: border-box;
}
.jc-result {
    padding: 4px 2px;
}
.jc-block {
    display: flex;
    margin-bottom: 12px;
}
.jc-label {
    flex: 0 0 92px;
    color: #8a94a6;
    font-size: 14px;
    line-height: 1.8;
}
.jc-value {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #1a1a1a;
    word-break: break-all;
}
.jc-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jc-phone {
    display: inline-block;
    padding: 2px 12px;
    background: #eaf4fb;
    color: #1c6eb8;
    border-radius: 999px;
    font-size: 14px;
}
.jc-group {
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f7f9fb;
    border-radius: 8px;
}
.jc-group-cat {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.jc-group-src {
    margin-top: 4px;
    color: #8a94a6;
    font-size: 12px;
}
.jc-note {
    color: #b8860b;
}
@media (max-width: 520px) {
    .jc-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .jc-input {
        width: 100%;
        box-sizing: border-box;
        flex: none;
    }
    .jc-search-btn {
        width: 100%;
    }
}

/* ==================== 我的团队（独立代码块） ==================== */
.team-app {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.team-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.team-page-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.team-create-btn {
    min-width: 0;
    width: auto;
    padding: 8px 26px;
    box-shadow: none;
}
.team-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}
.team-empty .team-create-btn {
    margin-bottom: 16px;
}
.team-empty-icon {
    font-size: 56px;
    color: #c8dcec;
    margin-bottom: 12px;
}
.team-empty p {
    font-size: 15px;
    margin: 4px 0;
}
.team-empty-sub {
    font-size: 12px;
    color: #aaa;
}
.team-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.team-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.team-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.team-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    background: transparent;
    color: #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-card-avatar .iconfont {
    font-size: 28px;
}
.team-card-info {
    flex: 1;
    min-width: 0;
}
.team-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.team-card-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.team-card-intro {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-card-arrow {
    color: #c0c0c0;
    font-size: 18px;
}
.team-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.team-detail-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 10px;
}
.team-detail-avatar {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    flex-shrink: 0;
    background: transparent;
    color: #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.team-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-detail-avatar .iconfont {
    font-size: 34px;
}
.team-detail-info {
    flex: 1;
    min-width: 0;
}
.team-detail-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.team-detail-meta {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}
.team-detail-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.team-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef2f5;
    color: #666;
}
.badge-founder {
    background: #2588bf;
    color: #fff;
}
.badge-admin {
    background: #faad14;
    color: #fff;
}
.badge-member {
    background: #eef2f5;
    color: #666;
}
.settle-pending {
    color: #faad14;
}
.settle-approved {
    color: #16a34a;
}
.settle-rejected {
    color: #d9534f;
}
.team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.team-tab {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: #555;
    background-color: #f2f4f7;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.team-tab:hover {
    background: #e6eef5;
    color: #2588bf;
}
.team-tab.active {
    background: #2588bf;
    color: #fff;
    font-weight: 600;
}
.team-tab-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.team-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
.team-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-info-panel {
    background: #fff;
    border-radius: 10px;
    padding: 8px 18px;
}
.team-info-row {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}
.team-info-row:last-child {
    border-bottom: none;
}
.team-info-label {
    width: 88px;
    flex-shrink: 0;
    font-size: 13px;
    color: #999;
}
.team-info-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    word-break: break-all;
}
.team-member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.team-member {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
}
.team-member-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #f0f4f7;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-member-info {
    flex: 1;
    min-width: 0;
}
.team-member-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
.team-member-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.team-member-perm {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.team-member-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.team-case-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.team-case-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.team-case-card:hover {
    background: #eaf4fb;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.team-case-card-main {
    flex: 1;
    min-width: 0;
}
.team-case-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
.team-case-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.team-case-card-arrow {
    color: #c0c0c0;
    font-size: 18px;
}
.team-case-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    flex-wrap: wrap;
}
.team-case-head-info {
    flex: 1;
    min-width: 0;
}
.team-files-head {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-top: 6px;
}
.team-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.team-file-day {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #7baed9;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}
.team-file-day-date {
    flex: 0 0 auto;
}
.team-file-day-count {
    flex: 1;
    font-weight: normal;
    font-size: 12px;
}
.team-file-day-toggle {
    border: none;
    background: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    text-decoration: none;
}
.team-file-day-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.team-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
}
.team-file-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.team-file-icon svg {
    width: 24px;
    height: 24px;
}
.team-file-info {
    flex: 1;
    min-width: 0;
}
.team-file-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-file-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.team-file-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.team-tools-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.team-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.team-tool {
    border: 1px solid #e2e8ef;
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.team-tool:hover {
    border-color: #2588bf;
    background: #eef6fb;
}
.team-task-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
}
#tasksBox {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.team-task-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.team-task-meta {
    font-size: 12px;
    color: #999;
}
.team-task-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.team-task-running {
    background: #eef6fb;
    border-left: 3px solid #2588bf;
}
.task-status-3 {
    color: #16a34a;
}
.task-status-4 {
    color: #d9534f;
}
.team-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-log {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
}
.team-log-time {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}
.team-log-text {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.team-billing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-billing-item {
    padding: 10px 14px;
    background: #f7f9fb;
    border-radius: 8px;
}
.team-billing-main {
    font-size: 13px;
    color: #333;
}
.team-billing-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.team-log-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.team-log-page {
    font-size: 13px;
    color: #666;
}
.record-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.record-pager-info {
    font-size: 13px;
    color: #666;
}
.team-send-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}
.team-balance-card {
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf1f8, #efe9f7);
    margin-bottom: 12px;
}
.team-balance-label {
    font-size: 13px;
    color: #5f6b7a;
}
.team-balance-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0;
}
.team-balance-sub {
    font-size: 12px;
    color: #5f6b7a;
}
.team-manage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}
.team-manage-body {
    min-height: 120px;
}
.team-manage-body-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}
.team-manage-footer {
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 12px;
    display: flex;
    justify-content: center;
}
.team-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 52vh;
    overflow-y: auto;
}
.team-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.team-form-row label {
    font-size: 13px;
    color: #555;
}
.team-form-row input,
.team-form-row textarea,
.team-form-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: #fff;
}
.team-form-row input:focus,
.team-form-row textarea:focus,
.team-form-row select:focus {
    border-color: #2588bf;
}
.team-form-checkbox {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px 10px;
}
.team-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.team-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.team-form-group-label {
    font-size: 12px;
    color: #999;
    margin: 6px 0 4px;
}
.team-form-region {
    display: flex;
    gap: 8px;
}
.team-form-region select {
    flex: 1;
}
/* 团队页内模态框（复用个人中心样式） */
.team-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483000;
}
.team-modal {
    width: 560px;
    max-width: 92%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #f8f8fa;
    border: 1px solid #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.team-modal.team-modal-lg {
    width: 720px;
}
.team-modal.team-modal-manage {
    min-height: 400px;
}
.team-modal-header {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    margin-bottom: -10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.team-modal-close {
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    transition: color 0.3s ease, transform 0.15s ease;
}
.team-modal-close:hover {
    color: #000;
}
.team-modal-close:active {
    transform: scale(0.85);
}
.team-modal-body {
    flex: 1 1 auto;
    padding: 20px 24px 32px;
    overflow-y: auto;
    min-height: 0;
}
.team-modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 0 24px;
    margin-top: 28px;
}
.tbtn {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.tbtn:hover {
    border-color: #2588bf;
    color: #2588bf;
}
.tbtn-primary {
    border-color: #2588bf;
    background: #2588bf;
    color: #fff;
}
.tbtn-primary:hover {
    background: #0d77b5;
    border-color: #0d77b5;
    color: #fff;
}
.tbtn-danger {
    border-color: #f5c2c0;
    color: #d9534f;
}
.tbtn-danger:hover {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
}
.tbtn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.team-section-title {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-top: 6px;
}

/* ==================== 团队充值订单（套用个人充值，独立代码块） ==================== */
.team-recharge-order {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.team-recharge-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}
.team-recharge-label {
    color: #999;
}
.team-recharge-qr {
    margin-top: 8px;
    text-align: center;
}
.team-recharge-qr canvas {
    border: 1px dashed #bbb;
    border-radius: 8px;
    background: #fff;
}
.team-recharge-qr-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* ==================== 案件下的分析记录（从案件发起的分析，独立代码块） ==================== */
.case-tasks {
    margin-top: 14px;
    border-top: 1px dashed #e8e8e8;
    padding-top: 12px;
}
.case-tasks-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}
.case-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background-color: #f0f6fa;
    border-radius: 6px;
    margin-bottom: 8px;
}
.case-task:last-child {
    margin-bottom: 0;
}
.case-task-info {
    min-width: 0;
    flex: 1 1 auto;
}
.case-task-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-task-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.case-task-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ==================== 工具页板块 60% 透明背景（独立代码块） ==================== */
body.card-page .page-intro,
body.card-page .upload-section {
    background-color: #fff;
}
body.card-page .proc-block,
body.card-page .result-block,
body.card-page .result-stat-card,
body.card-page .result-head,
body.card-page .result-status {
    background-color: rgba(255, 255, 255, 0.9);
}
body.card-page .upload-zone {
    background-color: rgba(250, 252, 254, 0.6);
}
body.card-page .result-download-card {
    background-color: rgba(255, 255, 255, 0.9);
}
body.card-page .attachment-input {
    background-color: rgba(250, 252, 254, 0.6);
}
body.card-page .case-file-item {
    background-color: #f9f9f9;
}
body.card-page .proc-material-item,
body.card-page .jc-group {
    background-color: rgba(247, 249, 251, 0.6);
}
body.card-page .fu-conv {
    background-color: rgba(250, 251, 252, 0.6);
}
body.card-page .upload-zone:hover,
body.card-page .upload-zone.dragover {
    background-color: rgba(255, 255, 255, 0.85);
}
body.card-page .attachment-input:hover {
    background-color: rgba(250, 252, 254, 0.6);
}
body.card-page .attachment-input:focus {
    background-color: #fff;
}

/* ==================== 上传文件列表：Windows 中等图标网格（独立代码块） ==================== */
.case-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    max-height: 170px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-direction: initial;
}
.case-file-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    padding: 6px 4px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: transparent;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.case-file-card:hover {
    background-color: #f0f4f8;
}
.case-file-card.selected {
    background-color: #eaf3ff;
    border-color: #c6dcf7;
}
.case-file-card .case-file-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.case-file-card .case-file-icon svg {
    width: 100%;
    height: 100%;
}
.case-file-card .case-file-name {
    width: 100%;
    font-size: 12px;
    line-height: 1.35;
    color: #333;
    text-align: center;
    word-break: break-all;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-file-card .case-file-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-height: 16px;
    font-size: 12px;
    color: #7c3aed;
}
.case-file-card .case-file-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background-color: #e3f0fa;
    overflow: hidden;
}
.case-file-card .case-file-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background-color: #52c41a;
    transition: width 0.2s ease;
}
.case-file-card .case-file-status .case-file-pct {
    min-width: auto;
    font-size: 12px;
}
.case-file-card .case-file-status .case-file-pct.done {
    color: #2e8b57;
}
.case-file-card .case-file-status .case-file-pct.error {
    color: #f5222d;
}
.case-file-card .case-file-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
/* 删除按钮右上角：上传中/待上传/失败/选中时显示，上传完成且未选中时隐藏 */
.case-file-card .case-file-del {
    position: absolute;
    top: 2px;
    right: 2px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #f5222d;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease;
}
.case-file-card .case-file-del:hover {
    background-color: transparent;
    color: #f5222d;
    transform: scale(1.3);
}
.case-file-card.uploading .case-file-del,
.case-file-card.pending .case-file-del,
.case-file-card.error .case-file-del,
.case-file-card.selected .case-file-del {
    display: flex;
}

/* 右键菜单 */
.case-file-menu {
    position: fixed;
    z-index: 999999;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
}
.case-file-menu-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
}
.case-file-menu-item:hover {
    background-color: #f0f4f8;
}
.case-file-menu-item.delete {
    color: #f5222d;
}
.case-file-menu-item.delete:hover {
    background-color: #fff1f0;
}
.case-file-menu-item.disabled {
    color: #bbb;
    cursor: not-allowed;
}
.case-file-menu-item.disabled:hover {
    background-color: transparent;
}

/* 框选矩形 */
.case-file-select-box {
    position: fixed;
    z-index: 99999;
    border: 1px solid #2588bf;
    background: rgba(37, 136, 191, 0.1);
    pointer-events: none;
}

/* 文件预览（双击文件：文本 / 表格） */
.preview-text {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    width: 100%;
}
.preview-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    min-width: 600px;
}
.preview-table th,
.preview-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-table th {
    background: #f0f4f8;
    font-weight: 600;
}
.preview-table tr:nth-child(even) td {
    background: #fafafa;
}
/* Word 转换的 HTML 预览 */
.preview-html {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    word-break: break-all;
}
.preview-html img {
    max-width: 100%;
}
.preview-html table {
    border-collapse: collapse;
    width: 100%;
}
.preview-html table th,
.preview-html table td {
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    text-align: left;
}
.preview-html table th {
    background: #f0f4f8;
}

/* ==================== 案件文件网格展示（我的案件 / 团队案件共用） ==================== */
.case-file-grid-static {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px;
}
.case-file-card .case-file-card-ops {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 2px;
}
.case-file-card .case-file-card-ops .case-text-btn {
    font-size: 12px;
    padding: 3px 5px;
}
.case-file-card .case-file-card-ops .case-icon-btn {
    font-size: 16px;
    padding: 3px;
}
.case-file-grid-static .case-files-empty {
    grid-column: 1 / -1;
}

/* ==================== 我的案件最终覆盖（确保最后生效，2026-10-18） ==================== */
.case-header-bar .breadcrumb-back {
    color: #243a5c;
}
.case-list {
    gap: 30px;
}
.case-row {
    background: linear-gradient(135deg, #ECF1F8, #EFEAF8);
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}
.case-task {
    background-color: #f9f9f9;
    padding: 10px 12px;
}
.case-files {
    border: none;
    padding: 12px;
    margin: 16px 16px 0;
}
.case-tasks {
    margin: 16px 16px 16px;
}
.case-tasks-empty {
    font-size: 13px;
    color: #999;
    padding: 8px 0;
}
body.card-page {
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
body.card-page ::-webkit-scrollbar,
body.card-page::-webkit-scrollbar,
.case-files-scroll::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}
body.card-page ::-webkit-scrollbar-thumb,
body.card-page::-webkit-scrollbar-thumb,
.case-files-scroll::-webkit-scrollbar-thumb {
    background: #c4c4c4 !important;
    border-radius: 2px !important;
}
body.card-page ::-webkit-scrollbar-track,
body.card-page::-webkit-scrollbar-track,
.case-files-scroll::-webkit-scrollbar-track {
    background: transparent !important;
}
.case-files-scroll {
    max-height: 290px;
    scrollbar-width: thin !important;
    scrollbar-color: #c4c4c4 transparent !important;
}
/* 创建案件模态框：高度自适应 */
.modal-frame-case {
    height: 280px;
}
body.card-page.modal-mode .create-panel {
    padding: 0 0 24px;
}
body.card-page.modal-mode .create-actions {
    margin-top: 8px;
}

/* 团队创建引导 */
.team-guide {
    text-align: center;
    padding: 8px 4px 4px;
}
.team-guide-icon {
    font-size: 40px;
    color: #7083d3;
    margin-bottom: 10px;
}
.team-guide-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.team-guide p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 4px;
}

/* 团队管理面板：套用个人中心模态框样式（纯白背景 + 团队资料卡片去白底） */
.team-modal:has(.profile-wrapper) {
    background-color: #fff;
}
.profile-wrapper .team-info-panel {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* 团队详细介绍富文本：加粗/分行/分段 */
.team-info-value .intro-p {
    margin: 0 0 8px;
    line-height: 1.8;
}
.team-info-value .intro-p:last-child {
    margin-bottom: 0;
}
.team-info-value b {
    font-weight: 700;
}
.form-tip {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin-top: 4px;
}

/* 团队详情 tab：初始白底、hover 淡紫、激活紫色渐变（与左侧菜单一致） */
.team-tab {
    background-color: #fff;
}
.team-tab:hover {
    background: #edeaf7;
    color: #7083d3;
}
.team-tab.active {
    background: linear-gradient(60deg, #7083d3, #997cc2);
    color: #fff;
    font-weight: 600;
}
/* 团队 tab 内容标题图标 */
.team-section-head .iconfont {
    margin-right: 6px;
    font-size: 15px;
    font-weight: normal;
}
.team-section-head {
    padding-left: 10px;
}
/* 新建案件/邀请成员按钮：用创建案件按钮的渐变蓝 */
.team-section-head .tbtn-primary {
    border: none;
    border-radius: 4px;
    padding: 6px 18px;
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
}
.team-section-head .tbtn-primary:hover {
    border: none;
    color: #fff;
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
}
/* 团队提醒记录列表 */
.team-reminder-list {
    max-height: 50vh;
    overflow-y: auto;
}
/* 所有页面导航名称统一 14px */
.case-header-bar .breadcrumb-current {
    font-size: 14px;
}
/* 案件/团队分析记录：下载胶囊按钮 */
.case-task-dl {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(180deg, #6f83d4, #5f8acb);
    cursor: pointer;
}
.case-task-dl:hover {
    background: linear-gradient(180deg, #5a6ed0, #4d7cc0);
}
/* 案件/团队分析记录：正在分析绿色胶囊按钮 */
.case-task-running {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(180deg, #5fd08a, #2e8b57);
    cursor: pointer;
}
.case-task-running:hover {
    background: linear-gradient(180deg, #4ec47d, #26744a);
}
/* 案件/团队分析记录：分析失败红色胶囊 */
.case-task-fail {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(180deg, #e86a6a, #c0392b);
}
/* 导航图标与名称紧靠 */
.case-header-bar .breadcrumb-icon {
    margin-right: -8px;
}
.breadcrumb .breadcrumb-icon {
    margin-right: -2px;
}
/* 案件/团队分析记录标题：去掉链接效果，仅用下载按钮 */
.case-task-title-plain,
.case-task-title-plain:hover {
    color: #333;
    cursor: default;
    text-decoration: none;
}
/* 团队提醒表单：取消滚动，内容自然撑开 */
.team-form-noscroll {
    max-height: none;
    overflow-y: visible;
}

/* ==================== 全局滚动条统一：细条淡色（2026-10-19） ==================== */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}
*::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
*::-webkit-scrollbar-thumb {
    background-color: #c4c4c4 !important;
    border-radius: 3px !important;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0 !important;
}
*::-webkit-scrollbar-track {
    background-color: transparent !important;
}

/* 团队管理面板：团队资料卡片去掉白底 */
.team-manage .team-info-panel {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* 匹配资料上传提示（紧跟上传按钮） */
.match-upload-tip {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ==================== 全局加载 Loading ==================== */
#globalLoadingMask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* 20% 白色遮罩 */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647; /* 层级最高 */
}
#globalLoadingMask .global-loading-box {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
    min-height: 60px;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92); /* 半透明白色背景 */
    border-radius: 14px; /* 圆角矩形 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
#globalLoadingMask .global-loading-spinner {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 3px solid rgba(124, 77, 255, 0.2);
    border-top-color: #7c4dff; /* 紫色 */
    border-radius: 50%;
    animation: global-loading-spin 0.8s linear infinite;
}
#globalLoadingMask .global-loading-text {
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}
@keyframes global-loading-spin {
    to { transform: rotate(360deg); }
}

/* ==================== 手机端：案件/团队案件工具栏菜单化 + 分析记录标题精简（2026-10-19） ==================== */
.case-more-btn {
    display: none;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #555;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}
.case-more-btn .iconfont {
    font-size: 20px;
    line-height: 1;
}

/* 手机端工具菜单弹出层：圆角白底竖向菜单 */
.case-more-menu {
    position: fixed;
    z-index: 9999;
    width: 168px;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.case-more-menu-item {
    display: block;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.case-more-menu-item:hover {
    background: #f2f4f8;
}
.case-more-menu-item.danger {
    color: #d9534f;
}
.case-more-menu-item.danger:hover {
    background: #fdecea;
}

@media (max-width: 768px) {
    /* 工具栏：标题 + 「更多」图标，点击弹出菜单 */
    .case-row {
        flex-wrap: wrap;
    }
    .case-name {
        flex: 1 1 auto;
        min-width: 0;
    }
    .case-more-btn {
        display: inline-flex;
    }
    .case-actions {
        display: none;
    }

    /* 分析记录：隐藏「分析工具/分析时间」，标题 12px 加粗（省略号兜底） */
    .case-task-info .case-task-meta {
        display: none;
    }
    .case-task-title {
        font-size: 12px;
        font-weight: 700;
    }

    /* 专业资源库：输入区按钮/提示换行，避免溢出 */
    .match-toolbar {
        flex-wrap: wrap;
    }
    .match-tools {
        flex: 1 1 100%;
        flex-wrap: wrap;
        min-width: 0;
    }
    .match-upload-tip {
        white-space: normal;
        line-height: 1.5;
    }
    .match-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    /* 我的历史：来自我的案件提示换行显示，避免溢出 */
    .history-item {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .history-source-hint {
        white-space: normal;
        flex-basis: 100%;
        line-height: 1.5;
    }

    /* 团队详情头部：管理面板/编辑资料等按钮另起一行 */
    .team-detail-head {
        flex-wrap: wrap;
    }
    .team-detail-actions {
        flex-basis: 100%;
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==================== 结果页追问卡片（继续追问 / 修正结果，2026-10-21，复用工具页上传/输入样式） ==================== */
.fu-block {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    background: #fff;
}
/* 追问文件列表完全复用工具页 .file-list 布局，仅调高可视高度 */
.fu-block .file-list {
    max-height: 240px;
}
/* 追问补充文件卡片：删除按钮始终显示（工具页需选中才显示） */
.fu-card .case-file-del {
    display: flex;
}
.fu-input-wrap {
    margin-top: 16px;
}
/* 追问按钮：与「开始任务」同款，位于卡片下方居中，留有间隔 */
.fu-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.fu-actions .start-btn {
    min-width: 320px;
}
/* 底部文字链接与追问按钮之间留间隔 */
.result-actions {
    margin-top: 14px;
}
.fu-link-btn {
    color: #2588bf;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.fu-link-btn:hover {
    color: #5f8df7;
    text-decoration: underline;
}

/* ==================== 团队案件参与成员（2026-10-23） ==================== */
.team-case-participants {
    font-size: 12px;
    color: #2588bf;
    margin-top: 2px;
}
.team-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
}
.team-check-item {
    width: 120px;
    flex: 0 0 120px;
}
.team-check-list .team-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.team-check-list .team-check input[type="checkbox"] {
    flex-shrink: 0;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    accent-color: #2588bf;
    cursor: pointer;
}

/* ==================== 平板端：工具卡片一行 3 个（2026-10-23，独立代码块，覆盖 768px 处手机端 2 列） ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .cards {
        gap: 12px;
    }
    .card {
        flex: 0 0 calc(33.333% - 8px);
        width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        min-width: 0;
        padding: 14px 16px;
    }
}

/* ==================== 分析结果预览按钮（2026-10-27，独立代码块） ==================== */
/* 案件/团队分析记录：预览按钮（浅色描边，与实心「下载」区分） */
.case-task-dl.case-task-preview {
    background: #fff;
    color: #5f8acb;
    box-shadow: inset 0 0 0 1px #5f8acb;
}
.case-task-dl.case-task-preview:hover {
    background: #eef3fc;
    color: #4d7cc0;
}
/* 结果页：预览按钮（浅蓝底，与白底描边「下载」区分） */
.result-download-btn.result-preview-btn {
    border: 1px solid #a8c6e8;
    background: #eef5fc;
    color: #4d7cc0;
}
.result-download-btn.result-preview-btn:hover {
    background: #dceafb;
    color: #3a6db3;
}

/* ==================== 文件分组（标签，2026-10-27，独立代码块） ==================== */
/* 分组容器：外层 .case-files 改为纵向排列，每个分组一节 */
.case-files.file-grouped {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* 分组横条：横向通条，左侧图标+组名，右侧折叠/展开，点击展开/折叠 */
.file-group-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #f2f8ff;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.file-group-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.file-group-icon {
    font-size: 12px;
    line-height: 1;
    color: #666;
}
.file-group-name {
    font-weight: 400;
    font-size: 12px;
    color: #333;
}
.file-group-toggle {
    font-size: 12px;
    color: #999;
}
/* 手风琴缓动：展开/折叠动画 */
.file-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}
.file-group.open .file-group-body {
    max-height: none;
}
/* 分组内文件网格 */
.file-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 12px 0 0;
}
/* 未分组文件：标题 + 文件网格（始终位于最下方，与已分组之间加分隔线） */
.file-group-ungrouped {
    border-top: 1px solid #ddd;
    padding-top: 12px;
}
.file-group-ungrouped-title {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    padding: 4px 2px;
}
.file-group-ungrouped .file-group-grid {
    padding: 8px 0 0;
}

/* 右键「移动到」子菜单：鼠标悬停展开分组列表 */
.case-file-menu-item.has-sub {
    position: relative;
}
.case-file-submenu {
    position: absolute;
    left: 100%;
    top: -4px;
    min-width: 140px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    display: none;
    z-index: 1000001;
}
.case-file-menu-item.has-sub:hover .case-file-submenu {
    display: block;
}

/* 案件名称旁「修改案件名」小字（独立代码块） */
.case-rename-link {
    margin-left: 10px;
    font-size: 12px;
    font-weight: normal;
    color: #2588bf;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.case-rename-link:hover {
    color: #155f8f;
    text-decoration: underline;
}
.case-file-submenu .case-file-menu-item {
    white-space: nowrap;
}

/* 分组管理模态框 */
.fg-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.fg-add-row .fg-input {
    flex: 1;
}
.fg-input {
    height: 36px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.fg-input:focus {
    border-color: #2588bf;
}
.fg-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
}
.fg-empty {
    padding: 16px 0;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}
.fg-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fg-row .fg-btn {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}
.fg-row .fg-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}
.fg-row .fg-btn:hover:not(:disabled) {
    background: #f0f4f8;
}
.fg-row .fg-del {
    color: #f5222d;
}
.fg-row .fg-name {
    flex: 1;
    height: 30px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #333;
}
.fg-row .fg-name:hover {
    border-color: #e0e0e0;
}
.fg-row .fg-name:focus {
    border-color: #2588bf;
    background: #fff;
}
.fg-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    min-height: 16px;
}
