        /* SSH页面特有样式 */
        .ssh-main {
            padding-top: 80px; /* 为导航栏留出空间 */
            min-height: 100vh;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
            position: relative;
        }

        .ssh-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
            display: flex;
            flex-direction: column;
            min-height: calc(100vh - 80px);
        }

        .ssh-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 2;
        }

        .ssh-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ffffff, #00ff88, #00ccff, #ffffff);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient-text 3s ease-in-out infinite;
            text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
        }

        .ssh-header p {
            color: #cccccc;
            font-size: 1.1rem;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .ssh-content {
            display: grid;
            grid-template-columns: 380px 1fr;
            gap: 40px;
            flex: 1;
            position: relative;
            z-index: 2;
        }

        .connection-panel {
            background: rgba(0, 0, 0, 0.6);
            border: 2px solid #333;
            border-radius: 20px;
            padding: 30px;
            height: fit-content;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .connection-panel::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00ff88, #00ccff, #00ff88);
            border-radius: 20px;
            z-index: -1;
            animation: border-flow 3s linear infinite;
            opacity: 0.3;
        }

        .terminal-panel {
            height: 1088px;
            background: rgba(0, 0, 0, 0.6);
            border: 2px solid #333;
            border-radius: 20px;
            padding: 20px;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .terminal-panel::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00ff88, #00ccff, #00ff88);
            border-radius: 20px;
            z-index: -1;
            animation: border-flow 3s linear infinite;
            opacity: 0.3;
        }

        .panel-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 25px;
            color: #00ff88;
            display: flex;
            align-items: center;
            gap: 10px;
            text-shadow: 0 0 10px #00ff88;
        }

        .panel-title::before {
            content: "🔌";
            font-size: 1.2rem;
        }

        .terminal-panel .panel-title::before {
            content: "💻";
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #cccccc;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #333;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
            color: #ffffff;
        }

        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #00ff88;
            box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
            background: rgba(255, 255, 255, 0.1);
        }

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

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn #deployBtnText,
        .btn #connectBtnText {
            margin-right: 8px;
        }

        .btn-primary {
            background: linear-gradient(45deg, #00ff88, #00ccff);
            color: #000000;
            width: 100%;
            margin-bottom: 10px;
            box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
        }

        .btn-deploy {
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            color: #ffffff;
            width: 100%;
            margin-bottom: 10px;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-deploy::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-deploy:hover::before {
            left: 100%;
        }

        .btn-deploy:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
        }

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

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            font-weight: 500;
            border: 1px solid;
        }

        .status-disconnected {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
            border-color: rgba(231, 76, 60, 0.3);
        }

        .status-connecting {
            background: rgba(241, 196, 15, 0.1);
            color: #f1c40f;
            border-color: rgba(241, 196, 15, 0.3);
        }

        .status-connected {
            background: rgba(0, 255, 136, 0.1);
            color: #00ff88;
            border-color: rgba(0, 255, 136, 0.3);
        }

        .status-indicator::before {
            content: "●";
            font-size: 12px;
            display: inline-block;
            transform-origin: center;
            animation: status-pulse 2s ease-in-out infinite;
        }

        .terminal {
            background: #000000;
            border: 1px solid #00ff88;
            border-radius: 8px;
            padding: 10px;
            height: 500px;
            flex: 1;
            position: relative;
            box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1);
            overflow: hidden; /* xterm.js 会处理滚动 */
        }

        /* xterm.js 终端样式覆盖 */
        .terminal .xterm {
            height: 100% !important;
        }

        .terminal .xterm-viewport {
            background-color: transparent !important;
        }

        .terminal .xterm-screen {
            background-color: transparent !important;
        }

        /* xterm.js 滚动条样式 */
        .terminal .xterm-viewport::-webkit-scrollbar {
            width: 8px;
        }

        .terminal .xterm-viewport::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }

        .terminal .xterm-viewport::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00ff88, #00ccff);
            border-radius: 4px;
            transition: background 0.3s ease;
        }

        .terminal .xterm-viewport::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #00ccff, #00ff88);
        }

        /* Firefox滚动条样式 */
        .terminal .xterm-viewport {
            scrollbar-width: thin;
            scrollbar-color: #00ff88 rgba(0, 0, 0, 0.3);
        }

        .terminal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .terminal-controls {
            display: flex;
            gap: 10px;
        }

        .terminal-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border: 1px solid #333;
        }

        .terminal-btn:hover {
            background: rgba(0, 255, 136, 0.2);
            border-color: #00ff88;
        }

        .terminal-btn.clear {
            background: rgba(231, 76, 60, 0.2);
            border-color: #e74c3c;
        }

        .terminal-btn.clear:hover {
            background: rgba(231, 76, 60, 0.4);
        }



        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 2px solid #ffffff;
            animation: spin 1s linear infinite;
            flex-shrink: 0;
            vertical-align: middle;
        }

        .message {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            font-size: 14px;
            font-weight: 500;
            border: 1px solid;
        }

        .message.success {
            background: rgba(0, 255, 136, 0.1);
            color: #00ff88;
            border-color: rgba(0, 255, 136, 0.3);
        }

        .message.error {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
            border-color: rgba(231, 76, 60, 0.3);
        }

        .session-info {
            background: rgba(0, 204, 255, 0.1);
            border: 1px solid rgba(0, 204, 255, 0.3);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 13px;
            color: #00ccff;
        }

        /* 服务状态样式 */
        .service-status {
            border-top: 1px solid rgba(0, 204, 255, 0.2);
            padding-top: 15px;
        }

        .status-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 13px;
        }

        .status-item span:first-child {
            min-width: 120px;
            color: #cccccc;
        }

        .status-text {
            color: #ffffff;
            margin-right: 8px;
            min-width: 60px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
            position: relative;
            animation: pulse 2s infinite;
        }

        .status-dot.running {
            background-color: #00ff88;
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
        }

        .status-dot.stopped {
            background-color: #ff4757;
            box-shadow: 0 0 10px rgba(255, 71, 87, 0.6);
        }

        .status-dot.unknown {
            background-color: #ffa502;
            box-shadow: 0 0 10px rgba(255, 165, 2, 0.6);
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.2);
                opacity: 0.7;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .deployment-progress {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #333;
            border-radius: 15px;
            padding: 20px;
            height: 851px;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .deployment-progress::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #ff6b35, #f7931e, #ff6b35);
            border-radius: 15px;
            z-index: -1;
            animation: border-flow 3s linear infinite;
            opacity: 0.3;
        }

        .deployment-progress h3 {
            color: #ff6b35;
            margin-bottom: 15px;
            font-size: 1.2rem;
            text-shadow: 0 0 10px #ff6b35;
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 15px;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            border-radius: 10px;
            width: 0%;
            transition: width 0.5s ease;
            position: relative;
            overflow: hidden;
        }

        .progress-fill::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: progress-shine 2s ease-in-out infinite;
        }

        .progress-text {
            color: #ffffff;
            font-size: 14px;
            margin-bottom: 15px;
            text-align: center;
        }

        .deployment-log {
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid #333;
            border-radius: 8px;
            height: 720px;
            max-height: 720px;
            padding: 15px;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            font-family: 'Courier New', monospace;
            line-height: 1.4;
            font-size: 12px;
            color: #00ff88;
            margin-top: 15px;
            min-height: 0;
        }

        .deployment-log::-webkit-scrollbar {
            width: 8px;
        }

        .deployment-log::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            margin: 2px;
        }

        .deployment-log::-webkit-scrollbar-thumb {
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .deployment-log::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(45deg, #f7931e, #ff6b35);
        }

        .log-entry {
            margin-bottom: 5px;
            padding: 2px 0;
            opacity: 0;
            animation: fadeInLog 0.3s ease-in-out forwards;
            word-wrap: break-word;
            white-space: pre-wrap;
        }

        .log-entry.info {
            color: #00ff88;
        }

        .log-entry.warning {
            color: #f1c40f;
        }

        .log-entry.error {
            color: #e74c3c;
        }

        .log-entry.success {
            color: #00ff88;
            font-weight: bold;
        }

        .log-entry.uploading {
            color: #3498db;
            font-weight: bold;
        }

        .upload-progress-entry {
            color: #3498db;
            font-weight: bold;
        }

        .deployment-terminal {
            background: #000000;
            border: 1px solid #ff6b35;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            height: 300px;
            overflow-y: auto;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            color: #00ff88;
            box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.1);
        }

        .deployment-terminal::-webkit-scrollbar {
            width: 8px;
        }

        .deployment-terminal::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }

        .deployment-terminal::-webkit-scrollbar-thumb {
            background: #ff6b35;
            border-radius: 4px;
        }

        .terminal-output {
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .terminal-line {
            margin-bottom: 2px;
            padding: 1px 0;
        }

        .terminal-line.info {
            color: #00ff88;
        }

        .terminal-line.warning {
            color: #f1c40f;
        }

        .terminal-line.error {
            color: #e74c3c;
        }

        .terminal-line.success {
            color: #00ff88;
            font-weight: bold;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .ssh-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .connection-panel {
                order: 2;
            }
            
            .terminal-panel {
                order: 1;
            }

            .ssh-header h1 {
                font-size: 2rem;
            }
        }

        /* 继承首页的动画效果 */
        @keyframes gradient-text {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes border-flow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes status-pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.5);
                opacity: 0.3;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

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

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

        @keyframes fadeInLog {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }