/* 用户中心页面样式 */

/* 主容器 */
.sse-user-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 用户中心头部 */
.sse-user-center-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.sse-user-center-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

.icon-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 10%;
    animation-delay: 1.5s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 20%;
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.header-text h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.header-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.feature-tag .dashicons {
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
}

.welcome-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 20px;
    min-width: 200px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-avatar img {
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.greeting {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.username {
    font-weight: 600;
    font-size: 14px;
}

.quick-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
    justify-content: center;
}

.login-prompt .dashicons {
    font-size: 18px;
}

.sse-login-notice {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-size: 16px;
}

/* 标签页样式 */
.sse-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sse-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sse-tab-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.sse-tab-btn.active {
    background: #007cba;
    color: white;
    border-bottom: 3px solid #005a87;
}

.sse-tab-btn .dashicons {
    font-size: 18px;
}

.sse-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sse-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片样式 */
.sse-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.sse-card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding: 20px 20px 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 服务器表格样式 */
.sse-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 20px;
}

.sse-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.sse-table th,
.sse-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.sse-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sse-table tr:hover {
    background: #f8f9fa;
}

.no-servers,
.no-logs {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* 空状态样式 */
.empty-state {
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.empty-state h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.empty-tips {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.empty-tips .tip {
    background: #e8f4fd;
    color: #0073aa;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #b8daff;
}

/* 状态和提供商标签 */
.provider-badge,
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.provider-badge.provider-custom {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.status-active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-running {
    background: #cce5ff;
    color: #004085;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* 按钮样式 */
.sse-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.sse-btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

.sse-btn-primary {
    background: #007cba;
    color: white;
}

.sse-btn-primary:hover {
    background: #005a87;
}

.sse-btn-secondary {
    background: #6c757d;
    color: white;
}

    .sse-btn-secondary:hover {
        background: #545b62;
    }
    
    .sse-btn-success {
        background: #28a745;
        color: white;
    }
    
    .sse-btn-success:hover {
        background: #218838;
    }
    
    .sse-btn-danger {
        background: #dc3545;
        color: white;
    }
    
    .sse-btn-danger:hover {
        background: #c82333;
    }
    
    .sse-btn-warning {
        background: #ffc107;
        color: #212529;
    }
    
    .sse-btn-warning:hover {
        background: #e0a800;
    }

/* 表单样式 */
.sse-server-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* 安装记录样式 */
.sse-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sse-history-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sse-history-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sse-history-filters select,
.sse-history-filters input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

/* 进度条样式 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 100px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.8s ease;
    position: relative;
}

.progress-text {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    min-width: 35px;
}

/* 用户中心模态框样式 - 高优先级覆盖 */
#sse-edit-server-modal.sse-modal,
#sse-add-server-modal.sse-modal,
#sse-log-modal.sse-modal,
#sse-tencent-sync-modal.sse-modal {
    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: 99999 !important;
    /* 重置可能被覆盖的样式 */
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    /* 默认隐藏，但不使用 !important 以允许 .show 类覆盖 */
    display: none;
}

/* 确保 .show 类能够覆盖 display 属性 - 使用更高优先级 */
body #sse-edit-server-modal.sse-modal.show,
body #sse-add-server-modal.sse-modal.show,
body #sse-log-modal.sse-modal.show,
body #sse-tencent-sync-modal.sse-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
}



#sse-edit-server-modal .sse-modal-content,
#sse-add-server-modal .sse-modal-content,
#sse-log-modal .sse-modal-content,
#sse-tencent-sync-modal .sse-modal-content {
    background: white !important;
    border-radius: 8px !important;
    width: 600px !important;
    /* max-width: 90vw !important; */
    max-height: 60vh !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    margin: 20px 0 !important;
    position: relative !important;
}

/* 为编辑服务器模态框设置特殊宽度 */
#sse-edit-server-modal .sse-modal-content {
    width: 800px !important;
    max-width: 75vw !important;
} 


/* 具体模态框尺寸设置 */
.sse-log-modal .sse-modal-content {
    width: 1000px;
    max-width: 95vw;
}

.sse-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sse-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.sse-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.sse-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.sse-modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* 日志显示 */
.log-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.log-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.log-meta span {
    font-size: 14px;
    color: #495057;
}

.log-meta strong {
    color: #2c3e50;
    font-weight: 600;
}

.log-output-container {
    background: #2c3e50;
    border-radius: 6px;
    padding: 15px;
    overflow: hidden;
}

.log-output {
    color: #ecf0f1;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 0.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    height: 400px;
    overflow-y: auto;
    background: transparent;
}

/* 编辑表单双列布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* 消息提示样式 */
.sse-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

.sse-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sse-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sse-message.info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.sse-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 加载动画 */
.sse-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .sse-user-center {
        padding: 10px;
    }
    
    .sse-user-center-header {
        padding: 30px 20px;
        border-radius: 8px 8px 0 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-icon .main-icon {
        font-size: 36px;
    }
    
    .header-text h2 {
        font-size: 26px;
    }
    
    .header-text p {
        font-size: 14px;
    }
    
    .header-features {
        justify-content: center;
        gap: 8px;
    }
    
    .feature-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .feature-tag .dashicons {
        font-size: 12px;
    }
    
    .welcome-card {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        padding: 15px;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .quick-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    /* 标签页优化 */
    .sse-tabs {
        margin: 0 10px;
        gap: 5px;
    }
    
    .sse-tab-btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 13px;
        text-align: center;
    }
    
    .sse-tab-btn .dashicons {
        font-size: 16px;
    }
    
    .sse-card {
        margin: 15px 10px;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .sse-card h3 {
        padding: 15px;
        font-size: 16px;
        background: #f8f9fa;
        margin: 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    /* 移动端表格 - 改为卡片布局 */
    .sse-table-container {
        margin: 0;
        overflow: visible;
    }
    
    .sse-table {
        display: none; /* 隐藏传统表格 */
    }
    
    /* 移动端卡片布局 */
    .mobile-card-container {
        display: block !important;
        padding: 15px;
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-server-card,
    .mobile-history-card {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-card-title {
        font-weight: 600;
        color: #2c3e50;
        font-size: 15px;
        margin: 0;
    }
    
    .mobile-card-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 13px;
    }
    
    .mobile-meta-item {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-meta-label {
        color: #6c757d;
        font-size: 11px;
        margin-bottom: 2px;
        text-transform: uppercase;
        font-weight: 500;
    }
    
    .mobile-meta-value {
        color: #495057;
        font-weight: 500;
    }
    
    .mobile-card-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }
    
    .mobile-card-actions .sse-btn {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
        font-size: 12px;
        justify-content: center;
    }
    
    .mobile-card-actions .sse-btn .dashicons {
        font-size: 14px;
        margin-right: 4px;
    }
    
    /* 进度条移动端优化 */
    .mobile-progress-container {
        margin: 8px 0;
    }
    
    .mobile-progress-container .progress-bar {
        width: 100%;
        height: 6px;
        margin-bottom: 4px;
    }
    
    .mobile-progress-container .progress-text {
        font-size: 11px;
        text-align: right;
    }
    
    /* 状态徽章移动端优化 */
    .mobile-card .status-badge,
    .mobile-card .provider-badge {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
    }
    
    /* 筛选器移动端优化 */
    .sse-history-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px;
    }
    
    .sse-history-header h3 {
        font-size: 16px;
        margin: 0;
    }
    
    .sse-history-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .sse-history-filters select,
    .sse-history-filters input,
    .sse-history-filters button {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    /* 添加服务器按钮移动端优化 */
    .sse-add-server-btn {
        margin: 15px;
        text-align: center;
    }
    
    .sse-add-server-btn .sse-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
    }
    
    /* 表单移动端优化 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .sse-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    /* 模态框移动端优化 */
    .sse-modal-content {
        width: 95vw;
        max-width: 95vw;
        max-height: 85vh;
        margin: 20px 0;
    }
    
    #sse-edit-server-modal .sse-modal-content {
        width: 95vw;
        max-width: 95vw;
    }
    
    .sse-modal-header {
        padding: 5px;
    }
    
    .sse-modal-header h3 {
        font-size: 16px;
    }
    
    .sse-modal-body {
        padding: 15px;
    }
    
    /* 日志显示移动端优化 */
    .log-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .log-output {
        height: 200px;
        font-size: 11px;
        line-height: 1.4;
    }
    
    /* 同步结果移动端优化 */
    .sync-results {
        margin: 15px;
        font-size: 13px;
    }
    
    /* 消息提示移动端优化 */
    .sse-message {
        margin: 10px;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* 空状态移动端优化 */
    .empty-state {
        padding: 20px 15px;
    }
    
    .empty-state .empty-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .empty-state h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .empty-state p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .empty-tips {
        gap: 8px;
        margin-top: 12px;
    }
    
    .empty-tips .tip {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* 同步卡片移动端优化 */
    .sync-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
        text-align: center;
    }
    
    .sync-icon {
        width: 60px;
        height: 60px;
    }
    
    .main-sync-icon {
        font-size: 30px;
    }
    
    .ring-1 {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .ring-2 {
        width: 52px;
        height: 52px;
        top: 4px;
        left: 4px;
    }
    
    .ring-3 {
        width: 60px;
        height: 60px;
        top: 0;
        left: 0;
    }
    
    .sync-content h3 {
        font-size: 18px;
        text-align: center;
    }
    
    .sync-description {
        font-size: 14px;
        text-align: center;
    }
    
    .sync-features {
        justify-content: center;
        gap: 10px;
    }
    
    .feature-item {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .sync-providers {
        padding: 0 15px 15px 15px;
    }
    
    .provider-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .provider-item {
        padding: 12px;
    }
    
    .provider-logo {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
    
    .sync-actions {
        padding: 15px;
    }
    
    .sync-btn {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .sync-help {
        font-size: 12px;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .sync-results {
        margin: 15px;
        padding: 12px;
        font-size: 13px;
    }
}

/* 桌面端特殊样式 */
@media (min-width: 769px) {
    .sse-modal-content {
        width: 600px;
        max-width: 45vw;
    }
    
    #sse-edit-server-modal .sse-modal-content {
        width: 800px;
        max-width: 45vw;
    }
    
    .sse-log-modal .sse-modal-content {
        width: 1000px;
        max-width: 45vw;
    }
}

/* 添加服务器按钮样式 */
.sse-add-server-btn {
    margin: 20px;
    text-align: center;
}

/* 同步卡片样式 */
.sse-sync-card {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
    border: 2px solid #e3f2fd;
    position: relative;
    overflow: hidden;
}

.sse-sync-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="sync-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(33,150,243,0.1)"/></pattern></defs><rect width="60" height="60" fill="url(%23sync-pattern)"/></svg>');
    opacity: 0.3;
}

.sync-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.sync-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.main-sync-icon {
    font-size: 40px;
    z-index: 3;
    position: relative;
    animation: rotate 4s linear infinite;
}

.sync-rings {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ring {
    position: absolute;
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.ring-2 {
    width: 70px;
    height: 70px;
    top: 5px;
    left: 5px;
    animation-delay: 1s;
}

.ring-3 {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation-delay: 2s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1); 
    }
}

.sync-content h3 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 22px;
    font-weight: 600;
}

.sync-description {
    color: #546e7a;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.sync-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 150, 243, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1976d2;
}

.feature-icon {
    font-size: 16px;
}

.sync-providers {
    padding: 0 30px 20px 30px;
    position: relative;
    z-index: 1;
}

.provider-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.provider-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
}

.provider-logo {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.provider-name {
    flex: 1;
    font-weight: 600;
    color: #37474f;
}

.provider-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.status-coming {
    background: #fff3cd;
    color: #856404;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.sync-actions {
    padding: 20px 30px 30px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sync-btn {
    position: relative;
    overflow: hidden;
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.sync-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.sync-btn.loading .btn-text,
.sync-btn.loading .btn-icon {
    display: none;
}

.sync-btn.loading .btn-loading {
    display: flex;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sync-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #78909c;
    font-size: 13px;
    margin-top: 10px;
}

.sync-help .dashicons {
    font-size: 16px;
}

.sync-results {
    margin: 15px 30px 0 30px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    position: relative;
    z-index: 1;
}

.sync-results.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sync-results.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 高对比度和可访问性 */
/* 腾讯云同步模态框特定样式 */
#sse-tencent-sync-modal .sse-modal-content {
    width: 600px !important;
    max-width: 60vw !important;
}

/* 腾讯云同步按钮加载状态 */
#sse-tencent-sync-modal #start-sync {
    position: relative;
}

/* 默认状态：隐藏加载文本，显示正常文本 */
#sse-tencent-sync-modal #start-sync .btn-loading {
    display: none !important;
}

#sse-tencent-sync-modal #start-sync .btn-text,
#sse-tencent-sync-modal #start-sync .btn-icon {
    display: inline !important;
}

/* 加载状态：显示加载文本，隐藏正常文本 */
#sse-tencent-sync-modal #start-sync.loading .btn-text,
#sse-tencent-sync-modal #start-sync.loading .btn-icon {
    display: none !important;
}

#sse-tencent-sync-modal #start-sync.loading .btn-loading {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.tencent-sync-form {
    padding: 20px 0;
}

.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-notice .dashicons {
    color: #1976d2;
    font-size: 18px;
    margin-top: 2px;
}

.form-notice p {
    margin: 0;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.4;
}

.form-help {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-help a {
    color: #007cba;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.sync-progress {
    text-align: center;
    padding: 30px 20px;
}

.progress-header {
    margin-bottom: 20px;
}

.progress-header h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.progress-stats span {
    font-size: 14px;
    color: #666;
}

.progress-stats strong {
    color: #2c3e50;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-log {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
}

.sync-results-section {
    text-align: center;
    padding: 30px 20px;
}

.results-header h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.success-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message .dashicons {
    color: #155724;
    font-size: 24px;
    margin-top: 2px;
}

.success-content h4 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 16px;
}

.success-content p {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 14px;
}

.sync-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #155724;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #155724;
    opacity: 0.8;
}

.results-actions {
    text-align: center;
    margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 