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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #6a1b9a, #9c27b0);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.header h1 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    color: #f3e5f5;
    font-size: 1.1em;
}

.login-container {
    background: linear-gradient(145deg, #121212, #0a0a0a);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #6a1b9a;
    box-shadow: 0 10px 40px rgba(106, 27, 154, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #9c27b0;
    font-size: 32px;
    margin: 0 0 10px 0;
}

.login-header p {
    color: #b0bec5;
    margin: 0;
    font-size: 14px;
}

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

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #757575;
    font-size: 12px;
}

.register-link {
    color: #87CEEB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #B0E0E6;
    text-decoration: underline;
}

.login-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.login-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
    display: block;
}

.login-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
    display: block;
}

.connection-panel {
    padding: 30px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border-bottom: 2px solid #6a1b9a;
    position: relative;
}

.help-icon-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.help-icon {
    font-size: 24px;
    cursor: pointer;
    color: #9c27b0;
    transition: all 0.3s ease;
    display: inline-block;
    user-select: none;
}

.help-icon:hover {
    color: #ba68c8;
    transform: scale(1.1);
}

.help-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    max-height: 400px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 2px solid #6a1b9a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.help-tooltip::-webkit-scrollbar {
    width: 8px;
}

.help-tooltip::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.help-tooltip::-webkit-scrollbar-thumb {
    background: #6a1b9a;
    border-radius: 4px;
}

.help-tooltip::-webkit-scrollbar-thumb:hover {
    background: #9c27b0;
}

.help-icon-container:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-content h4 {
    color: #9c27b0;
    margin: 0 0 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #6a1b9a;
    padding-bottom: 8px;
}

.help-content h4:first-of-type {
    margin-top: 0;
}

.help-content p {
    color: #b0bec5;
    margin: 0 0 15px 0;
    font-size: 13px;
    line-height: 1.6;
}

.help-content p:last-child {
    margin-bottom: 0;
}

.connection-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0bec5;
    font-weight: bold;
    font-size: 14px;
}

