:root {
            --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-border: rgba(0, 0, 0, 0.08);
            --text-main: #0f172a;
            --text-muted: #475569;
            --primary-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
            --primary-color: #6366f1;
            --secondary-color: #3b82f6;
            --accent-green: #059669;
            --accent-orange: #d97706;
            --accent-red: #dc2626;
            --shadow-glow: 0 4px 20px rgba(99, 102, 241, 0.12);
        }

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

        body {
            font-family: 'Outfit', 'Inter', sans-serif;
            background: var(--bg-gradient);
            color: var(--text-main);
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 280px;
            background: rgba(255, 255, 255, 0.95);
            border-right: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
            padding: 24px;
            backdrop-filter: blur(10px);
            z-index: 10;
            flex-shrink: 0;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 36px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .logo-svg {
            color: var(--primary-color);
            filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.25));
        }

        .logo-title {
            font-size: 1.25rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 0.5px;
        }

        .nav-menu {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-grow: 1;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 0;
            padding: 14px 16px;
            border-radius: 12px;
            cursor: pointer;
            color: var(--text-muted);
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent;
            border: 1px solid transparent;
        }

        .nav-item:hover {
            color: var(--text-main);
            background: rgba(0, 0, 0, 0.04);
            border-color: rgba(0, 0, 0, 0.02);
            transform: translateX(4px);
        }

        .nav-item.active {
            color: #ffffff;
            background: var(--primary-gradient);
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: var(--shadow-glow);
        }

        .sidebar-footer {
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            font-size: 0.8rem;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent-green);
            box-shadow: 0 0 10px var(--accent-green);
        }

        .dot.loading {
            background: var(--accent-orange);
            box-shadow: 0 0 10px var(--accent-orange);
            animation: pulse 1.5s infinite;
        }

        /* 主体内容区域 */
        .main-content {
            flex-grow: 1;
            padding: 40px;
            overflow-y: auto;
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 24px;
            min-height: 0;
        }

        .tab-panel {
            display: none;
            animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .tab-panel.active {
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        /* 磨砂玻璃卡片 */
        .glass-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 28px;
            backdrop-filter: blur(12px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
            transition: border-color 0.3s;
        }

        .glass-card:hover {
            border-color: rgba(0, 0, 0, 0.12);
        }

        .card-header {
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-top: 4px;
        }

        /* 表单及输入控件 */
        .input-group {
            display: flex;
            gap: 12px;
            width: 100%;
        }

        .form-control {
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(0, 0, 0, 0.12);
            color: var(--text-main);
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s;
            font-family: inherit;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
            background: #ffffff;
        }

        .search-input {
            flex-grow: 1;
            font-size: 1.1rem;
        }

        .btn {
            background: var(--primary-gradient);
            border: none;
            color: #ffffff;
            padding: 14px 28px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
            font-family: inherit;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
            filter: brightness(1.1);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: var(--text-main);
        }

        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.08);
            box-shadow: none;
        }

        .btn-red {
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
        }

        .btn-red:hover {
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }

        /* 搜索结果列表 */
        .results-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 10px;
        }

        .result-card {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 14px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
        }

        .result-card:hover {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.25);
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
        }

        .result-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .result-key {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            color: var(--text-main);
            font-size: 1.05rem;
        }

        .badges-wrapper {
            display: flex;
            gap: 8px;
        }

        .badge {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .badge-exact {
            background: rgba(5, 150, 105, 0.1);
            color: var(--accent-green);
            border: 1px solid rgba(5, 150, 105, 0.2);
        }

        .badge-fuzzy {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .badge-lang {
            background: rgba(59, 130, 246, 0.1);
            color: var(--secondary-color);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .result-preview {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.5;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 展开的八国语言翻译面板 */
        .translations-detail {
            display: none;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 16px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            animation: slideDown 0.3s ease-out;
        }

        .result-card.expanded .translations-detail {
            display: grid;
        }

        .result-card.expanded .result-preview {
            display: none;
        }

        .lang-translation-box {
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.04);
            border-radius: 10px;
            padding: 12px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .lang-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
        }

        .lang-flag {
            color: var(--secondary-color);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
        }

        /* 初始加载状态面板 */
        .loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(248, 250, 252, 0.98);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px;
            backdrop-filter: blur(8px);
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .loading-title {
            font-size: 1.25rem;
            font-weight: 600;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
            text-align: center;
        }

        .loading-stage {
            max-width: min(560px, 100%);
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.5;
            text-align: center;
        }

        .loading-progress-track {
            width: min(460px, 100%);
            height: 8px;
            margin-top: 24px;
            overflow: hidden;
            border: 1px solid rgba(99, 102, 241, 0.14);
            border-radius: 999px;
            background: rgba(99, 102, 241, 0.08);
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
        }

        .loading-progress-bar {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: var(--primary-gradient);
            box-shadow: 0 0 12px rgba(99, 102, 241, 0.28);
            transition: width 0.35s ease, background 0.2s ease;
        }

        .loading-progress-bar.loading-progress-error {
            background: linear-gradient(90deg, #f59e0b, #dc2626);
            box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
        }

        .loading-progress-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            width: min(460px, 100%);
            margin-top: 8px;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.76rem;
        }

        #loading-progress-percent {
            color: var(--primary-color);
            font-weight: 700;
        }

        .loading-data-source,
        .loading-data-detail {
            width: min(460px, 100%);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: center;
        }

        .loading-data-source {
            margin-top: 18px;
            color: var(--text-main);
            font-size: 0.82rem;
            font-weight: 600;
        }

        .loading-data-detail {
            margin-top: 5px;
            color: var(--text-muted);
            font-size: 0.78rem;
        }

        .lang-state-ok {
            color: var(--accent-green);
        }

        .lang-state-missing {
            color: var(--accent-red);
        }

        .status-icon {
            display: block;
            flex: 0 0 auto;
        }

        .translation-text {
            font-size: 0.95rem;
            line-height: 1.4;
            color: var(--text-main);
            word-break: break-all;
            max-height: 150px;
            overflow-y: auto;
            padding-right: 2px;
        }

        .no-translation {
            color: rgba(0, 0, 0, 0.25);
            font-style: italic;
        }

        /* 视图布局切换 */
        .layout-selector {
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 8px;
            padding: 3px;
            gap: 2px;
        }

        .btn-toggle {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 6px 12px;
            font-size: 0.85rem;
            font-weight: 500;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }

        .btn-toggle.active {
            background: #ffffff;
            color: var(--primary-color);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            font-weight: 600;
        }

        /* 翻译详情布局切换 */
        .translations-detail.layout-list {
            grid-template-columns: 1fr !important;
        }
        
        .translations-detail.layout-grid {
            grid-template-columns: repeat(4, 1fr) !important;
        }

        @media (max-width: 1200px) {
            .translations-detail.layout-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        @media (max-width: 768px) {
            .translations-detail.layout-grid {
                grid-template-columns: 1fr !important;
            }
        }

        /* 输入框一键清空及外层容器 */
        .input-wrapper {
            position: relative;
            display: flex;
            flex-grow: 1;
            align-items: center;
        }
        
        .clear-btn {
            position: absolute;
            right: 14px;
            background: rgba(0, 0, 0, 0.05);
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            transition: all 0.2s;
            z-index: 5;
            user-select: none;
            opacity: 0;
            visibility: hidden;
        }

        .clear-btn.show {
            opacity: 1;
            visibility: visible;
        }
        
        .clear-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: var(--text-main);
        }
        
        .form-control.has-clear {
            padding-right: 44px;
        }

        /* Textarea 容器及清空 */
        .textarea-container {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .textarea-clear-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.05);
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 0.8rem;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
            z-index: 5;
            display: none;
        }

        .textarea-clear-btn.show {
            display: block;
        }

        .textarea-clear-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: var(--text-main);
        }

        .char-count-warning {
            font-size: 0.8rem;
            color: var(--accent-red);
            margin-top: 4px;
            display: none;
            font-weight: 500;
        }

        /* 智能匹配面板 */
        .match-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        @media (max-width: 900px) {
            .match-container {
                grid-template-columns: 1fr;
            }
        }

        .textarea-label {
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
        }

        .match-textarea {
            width: 100%;
            height: 160px;
            min-height: 160px;
            resize: none;
            font-family: inherit;
            line-height: 1.6;
        }

        .match-settings {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 8px;
        }

        .select-lang {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.12);
            color: var(--text-main);
            padding: 8px 16px;
            border-radius: 8px;
            outline: none;
            cursor: pointer;
            font-family: inherit;
        }

        .replacements-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 16px;
            max-height: 300px;
            overflow-y: auto;
        }

        .replace-badge-row {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.04);
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
        }

        .replace-badge-orig {
            color: var(--accent-orange);
            font-weight: 500;
        }

        .replace-badge-arrow {
            color: var(--text-muted);
        }

        .replace-badge-new {
            color: var(--accent-green);
            font-weight: 600;
        }

        .replace-badge-key {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            background: rgba(0, 0, 0, 0.04);
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: auto;
        }

        /* 状态与控制仪表盘 */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
        }

        .stat-card {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 14px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
        }

        .stat-num {
            font-size: 2rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-family: 'Outfit', sans-serif;
        }

        .stat-title {
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 500;
            text-transform: uppercase;
        }

        .reload-card {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .reload-btns-wrapper {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .files-table-wrapper {
            overflow: auto;
            height: 460px;
            max-height: 460px;
            margin-top: 16px;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.5);
        }

        .files-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.95rem;
        }

        .files-table th, .files-table td {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            vertical-align: middle;
        }

        .file-name-cell {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            word-break: break-word;
        }

        .file-type-cell,
        .file-time-cell {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .files-table th {
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.8rem;
        }

        .source-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .source-local {
            background: rgba(59, 130, 246, 0.1);
            color: #1d4ed8;
            border: 1px solid rgba(59, 130, 246, 0.15);
        }

        .source-official {
            background: rgba(16, 185, 129, 0.1);
            color: #047857;
            border: 1px solid rgba(16, 185, 129, 0.15);
        }

        .source-mirror {
            background: rgba(245, 158, 11, 0.1);
            color: #b45309;
            border: 1px solid rgba(245, 158, 11, 0.15);
        }

        .source-missing {
            background: rgba(220, 38, 38, 0.08);
            color: var(--accent-red);
            border: 1px solid rgba(220, 38, 38, 0.15);
        }

        /* 翻译完整性预警 */
        .integrity-issues-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: 360px;
            max-height: 360px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .integrity-issue-item {
            background: rgba(239, 68, 68, 0.05);
            border: 1px solid rgba(239, 68, 68, 0.15);
            border-left: 3px solid var(--accent-red);
            border-radius: 10px;
            padding: 12px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .integrity-issue-main {
            display: flex;
            align-items: baseline;
            gap: 8px;
            min-width: 0;
        }

        .integrity-lang {
            font-weight: 600;
            color: var(--accent-red);
        }

        .integrity-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-align: right;
            min-width: 0;
        }

        .integrity-code {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .integrity-count {
            color: var(--accent-red);
            font-size: 1rem;
        }

        /* Toast 通知 */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: var(--text-main);
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            backdrop-filter: blur(10px);
            z-index: 999;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 12px;
            pointer-events: none;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast-success { border-color: var(--accent-green); }
        .toast-error { border-color: var(--accent-red); }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

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

        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }

        .spin {
            animation: spin_animation 1s linear infinite;
        }

        @keyframes spin_animation {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* 移动端自适应响应式设计 */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
                overflow: auto;
            }

            .sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid rgba(0, 0, 0, 0.06);
                padding: 16px;
            }

            .logo-section {
                margin-bottom: 16px;
                padding-bottom: 12px;
                justify-content: center;
            }

            .nav-menu {
                flex-direction: row;
                overflow-x: auto;
                padding-bottom: 4px;
                gap: 6px;
                -webkit-overflow-scrolling: touch;
            }

            .nav-item {
                padding: 8px 12px;
                white-space: nowrap;
                font-size: 0.9rem;
            }

            .nav-item:hover {
                transform: none;
            }

            .sidebar-footer {
                display: none; /* 在手机端精简侧边栏信息 */
            }

            .main-content {
                padding: 16px;
                overflow-y: visible; /* 由 body 进行自然滚动 */
                gap: 16px;
            }

            .glass-card {
                padding: 16px;
                border-radius: 12px;
            }

            .dashboard-grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }

            .stat-num {
                font-size: 1.5rem;
            }

            .input-group {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .reload-btns-wrapper {
                flex-direction: column;
            }

            .toast {
                left: 16px;
                right: 16px;
                bottom: 16px;
            }

            .detail-layout-selector {
                display: none !important;
            }

            .result-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .badges-wrapper {
                flex-wrap: wrap;
            }

            .translations-detail {
                grid-template-columns: 1fr !important;
            }
        }
        
        @media (max-width: 480px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 独立的外层结果卡片布局样式 */
        .results-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* 隐藏异常文本框时的微调 */
        .translation-text-wrapper {
            position: relative;
            cursor: pointer;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            min-height: 44px;
            border-radius: 6px;
            overflow: hidden;
        }

        .translation-text-wrapper.suspected-box .translation-text {
            filter: blur(10px);
            pointer-events: none;
            user-select: none;
            opacity: 0.75;
            transition: all 0.25s ease;
        }

        .translation-text-wrapper.suspected-box .suspected-overlay {
            opacity: 1;
            pointer-events: auto;
            transition: all 0.25s ease;
        }

        /* 鼠标悬浮 Hover 或 点击获得类 .revealed 时：无感淡出遮蔽并还原文字 */
        .translation-text-wrapper.suspected-box:hover .translation-text,
        .translation-text-wrapper.suspected-box.revealed .translation-text {
            filter: none !important;
            pointer-events: auto !important;
            user-select: auto !important;
            opacity: 1 !important;
        }

        .translation-text-wrapper.suspected-box:hover .suspected-overlay,
        .translation-text-wrapper.suspected-box.revealed .suspected-overlay {
            opacity: 0;
            pointer-events: none;
        }

        .suspected-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5;
            border-radius: 6px;
            padding: 8px 16px;
            box-sizing: border-box;
            transition: all 0.25s ease;
        }

        .suspected-icon {
            font-size: 1.1rem;
            display: inline-flex;
            align-items: center;
        }

        .suspected-text {
            font-size: 0.72rem;
            color: var(--accent-orange);
            font-weight: 600;
            margin-left: 6px;
            white-space: nowrap;
        }

        /* 开放 API 页面样式 */
        .api-endpoint-card {
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }
        .api-endpoint-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
            background: rgba(255, 255, 255, 0.6);
        }
        .api-header-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .api-method-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            margin-right: 10px;
            border: 1px solid transparent;
        }
        .api-method-get {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
            border-color: rgba(16, 185, 129, 0.2);
        }
        .api-method-post {
            background: rgba(59, 130, 246, 0.1);
            color: #3b82f6;
            border-color: rgba(59, 130, 246, 0.2);
        }
        .api-path {
            font-family: 'Fira Code', Consolas, monospace;
            font-weight: 600;
            color: var(--text-color);
            font-size: 1rem;
            word-break: break-all;
        }
        .api-desc {
            margin: 10px 0;
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.45;
        }
        .api-section-title {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 14px 0 6px 0;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .api-code-block {
            background: #1e1e2e;
            color: #cdd6f4;
            padding: 14px;
            border-radius: 8px;
            font-family: 'Fira Code', Consolas, monospace;
            font-size: 0.82rem;
            overflow-x: auto;
            margin-bottom: 10px;
            border: 1px solid #313244;
            line-height: 1.4;
            white-space: pre;
            word-wrap: normal;
        }
        .api-code-block code {
            font-family: inherit;
        }

        @media (max-width: 768px) {
            .api-endpoint-card {
                padding: 14px;
            }
            .api-code-block {
                font-size: 0.76rem;
                padding: 10px;
            }
            .api-path {
                font-size: 0.88rem;
            }
            .api-header-flex {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
        }

/* =================================================================
   智能匹配替换格式开关、相似度比对、切分气泡与移动端适配 (V2.0)
   ================================================================= */
.match-format-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.format-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    gap: 4px;
}
.format-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
}
.format-toggle-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.12);
}
.format-toggle-btn svg {
    margin-right: 2px;
}

.replace-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    gap: 16px;
    margin-bottom: 8px;
}
.replace-badge-row:last-child {
    margin-bottom: 0;
}
.replace-badge-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    min-width: 0;
}
.replace-badge-orig {
    color: var(--accent-orange);
    font-weight: bold;
    font-style: normal !important;
    word-break: break-all;
    font-size: 0.88rem;
}
.replace-badge-arrow {
    color: var(--text-muted);
    font-weight: bold;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0.5px);
}
.replace-badge-new {
    color: var(--accent-green);
    font-weight: bold;
    word-break: break-all;
    font-size: 0.88rem;
}
.replace-badge-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    font-size: 0.8rem;
    flex-shrink: 0;
    text-align: right;
}
.replace-badge-meta-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(99, 102, 241, 0.04);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(99, 102, 241, 0.06);
}
.replace-badge-meta-key {
    font-weight: 700;
    color: var(--text-main);
}

/* Tooltip 气泡及交互包裹 */
.split-condition-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.split-number-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.76rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.split-condition-wrapper:hover .split-number-badge,
.split-condition-wrapper.active .split-number-badge {
    background: var(--accent-orange);
    color: white;
}
.split-tooltip {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: #1e293b;
    color: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.split-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: #1e293b;
}
.split-condition-wrapper:hover .split-tooltip,
.split-condition-wrapper.active .split-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.badge-ratio-val {
    font-weight: 700;
    color: #10b981;
}

