/* ============ 网页META检测 - 工具专属样式 ============ */
/* 其余布局/卡片/按钮/说明样式均复用 common.css 公共样式 */

.url-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}

.url-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.error-msg {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dc2626;
}

.error-icon {
    font-size: 16px;
}

.quick-urls {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9d5ff;
}

.quick-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

.url-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.url-tag {
    padding: 6px 12px;
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    font-size: 13px;
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.2s;
}

.url-tag:hover {
    background: #e9d5ff;
    color: #6b21a8;
}

.history-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9d5ff;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-clear {
    padding: 4px 10px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #e5e7eb;
    color: #374151;
}

.history-list {
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f3e8ff;
    border-color: #e9d5ff;
}

.history-icon {
    margin-right: 8px;
    font-size: 12px;
}

.history-url {
    font-size: 13px;
    color: #6b7280;
    word-break: break-all;
    flex: 1;
}

.history-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 6px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #9ca3af;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.placeholder-text {
    font-size: 14px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9d5ff;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

.result-content {
    padding: 0;
}

.meta-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b21a8;
    padding: 8px 12px;
    background: #f3e8ff;
    border-radius: 6px;
    margin-bottom: 12px;
}

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

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

.item-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    min-width: 80px;
    flex-shrink: 0;
}

.item-value {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    word-break: break-all;
    flex: 1;
}

.desc-value {
    line-height: 1.5;
}

.item-status {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-success {
    color: #16a34a;
}

.status-warning {
    color: #d97706;
}

.status-error {
    color: #dc2626;
}

.score-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e9d5ff;
}

.score-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b21a8;
    margin-bottom: 12px;
}

.score-bar {
    height: 20px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.score-excellent {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.score-good {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.score-fair {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.score-poor {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.score-text {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.copy-button-container {
    margin-top: 20px;
    text-align: center;
}

.suggestion-section {
    margin-top: 20px;
}

.suggestion-list {
    margin: 0;
    padding-left: 20px;
}

.suggestion-list li {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 6px;
    list-style: disc;
}

/* ============ 响应式：窄屏改为上下布局 ============ */
@media (max-width: 768px) {
    .section-row-1-3 {
        grid-template-columns: 1fr;
    }
}