.form-group .checkbox-label {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 48px;
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #9c27b0;
    border-radius: 8px;
    background: linear-gradient(145deg, #101010, #0a0a0a);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ba68c8;
    box-shadow: 0 0 15px rgba(186, 104, 200, 0.4);
}

.form-control option {
    background: #101010;
    color: #ffffff;
    padding: 8px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 48px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-connect {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    color: #e8f5e8;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-connect:hover {
    background: linear-gradient(45deg, #1b5e20, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-send {
    background: linear-gradient(45deg, #6a1b9a, #9c27b0);
    color: #f3e5f5;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
}

.btn-send:hover {
    background: linear-gradient(45deg, #4a148c, #6a1b9a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.4);
}

.btn-clear {
    background: linear-gradient(45deg, #795548, #a1887f);
    color: #efebe9;
    box-shadow: 0 4px 15px rgba(121, 85, 72, 0.3);
    padding: 8px 16px;
    font-size: 12px;
    height: 36px;
    line-height: 20px;
}

.btn-clear:hover {
    background: linear-gradient(45deg, #5d4037, #8d6e63);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 85, 72, 0.4);
}

.btn-logout {
    background: linear-gradient(45deg, #e53935, #f44336);
    color: #ffebee;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-logout:hover {
    background: linear-gradient(45deg, #c62828, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.btn-login {
    background: linear-gradient(45deg, #6a1b9a, #9c27b0);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(45deg, #9c27b0, #ba68c8);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.4);
}

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

.main-content {
    display: flex;
    height: 550px;
}

.console-panel {
    flex: 2;
    padding: 20px;
    background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
    border-right: 2px solid #6a1b9a;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #6a1b9a;
}

.console-title {
    color: #9c27b0;
    font-size: 1.2em;
    font-weight: bold;
}

.console-info {
    flex: 1;
    text-align: center;
    color: #7fc7eb;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.console-output {
    height: 400px;
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 15px;
    border-radius: 8px;
    overflow-y: auto;
    border: 2px solid #6a1b9a;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.console-input-area {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.console-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #6a1b9a;
    border-radius: 8px;
    background: linear-gradient(145deg, #101010, #0a0a0a);
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.sidebar {
    flex: 1;
    padding: 20px;
    background: linear-gradient(145deg, #101010, #0a0a0a);
    overflow-y: auto;
}

.sidebar h3 {
    color: #9c27b0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1em;
}

.quick-commands {
    margin-bottom: 25px;
}

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

.quick-commands-header h3 {
    color: #9c27b0;
    margin: 0;
    font-size: 1.1em;
}

.btn-add-command {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
    color: #e3f2fd;
    padding: 8px 16px;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-add-command:hover {
    background: linear-gradient(45deg, #1976d2, #2196f3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.category-filter {
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border-radius: 8px;
    border: 1px solid #6a1b9a;
}

.filter-label {
    color: #9c27b0;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 13px;
}

.category-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #6a1b9a;
    border-radius: 6px;
    background: linear-gradient(145deg, #101010, #0a0a0a);
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-select:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3);
}

.category-select:hover {
    border-color: #9c27b0;
}

.category-select option {
    background: #101010;
    color: #e0e0e0;
    padding: 8px;
}

.command-item {
    background: linear-gradient(145deg, #1a1a1a, #101010);
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #6a1b9a;
}

.command-item:hover {
    background: linear-gradient(145deg, #6a1b9a, #9c27b0);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
}

.command-name {
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 4px;
    font-size: 14px;
}

.command-desc {
    font-size: 12px;
    color: #b0bec5;
    line-height: 1.4;
}

.command-usage {
    font-size: 11px;
    color: #9e9e9e;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.quick-commands {
    display: flex;
    flex-direction: column;
}

.quick-commands > * {
    margin-bottom: 15px;
}

#commandsList {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border-radius: 8px;
    border: 1px solid #6a1b9a;
}

#commandsList::-webkit-scrollbar {
    width: 8px;
}

#commandsList::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

#commandsList::-webkit-scrollbar-thumb {
    background: #6a1b9a;
    border-radius: 4px;
}

#commandsList::-webkit-scrollbar-thumb:hover {
    background: #9c27b0;
}

.status-bar {
    padding: 15px 30px;
    background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
    border-top: 2px solid #6a1b9a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.server-stats-inline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #b0bec5;
    font-size: 13px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
    transition: all 0.3s ease;
}

.status-dot.connected {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-text {
    color: #b0bec5;
    font-weight: bold;
}

.back-btn {
    background: linear-gradient(45deg, #795548, #a1887f);
    color: #efebe9;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(45deg, #5d4037, #8d6e63);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 85, 72, 0.3);
}

.console-output::-webkit-scrollbar {
    width: 8px;
}

.console-output::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.console-output::-webkit-scrollbar-thumb {
    background: #6a1b9a;
    border-radius: 4px;
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #9c27b0;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6a1b9a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c27b0;
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.5);
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* 模态框样式 */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 2px solid #6a1b9a;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #6a1b9a;
    background: linear-gradient(45deg, #6a1b9a, #9c27b0);
    color: white;
    border-radius: 13px 13px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #f0f0f0;
}

.info-tag {
    flex: 1;
    margin: 0 20px;
    padding: 8px 12px;
    color: #ffc107;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.info-tag:hover {
    transform: scale(1.02);
}

.modal-body {
    padding: 20px;
}

.modal-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(145deg, #101010, #0a0a0a);
    border-radius: 10px;
    border: 1px solid #6a1b9a;
}

.modal-section h4 {
    color: #9c27b0;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border: 1px solid #6a1b9a;
}

.checkbox-label:hover {
    background: linear-gradient(145deg, #6a1b9a, #9c27b0);
    transform: translateY(-2px);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #9c27b0;
}

.condition-setting {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border-radius: 8px;
    border: 1px solid #6a1b9a;
}

.execute-setting {
    margin-top: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }
    
    .connection-form {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* 服务器状态面板样式 */
.server-stats {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border-radius: 8px;
    border: 2px solid #6a1b9a;
}

.stats-header {
    color: #9c27b0;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 14px;
}

.stats-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
    border-radius: 6px;
    border: 1px solid #6a1b9a;
    text-align: center;
}

.stat-label {
    color: #b0bec5;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-value {
    color: #4caf50;
    font-size: 16px;
    font-weight: bold;
}

/* 条件按钮样式 */
.condition-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border: 2px solid #6a1b9a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.condition-btn:hover {
    background: linear-gradient(145deg, #6a1b9a, #9c27b0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

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

/* 模态框内按钮样式 */
.btn-secondary {
    background: linear-gradient(45deg, #7b1fa2, #9c27b0);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5e35b1, #7b1fa2);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-edit {
    background: linear-gradient(45deg, #6a1b9a, #9c27b0);
    color: white;
    width: 100%;
}

.btn-edit:hover {
    background: linear-gradient(45deg, #4a148c, #6a1b9a);
}

.btn-delete {
    background: linear-gradient(45deg, #6a1b9a, #9c27b0);
    color: white;
    width: 100%;
}

.btn-delete:hover {
    background: linear-gradient(45deg, #4a148c, #6a1b9a);
}

.btn-danger {
    background: linear-gradient(45deg, #d32f2f, #c62828);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #b71c1c, #c62828);
}

/* 模态框内分类和命令项样式 */
.modal .category-item,
.modal .command-item {
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border: 1px solid #6a1b9a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 90px;
    overflow: hidden;
}

.modal .command-item-info {
    flex: 1;
    margin-right: 15px;
    overflow: hidden;
}

.modal .category-actions,
.modal .command-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    min-width: 80px;
    max-width: 100px;
    padding-top: 0;
}

.modal .category-info {
    flex: 1;
    margin-right: 15px;
    overflow: hidden;
}

.modal .category-info strong {
    display: block;
    margin-bottom: 5px;
    color: #9c27b0;
}

.modal .command-item-header {
    display: block;
    margin-bottom: 5px;
}

.modal .command-item-header strong {
    display: inline-block;
    color: #9c27b0;
    margin-bottom: 0;
    font-weight: bold;
}

.modal .category-info p {
    margin: 0;
    color: #b0bec5;
    font-size: 14px;
}

.modal .command-category {
    margin-bottom: 20px;
}

.modal .command-category h4 {
    margin-bottom: 10px;
    color: #9c27b0;
    font-size: 16px;
}

/* 模态框内的命令组样式 */
.modal .command-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    border: 1px solid #6a1b9a;
    border-radius: 8px;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a1a, #101010);
}

/* 命令组内的命令项样式 */
.modal .command-group .command-item {
    background: linear-gradient(145deg, #1a1a1a, #101010);
    border: 1px solid #6a1b9a;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    min-height: auto;
}

.modal .command-group .command-item:hover {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-color: #9c27b0;
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.modal .command-group .command-item:hover .command-name {
    color: #ba68c8;
}

.modal .command-group .command-item:hover .command-desc {
    color: #e0e0e0;
}

.modal .command-name {
    font-weight: bold;
    color: #9c27b0;
    margin-bottom: 5px;
}

.modal .command-desc {
    font-size: 12px;
    color: #bdbdbd;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* 命令项头部样式 */
.modal .command-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: nowrap;
}

.modal .command-item-category {
    font-size: 12px;
    background-color: rgba(106, 27, 154, 0.2);
    color: #9c27b0;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal .command-item-desc {
    margin-bottom: 5px;
    color: #b0bec5;
    font-size: 14px;
}

.modal .command-item-example {
    font-size: 13px;
    color: #b0bec5;
    font-family: monospace;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
