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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #ffffff;
            color: #000000;
            font-size: 14px;
            line-height: 1.5;
        }

        .app {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Header */
        .header {
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #2d2d2d 100%);
            color: #ffffff;
            padding: 6px 14px;
            border-radius: 4px 12px 4px 12px;
            margin-bottom: 4px;
            letter-spacing: 2px;
            text-transform: uppercase;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            display: inline-block;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .header-left h1::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
            pointer-events: none;
        }

        .header-left h1::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% {
                left: -100%;
            }
            50%, 100% {
                left: 100%;
            }
        }

        .header-left p {
            font-size: 13px;
            color: #666;
        }

        .user-menu {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: #f5f5f5;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .user-info:hover {
            background: #e5e5e5;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #000;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
        }

        .user-name {
            font-size: 14px;
            font-weight: 500;
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: #fff;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            min-width: 180px;
            display: none;
            z-index: 100;
        }

        .user-dropdown.show {
            display: block;
        }

        .user-dropdown-item {
            padding: 12px 16px;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.15s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .user-dropdown-item:first-child {
            border-radius: 8px 8px 0 0;
        }

        .user-dropdown-item:last-child {
            border-radius: 0 0 8px 8px;
        }

        .user-dropdown-item:hover {
            background: #f5f5f5;
        }

        .user-dropdown-item i {
            font-size: 12px;
            width: 16px;
        }

        .user-dropdown-divider {
            height: 1px;
            background: #e5e5e5;
            margin: 4px 0;
        }

        /* Path Bar */
        .path-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            align-items: center;
        }

        .path-input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #e5e5e5;
            border-radius: 6px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
            font-size: 13px;
            background: #fafafa;
            transition: all 0.15s;
        }

        .path-input:focus {
            outline: none;
            border-color: #000;
            background: #fff;
        }

        .btn {
            padding: 10px 16px;
            border: 1px solid #e5e5e5;
            background: #fff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.15s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn:hover {
            background: #f5f5f5;
            border-color: #000;
        }

        .btn i {
            font-size: 12px;
        }

        .btn-primary {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        .btn-primary:hover {
            background: #333;
        }

        /* File List */
        .file-list-container {
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            overflow: hidden;
        }

        .file-list-header {
            display: grid;
            grid-template-columns: 40px 1fr 100px 80px 200px;
            gap: 16px;
            padding: 12px 16px;
            background: #fafafa;
            border-bottom: 1px solid #e5e5e5;
            font-weight: 600;
            font-size: 12px;
            color: #666;
        }

        .git-branch-info {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-bottom: 1px solid #bae6fd;
            font-size: 13px;
            color: #0369a1;
        }

        .git-branch-info i {
            font-size: 14px;
            opacity: 0.8;
        }

        .git-branch-name {
            font-weight: 600;
            color: #0284c7;
        }

        .file-item {
            display: grid;
            grid-template-columns: 40px 1fr 100px 80px 200px;
            gap: 16px;
            padding: 12px 16px;
            border-bottom: 1px solid #e5e5e5;
            transition: background 0.15s;
            align-items: center;
            cursor: pointer;
        }

        .file-item:last-child {
            border-bottom: none;
        }

        .file-item:hover {
            background: #f9f9f9;
        }

        .file-item.selected {
            background: #f0f0f0;
        }

        .file-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .file-icon .fa-folder {
            color: #666;
        }

        .file-icon .fa-file {
            color: #999;
        }

        .file-name {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
        }

        .name-text {
            font-weight: 400;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex-shrink: 1;
        }

        .created-time {
            font-size: 11px;
            color: #999;
            font-weight: 300;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .git-branch-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bae6fd;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
            color: #0369a1;
            margin-left: 8px;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .git-branch-badge i {
            font-size: 10px;
            opacity: 0.8;
        }

        .file-item:hover .git-branch-badge {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            border-color: #7dd3fc;
            color: #0284c7;
        }

        .git-branch-badge-small {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 1px 6px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bae6fd;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            color: #0369a1;
            margin-left: 6px;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .git-branch-badge-small i {
            font-size: 9px;
            opacity: 0.8;
        }

        .file-item:hover .git-branch-badge-small {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            border-color: #7dd3fc;
            color: #0284c7;
        }

        .git-branch-badge-small.clickable {
            cursor: pointer;
        }

        .git-branch-badge-small.clickable:hover {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            border-color: #7dd3fc;
            color: #0284c7;
            transform: scale(1.05);
        }

        /* Git 提交记录弹框 */
        .git-commits-modal {
            max-width: 700px;
            width: 100%;
        }

        .git-commits-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e5e5e5;
        }

        .git-commits-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        .git-commits-title i {
            color: #0369a1;
            font-size: 14px;
        }

        .git-commits-close {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            padding: 4px;
            font-size: 16px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 4px;
        }

        .git-commits-close:hover {
            background: #f5f5f5;
            color: #333;
        }

        .git-commits-path {
            font-size: 12px;
            color: #666;
            margin-bottom: 12px;
            padding: 4px 8px;
            background: #f5f5f5;
            border-radius: 4px;
            font-family: 'SF Mono', 'Monaco', monospace;
        }

        .git-commits-list {
            max-height: 450px;
            overflow-y: auto;
            border: 1px solid #e5e5e5;
            border-radius: 6px;
            width: 100%;
            box-sizing: border-box;
        }

        .git-commit-item {
            padding: 10px 12px;
            border-bottom: 1px solid #e5e5e5;
            transition: background 0.15s;
        }

        .git-commit-item:last-child {
            border-bottom: none;
        }

        .git-commit-item:hover {
            background: #f9f9f9;
        }

        .git-commit-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .git-commit-hash {
            font-family: 'SF Mono', 'Monaco', monospace;
            font-size: 11px;
            color: #0369a1;
            background: #f0f9ff;
            padding: 1px 6px;
            border-radius: 3px;
            cursor: pointer;
            font-weight: 500;
        }

        .git-commit-hash:hover {
            background: #e0f2fe;
        }

        .git-commit-date {
            font-size: 11px;
            color: #999;
        }

        .git-commit-message {
            font-size: 12px;
            color: #333;
            margin-bottom: 4px;
            line-height: 1.4;
            word-break: break-word;
            white-space: pre-wrap;
            overflow-wrap: break-word;
            max-width: 100%;
        }

        .git-commit-author {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: #666;
        }

        .git-commit-author i {
            color: #999;
            font-size: 10px;
        }

        .git-commits-loading {
            text-align: center;
            padding: 30px;
            color: #999;
        }

        .git-commits-loading i {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .git-commits-loading p {
            font-size: 12px;
            margin: 0;
        }

        .git-commits-empty {
            text-align: center;
            padding: 30px;
            color: #999;
        }

        .git-commits-empty i {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .git-commits-empty p {
            font-size: 12px;
            margin: 0;
        }

        .git-commits-loading-more {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px;
            color: #999;
            font-size: 11px;
        }

        .git-commits-loading-more i {
            font-size: 12px;
        }

        .git-commits-no-more {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            color: #999;
            font-size: 11px;
        }

        .file-size, .file-permissions {
            font-size: 12px;
            color: #666;
        }

        .file-actions {
            display: flex;
            gap: 4px;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .file-item:hover .file-actions {
            opacity: 1;
        }

        .file-actions .btn-action {
            padding: 4px 6px;
            border: 1px solid #e5e5e5;
            background: #fff;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.15s;
            white-space: nowrap;
            min-width: 28px;
        }

        .file-actions .btn-action:hover {
            background: #f5f5f5;
            border-color: #000;
        }

        .file-actions .btn-action.danger:hover {
            background: #dc2626;
            color: #fff;
            border-color: #dc2626;
        }

        .file-actions .btn-terminal-action {
            color: #0066cc;
        }

        .file-actions .btn-terminal-action:hover {
            background: #0066cc;
            color: #fff;
            border-color: #0066cc;
        }

        /* 移动端操作菜单按钮 */
        .mobile-menu-btn {
            font-size: 16px !important;
        }

        /* 移动端操作菜单 */
        .mobile-action-menu {
            position: fixed;
            background: #fff;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            min-width: 140px;
            overflow: hidden;
            animation: fadeIn 0.15s ease;
        }

        .mobile-action-item {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 12px 16px;
            border: none;
            background: none;
            text-align: left;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: background 0.15s;
            white-space: nowrap;
        }

        .mobile-action-item:hover {
            background: #f5f5f5;
        }

        .mobile-action-item i {
            font-size: 14px;
            width: 16px;
            text-align: center;
            color: #666;
        }

        .mobile-action-item.danger {
            color: #dc2626;
        }

        .mobile-action-item.danger i {
            color: #dc2626;
        }

        .mobile-action-item.danger:hover {
            background: #fef2f2;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            animation: fadeIn 0.15s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: #fff;
            padding: 24px;
            border-radius: 12px;
            min-width: 400px;
            max-width: 600px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            animation: slideUp 0.2s;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-content h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .modal-content p {
            font-size: 14px;
            color: #666;
            margin-bottom: 16px;
        }

        .modal-content input[type="text"],
        .modal-content textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e5e5e5;
            border-radius: 6px;
            margin-bottom: 16px;
            font-size: 14px;
            font-family: inherit;
        }

        .modal-content textarea {
            min-height: 200px;
            font-family: 'SF Mono', 'Monaco', monospace;
            font-size: 13px;
            resize: vertical;
        }

        .modal-content input:focus,
        .modal-content textarea:focus {
            outline: none;
            border-color: #000;
        }

        .modal-content label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 6px;
            color: #000;
        }

        .modal-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        /* Message */
        /* Toast 容器 */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none;
        }

        .toast {
            pointer-events: auto;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 300px;
            max-width: 400px;
            padding: 14px 16px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
            animation: toastSlideIn 0.3s ease-out;
            transition: all 0.3s ease-out;
        }

        .toast.removing {
            animation: toastSlideOut 0.3s ease-in forwards;
        }

        @keyframes toastSlideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes toastSlideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .toast-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .toast.success .toast-icon {
            background: #dcfce7;
            color: #166534;
        }

        .toast.error .toast-icon {
            background: #fee2e2;
            color: #991b1b;
        }

        .toast-content {
            flex: 1;
            font-size: 14px;
            color: #1f2937;
            line-height: 1.4;
        }

        .toast-close {
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            padding: 4px;
            font-size: 18px;
            line-height: 1;
            transition: color 0.15s;
        }

        .toast-close:hover {
            color: #374151;
        }

        /* Loading */
        .loading {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        .loading i {
            font-size: 32px;
            margin-bottom: 12px;
        }

        /* 上传区域 */
        .upload-area {
            border: 2px dashed #e5e5e5;
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            background: #fafafa;
        }

        .upload-area:hover {
            border-color: #000;
            background: #fff;
        }

        .upload-area.dragover {
            border-color: #000;
            background: #f0f0f0;
        }

        .upload-icon {
            font-size: 48px;
            color: #999;
            margin-bottom: 16px;
            transition: color 0.2s ease;
        }

        .upload-area:hover .upload-icon {
            color: #000;
        }

        .upload-text {
            font-size: 14px;
            color: #333;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .upload-hint {
            font-size: 12px;
            color: #999;
        }

        .selected-file {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: #f5f5f5;
            border-radius: 6px;
            margin-top: 16px;
            margin-bottom: 16px;
        }

        .selected-file-info {
            flex: 1;
            min-width: 0;
        }

        .selected-file-name {
            font-size: 14px;
            font-weight: 500;
            color: #000;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .selected-file-size {
            font-size: 12px;
            color: #999;
        }

        .selected-file-remove {
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            font-size: 18px;
            padding: 4px 8px;
            transition: color 0.15s;
        }

        .selected-file-remove:hover {
            color: #dc2626;
        }

        /* 分片上传进度样式 */
        .chunked-upload-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .upload-progress-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding: 16px;
            background: #f9f9f9;
            border-radius: 8px;
        }

        .upload-file-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: #fff;
            border-radius: 6px;
            border: 1px solid #e5e5e5;
        }

        .upload-file-details {
            flex: 1;
            min-width: 0;
        }

        .upload-file-name {
            font-weight: 500;
            color: #000;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .upload-file-meta {
            font-size: 13px;
            color: #666;
            margin-top: 2px;
        }

        .upload-status-icon {
            font-size: 24px;
            color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
        }

        .upload-progress-bar-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .upload-progress-bar {
            flex: 1;
            height: 8px;
            background: #e5e5e5;
            border-radius: 4px;
            overflow: hidden;
        }

        .upload-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #000 0%, #333 100%);
            transition: width 0.3s ease;
            border-radius: 4px;
        }

        .upload-progress-text {
            min-width: 50px;
            text-align: right;
            font-weight: 600;
            font-size: 14px;
            color: #000;
        }

        .upload-stats {
            display: flex;
            gap: 16px;
            padding: 12px;
            background: #fff;
            border-radius: 6px;
            border: 1px solid #e5e5e5;
        }

        .upload-stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #666;
        }

        .upload-stat-item i {
            font-size: 14px;
            color: #999;
        }

        .upload-error {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background: #fef2f2;
            border-radius: 6px;
            color: #dc2626;
            font-size: 13px;
        }

        .upload-error i {
            font-size: 16px;
        }

        .upload-hashing {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background: #eff6ff;
            border-radius: 6px;
            color: #2563eb;
            font-size: 13px;
        }

        .upload-hashing i {
            font-size: 16px;
        }

        .upload-success {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background: #f0fdf4;
            border-radius: 6px;
            color: #16a34a;
            font-size: 13px;
        }

        .upload-success i {
            font-size: 16px;
        }

        .upload-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .fa-spin {
            animation: fa-spin 1s linear infinite;
        }

        @keyframes fa-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Keyboard Shortcuts */
        .shortcuts-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            padding: 24px;
            border-radius: 12px;
            min-width: 500px;
            max-width: 600px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
            z-index: 1001;
        }

        .shortcuts-panel h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .shortcuts-section {
            margin-bottom: 16px;
        }

        .shortcuts-section h4 {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #666;
        }

        .shortcut-item {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 13px;
        }

        .shortcut-key {
            font-family: 'SF Mono', monospace;
            background: #f5f5f5;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
        }

        /* CodeMirror 编辑器容器样式 */
        .codemirror-container {
            width: 100%;
            height: 600px;
            border: 1px solid #e5e5e5;
            border-radius: 6px;
            overflow: hidden;
        }

        .codemirror-container .CodeMirror {
            height: 100%;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', monospace;
            font-size: 14px;
            line-height: 1.6;
        }

        /* CodeMirror 搜索/替换对话框 - Dracula 主题适配 */
        .CodeMirror-dialog {
            background: #282a36 !important;
            color: #f8f8f2 !important;
            border: 1px solid #44475a !important;
            border-radius: 4px !important;
            padding: 8px 12px !important;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', monospace !important;
            font-size: 13px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
        }

        .CodeMirror-dialog input {
            background: #1e1f29 !important;
            color: #f8f8f2 !important;
            border: 1px solid #44475a !important;
            border-radius: 3px !important;
            padding: 4px 8px !important;
            font-family: inherit !important;
            font-size: inherit !important;
            outline: none !important;
        }

        .CodeMirror-dialog input:focus {
            border-color: #bd93f9 !important;
        }

        .CodeMirror-dialog button {
            background: #bd93f9 !important;
            color: #282a36 !important;
            border: none !important;
            border-radius: 3px !important;
            padding: 4px 12px !important;
            font-family: inherit !important;
            font-size: inherit !important;
            cursor: pointer !important;
            margin-left: 6px !important;
        }

        .CodeMirror-dialog button:hover {
            background: #ff79c6 !important;
        }

        /* 编辑器工具栏 */
        .editor-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f5f5f5;
            border: 1px solid #e5e5e5;
            border-bottom: none;
            border-radius: 6px 6px 0 0;
            font-size: 13px;
        }

        .editor-toolbar-label {
            font-weight: 500;
            color: #666;
        }

        .editor-info {
            margin-left: auto;
            font-size: 12px;
            color: #999;
        }

        .editor-modal-content {
            max-width: 900px;
            width: 90%;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state p {
            font-size: 14px;
        }

        /* 标签栏 */
        .tab-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 0;
            border-bottom: 1px solid #e5e5e5;
            padding-bottom: 8px;
        }

        .file-sub-tabs {
            display: flex;
            gap: 8px;
            margin-top: 0;
            margin-bottom: 16px;
            padding-top: 12px;
        }

        .tab-btn {
            padding: 10px 20px;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #888;
            transition: all 0.25s ease;
            position: relative;
        }

        .tab-btn::after {
            content: '';
            position: absolute;
            bottom: 6px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 30px;
            height: 3px;
            background: #000;
            border-radius: 2px;
            transition: transform 0.25s ease;
        }

        .tab-btn:hover {
            color: #333;
        }

        .tab-btn:hover::after {
            transform: translateX(-50%) scaleX(1);
        }

        .tab-btn.active {
            color: #000;
        }

        .tab-btn.active::after {
            transform: translateX(-50%) scaleX(1);
        }

        /* 终端标签 */
        .terminal-tab {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 200px);
            min-height: 400px;
        }

        /* 终端多标签栏 */
        .terminal-tab-bar {
            display: flex;
            align-items: center;
            background: #252526;
            border-bottom: 1px solid #1e1e1e;
            padding: 0 4px;
            gap: 2px;
            overflow-x: auto;
        }

        .terminal-tab-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: #2d2d2d;
            color: #999;
            border: none;
            border-radius: 4px 4px 0 0;
            cursor: pointer;
            font-size: 12px;
            font-family: 'SF Mono', 'Monaco', monospace;
            white-space: nowrap;
            transition: all 0.15s;
            position: relative;
        }

        .terminal-tab-item:hover {
            background: #353535;
            color: #ccc;
        }

        .terminal-tab-item.active {
            background: #1e1e1e;
            color: #fff;
        }

        .terminal-tab-close {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border: none;
            background: transparent;
            color: #666;
            border-radius: 3px;
            cursor: pointer;
            font-size: 11px;
            padding: 0;
            line-height: 1;
        }

        .terminal-tab-close:hover {
            background: #c14545;
            color: #fff;
        }

        .terminal-tab-add {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border: none;
            background: transparent;
            color: #888;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 2px;
            transition: all 0.15s;
        }

        .terminal-tab-add:hover {
            background: #353535;
            color: #fff;
        }

        .terminal-tab-status {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #22c55e;
        }

        .terminal-tab-status.disconnected {
            background: #f59e0b;
        }

        .terminal-tab-name {
            cursor: text;
            user-select: none;
        }

        .terminal-tab-name:hover {
            text-decoration: underline;
            text-decoration-style: dotted;
        }

        .terminal-tab-rename-input {
            background: #1e1e1e;
            border: 1px solid #0078d4;
            color: #fff;
            font-size: 12px;
            padding: 1px 4px;
            border-radius: 3px;
            outline: none;
            width: 80px;
            font-family: inherit;
        }

        .terminal-toolbar {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 8px 12px;
            background: #2d2d2d;
            color: #fff;
        }

        .terminal-title {
            font-weight: 600;
            font-size: 14px;
        }

        .terminal-path {
            flex: 1;
            max-width: 200px;
            font-size: 12px;
            font-family: 'SF Mono', 'Monaco', monospace;
            color: #888;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .btn-terminal {
            padding: 4px 12px;
            border: 1px solid #444;
            background: transparent;
            color: #fff;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.15s;
        }

        .btn-terminal:hover {
            background: #444;
        }

        /* 终端快捷键区域 */
        .terminal-shortcuts {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .terminal-shortcut-btn {
            padding: 4px 10px;
            border: 1px solid #555;
            background: transparent;
            color: #ccc;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            font-family: 'SF Mono', 'Monaco', monospace;
            transition: all 0.15s;
            min-width: 36px;
        }

        .terminal-shortcut-btn:hover {
            background: #444;
            border-color: #888;
            color: #fff;
        }

        .terminal-shortcut-btn:active {
            background: #555;
            transform: scale(0.95);
        }

        .terminal-shortcut-btn.ctrl-c {
            color: #f87171;
            border-color: #7f1d1d;
        }

        .terminal-shortcut-btn.ctrl-c:hover {
            background: rgba(248, 113, 113, 0.2);
        }

        .terminal-container {
            flex: 1;
            background: #1e1e1e;
            border-radius: 0 0 6px 6px;
            overflow: hidden;
            padding: 8px;
            outline: none;
            display: none;
        }

        .terminal-container.active {
            display: block;
        }

        .terminal-container:focus-within {
            outline: none;
        }

        .terminal-reconnecting {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #f59e0b;
            font-size: 13px;
            font-family: 'SF Mono', monospace;
            z-index: 10;
        }

        /* 防止空格键触发页面滚动 */
        .terminal-tab {
            outline: none;
        }

        /* ===== 移动端终端元素（桌面隐藏）===== */
        .mobile-input-bar,
        .mobile-extra-keys {
            display: none;
        }

        .terminal-exit-fullscreen {
            display: none;
        }

        @media (max-width: 768px) {
            .terminal-exit-fullscreen {
                display: flex;
            }
        }

        .mobile-input-bar {
            display: none;
            gap: 6px;
            padding: 6px 8px;
            background: #252526;
            border-top: 1px solid #333;
            align-items: center;
        }

        .mobile-terminal-input {
            flex: 1;
            padding: 8px 10px;
            border: 1px solid #444;
            border-radius: 6px;
            background: #1e1e1e;
            color: #d4d4d4;
            font-family: 'SF Mono', 'Monaco', monospace;
            font-size: 16px;
            outline: none;
            -webkit-appearance: none;
        }

        .mobile-terminal-input:focus {
            border-color: #0078d4;
        }

        .mobile-terminal-input::placeholder {
            color: #666;
        }

        .mobile-send-btn {
            padding: 8px 14px;
            background: #0078d4;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            min-height: 38px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-send-btn:active {
            background: #005a9e;
        }

        .mobile-extra-keys {
            display: none;
            flex-wrap: wrap;
            gap: 4px;
            padding: 4px 6px;
            background: #2d2d2d;
            border-top: 1px solid #333;
            align-items: center;
        }

        .mobile-extra-keys.compact {
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .extra-key-toggle {
            width: 30px;
            height: 32px;
            background: transparent;
            border: 1px solid #555;
            border-radius: 4px;
            color: #888;
            font-size: 10px;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .extra-key-btn {
            padding: 4px 8px;
            min-width: 36px;
            min-height: 32px;
            background: transparent;
            border: 1px solid #555;
            border-radius: 4px;
            color: #ccc;
            font-size: 11px;
            font-family: 'SF Mono', 'Monaco', monospace;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .extra-key-btn:active {
            background: #555;
            transform: scale(0.95);
        }

        .extra-key-btn.active {
            background: #0078d4;
            border-color: #0078d4;
            color: #fff;
        }

        .extra-key-btn.ctrl-c {
            color: #f87171;
            border-color: #7f1d1d;
        }

        /* ========== 移动端响应式布局 ========== */
        @media (max-width: 768px) {
            /* 终端激活时禁止页面滚动 */
            body.terminal-active {
                overflow: hidden !important;
            }

            html.terminal-active {
                overflow: hidden !important;
            }

            .app {
                padding: 10px;
            }

            /* Header 响应式 */
            .header {
                flex-direction: row;
                align-items: center;
                gap: 8px;
            }

            .header-left h1 {
                font-size: 14px;
                padding: 4px 10px;
                letter-spacing: 1px;
            }

            .user-menu {
                width: auto;
                justify-content: flex-end;
            }

            /* Path Bar 响应式 */
            .path-bar {
                flex-wrap: wrap;
            }

            .path-input {
                flex: 1 1 100%;
                min-width: 0;
            }

            /* 按钮响应式 */
            .btn {
                padding: 8px 12px;
                font-size: 12px;
            }

            .btn span {
                display: none;
            }

            .btn i {
                display: inline-block;
            }

            /* 文件列表响应式 */
            .file-list-header {
                display: none;
            }

            .file-item {
                grid-template-columns: 32px 1fr auto;
                gap: 8px 12px;
                padding: 8px 10px;
                align-items: center;
            }

            .file-icon {
                font-size: 16px;
            }

            .file-name {
                font-size: 14px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .created-time {
                display: none;
            }

            .file-size,
            .file-permissions {
                display: none;
            }

            /* 文件操作按钮响应式 */
            .file-actions {
                opacity: 1;
                position: static;
            }

            .file-actions .btn-action {
                padding: 5px 7px;
                min-width: 30px;
            }

            .file-actions .btn-action i {
                font-size: 13px;
            }

            /* Modal 响应式 */
            .modal-content {
                min-width: auto;
                max-width: 95%;
                width: 95%;
                padding: 16px;
                margin: 10px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .editor-modal-content {
                max-width: 100%;
                width: 100%;
                margin: 0;
                border-radius: 0;
                height: 100vh;
                max-height: 100vh;
                display: flex;
                flex-direction: column;
            }

            /* 编辑器工具栏响应式 */
            .editor-toolbar {
                flex-wrap: wrap;
                gap: 4px;
                padding: 6px 8px;
            }

            .editor-toolbar-label {
                display: none;
            }

            .editor-toolbar-select {
                padding: 3px 6px;
                font-size: 11px;
                flex: 1;
            }

            .editor-info {
                display: none;
            }

            /* CodeMirror 编辑器响应式 */
            .codemirror-container {
                height: calc(100vh - 200px);
                min-height: 300px;
            }

            .codemirror-container .CodeMirror {
                height: 100% !important;
            }

            /* 标签栏响应式 */
            .tab-bar {
                flex-wrap: wrap;
            }

            .tab-btn {
                padding: 6px 12px;
                font-size: 13px;
            }

            /* Toast 响应式 */
            .toast-container {
                top: 10px;
                right: 10px;
                left: 10px;
            }

            .toast {
                min-width: auto;
                max-width: 100%;
            }

            /* 上传区域响应式 */
            .upload-area {
                padding: 30px 16px;
            }

            .upload-icon {
                font-size: 36px;
            }

            /* 终端响应式 - flex 全屏，配合 interactive-widget=resizes-content */
            .terminal-tab {
                height: 100dvh;
                height: 100vh;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

            .terminal-exit-fullscreen {
                display: flex;
                background: #2d2d2d;
                border: none;
                color: #aaa;
                padding: 3px 8px;
                border-radius: 4px 4px 0 0;
                font-size: 13px;
                cursor: pointer;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
                margin-right: 2px;
            }

            .terminal-exit-fullscreen:active {
                background: #555;
                color: #fff;
            }

            .terminal-tab-bar {
                flex-shrink: 0;
                padding: 0 4px;
                min-height: 30px;
            }

            .terminal-tab-item {
                padding: 3px 8px;
                font-size: 11px;
                min-height: 28px;
            }

            .terminal-tab-close {
                width: 14px;
                height: 14px;
                font-size: 12px;
            }

            /* 隐藏桌面工具栏，用移动端面板代替 */
            .terminal-toolbar {
                display: none;
            }

            .terminal-container {
                flex: 1;
                min-height: 0;
                padding: 2px;
                overflow: hidden;
            }

            /* xterm.js 移动端滚动修复 */
            .terminal-container .xterm-viewport {
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch;
            }

            .terminal-container .xterm-scroll-area {
                touch-action: pan-y;
            }

            .terminal-container.active {
                display: block;
            }

            /* 显示移动端元素 */
            .mobile-input-bar,
            .mobile-extra-keys {
                display: flex;
                flex-shrink: 0;
            }

            .mobile-input-bar {
                padding: 4px 6px;
            }

            .mobile-terminal-input {
                padding: 6px 8px;
                font-size: 16px;
            }

            .mobile-send-btn {
                padding: 6px 12px;
                min-height: 34px;
            }

            .extra-key-btn {
                padding: 3px 6px;
                min-width: 32px;
                min-height: 28px;
                font-size: 10px;
            }

            .extra-key-toggle {
                width: 26px;
                height: 28px;
            }

            /* 快捷键面板响应式 */
            .shortcuts-panel {
                min-width: auto;
                max-width: 95%;
                width: 95%;
                margin: 10px;
            }

            .shortcut-item {
                flex-wrap: wrap;
                gap: 4px;
            }
        }

        @media (max-width: 480px) {
            .file-item {
                grid-template-columns: 28px 1fr auto;
                gap: 6px 10px;
                padding: 6px 8px;
            }

            .file-icon {
                font-size: 14px;
            }

            .file-name {
                font-size: 13px;
            }

            .file-actions {
                gap: 2px;
            }

            .file-actions .btn-action {
                padding: 4px 6px;
                min-width: 28px;
                font-size: 11px;
            }

            .file-actions .btn-action i {
                font-size: 12px;
            }

            /* 移动端操作菜单按钮 */
            .mobile-menu-btn {
                padding: 4px 6px !important;
                min-width: 28px !important;
            }

            .mobile-menu-btn i {
                font-size: 12px !important;
            }

            .modal-content {
                padding: 12px;
            }

            .modal-content h3 {
                font-size: 16px;
            }

            .modal-actions {
                flex-direction: column;
            }

            .modal-actions .btn {
                width: 100%;
                justify-content: center;
            }

            .editor-toolbar {
                flex-direction: column;
                align-items: stretch;
            }

            .editor-toolbar-select {
                width: 100%;
            }

            .codemirror-container {
                height: calc(100vh - 250px);
                min-height: 250px;
            }
        }

        /* 确保编辑器在各种屏幕尺寸下都能正确显示 */
        .editor-modal-content .codemirror-container {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* ==================== Nginx 标签页样式 ==================== */
        .nginx-tab {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 200px);
            min-height: 400px;
        }

        .nginx-sub-tabs {
            display: flex;
            gap: 6px;
            margin-top: 0;
            margin-bottom: 16px;
            padding-top: 12px;
        }

        .sub-tab-btn {
            padding: 6px 12px;
            border: none;
            background: transparent;
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 400;
            color: #888;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .sub-tab-btn:hover {
            background: #f5f5f5;
            color: #444;
        }

        .sub-tab-btn.active {
            background: #f0f0f0;
            color: #000;
            font-weight: 500;
        }

        .sub-tab-btn.active::after {
            transform: translateX(-50%) scaleX(1);
        }

        /* 配置管理 */
        .config-tab {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .config-header {
            padding: 12px 16px;
            background: #f5f5f5;
            border-radius: 6px;
            border-left: 4px solid #000;
        }

        .config-header h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 600;
            color: #000;
            word-break: break-all;
        }

        .config-placeholder {
            text-align: center;
            padding: 80px 20px;
            color: #999;
        }

        .config-placeholder i {
            font-size: 56px;
            opacity: 0.3;
            margin-bottom: 20px;
            display: block;
        }

        .config-placeholder p {
            font-size: 15px;
            margin: 8px 0;
            color: #666;
        }

        .config-placeholder p.hint {
            font-size: 13px;
            color: #999;
        }

        /* Error page configuration card */
        .error-page-config-card {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 16px;
            border: 1px solid #e5e5e5;
        }

        .error-page-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0;
            padding-bottom: 12px;
            border-bottom: 1px solid #e5e5e5;
            cursor: pointer;
            user-select: none;
        }

        .error-page-config-card.expanded .error-page-card-header {
            margin-bottom: 16px;
        }

        .error-page-card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .error-page-card-title i {
            font-size: 20px;
            color: #f59e0b;
        }

        .error-page-card-title h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .error-page-card-title p {
            margin: 4px 0 0 0;
            font-size: 13px;
            color: #666;
        }

        .error-page-card-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .expand-icon {
            font-size: 14px;
            color: #999;
            transition: transform 0.2s;
        }

        .error-page-warning {
            background: #fef3c7;
            border: 1px solid #f59e0b;
            border-radius: 6px;
            padding: 12px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .error-page-warning i {
            color: #f59e0b;
            font-size: 18px;
        }

        .warning-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .warning-text {
            font-size: 13px;
            color: #666;
        }

        .error-page-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 12px;
        }

        .error-page-option {
            background: white;
            border: 2px solid #e5e5e5;
            border-radius: 8px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .error-page-option:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .error-page-option.active {
            border-color: #000;
        }

        .error-page-option.missing {
            opacity: 0.6;
        }

        .error-page-checkbox {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 24px;
            height: 24px;
            border: 2px solid #ccc;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
        }

        .error-page-option.active .error-page-checkbox {
            border-color: #000;
            background: #000;
        }

        .error-page-checkbox i {
            color: white;
            font-size: 14px;
        }

        .error-page-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .error-page-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .error-page-option.active .error-page-icon {
            background: #000;
        }

        .error-page-icon i {
            font-size: 18px;
            color: #666;
        }

        .error-page-option.active .error-page-icon i {
            color: white;
        }

        .error-page-details {
            flex: 1;
        }

        .error-page-name {
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 4px;
        }

        .error-page-desc {
            font-size: 13px;
            color: #666;
        }

        .error-page-path {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
            font-family: 'Monaco', 'Consolas', monospace;
        }

        .error-page-missing-label {
            position: absolute;
            bottom: 12px;
            right: 12px;
            font-size: 11px;
            color: #dc2626;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .error-page-config-card {
                padding: 16px;
            }

            .error-page-options {
                grid-template-columns: 1fr;
            }
        }

        .config-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f5f5f5;
            border-radius: 6px;
            font-size: 14px;
        }

        .breadcrumb-item {
            cursor: pointer;
            color: #0066cc;
        }

        .breadcrumb-item:hover {
            text-decoration: underline;
        }

        .breadcrumb-separator {
            color: #999;
        }

        .config-actions-bar {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* 日志查看 */
        .log-tab {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .log-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .log-controls select {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            cursor: pointer;
        }

        .log-viewer {
            flex: 1;
            background: #1e1e1e;
            border-radius: 6px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .log-content {
            margin: 0;
            padding: 16px;
            color: #d4d4d4;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
            font-size: 13px;
            line-height: 1.6;
            overflow: auto;
            max-height: 500px;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        /* 状态监控 */
        .status-tab {
            display: flex;
            flex-direction: column;
            gap: 24px;
            position: relative;
        }

        .status-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
        }

        .status-card {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 20px;
            background: #f5f5f5;
            border-radius: 8px;
            border-left: 4px solid #ccc;
        }

        .status-card.status-running {
            border-left-color: #22c55e;
            background: linear-gradient(to right, #f0fdf4, #f5f5f5);
        }

        .status-card.status-stopped {
            border-left-color: #ef4444;
            background: linear-gradient(to right, #fef2f2, #f5f5f5);
        }

        .status-icon {
            font-size: 32px;
            color: #666;
        }

        .status-running .status-icon {
            color: #22c55e;
        }

        .status-stopped .status-icon {
            color: #ef4444;
        }

        .status-info h3 {
            margin: 0 0 8px 0;
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }

        .status-info p {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .status-success {
            color: #22c55e;
        }

        .status-error {
            color: #ef4444;
        }

        /* Nginx 配置编辑器弹窗样式 */
        .modal-content-nginx {
            max-width: 95vw;
            width: 1200px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e5e5e5;
        }

        .modal-title h3 {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 4px 0;
            color: #000;
        }

        .modal-title p {
            font-size: 13px;
            color: #666;
            margin: 0;
            word-break: break-all;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.15s;
        }

        .modal-close:hover {
            background: #f5f5f5;
            color: #000;
        }

        .modal-content-nginx .codemirror-container {
            height: 500px;
            min-height: 400px;
            max-height: calc(90vh - 200px);
            overflow: hidden;
        }

        .modal-content-nginx .codemirror-container .CodeMirror {
            height: 100% !important;
        }

        .modal-content-nginx .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #e5e5e5;
        }

        /* 手机端响应式布局 */
        @media (max-width: 768px) {
            .nginx-tab {
                height: calc(100vh - 140px);
                min-height: 300px;
            }

            .nginx-sub-tabs {
                flex-wrap: wrap;
                gap: 6px;
                margin-bottom: 12px;
            }

            .sub-tab-btn {
                padding: 6px 12px;
                font-size: 13px;
                flex: 1;
                min-width: calc(33.33% - 4px);
                justify-content: center;
            }

            .sub-tab-btn i {
                display: none;
            }

            /* 配置管理 */
            .config-header {
                padding: 10px 12px;
            }

            .config-header h3 {
                font-size: 14px;
            }

            .config-placeholder {
                padding: 50px 16px;
            }

            .config-placeholder i {
                font-size: 40px;
                margin-bottom: 12px;
            }

            .config-placeholder p {
                font-size: 14px;
            }

            .config-placeholder p.hint {
                font-size: 12px;
            }

            .config-actions-bar {
                gap: 6px;
            }

            .config-actions-bar .btn {
                flex: 1;
                min-width: calc(50% - 3px);
                font-size: 13px;
                padding: 8px 12px;
            }

            /* 日志查看 */
            .log-controls {
                flex-wrap: wrap;
            }

            .log-controls select {
                flex: 1;
                min-width: calc(50% - 4px);
                padding: 6px 10px;
                font-size: 13px;
            }

            .log-controls .btn {
                flex: 1;
                min-width: calc(50% - 4px);
                font-size: 13px;
            }

            .log-content {
                padding: 12px;
                font-size: 11px;
                max-height: calc(100vh - 280px);
            }

            /* 状态监控 */
            .status-cards {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .status-card {
                padding: 16px;
                gap: 12px;
            }

            .status-icon {
                font-size: 28px;
            }

            .status-info h3 {
                font-size: 13px;
            }

            .status-info p {
                font-size: 16px;
            }

            .status-actions {
                display: flex;
                gap: 8px;
            }

            .status-actions .btn {
                flex: 1;
            }

            /* Nginx 编辑器弹窗手机端 */
            .modal-content-nginx {
                max-width: 100vw;
                width: 100vw;
                height: 100vh;
                max-height: 100vh;
                border-radius: 0;
                margin: 0;
            }

            .modal-header {
                padding: 12px;
                margin-bottom: 12px;
            }

            .modal-title h3 {
                font-size: 16px;
            }

            .modal-title p {
                font-size: 12px;
            }

            .modal-close {
                font-size: 24px;
                width: 28px;
                height: 28px;
            }

            .modal-content-nginx .codemirror-container {
                height: calc(100vh - 180px);
                min-height: 300px;
                max-height: calc(100vh - 180px);
            }

            .modal-content-nginx .codemirror-container .CodeMirror {
                font-size: 12px;
                height: 100% !important;
            }

            .modal-content-nginx .modal-actions {
                padding: 12px;
                margin: 0;
                gap: 6px;
            }

            .modal-content-nginx .modal-actions .btn {
                flex: 1;
                font-size: 14px;
                padding: 10px;
            }
        }

        /* 登录覆盖层 */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-overlay-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #fafafa;
            z-index: 0;
        }

        .login-card-wrapper {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 400px;
            padding: 20px;
            animation: fadeInUp 0.5s ease-out;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .login-card {
            background: #fff;
            border: 1px solid #e5e5e5;
            border-radius: 16px;
            padding: 40px 32px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        }

        .login-logo {
            text-align: center;
            margin-bottom: 28px;
        }

        .login-logo h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #2d2d2d 100%);
            color: #ffffff;
            padding: 8px 18px;
            border-radius: 4px 12px 4px 12px;
            letter-spacing: 3px;
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 8px;
        }

        .login-logo p {
            font-size: 13px;
            color: #999;
            letter-spacing: 1px;
        }

        .login-error {
            background: #fef2f2;
            color: #dc2626;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            margin-bottom: 16px;
            border: 1px solid #fecaca;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .login-form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .login-form-group label {
            font-size: 13px;
            font-weight: 500;
            color: #333;
        }

        .login-form-group input {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid #e0e0e0;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
            background: #fafafa;
            color: #1a1a1a;
        }

        .login-form-group input:hover {
            border-color: #ccc;
            background: #f5f5f5;
        }

        .login-form-group input:focus {
            border-color: #1a1a1a;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
        }

        .login-form-group input::placeholder {
            color: #aaa;
        }

        .login-form-group input:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .login-submit-btn {
            width: 100%;
            padding: 13px;
            margin-top: 4px;
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            letter-spacing: 0.5px;
        }

        .login-submit-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .login-submit-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .login-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .login-footer {
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            text-align: center;
            font-size: 12px;
            color: #aaa;
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 28px 20px;
            }
        }

        /* ===== Skill Manager ===== */
        .skill-manager {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 180px);
            padding: 0 20px 20px;
        }

        .skill-mobile-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center;
        }

        .skill-mobile-select {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            background: #fff;
            outline: none;
        }

        .skill-mobile-del {
            padding: 10px 14px;
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
        }

        .skill-body {
            display: flex;
            gap: 16px;
            flex: 1;
            min-height: 0;
        }

        .skill-sidebar {
            width: 220px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
        }

        .skill-sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .skill-sidebar-header h3 {
            font-size: 14px;
            font-weight: 600;
        }

        .skill-btn-icon {
            padding: 4px 10px;
            background: #1a1a1a;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
        }

        .skill-list {
            flex: 1;
            overflow: auto;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            background: #fff;
        }

        .skill-list-item {
            padding: 10px 12px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            font-size: 13px;
            background: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.15s;
        }

        .skill-list-item:hover {
            background: #fafafa;
        }

        .skill-list-item.active {
            background: #f5f5f5;
        }

        .skill-list-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .skill-list-name i {
            color: #999;
            flex-shrink: 0;
        }

        .skill-list-del {
            color: #ccc;
            font-size: 11px;
            cursor: pointer;
            padding: 4px;
        }

        .skill-list-del:hover {
            color: #dc2626;
        }

        .skill-empty {
            padding: 20px;
            text-align: center;
            color: #999;
            font-size: 13px;
        }

        .skill-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .skill-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            gap: 10px;
        }

        .skill-title {
            font-size: 14px;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .skill-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .skill-btn-toggle {
            padding: 6px 12px;
            border: 1px solid #e0e0e0;
            background: #fff;
            color: #333;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
        }

        .skill-btn-toggle.active {
            background: #1a1a1a;
            color: #fff;
        }

        .skill-btn-save {
            padding: 6px 16px;
            background: #1a1a1a;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
        }

        .skill-btn-save:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .skill-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            font-size: 13px;
            outline: none;
        }

        .skill-editor-wrap {
            flex: 1;
            display: flex;
            gap: 12px;
            min-height: 0;
        }

        .skill-textarea {
            flex: 1;
            width: 100%;
            height: 100%;
            padding: 12px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 13px;
            font-family: 'SF Mono', Monaco, 'Fira Code', monospace;
            line-height: 1.6;
            resize: none;
            outline: none;
            background: #fff;
        }

        .skill-textarea:disabled {
            background: #f9f9f9;
        }

        .skill-textarea.half {
            width: 50%;
        }

        .skill-preview {
            flex: 1;
            width: 50%;
            height: 100%;
            padding: 16px 20px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.7;
            overflow: auto;
            background: #fff;
        }

        /* Markdown 预览样式 */
        .markdown-body h1, .markdown-body h2, .markdown-body h3,
        .markdown-body h4, .markdown-body h5, .markdown-body h6 {
            margin-top: 18px;
            margin-bottom: 10px;
            font-weight: 600;
            line-height: 1.4;
            color: #1a1a1a;
        }

        .markdown-body h1 { font-size: 22px; border-bottom: 1px solid #eee; padding-bottom: 6px; }
        .markdown-body h2 { font-size: 18px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
        .markdown-body h3 { font-size: 16px; }
        .markdown-body h4 { font-size: 14px; }

        .markdown-body p {
            margin-bottom: 12px;
            color: #333;
        }

        .markdown-body code {
            background: #f5f5f5;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'SF Mono', Monaco, monospace;
            font-size: 12px;
            color: #d73a49;
        }

        .markdown-body pre {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 14px;
            border-radius: 8px;
            overflow-x: auto;
            margin-bottom: 14px;
            line-height: 1.5;
        }

        .markdown-body pre code {
            background: transparent;
            color: inherit;
            padding: 0;
            font-size: 13px;
        }

        .markdown-body blockquote {
            border-left: 4px solid #1a1a1a;
            padding-left: 14px;
            margin-left: 0;
            margin-bottom: 14px;
            color: #555;
            font-style: italic;
        }

        .markdown-body ul, .markdown-body ol {
            padding-left: 22px;
            margin-bottom: 12px;
        }

        .markdown-body li {
            margin-bottom: 4px;
        }

        .markdown-body a {
            color: #0366d6;
            text-decoration: none;
        }

        .markdown-body a:hover {
            text-decoration: underline;
        }

        .markdown-body img {
            max-width: 100%;
            border-radius: 6px;
            margin: 8px 0;
        }

        .markdown-body table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 14px;
            font-size: 13px;
        }

        .markdown-body th, .markdown-body td {
            border: 1px solid #e0e0e0;
            padding: 8px 12px;
            text-align: left;
        }

        .markdown-body th {
            background: #f5f5f5;
            font-weight: 600;
        }

        .markdown-body tr:nth-child(even) {
            background: #fafafa;
        }

        .markdown-body hr {
            border: none;
            border-top: 1px solid #e5e5e5;
            margin: 16px 0;
        }

        /* 移动端响应式 */
        @media (max-width: 768px) {
            .skill-manager {
                height: calc(100vh - 140px);
                padding: 0 12px 12px;
            }

            .skill-body {
                flex-direction: column;
                gap: 10px;
            }

            .skill-sidebar {
                display: none;
            }

            .skill-toolbar {
                flex-wrap: wrap;
            }

            .skill-title {
                width: 100%;
                font-size: 13px;
            }

            .skill-actions {
                width: 100%;
                justify-content: flex-end;
            }

            .skill-editor-wrap {
                flex-direction: column;
            }

            .skill-textarea.half {
                width: 100%;
                height: 50%;
            }

            .skill-preview {
                width: 100%;
                height: 50%;
            }

            .skill-editor-wrap.with-preview .skill-textarea {
                display: none;
            }

            .skill-editor-wrap.with-preview .skill-preview {
                width: 100%;
                height: 100%;
            }
        }