@media (max-width: 768px) {
    .replace-badge-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }
    .replace-badge-main {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 8px;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    }
    .replace-badge-meta {
        width: 100%;
        align-items: stretch;
        text-align: left;
        padding-top: 2px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .split-tooltip {
        right: auto;
        left: 0;
    }
    .split-tooltip::after {
        right: auto;
        left: 12px;
    }
}

/* 富文本替换结果框 Placeholder 与样式修正 */
.match-result-div {
    outline: none;
    user-select: text;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-y: auto;
}
.match-result-div:empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
    opacity: 0.7;
    pointer-events: none;
}

/* 状态区在窄屏上保持字段层级，避免长文件名和同步时间互相挤压。 */
.status-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.status-card-title,
.integrity-card-title {
    font-size: 1.2rem;
}

.integrity-card-title {
    color: var(--accent-red);
}

.suspected-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    width: 18px;
    height: 18px;
}

.suspected-icon .status-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .status-section-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .status-section-header .btn {
        width: 100%;
    }
}

@media (max-width: 720px) {

    .files-table-wrapper {
        height: auto;
        max-height: none;
        overflow: visible;
        border: none;
        background: transparent;
    }

    .files-table,
    .files-table tbody,
    .files-table tr,
    .files-table td {
        display: block;
        width: 100%;
    }

    .files-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .files-table tbody {
        display: grid;
        gap: 10px;
    }

    .files-table tr {
        padding: 10px 12px;
        border: 1px solid rgba(0, 0, 0, 0.07);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.72);
    }

    .files-table td {
        display: grid;
        grid-template-columns: minmax(66px, 27%) minmax(0, 1fr);
        align-items: baseline;
        gap: 10px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        line-height: 1.4;
        text-align: left;
    }

    .files-table td:last-child {
        border-bottom: none;
    }

    .files-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 600;
    }

    .files-table .file-name-cell,
    .files-table .file-type-cell,
    .files-table .file-time-cell {
        font-size: 0.82rem;
    }

    .source-badge {
        justify-self: start;
    }

    .integrity-issues-list {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .integrity-issue-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px;
    }

    .integrity-issue-main {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .integrity-desc {
        text-align: left;
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
    .files-table td {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .files-table td::before {
        font-size: 0.68rem;
    }
}
