﻿
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    background: #f4f6fa;
    min-height: 100vh;
    margin: 0;
}
/* AI 渐变 */
.ai-grad {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
}

.sub-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .sub-status-dot.online {
        background: #34c759;
    }

    .sub-status-dot.offline {
        background: #cbd5e1;
    }

    .sub-status-dot.disabled {
        background: #ef4444;
    }
.ai-grad-text {
    background: linear-gradient(90deg, #6366f1, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ai-border {
    border: 1.5px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#818cf8,#e879f9) border-box;
}

.ai-glow {
    box-shadow: 0 0 0 1px rgba(99,102,241,.15), 0 8px 32px rgba(99,102,241,.18);
}
/* 动画 */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

@keyframes pulseDot {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.75);
    }
}

.pulse-dot {
    animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rise {
    animation: riseIn .4s cubic-bezier(.22,1,.36,1) both;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(.6);
    }

    70% {
        transform: scale(1.06);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pop {
    animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
}

@keyframes scanLine {
    0% {
        top: 6%;
    }

    50% {
        top: 88%;
    }

    100% {
        top: 6%;
    }
}

.scan-line {
    animation: scanLine 1.6s ease-in-out infinite;
}

@keyframes typing {
    0%,60%,100% {
        transform: translateY(0);
        opacity: .5;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.typing-dot {
    animation: typing 1s infinite;
    display: inline-block;
}

    .typing-dot:nth-child(2) {
        animation-delay: .15s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: .3s;
    }
/* 置信度标签 */
.conf {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 99px;
}

.conf-high {
    background: #ecfdf5;
    color: #059669;
}

.conf-mid {
    background: #fffbeb;
    color: #d97706;
}
/* 时间线 */
.tl-dot::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: #6366f1;
    box-shadow: 0 0 0 3px #e0e7ff;
}

.tl-line::after {
    content: '';
    position: absolute;
    left: -17px;
    top: 18px;
    bottom: -16px;
    width: 2px;
    background: #e2e8f0;
}

.tl-last::after {
    display: none;
}
/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
/* 导航项 */
.nav-item {
    transition: all .15s;
}

    .nav-item:hover {
        background: #f1f5f9;
    }

    .nav-item.active {
        background: #eef2ff;
        color: #4f46e5;
    }

        .nav-item.active .nav-icon {
            color: #4f46e5;
        }
/* 工具格子 */
.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 3px 8px rgba(15,23,42,.12);
    transition: transform .15s;
}

.tool-item:hover .tool-icon {
    transform: scale(1.08);
}

.tool-item {
    transition: all .15s;
    cursor: pointer;
}

    .tool-item:hover {
        background: #f8fafc;
    }
/* 筛选标签 */
.chip {
    transition: all .2s;
    cursor: pointer;
}

    .chip.active {
        background: #4f46e5;
        color: #fff;
    }

.badge-new {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    padding: 1px 5px;
    transform: scale(.85);
}
/* Toast */
#toast {
    transition: all .35s cubic-bezier(.22,1,.36,1);
}
/* 页面切换 */
.page {
    display: none;
}

    .page.active {
        display: block;
        animation: riseIn .3s ease both;
    }
/* 表格 */
.case-table th {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.case-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.case-table tbody tr {
    transition: background .15s;
    cursor: pointer;
}

    .case-table tbody tr:hover {
        background: #f8fafc;
    }
/* 卡片hover */
.card-hover {
    transition: all .2s;
}

    .card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0,0,0,.08);
    }
/* 首页滚动揭示 */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }
/* 首页 Hero 光斑 */
.hero-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: .5;
}
/* 首页导航链接 */
.land-link {
    transition: color .15s;
}

    .land-link:hover {
        color: #4f46e5;
    }
/* 下载二维码 */
#qr div {
    border-radius: 2px;
}
/* AI 历史会话抽屉 */
.ai-drawer-overlay {
    transition: opacity .25s ease;
    opacity: 0;
    pointer-events: none;
}

    .ai-drawer-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.ai-drawer-panel {
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.ai-drawer-overlay.open .ai-drawer-panel {
    transform: translateX(0);
}




#iframeLoading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 6px;
    z-index: 9999;
    pointer-events: none;
    display: none;
    align-items: center;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.iframe-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: iframe-spin .8s linear infinite;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

@keyframes iframe-spin {
    to {
        transform: rotate(360deg);
    }
}

/**弹出窗选案件*/

/* ===== 遮罩层 ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 40, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

    .modal-mask.show {
        opacity: 1;
        pointer-events: auto;
    }

/* ===== 弹窗主体 ===== */
.modal {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    background: #f5f6f8;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(.96);
    transition: transform .25s ease;
    box-shadow: 0 20px 50px rgba(20, 20, 40, .25);
}

.modal-mask.show .modal {
    transform: translateY(0) scale(1);
}

/* 弹窗顶部 */
.modal-header {
    background: linear-gradient(90deg, #7b5cf0, #b350d6);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .modal-header .title {
        font-size: 17px;
        font-weight: 500;
    }

    .modal-header .close {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,.22);
        color: #fff;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-header .close:active {
            background: rgba(255,255,255,.35);
        }

/* 可滚动内容区 */
.modal-body {
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 案件卡片 */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 11px;
    border: 1.5px solid #eeedf3;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
}

    .card:last-child {
        margin-bottom: 4px;
    }

    .card.active {
        border-color: #8b6cf0;
        box-shadow: 0 2px 8px rgba(139, 108, 240, .10);
    }

       

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 9px;
    border-bottom: 1px solid #ececf1;
    margin-bottom: 9px;
}

.case-type {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
}

.view {
    color: #8b5cf6;
    font-size: 13px;
    text-decoration: none;
}

    .view::after {
        content: "»";
        margin-left: 1px;
        font-size: 15px;
        line-height: 1;
    }

.row {
    font-size: 13.5px;
    line-height: 1.75;
    display: flex;
}

    .row .label {
        color: #9a9aa8;
        flex-shrink: 0;
        min-width: 70px;
    }

    .row .value {
        color: #333;
    }

/* 弹窗底部按钮 */
.modal-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #f5f6f8;
    border-top: 1px solid #ececf1;
}

.confirm {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 26px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(90deg, #7b5cf0, #b350d6);
    box-shadow: 0 6px 16px rgba(123, 92, 240, .25);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .confirm:active {
        filter: brightness(.94);
    }

    .confirm svg {
        width: 15px;
        height: 15px;
        stroke: #fff;
        stroke-width: 2.4;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 旋转图标 */
.thinking-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
    animation: spin 0.8s linear infinite;
}

/* 整个思考气泡 */
.thinking-bubble {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}


.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover; /* 防止图片变形 */
}

 


 