/* ============ 全局基础样式（原 index.html <style> 拆分） ============
   本文件承载：全局基础、工具类、弹窗/Toast/密码验证、多选下拉、图表右键菜单、
   移动端响应式、更新页/版本日志/确认弹窗 等跨页面共用样式。
   加载顺序：base.css 必须在各 page-*.css 之前。 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }
        body {
            padding: 6px 10px 10px;
            background-color: #f5f7f9;
            max-width: 100%;
        }
        .title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 14px;
            font-size: 17px;
        }
        .section {
            background-color: white;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 12px;
        }
        .section-title {
            font-size: 15px;
            color: #3498db;
            margin-bottom: 8px;
            border-left: 4px solid #3498db;
            padding-left: 8px;
        }
        /* 数据列表区域表头：标题居左 + 操作按钮居右 */
        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .btn {
            padding: 6px 12px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-right: 8px;
            font-size: 11px;
            display: inline-block;
            transition: transform .12s ease, box-shadow .12s ease, opacity .2s;
        }
        .btn-danger {
            background-color: #e74c3c;
        }
        .btn-success {
            background-color: #27ae60;
        }
        .btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,.18);
        }
        .btn:active {
            transform: scale(0.95);
        }
        .btn:disabled {
            background-color: #95a5a6 !important;
            cursor: not-allowed;
            opacity: 0.6;
            transform: none;
            box-shadow: none;
        }
        input, select {
            padding: 6px;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-right: 8px;
            font-size: 11px;
            display: inline-block;
        }
        input:focus, select:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        .main-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }
        /* 隐藏文件选择控件（WebView2 桌面版也须隐藏，用 !important 覆盖 UA 样式） */
        .file-input-hidden {
            display: none !important;
            visibility: hidden !important;
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        /* 内联布局样式兜底：WebView2 中对部分内联 style 不生效，故用 class + !important 强制（网页版视觉不变） */
        .tb-block-gap { margin-bottom: 15px !important; }
        .tb-import-divider {
            margin-top: 14px !important;
            margin-bottom: 16px !important;
            padding-bottom: 16px !important;
            border-bottom: 1px dashed #eee !important;
        }
        /* 按钮内联背景色兜底：WebView2 桌面版对部分内联 background-color 不生效，故用 class + !important 强制（网页版视觉不变） */
        .btn-teal   { background-color: #16a085 !important; }
        .btn-purple { background-color: #8e44ad !important; }
        .btn-orange { background-color: #f39c12 !important; }
        /* 预估有效厚度箱线图固定窄宽：WebView2 桌面版对内联宽度失效，故用 class + !important 强制（网页版视觉不变） */
        .chart-box-thick {
            flex: 0 0 460px !important;
            width: 460px !important;
            min-width: 460px !important;
            max-width: 460px !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        /* ===== 内联样式迁移工具类：WebView2 桌面版对部分内联 style 不生效，统一迁移为 class + !important（网页版视觉不变） ===== */
        .sec-no-gap    { margin-bottom: 0 !important; }
        .sec-auto-h    { height: auto !important; }
        .row-stretch   { align-items: stretch !important; }
        .row-start     { align-items: flex-start !important; }
        .lc-gap        { margin-bottom: 10px !important; }
        .tip-gap       { margin-top: 10px !important; margin-bottom: 0 !important; }
        .tip-inline    { margin: 4px 0 0 0 !important; }
        .head-flex     { display: flex !important; align-items: center !important; }
        .lc-label      { font-weight: bold !important; }
        .lc-green      { color: #27ae60 !important; font-weight: bold !important; }
        .lc-blue       { color: #3498db !important; font-weight: bold !important; }
        .lc-sep        { margin: 0 15px !important; color: #ddd !important; }
        .mid-text      { color: #7f8d8d !important; font-size: 13px !important; line-height: 30px !important; }
        .date-input    { width: 150px !important; }
        /* 拉开"到"与右侧时间筛选器的距离（作用于三个使用双日期筛选器的页面） */
        .mid-text + .date-input         { margin-left: 8px !important; }
        .trend-filter-content .mid-text + .date-input { margin-left: 10px !important; }
        .search-input  { flex: 1 !important; min-width: 260px !important; max-width: 420px !important; box-sizing: border-box !important; }
        .ct-lg         { font-size: 20px !important; }
        .report-controls-thick { left: calc(50% + 230px + 16px) !important; }
        .sec-title-no-gap { margin-bottom: 0 !important; }
        .btn-confirm-green { background-color: #27ae60 !important; }
        .modal-content-narrow { max-width: 520px !important; }
        .stat-value-blue  { color: #3498db !important; }
        .stat-value-green { color: #27ae60 !important; }
        .row {
            display: flex;
            gap: 15px;
            width: 100%;
        }
        .row .section {
            flex: 1;
            width: 50%;
            display: flex;
            flex-direction: column;
            margin-bottom: 0;
        }
        .table-container {
            width: 100%;
            overflow: auto;
            flex: 1;
            max-height: 500px;
        }
        .tip {
            color: #7f8d8d;
            font-size: 11px;
            margin-top: 5px;
        }
        .local-count {
            font-size: 13px;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        .local-count span {
            font-weight: bold;
        }
        /* 分页 */
        .pagination {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .pagination button {
            padding: 4px 10px;
            border: 1px solid #ddd;
            background-color: white;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            color: #2c3e50;
        }
        .pagination button:hover {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }
        .pagination button.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }
        .pagination button:disabled {
            background-color: #ecf0f1;
            color: #95a5a6;
            cursor: not-allowed;
            border-color: #ddd;
        }
        .pagination-info {
            font-size: 12px;
            color: #7f8d8d;
            margin: 0 8px;
        }
        /* ============ 页面切换导航 ============ */
        .nav-tabs {
            display: flex;
            justify-content: center;
            gap: 0;
            margin-bottom: 20px;
            border-bottom: 2px solid #ddd;
        }
        .nav-tab {
            padding: 8px 40px;
            font-size: 18px;
            color: #7f8d8d;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: all 0.3s ease;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            font-family: "Microsoft YaHei", sans-serif;
            font-weight: bold;
        }
        .nav-tab:hover {
            color: #3498db;
        }
        .nav-tab.active {
            color: #3498db;
            border-bottom-color: #3498db;
            font-weight: bold;
        }
        /* ============ 功率补偿计算页面样式 ============ */
        .page-content {
            display: none;
        }
        .page-content.active {
            display: block;
        }
        /* 确认弹窗样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: white;
            padding: 24px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            width: 90%;
            text-align: center;
            transform: scale(0.8) translateY(20px);
            opacity: 0;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        }
        .modal-overlay.show .modal-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
        .modal-title {
            font-size: 16px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 16px;
        }
        .modal-message {
            font-size: 14px;
            color: #555;
            margin-bottom: 24px;
            line-height: 1.6;
            text-align: left;
        }
        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
        }
        .modal-btn {
            padding: 8px 24px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: opacity 0.2s;
        }
        .modal-btn:hover {
            opacity: 0.9;
        }
        .modal-btn-confirm {
            background-color: #e74c3c;
            color: white;
        }
        .modal-btn-cancel {
            background-color: #95a5a6;
            color: white;
        }
        /* 提示消息 */
        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            padding: 10px 24px;
            border-radius: 6px;
            color: white;
            font-size: 13px;
            font-weight: bold;
            z-index: 99999;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        .toast.show {
            transform: translateX(-50%) translateY(0);
        }
        .toast-success {
            background-color: #27ae60;
        }
        .toast-error {
            background-color: #e74c3c;
        }
        .toast-info {
            background-color: #3498db;
        }
        .toast-warning {
            background-color: #f39c12;
        }
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #95a5a6;
        }
        .empty-state .empty-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .empty-state .empty-text {
            font-size: 14px;
        }
        /* 密码验证弹窗样式 - 与主页风格一致 */
        .password-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f5f7f9;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 99999;
        }
        .password-box {
            background-color: white;
            padding: 40px 50px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            text-align: center;
            max-width: 380px;
            min-width: 320px;
        }
        .password-title {
            font-size: 20px;
            color: #2c3e50;
            margin-bottom: 8px;
            font-weight: bold;
        }
        .password-subtitle {
            font-size: 13px;
            color: #7f8d8d;
            margin-bottom: 25px;
        }
        .password-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
        }
        .password-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            margin-bottom: 15px;
            text-align: center;
            font-family: "Microsoft YaHei", sans-serif;
        }
        .password-input:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        .password-btn {
            width: 100%;
            padding: 10px 12px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            font-family: "Microsoft YaHei", sans-serif;
        }
        .password-btn:hover {
            opacity: 0.9;
        }
        .password-error {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 12px;
            display: none;
        }
        /* 密码错误抖动动画 */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        .shake-animation {
            animation: shake 0.5s ease-in-out;
        }
        /* 解锁成功动画 */
        @keyframes unlockSuccess {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.8; }
            100% { transform: scale(0); opacity: 0; }
        }
        @keyframes checkmark {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        .unlock-success {
            animation: unlockSuccess 0.6s ease-in-out forwards;
        }
        .unlock-checkmark {
            display: flex;
            justify-content: center;
            align-items: center;
            animation: checkmark 0.5s ease-out forwards;
            display: none;
        }
        .unlock-checkmark.show {
            display: flex;
        }
        /* 验证成功后隐藏密码弹窗 */
        .password-overlay.hidden {
            display: none;
        }
        /* ============ 机台/批次筛选区布局 ============ */
        .select-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }
        .select-row:last-child {
            margin-bottom: 0;
        }
        .select-label {
            width: 80px;
            flex-shrink: 0;
            font-size: 14px;
            color: #2c3e50;
            font-weight: bold;
            padding-top: 0;
        }
        .select-content-row {
            flex: 1;
            display: flex;
            flex-direction: row !important;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 8px;
        }
        .select-content-row > .tip {
            margin-top: 4px;
        }
        .select-divider {
            border-top: 1px dashed #ddd;
            margin: 10px 0 12px 92px;
        }
        /* 多选下拉框 */
        .multi-select {
            position: relative;
            min-width: 260px;
            flex: 1;
            max-width: 420px;
            display: inline-block;
        }
        .multi-select-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: white;
            cursor: pointer;
            font-size: 12px;
            color: #2c3e50;
            min-height: 30px;
            box-sizing: border-box;
            transition: all 0.2s;
        }
        .multi-select-trigger:hover {
            border-color: #3498db;
        }
        .multi-select-text {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .multi-select-text.placeholder {
            color: #999;
        }
        .multi-select-arrow {
            margin-left: 8px;
            font-size: 10px;
            color: #999;
            transition: transform 0.2s;
        }
        .multi-select.open .multi-select-arrow {
            transform: rotate(180deg);
        }
        .multi-select-panel {
            display: none;
            position: absolute;
            top: calc(100% + 2px);
            left: 0;
            min-width: 100%;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
            z-index: 100;
            max-height: 280px;
            flex-direction: column;
            overflow: hidden;
        }
        .multi-select-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 10px;
            border-bottom: 1px solid #eee;
            background-color: #f8f9fa;
            font-size: 12px;
        }
        .multi-select-checkbox {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            color: #2c3e50;
            font-weight: bold;
        }
        .multi-select-checkbox input {
            margin: 0;
        }
        .multi-select-clear {
            cursor: pointer;
            color: #e74c3c;
            font-size: 12px;
        }
        .multi-select-clear:hover {
            text-decoration: underline;
        }
        .multi-select-options {
            overflow-y: auto;
            max-height: 220px;
        }
        .multi-select-option {
            padding: 6px 10px;
            font-size: 12px;
            color: #2c3e50;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background-color 0.15s;
        }
        .multi-select-option:hover {
            background-color: #ebf5fb;
        }
        .multi-select-option input {
            margin: 0;
        }
        .multi-select-empty {
            padding: 16px;
            text-align: center;
            color: #95a5a6;
            font-size: 12px;
        }
        /* ============ 表头三态全选复选框（使用原生checkbox） ============ */
        .select-all-cb {
            width: 14px;
            height: 14px;
            margin: 0;
            padding: 0;
            cursor: pointer;
            accent-color: #2c3e50;
        }
        .chart-context-menu {
            position: fixed;
            z-index: 10000;
            min-width: 160px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.18);
            padding: 4px 0;
            display: none;
        }
        .chart-context-item {
            padding: 10px 16px;
            font-size: 13px;
            color: #2c3e50;
            cursor: pointer;
            white-space: nowrap;
        }
        .chart-context-item:hover {
            background-color: #ebf5fb;
            color: #3498db;
        }
        /* 移动端响应式布局 */
        @media screen and (max-width: 768px) {
            body {
                padding: 10px;
            }
            .title {
                font-size: 16px;
                margin-bottom: 15px;
            }
            .section {
                padding: 10px;
                margin-bottom: 10px;
            }
            .section-title {
                font-size: 14px;
                margin-bottom: 8px;
            }
            .row {
                flex-direction: column;
                gap: 10px;
            }
            .row .section {
                width: 100%;
                height: auto !important;
                min-height: 0;
            }
            .row-first .section,
            .comp-row-first .section,
            .comp-row-second .section,
            .comp-row-third .section {
                height: auto !important;
            }
            #dataTable table,
            #compDataTable table,
            #selectTable {
                font-size: 10px;
            }
            #dataTable th, #dataTable td,
            #compDataTable th, #compDataTable td,
            #selectTable th, #selectTable td {
                padding: 3px 2px;
            }
            input, select, .btn {
                font-size: 12px;
                padding: 8px 10px;
                margin-right: 4px;
            }
            .tip {
                font-size: 10px;
            }
            .modal-content {
                padding: 20px;
                max-width: 300px;
            }
            .modal-title {
                font-size: 14px;
            }
            .modal-message {
                font-size: 12px;
            }
            /* 移动端：功率补偿计算区改为纵向堆叠，避免横向溢出显示不全 */
            .calc-body {
                flex-wrap: wrap;
            }
            .calc-column {
                flex: 1 1 100% !important;
                min-width: 100% !important;
            }
            .calc-action {
                width: 100%;
                min-width: 0;
            }
            /* 移动端：机台/批次多选下拉框改为纵向堆叠，避免横向溢出 */
            .select-row {
                flex-direction: column;
                gap: 4px;
                align-items: flex-start;
            }
            .select-label {
                width: auto;
                padding-top: 0;
            }
            .select-content-row {
                width: 100%;
                box-sizing: border-box;
            }
            .multi-select {
                min-width: 0;
                width: 100%;
                max-width: 100%;
            }
            .select-divider {
                margin-left: 0;
            }
            .table-container {
                max-height: 400px;
            }
            /* 移动端：早报筛选条件折叠为纵向排列 */
            .report-filter-row {
                flex-direction: column;
                align-items: stretch;
            }
            .report-filter-title {
                margin-bottom: 12px;
                align-self: flex-start;
            }
            .report-filter-item {
                justify-content: space-between;
            }
            .report-filter-item .multi-select { min-width: 0; }
            .report-filter-row .report-export-btn {
                margin-left: 0;
                width: 100%;
            }
            .nav-tab {
                padding: 10px 20px;
                font-size: 15px;
            }
        }
        /* ============ 更新页入口与叠加层 ============ */
        /* 顶部栏：右上角"更新"入口（随页面布局滚动，不浮动） */
        .top-bar {
            text-align: right;
            padding-right: 5px;
        }
        .update-link {
            display: inline-block;
            font-size: 12px;
            color: #95a5a6;
            text-decoration: none;
            padding: 2px 8px;
            border-radius: 3px;
            transition: color 0.2s, background-color 0.2s;
        }
        .update-link:hover {
            color: #3498db;
            background-color: rgba(52, 152, 219, 0.08);
        }
        /* 更新页叠加层（全屏视觉叠加，淡入淡出切换，不跳转、不新开标签页） */
        .update-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f5f7f9;
            z-index: 9000;
            display: flex;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }
        .update-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        /* 浅色头部，与主页面风格一致 */
        .update-overlay-header {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 15px;
            background-color: #ffffff;
            border-bottom: 2px solid #ddd;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            z-index: 1;
        }
        .update-back-btn {
            padding: 6px 14px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-family: "Microsoft YaHei", sans-serif;
            transition: opacity 0.2s;
        }
        .update-back-btn:hover {
            opacity: 0.9;
        }
        .update-overlay-title {
            color: #2c3e50;
            font-size: 15px;
            font-weight: bold;
            border-left: 4px solid #3498db;
            padding-left: 8px;
        }
        #updateFrame {
            flex: 1;
            width: 100%;
            border: none;
            background-color: #f5f7f9;
        }
        /* 叠加层打开时，iframe 内容轻微淡入，过渡更平滑 */
        @keyframes updateFrameFade {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .update-overlay.show #updateFrame {
            animation: updateFrameFade 0.3s ease;
        }
        /* ============ 版本更新日志弹窗 ============ */
        .version-modal-mask {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(20, 24, 36, 0.45);
            z-index: 9800;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity .25s ease, visibility .25s ease;
        }
        .version-modal-mask.show { opacity: 1; visibility: visible; }
        .version-modal {
            width: 560px;
            max-width: 92vw;
            max-height: 82vh;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(30, 40, 80, .22);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(14px);
            transition: transform .25s ease;
        }
        .version-modal-mask.show .version-modal { transform: translateY(0); }
        .version-modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid #eef1f6;
            flex-shrink: 0;
        }
        .version-modal-head h3 {
            margin: 0;
            font-size: 16px;
            color: #2b3345;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .version-modal-head h3 svg { width: 1.05em; height: 1.05em; color: #3498db; }
        .version-modal-close {
            background: none;
            border: none;
            font-size: 22px;
            line-height: 1;
            color: #8a93a6;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: color .2s, background-color .2s;
        }
        .version-modal-close:hover { color: #d64545; background: rgba(214,69,69,.08); }
        .version-modal-list {
            padding: 8px 20px 20px;
            overflow-y: auto;
            flex: 1;
        }
        .version-item {
            border-left: 3px solid #dde3ee;
            padding: 14px 0 14px 18px;
            margin: 6px 0;
            position: relative;
        }
        .version-item::before {
            content: "";
            position: absolute;
            left: -7px;
            top: 22px;
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #3498db;
            border: 2px solid #fff;
            box-shadow: 0 0 0 2px #dde3ee;
        }
        .version-item.new::before { background: #2e9e5b; box-shadow: 0 0 0 2px #bfe3c6; }
        .version-item-title {
            font-size: 14px;
            font-weight: 700;
            color: #2b3345;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
        }
        .version-badge {
            font-size: 11px;
            font-weight: 600;
            color: #fff;
            background: #3498db;
            border-radius: 4px;
            padding: 2px 7px;
            letter-spacing: .5px;
        }
        .version-badge.latest { background: #2e9e5b; }
        .version-item ul {
            margin: 0;
            padding-left: 18px;
            color: #5b6577;
            font-size: 13px;
            line-height: 1.7;
        }
        .version-item ul li { margin: 3px 0; }
        .version-item .vc-time {
            font-size: 12px;
            color: #aab0bd;
            margin-left: auto;
            font-weight: 400;
        }
        /* ============ 通用确认弹窗（更新用户返回认证界面时的二次确认） ============ */
        .confirm-mask {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(20, 24, 36, 0.45);
            z-index: 99900;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity .25s ease, visibility .25s ease;
        }
        .confirm-mask.show { opacity: 1; visibility: visible; }
        .confirm-box {
            width: 320px;
            max-width: 88vw;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(30,40,80,.22);
            transform: translateY(14px);
            transition: transform .25s ease;
            overflow: hidden;
        }
        .confirm-mask.show .confirm-box { transform: translateY(0); }
        .confirm-box-body {
            padding: 24px 22px 20px;
            text-align: center;
            font-size: 15px;
            color: #2b3345;
            line-height: 1.6;
        }
        .confirm-box-actions {
            display: flex;
            border-top: 1px solid #eef1f6;
        }
        .confirm-box-actions button {
            flex: 1;
            padding: 12px 0;
            font-size: 14px;
            font-family: "Microsoft YaHei", sans-serif;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: background-color .2s, color .2s;
            color: #3498db;
            font-weight: 600;
        }
        .confirm-box-actions button + button {
            border-left: 1px solid #eef1f6;
        }
        .confirm-box-actions button.confirm-cancel {
            color: #8a93a6;
            font-weight: 400;
        }
        .confirm-box-actions button:hover { background: #f4f7fb; }
