/* SEO综合查询工具样式 */

.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;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

/* 查询选项 */
.check-options {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.check-text {
    font-size: 14px;
    color: #333;
}

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

.btn {
    padding: 10px 20px;
    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;
}

.stat-card.border-teal {
    border-left-color: #38b2ac;
}

/* 结果区域样式 */
.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;
}

/* URL 列允许换行 */
.results-table .url-cell {
    min-width: 200px;
    white-space: normal;
    word-break: break-all;
}

/* 网站标题列允许换行 */
.results-table .title-cell {
    min-width: 250px;
    max-width: 400px;
    white-space: normal;
    word-break: break-word;
    color: #333;
    line-height: 1.5;
}

/* 建站时间列样式 */
.results-table .date-cell {
    min-width: 120px;
}

.results-table .days-cell {
    min-width: 100px;
}

.date-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    color: #0050b3;
    font-size: 13px;
}

.days-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
    color: #389e0d;
    font-size: 13px;
    font-weight: 500;
}

/* 建站历史链接样式 */
.results-table .history-cell {
    min-width: 120px;
}

.history-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: #fff7e6;
    color: #d46b08;
    text-decoration: none;
    border: 1px solid #ffd591;
    transition: all 0.2s;
    white-space: nowrap;
}

.history-link:hover {
    background: #d46b08;
    color: #fff;
    border-color: #d46b08;
    text-decoration: none;
}

/* 外链查询链接样式 */
.results-table .external-links-cell {
    min-width: 120px;
}

.external-links-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f5ff;
    color: #1d39c4;
    text-decoration: none;
    border: 1px solid #adc6ff;
    transition: all 0.2s;
    white-space: nowrap;
}

.external-links-link:hover {
    background: #1d39c4;
    color: #fff;
    border-color: #1d39c4;
    text-decoration: none;
}

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

.results-table .url-cell a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

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

.results-table .title-cell .error-text {
    color: #dc3545;
    font-size: 12px;
}

.count-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.count-included {
    background: #d4edda;
    color: #155724;
}

.count-not-included {
    background: #f8d7da;
    color: #721c24;
}

.count-error {
    background: #fff3cd;
    color: #856404;
}

.count-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #e8f4fd;
    color: #1a73e8;
    text-decoration: none;
    border: 1px solid #a8d1f7;
    transition: all 0.2s;
}

.count-link:visited {
    background-color: rgb(153, 153, 153) !important;
    color: #fff !important;
    text-decoration: none;
}
.count-link:hover {
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
}
.count-link:active {
    background: rgb(153, 153, 153);
    color: #fff;
    text-decoration: none;
}
.status-cell {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

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

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

.status-error {
    background: #fff3cd;
    color: #856404;
}

.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); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 22px;
    }
    
    .tool-header .icon {
        font-size: 26px;
    }
    
    .check-options {
        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;
}
