/* 新用户中心样式 - 侧边栏导航布局 */

/* 主容器 */
.sse-user-center-new {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 登录提示 */
.sse-login-notice {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-notice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-icon .dashicons {
    font-size: 36px;
    color: white;
}

.login-notice-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.login-notice-content p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* 主布局 */
.sse-user-center-layout {
    display: flex;
    min-height: calc(100vh - 100px);
    background: #f8f9fa;
}

/* 侧边栏 */
.sse-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    color: #667eea;
}

.logo-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #2c3e50;
}

.logo-text p {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 侧边栏统计 */
.sidebar-stats {
    padding: 10px 24px;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.stat-item:not(:last-child) {
    border-bottom: 1px solid #f1f3f4;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .dashicons {
    font-size: 18px;
    color: #667eea;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

.nav-link.active {
    background: #667eea;
    color: white;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
}

.nav-icon {
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

.nav-badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.nav-link:not(.active) .nav-badge {
    background: #e9ecef;
    color: #7f8c8d;
}

/* 主内容区域 */
.sse-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.content-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #7f8c8d;
}

.breadcrumb-item.active {
    color: #667eea;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #bdc3c7;
}

.content-body {
    flex: 1;
    padding: 32px;
}

/* 页面内容 */
.content-page {
    display: none;
}

.content-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页面头部 */
.sse-user-center-new .page-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 32px !important;
    gap: 24px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.sse-user-center-new .page-title h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    color: #2c3e50 !important;
}

.sse-user-center-new .page-title p {
    font-size: 16px !important;
    color: #7f8c8d !important;
    margin: 0 !important;
}

.sse-user-center-new .page-actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

/* 按钮样式 */
.sse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    border: 1px solid #e9ecef;
}

.sse-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sse-btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sse-btn-primary:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}

.sse-btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.sse-btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.sse-btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.sse-btn-success:hover {
    background: #218838;
    border-color: #218838;
}

.sse-btn-warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.sse-btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
}

.sse-btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.sse-btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.sse-btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.sse-btn-outline:hover {
    background: #667eea;
    color: white;
}

.sse-btn-mini {
    padding: 6px 12px;
    font-size: 12px;
}

.sse-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* 选择框样式 */
.sse-select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    min-width: 120px;
}

.sse-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 筛选控件 */
.filter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 空状态 */
.empty-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 260px !important;
    text-align: center !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    margin: 0 auto !important;
    padding: 40px 0 32px 0 !important;
}

.empty-icon {
    width: 72px !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 18px auto !important;
    background: #f3f4f6 !important;
    border-radius: 50% !important;
}

.empty-icon .dashicons {
    /* font-size: 38px !important; */
    color: #b0b6be !important;
    line-height: 1 !important;
}

.empty-state h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.empty-state p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0 0 24px 0;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* --- 紧凑专业服务器卡片 --- */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
    margin-bottom: 24px;
}
/* --- 卡片美化增强 --- */
.server-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(80, 112, 180, 0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    border: 1px solid #e5eaf3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0 !important;
    transition: box-shadow 0.25s, transform 0.18s;
}
.server-card:hover {
    box-shadow: 0 8px 32px rgba(80, 112, 180, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.012);
}
.server-card-header {
    /* padding: 18px 20px 10px 20px; */
    background: linear-gradient(90deg, #f7faff 60%, #f1f5fa 100%);
    border-bottom: 1px solid #f1f5f9;
}
.server-card-body {
    padding: 12px 20px 0 20px;
    background: #fff;
}
.server-card-actions {
    padding: 14px 20px 16px 20px;
    background: #f7f8fa;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.action-group {
    display: flex;
    gap: 10px;
}
.sse-btn {
    border-radius: 7px;
    font-size: 13px;
    min-height: 32px;
    padding: 0 14px;
}
.server-title-row h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2340;
}
.server-ip-port {
    font-size: 13px;
    color: #8a94a6;
}
.server-meta {
    font-size: 12px;
    color: #7b8499;
    margin-top: 4px;
}
/* --- END 卡片美化增强 --- */
.server-header-main {
    flex: 1;
    min-width: 0;
}
.server-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.server-title-row h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}
.server-ip-port {
    font-size: 12px;
    color: #b0b3b8;
    margin-left: 2px;
    white-space: nowrap;
}
.server-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.server-ip {
    font-weight: 500;
    color: #374151;
}
.status-indicator {
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #f8fafc;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    height: 22px;
    line-height: 1;
}

