/* 友情链接检测工具专用样式 */

/* 链接检测容器 */
.link-checker-container {
    margin: 20px 0;
}

/* 输入区域 */
.input-section {
    margin-bottom: 20px;
}

/* 链接输入框 */
#linkInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: #fafafa;
    line-height: 1.6;
}

#linkInput:focus {
    outline: none;
    border-color: #4a90e2;
    background: #fff;
}

#linkInput::placeholder {
    color: #999;
    font-size: 13px;
}

/* 控制面板 */
.control-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.control-panel button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-panel button.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.control-panel button.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.control-panel button.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.control-panel button.secondary-btn {
    background: #f5f5f5;
    color: #666;
}

.control-panel button.secondary-btn:hover {
    background: #e0e0e0;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* 结果区域 */
.results-section {
    margin-top: 30px;
    overflow-x: auto;
}

/* 结果表格 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.results-table th,
.results-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.results-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table tbody tr {
    transition: background 0.2s ease;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

/* 状态行样式 */
.results-table tr.success td {
    background: linear-gradient(90deg, #e8f5e9 0%, #ffffff 100%);
    border-left: 4px solid #4caf50;
}

.results-table tr.error td {
    background: linear-gradient(90deg, #ffebee 0%, #ffffff 100%);
    border-left: 4px solid #f44336;
}

/* 空状态提示 */
.results-table tbody:empty::after {
    content: '暂无检测结果';
    display: block;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.status-badge.status-checking {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-error {
    background: #ffebee;
    color: #c62828;
}

.status-badge.status-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.status-unknown {
    background: #f5f5f5;
    color: #757575;
}

/* 通知提示样式 */
.notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast i {
    font-size: 18px;
}

.notification-toast.notification-success {
    background: #4caf50;
    color: white;
}

.notification-toast.notification-error {
    background: #f44336;
    color: white;
}

.notification-toast.notification-warning {
    background: #ff9800;
    color: white;
}

.notification-toast.notification-info {
    background: #2196f3;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notification-toast {
        top: 60px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        font-size: 13px;
    }

    .notification-toast.show {
        transform: translateY(0);
    }
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .control-panel button {
        width: 100%;
        justify-content: center;
    }

    .checkbox-label {
        justify-content: center;
    }

    .results-table {
        font-size: 12px;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
    }

    /* 移动端表格横向滚动提示 */
    .results-section::before {
        content: '← 左右滑动查看完整信息 →';
        display: block;
        text-align: center;
        color: #999;
        font-size: 12px;
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #linkInput {
        font-size: 13px;
    }

    .results-table th,
    .results-table td {
        padding: 12px;
        font-size: 13px;
    }
}
