/**
 * WordPress检测器前端样式
 */

/* 通用样式 */
.wp-detector-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.wp-detector-title {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.wp-detector-description {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

.wp-detector-description p {
    margin: 0 0 10px 0;
}

.wp-detector-description p:last-child {
    margin-bottom: 0;
}

.wp-detector-description ul,
.wp-detector-description ol {
    margin: 10px 0;
    padding-left: 20px;
}

.wp-detector-description li {
    margin-bottom: 5px;
}

.wp-detector-description a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-detector-description a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.wp-detector-description strong,
.wp-detector-description b {
    font-weight: 600;
    color: #2c3e50;
}

.wp-detector-description em,
.wp-detector-description i {
    font-style: italic;
}

.wp-detector-description u {
    text-decoration: underline;
}

/* 表单样式 */
.wp-detector-form {
    margin-bottom: 30px;
}

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

.input-wrapper {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: #2c3e50;
}

.form-control::placeholder {
    color: #95a5a6;
}

.btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 0;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-help {
    margin-top: 8px;
    text-align: center;
}

.form-help small {
    color: #6c757d;
    font-size: 0.9em;
}

/* 结果样式 */
.wp-detector-results {
    margin-top: 30px;
}

.results-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.result-header {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.result-url {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-url a {
    color: #2c3e50;
    text-decoration: none;
}

.result-url a:hover {
    color: #667eea;
}

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.result-status.success {
    background: #d4edda;
    color: #155724;
}

.result-status.error {
    background: #f8d7da;
    color: #721c24;
}

.status-icon {
    font-size: 1.1em;
}

.result-details {
    padding: 25px;
}

.details-grid {
    display: grid;
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    flex-direction:column;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.detail-label {
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    width: 300px;
}

.detail-value {
    flex: 1;
    color: #6c757d;
    text-align: right;
}

.theme-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.theme-version,
.theme-author {
    font-size: 0.9em;
    color: #6c757d;
}

.plugins-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.plugin-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

/* 新的插件列表样式 */
.plugins-list-new {
    margin-top: 8px;
    width: 100%;
}

.plugin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.plugin-row:last-child {
    margin-bottom: 0;
}

.plugin-row:hover {
    background: #f1f3f4;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plugin-info {
    flex: 1;
    margin-right: 15px;
}

.plugin-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
    margin-bottom: 5px;
}

.plugin-description {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

.plugin-action {
    flex-shrink: 0;
}

.plugin-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.plugin-link-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.plugin-link-icon {
    font-size: 0.9em;
    opacity: 0.9;
}

/* 主题列表样式 - 与插件保持一致 */
.themes-list-new {
    margin-top: 8px;
    width: 100%;
}

.theme-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.theme-row:last-child {
    margin-bottom: 0;
}

.theme-row:hover {
    background: #f1f3f4;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-info {
    flex: 1;
    margin-right: 15px;
}

.theme-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
    margin-bottom: 5px;
}

.theme-version {
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 3px;
}

.theme-description {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

.theme-action {
    flex-shrink: 0;
}

.theme-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.theme-link-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.theme-link-icon {
    font-size: 0.9em;
    opacity: 0.9;
    margin-right: 4px;
}

/* 下载链接样式 */
.theme-download,
.plugin-download {
    margin-top: 8px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #1eb2a6 0%, #1e9b91 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-link:hover {
    background: linear-gradient(135deg, #1e9b91 0%, #1eb2a6 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.download-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(40, 167, 69, 0.3);
}

/* 价格标签样式 */
.price-tag {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 12px;
    color: white;
    line-height: 1.2;
    vertical-align: middle;
}

.price-tag-free {
    background-color: #28a745;
    background: linear-gradient(135deg, #28a745, #20c997);
}

.price-tag-paid {
    background-color: #fd7e14;
    background: linear-gradient(135deg, #fd7e14, #ff8c00);
}

.price-tag-free:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
}

.price-tag-paid:hover {
    background: linear-gradient(135deg, #ff8c00, #fd7e14);
}

/* 响应式价格标签 */
@media (max-width: 768px) {
    .price-tag {
        font-size: 0.75em;
        padding: 1px 6px;
        margin-left: 6px;
    }
}

.confidence-bar {
    position: relative;
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    width: 100px;
    overflow: hidden;
}

.confidence-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.confidence-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cache-indicator {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.result-actions {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 错误样式 */
.results-container.error {
    border-left: 4px solid #dc3545;
}

.error-message {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #721c24;
    background: #f8d7da;
}

.error-icon {
    font-size: 1.2em;
}

.wp-detector-error {
    background-color: #fff2f2;
    border: 1px solid #ffb8b8;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #d63638;
}

.wp-detector-error ul {
    margin: 10px 0 0 20px;
    list-style-type: disc;
}

.wp-detector-error li {
    margin: 5px 0;
    color: #666;
}

.wp-detector-loading {
    background-color: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #2271b1;
    text-align: center;
}

.wp-detector-success {
    background-color: #f0f6e9;
    border: 1px solid #c3d9a3;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #1a4731;
}

.wp-detector-success h3 {
    margin: 0 0 10px 0;
    color: #1a4731;
}

.wp-detector-success ul {
    margin: 5px 0 0 20px;
    list-style-type: disc;
}

.wp-detector-success li {
    margin: 3px 0;
    color: #2c5a1e;
}

/* 简单表单样式 */
.wp-detector-simple {
    margin: 20px 0;
}

.wp-detector-simple.wp-detector-compact {
    margin: 10px 0;
}

.detector-simple-form {
    margin-bottom: 15px;
}

.form-inline {
    display: flex;
    gap: 10px;
}

.form-inline .form-control {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.form-inline .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
}

.simple-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
}

.simple-result.success {
    background: #d4edda;
    color: #155724;
}

.simple-result.error {
    background: #f8d7da;
    color: #721c24;
}

.result-theme {
    margin-left: auto;
    font-size: 0.85em;
    color: #6c757d;
}

/* 主题样式 */
.wp-detector-theme-dark {
    background: #2c3e50;
    color: white;
    border-radius: 12px;
    padding: 30px;
}

.wp-detector-theme-dark .wp-detector-title {
    color: white;
}

.wp-detector-theme-dark .wp-detector-description {
    color: #bdc3c7;
}

.wp-detector-theme-dark .input-wrapper {
    border-color: #34495e;
    background: #34495e;
}

.wp-detector-theme-dark .form-control {
    color: white;
}

.wp-detector-theme-dark .form-control::placeholder {
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-detector-container {
        padding: 15px;
    }
    
    .wp-detector-title {
        font-size: 2em;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .result-header {
        padding: 20px;
    }
    
    .result-details {
        padding: 20px;
    }
    
    .detail-item {
        flex-direction:column;
        align-items: flex-start;
        text-align: left;
    }
    
    .detail-label {
        width: auto;
        margin-bottom: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .plugins-list {
        justify-content: flex-start;
    }

    /* 移动端插件新样式 */
    .plugin-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .plugin-info {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .plugin-name {
        font-size: 0.95em;
    }

    .plugin-description {
        font-size: 0.85em;
        margin-top: 3px;
    }

    .plugin-action {
        width: 100%;
    }

    .plugin-link-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    /* 移动端主题样式 */
    .theme-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .theme-info {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .theme-name {
        font-size: 0.95em;
    }

    .theme-version {
        font-size: 0.8em;
    }

    .theme-description {
        font-size: 0.85em;
        margin-top: 3px;
    }

    .theme-action {
        width: 100%;
    }

    .theme-link-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .confidence-bar {
        width: 150px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    .form-inline {
        flex-direction: column;
    }
    
    .form-inline .form-control,
    .form-inline .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wp-detector-title {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 打印样式 */
@media print {
    .wp-detector-form,
    .result-actions,
    .btn {
        display: none;
    }
    
    .wp-detector-container {
        max-width: none;
        padding: 0;
    }
    
    .results-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .input-wrapper {
        border-width: 3px;
    }
    
    .btn-primary {
        background: #0066cc;
    }
    
    .btn-primary:hover {
        background: #0052a3;
    }
    
    .result-status.success {
        background: #008000;
        color: white;
    }
    
    .result-status.error {
        background: #cc0000;
        color: white;
    }
}

/* 动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .input-wrapper,
    .confidence-fill {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
}

/* 焦点样式 */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 选择文本样式 */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}

/* 🚀 进度面板样式 */
.wp-detector-progress-panel {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.3s ease-out;
}

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

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.progress-url {
    flex: 1;
}

.progress-label {
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 8px;
}

.progress-target-url {
    color: #495057;
    font-weight: 600;
    font-size: 1.05em;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-spinner {
    font-size: 1.2em;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-text {
    color: #667eea;
    font-weight: 500;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.step-item.active {
    background: #f8f9ff;
    border: 2px solid #667eea;
}

.step-item.completed {
    background: #f0f9f0;
    border: 2px solid #28a745;
}

.step-item.failed {
    background: #fff5f5;
    border: 2px solid #dc3545;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #667eea;
    color: white;
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
}

.step-item.failed .step-number {
    background: #dc3545;
    color: white;
}

.step-label {
    font-size: 0.85em;
    color: #495057;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.step-item.failed .step-label {
    color: #dc3545;
    font-weight: 600;
}

.step-status {
    font-size: 1.1em;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-bar-fill.progress-error {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.progress-percentage {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
}

.progress-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.progress-current-step {
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
}

.progress-sub-info {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.progress-elapsed-time {
    color: #6c757d;
    font-size: 0.85em;
}

.progress-elapsed-time span {
    font-weight: 600;
    color: #495057;
}

.progress-warnings {
    margin-top: 16px;
}

.progress-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9em;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.progress-warning.warning-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.progress-warning.warning-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.warning-icon {
    font-size: 1.1em;
}

.warning-text {
    flex: 1;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .wp-detector-progress-panel {
        padding: 16px;
        margin: 16px 0;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .step-item {
        padding: 8px 4px;
    }
    
    .step-label {
        font-size: 0.8em;
    }
    
    .progress-target-url {
        word-break: break-all;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
        padding: 8px 12px;
    }
    
    .step-number {
        margin-bottom: 0;
        margin-right: 12px;
        width: 28px;
        height: 28px;
        font-size: 0.8em;
    }
    
    .step-status {
        margin-left: auto;
    }
} 

/* 🚀 连接状态样式 */
.wp-detector-connecting-state {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.connecting-header {
    margin-bottom: 20px;
}

.connecting-url {
    margin-bottom: 15px;
}

.connecting-label {
    color: #6c757d;
    font-weight: 500;
    margin-right: 8px;
}

.connecting-target-url {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

.connecting-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.connecting-spinner {
    font-size: 1.5em;
    animation: rotate 1s linear infinite;
}

.connecting-text {
    color: #495057;
    font-weight: 500;
    font-size: 1.1em;
}

.connecting-message {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.5;
}

.connecting-tip {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* 🚀 独立错误面板样式 */
.wp-detector-error-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-in-out;
    border-left: 4px solid #dc3545;
}

/* 🚀 新增：错误类型特定样式 */
.wp-detector-error-panel.error-dns {
    border-left-color: #6f42c1;
}

.wp-detector-error-panel.error-ssl {
    border-left-color: #fd7e14;
}

.wp-detector-error-panel.error-timeout {
    border-left-color: #20c997;
}

.wp-detector-error-panel.error-server {
    border-left-color: #ffc107;
}

.wp-detector-error-panel.error-access-denied {
    border-left-color: #fd7e14;
}

.wp-detector-error-panel.error-http {
    border-left-color: #dc3545;
}

.wp-detector-error-panel.error-network {
    border-left-color: #6f42c1;
}

.error-header {
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-bottom: 1px solid #fed7d7;
}

.wp-detector-error-panel.error-access-denied .error-header {
    background: linear-gradient(135deg, #fffbf0 0%, #feebc8 100%);
    border-bottom-color: #feebc8;
}

.wp-detector-error-panel.error-network .error-header {
    background: linear-gradient(135deg, #f8f7ff 0%, #e9d8fd 100%);
    border-bottom-color: #e9d8fd;
}

.error-url {
    margin-bottom: 15px;
}

.error-label {
    color: #6c757d;
    font-weight: 500;
    margin-right: 8px;
}

.error-target-url {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

.error-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.error-icon-large {
    font-size: 2.5em;
}

.error-title {
    color: #721c24;
    font-weight: 700;
    font-size: 1.4em;
}

.wp-detector-error-panel.error-access-denied .error-title {
    color: #c05621;
}

.wp-detector-error-panel.error-network .error-title {
    color: #553c9a;
}

.error-content {
    padding: 25px;
}

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.error-icon {
    font-size: 1.2em;
    margin-top: 2px;
}

.error-text {
    color: #495057;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

.error-suggestions {
    margin-top: 20px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.suggestion-icon {
    font-size: 1.1em;
    margin-top: 2px;
}

.suggestion-text {
    color: #495057;
    line-height: 1.5;
    flex: 1;
}

/* 🚀 新增：错误操作按钮样式 */
.error-actions {
    margin-top: 20px;
    text-align: center;
}

.retry-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.3);
}

.retry-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004060 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
}

.retry-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* 🚀 新样式移动端响应式 */
@media (max-width: 768px) {
    .wp-detector-connecting-state,
    .wp-detector-error-panel {
        margin: 0 -10px 20px -10px;
        border-radius: 0;
    }
    
    .connecting-header,
    .error-header,
    .error-content {
        padding: 20px;
    }
    
    .connecting-target-url,
    .error-target-url {
        font-size: 1em;
        word-break: break-all;
    }
    
    .error-status {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .error-icon-large {
        font-size: 2em;
    }
    
    .error-title {
        font-size: 1.2em;
    }
    
    .suggestion-item {
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }
    
    .suggestion-icon {
        align-self: flex-start;
    }
    
    .retry-button {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .connecting-status {
        flex-direction: column;
        gap: 8px;
    }
    
    .connecting-spinner {
        font-size: 1.2em;
    }
    
    .connecting-text {
        font-size: 1em;
    }
    
    .error-message {
        flex-direction: column;
        gap: 8px;
    }
    
    .error-icon {
        align-self: flex-start;
    }
}

/* 检测方法和策略样式 */
.detection-method {
    margin-top: 8px;
    padding: 6px 12px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-badge {
    background: #2196f3;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.cache-badge {
    background: #ff9800;
}

.method-info {
    color: #666;
    font-size: 12px;
}

.detection-strategy {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.strategy-info {
    opacity: 0.8;
}