/* 状态指示器不同状态样式 */
.status-indicator.status-running {
    background: #d1fae5;
    color: #065f46;
    width: 100px;
}

.status-indicator.status-stopped {
    background: #fee2e2;
    color: #991b1b;
}

.status-indicator.status-starting {
    background: #fef3c7;
    color: #92400e;
}

.status-indicator.status-stopping {
    background: #fef3c7;
    color: #92400e;
}

.status-indicator.status-rebooting {
    background: #fef3c7;
    color: #92400e;
}

.status-indicator.status-reinstalling {
    background: #e0e7ff;
    color: #3730a3;
}

.status-indicator.status-unknown {
    background: #f3f4f6;
    color: #6b7280;
}

/* 状态指示器图标样式 */
.status-indicator .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.status-indicator.status-running .dashicons {
    color: #10b981;
}

.status-indicator.status-stopped .dashicons {
    color: #ef4444;
}

.status-indicator.status-starting .dashicons,
.status-indicator.status-stopping .dashicons,
.status-indicator.status-rebooting .dashicons {
    color: #f59e0b;
}

.status-indicator.status-reinstalling .dashicons {
    color: #6366f1;
}

.status-indicator.status-unknown .dashicons {
    color: #9ca3af;
}

/* 加载状态样式 */
.sse-loading-mini {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    /* animation: spin 1s linear infinite; */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.card-actions-menu-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
}
.card-actions-menu-btn {
    width: 32px;
    height: 32px;
    background: #f4f6fa;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #667eea;
    font-size: 16px;
    transition: background 0.2s;
}
.card-actions-menu-btn:hover,
.card-actions-menu-btn:focus {
    background: #e0e7ff;
    color: #4f46e5;
}
.card-actions-menu {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    z-index: 99;
    padding: 6px 0;
    flex-direction: column;
    animation: fadeIn 0.2s;
}
.card-actions-menu.show {
    display: flex;
}
.card-menu-item {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
    text-align: left;
}
.card-menu-item:hover,
.card-menu-item:focus {
    background: #f4f6fa;
    color: #4f46e5;
}
.card-menu-item .dashicons {
    font-size: 15px;
    width: 16px;
    color: #667eea;
}

.card-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #9ca3af;
}

.card-menu-item.disabled .dashicons {
    color: #9ca3af;
}

.card-menu-item.disabled:hover {
    background: none;
    color: #9ca3af;
}

.server-card-body {
    padding: 8px 14px 0 14px;
}
.server-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}
.detail-label {
    color: #7f8c8d;
}
.detail-value {
    font-weight: 500;
    color: #23272e;
}
.provider-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f4f6fa;
    color: #7f8c8d;
    margin-left: 6px;
}
.provider-badge.provider-tencent {
    background: #e3f2fd;
    color: #1976d2;
}
.server-card-actions {
    padding: 8px 14px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.action-group {
    display: flex;
    gap: 6px;
}
.sse-btn {
    flex: 1;
    min-width: 0;
    height: 28px;
    border-radius: 5px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 8px;
}

.sse-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}



/* 表格样式 */
.history-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sse-table {
    width: 100%;
    border-collapse: collapse;
}

.sse-table th,
.sse-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.sse-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sse-table tr:hover {
    background: #f8f9fa;
}

.sse-table tr:last-child td {
    border-bottom: none;
}

/* 模态框样式 */
.sse-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.sse-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sse-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10); /* 弱化弹窗阴影 */
    padding: 32px 24px 24px 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sse-modal-header {
    padding: 5px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sse-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.sse-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 2px;
    height: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sse-modal-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.sse-modal-body {
    padding: 24px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* --- 响应式优化 --- */
@media (max-width: 1200px) {
    .servers-grid {
        gap: 12px;
    }
    .server-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .sync-section {
        flex-direction: column;
        gap: 12px;
    }
    .sync-card {
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .sse-user-center-layout {
        flex-direction: column;
    }
    
    .sse-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .sidebar-stats {
        padding: 16px;
    }
    
    .sidebar-nav {
        padding: 0;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .content-header {
        padding: 16px;
    }
    
    .content-body {
        padding: 16px;
    }
    
    .sse-user-center-new .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    
    .sse-user-center-new .page-actions {
        justify-content: flex-start !important;
    }
    
    .servers-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .server-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-group {
        justify-content: stretch;
    }
    
    .action-group .sse-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sync-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .provider-list {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sse-table {
        font-size: 12px;
    }
    
    .sse-table th,
    .sse-table td {
        padding: 8px;
    }
    
    .sse-modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .content-body {
        padding: 12px;
    }
    
    .server-card-header {
        padding: 16px;
    }
    
    .server-card-body {
        padding: 12px 16px;
    }
    
    .server-card-actions {
        padding: 12px 16px;
    }
    
    .sse-modal-body {
        padding: 16px;
    }
    
    .sse-modal-header {
        padding: 16px;
    }
} 

/* 卡片布局优化 */
.server-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.server-card-body {
    flex: 1 1 auto;
    min-height: 60px;
}

.server-card-actions {
    margin-top: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .server-card {
        height: auto;
        min-height: 220px;
    }
}

/* 进度条样式 */
.progress-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    /* overflow: hidden; */
    position: relative;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    min-width: 0%;
    max-width: 100%;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    text-align: center;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-running {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-pending {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
} 

.status-indicator.mini {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    font-size: 11px;
    padding: 0 7px;
    height: 20px;
    border-radius: 4px;
    background: #f4f6fa;
    color: #7f8c8d;
    gap: 3px;
    line-height: 1.1;
    white-space: nowrap;
    min-width: unset;
    width: auto;
}
.status-indicator.mini .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    margin-right: 2px;
    animation: none !important;
    transform: none !important;
} 

.server-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafb;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 15px;
    margin: 0 0 12px 0;
}
.server-info-row .server-name {
    color: #23272e;
    font-weight: 500;
    white-space: nowrap;
}
.server-info-row .server-ip {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
} 

.sync-actions-vendors {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  justify-content: center;
}
.sync-vendor-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 32px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.sync-vendor-btn:hover {
  background: #1565c0;
  box-shadow: 0 4px 16px rgba(25,118,210,0.15);
}
.vendor-btn-icon {
  width: 24px;
  height: 24px;
}
.sync-vendor-empty {
  color: #b0b3b8;
  font-size: 15px;
  text-align: center;
  margin: 32px 0;
} 

/* 厂商推广信息样式 */
.vendor-promo {
    margin-top: 8px;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.vendor-promo p {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

.promo-link {
    display: inline-block;
    font-size: 11px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.promo-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 推广卡片样式优化 */
.vendor-card.promo .promo-content {
    text-align: center;
    padding: 16px;
}

.vendor-card.promo .promo-content h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.vendor-card.promo .promo-content p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.vendor-card.promo .promo-btn {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.vendor-card.promo .promo-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* 同步按钮样式优化 */
.sync-vendor-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin: 4px;
}

.sync-vendor-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sync-vendor-btn .vendor-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sync-vendor-empty {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
}

/* 自定义同步模态框样式 */
#sse-custom-sync-modal .sync-notice {
    text-align: center;
    padding: 20px;
}

#sse-custom-sync-modal .sync-notice p {
    margin: 0 0 10px 0;
    color: #374151;
}

#sse-custom-sync-modal .sse-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
} 



.vendor-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vendor-card.connected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.vendor-card.disconnected {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.vendor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vendor-card.promo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    text-align: center;
}

/* 厂商卡片头部 */
.vendor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vendor-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vendor-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.vendor-logo .dashicons {
    font-size: 24px;
    color: #64748b;
}

.vendor-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.vendor-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.vendor-status.connected {
    color: #059669;
}

.vendor-status.disconnected {
    color: #64748b;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* 厂商推广信息 */
/* 右上角推广文字 */
.vendor-promo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 6px 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.promo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.promo-link:hover {
    color: #f0f0f0;
    text-decoration: none;
    transform: translateY(-1px);
}

.promo-link .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* 原有的推广样式保留作为备用 */
.vendor-promo-old {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border-left: 3px solid #3b82f6;
}



/* 推广卡片 */
.vendor-card.promo .promo-content {
    padding: 20px 0;
}

.promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.vendor-card.promo h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
}

.vendor-card.promo p {
    margin: 0 0 16px 0;
    color: #a16207;
    font-size: 14px;
    line-height: 1.5;
}

 

/* 云服务器同步页面样式 */
.cloud-sync-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cloud-sync-page .page-header {
    margin-bottom: 30px;
    text-align: center;
}

.cloud-sync-page .page-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cloud-sync-page .page-title p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 云服务商展示区域 */
.cloud-vendors-section {
    margin-bottom: 40px;
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vendor-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.vendor-card.connected {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.vendor-card.disconnected {
    border-color: #e5e7eb;
    opacity: 0.7;
}

.vendor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vendor-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.vendor-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.vendor-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.vendor-logo .dashicons {
    font-size: 24px;
    color: #6b7280;
}

.vendor-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.vendor-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.vendor-status.connected {
    color: #10b981;
}

.vendor-status.disconnected {
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.vendor-status.connected .status-dot {
    background: #10b981;
}

.vendor-status.disconnected .status-dot {
    background: #d1d5db;
}

.vendor-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vendor-actions .sse-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
}

.vendor-notice {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
}

.vendor-notice .dashicons {
    margin-right: 8px;
    color: #9ca3af;
}

/* 同步说明区域 */
.sync-help-section {
    margin-top: 40px;
}

.help-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.help-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon .dashicons {
    font-size: 24px;
    color: white;
}

.help-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: white;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.help-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: bold;
}

.help-content li:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cloud-sync-page {
        padding: 16px;
    }
    
    .vendors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vendor-card {
        padding: 20px;
    }
    
    .help-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .help-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .cloud-sync-page .page-title h2 {
        font-size: 24px;
    }
    
    .vendor-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .vendor-logo {
        margin-right: 0;
    }
    
    .vendor-promo {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
    }
    
    .promo-link {
        font-size: 11px;
    }
    
    .promo-link .dashicons {
        font-size: 11px;
        width: 11px;
        height: 11px;
    }
} 

#sse-zy-sync-modal.sse-modal {
    display: none !important;
    place-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 9999 !important;
    max-width: none !important;
    max-height: none !important;
}
#sse-zy-sync-modal.sse-modal.show {
    display: grid !important;
    place-items: center !important;
    flex-direction: unset !important;
} 

/* 保证所有自定义弹窗桌面端宽度 */
@media (min-width: 769px) {
    .sse-modal .sse-modal-content {
        /* width: 600px !important; */
        max-width: 60vw !important;
    }
    #sse-edit-server-modal .sse-modal-content {
        width: 800px !important;
        max-width: 75vw !important;
    }
    .sse-log-modal .sse-modal-content {
        width: 1000px !important;
        max-width: 95vw !important;
    }
}

/* 移动端宽度 */
@media (max-width: 768px) {
    .sse-modal .sse-modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
    }
} 

