/* 超级外链发布工具样式 */

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

/* URL输入组 */
.url-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.url-input-group:focus-within {
    border-color: #667eea;
}

.url-prefix {
    background: #f5f5f5;
    padding: 12px 16px;
    color: #666;
    font-weight: 600;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.url-input-group input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* 配置面板 */
.config-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.config-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.config-item {
    flex: 1;
    min-width: 150px;
}

.config-item label {
    font-size: 13px;
    margin-bottom: 6px;
}

.config-item select,
.config-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.config-item select:focus,
.config-item input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

/* 进度条样式 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

#progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-message {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
}

.stat-card.border-green {
    border-left-color: #48bb78;
}

.stat-card.border-purple {
    border-left-color: #9f7aea;
}

.stat-card.border-red {
    border-left-color: #f56565;
}

/* 结果区域样式 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.results-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    position: relative;
}

.results-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.results-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.results-table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.results-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.results-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table thead {
    background: #f8f9fa;
}

.results-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
    min-width: 100px;
}

.results-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    white-space: nowrap;
}

.results-table .site-cell {
    min-width: 200px;
    white-space: normal;
    word-break: break-all;
}

.results-table .message-cell {
    min-width: 180px;
    white-space: normal;
    word-break: break-word;
    color: #666;
    font-size: 13px;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table .site-cell a {
    color: #667eea;
    text-decoration: none;
}

.results-table .site-cell a:hover {
    text-decoration: underline;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

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

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

.status-pending {
    background: #e2e3e5;
    color: #383d41;
}

.status-loading {
    background: #e0e0e0;
    color: #666;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

/* 信息卡片 */
.info-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.info-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.info-content h4 {
    font-size: 15px;
    color: #444;
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.info-content ul {
    margin: 0;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 22px;
    }
    
    .tool-header .icon {
        font-size: 26px;
    }
    
    .config-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .results-table {
        font-size: 12px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 图标样式 */
.icon-seo {
    font-size: 20px;
}