#sse-zy-sync-modal .sse-modal-content {
    width: 400px;
    max-width: 95vw;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 28px 20px 20px 20px;
    position: relative;
    margin: 0;
    max-height: 90vh;
    overflow-y: auto;
}
#sse-zy-sync-modal .sse-modal-header {
    padding: 0 0 12px 0;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#sse-zy-sync-modal .sse-modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0;
}
#sse-zy-sync-modal .sse-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 3px;
    transition: background 0.2s;
}
#sse-zy-sync-modal .sse-modal-close:hover {
    background: #f1f3f4;
    color: #dc3545;
}
#sse-zy-sync-modal .sse-modal-body {
    padding: 0;
}
#sse-zy-sync-modal .form-group {
    margin-bottom: 16px;
}
#sse-zy-sync-modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #222;
    font-size: 14px;
}
#sse-zy-sync-modal .form-group input {
    width: 97%;
    padding: 10px 12px;
    border: 1px solid #e3e6ea;
    border-radius: 4px;
    font-size: 14px;
    background: #fafbfc;
    transition: border-color 0.2s;
    box-shadow: none;
}
#sse-zy-sync-modal .form-group input:focus {
    border-color: #667eea;
    outline: none;
    background: #fff;
    box-shadow: none;
}
#sse-zy-sync-modal .form-group input[readonly] {
    background: #f5f6fa;
    color: #888;
}
#sse-zy-sync-modal .form-actions {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}
#sse-zy-sync-modal .sse-btn-primary {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    border-radius: 4px;
    background: #667eea;
    color: #fff;
    font-weight: 500;
    border: none;
    box-shadow: none;
    transition: background 0.2s;
}
#sse-zy-sync-modal .sse-btn-primary:hover {
    background: #5a67d8;
}
#zy-sync-tip {
    color: #e53e3e;
    display: none;
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
}
@media (max-width: 600px) {
    #sse-zy-sync-modal .sse-modal-content {
        width: 95vw;
        padding: 12px 4vw 12px 4vw;
    }
} 

 