/* 分析工具页共享样式 */
body.tool-page { font-family: 'Inter', "Microsoft YaHei", sans-serif; background: #f8fafc; overflow-x: hidden; }

/* 工具页布局 — 版心与主站 max-w-7xl (80rem) 对齐 */
.tool-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 8rem 2rem 4rem; color: #fff;
}
.tool-hero-inner { max-width: 80rem; margin: 0 auto; padding: 0 0.5rem; }
.tool-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: #60a5fa; margin-bottom: 1rem;
}
.tool-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.tool-hero-lead { color: #94a3b8; font-size: 0.95rem; line-height: 1.75; max-width: 40rem; }
.tool-main { max-width: 80rem; margin: 0 auto; padding: 2rem 2rem 3rem; }
.tool-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04); margin-bottom: 1.5rem;
}
.tool-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-input {
    flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid #e5e7eb;
    border-radius: 12px; font-size: 14px; outline: none; transition: border-color 0.2s;
}
.tool-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.tool-btn {
    padding: 12px 24px; background: #2563eb; color: #fff; font-weight: 700; font-size: 13px;
    border: none; border-radius: 12px; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.tool-btn:hover { background: #1d4ed8; }
.tool-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tool-btn-secondary { background: #f1f5f9; color: #334155; }
.tool-btn-secondary:hover { background: #e2e8f0; }

.tool-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 1.5rem 0; }
.tool-step {
    flex: 1; min-width: 100px; padding: 10px; border-radius: 10px; background: #f8fafc;
    border: 1px solid #e5e7eb; text-align: center; font-size: 11px; font-weight: 600; color: #64748b;
}
.tool-step.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.tool-step.done { border-color: #86efac; background: #ecfdf5; color: #059669; }
.tool-step.fail { border-color: #fca5a5; background: #fef2f2; color: #dc2626; }

.score-ring {
    width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-direction: column; font-weight: 900; border: 6px solid;
}
.score-big { font-size: 2.5rem; line-height: 1; }
.dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.dim-card { background: #f8fafc; border-radius: 12px; padding: 1rem; border: 1px solid #e5e7eb; }
.dim-card strong { font-size: 1.5rem; color: #2563eb; }
.issue-list { list-style: none; padding: 0; margin: 0; }
.issue-list li {
    padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 13px;
    border-left: 4px solid;
}
.issue-critical { background: #fef2f2; border-color: #dc2626; }
.issue-high { background: #fff7ed; border-color: #ea580c; }
.issue-medium { background: #fffbeb; border-color: #d97706; }
.issue-low { background: #f0fdf4; border-color: #16a34a; }

.check-row {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.check-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.check-ok { background: #dcfce7; color: #16a34a; }
.check-fail { background: #fee2e2; color: #dc2626; }

.matrix-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.matrix-table th { background: #f8fafc; padding: 10px; text-align: left; font-weight: 700; border-bottom: 2px solid #e5e7eb; }
.matrix-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.geo-tag { display: inline-block; padding: 2px 8px; background: #ede9fe; color: #6d28d9; border-radius: 6px; font-size: 10px; font-weight: 700; }
.priority-tag { display: inline-block; padding: 2px 8px; background: #dbeafe; color: #1d4ed8; border-radius: 6px; font-size: 10px; font-weight: 800; }
.matrix-keywords { color: #64748b; font-size: 11px; max-width: 220px; }

.schema-preview {
    background: #0f172a; color: #e2e8f0; padding: 1.25rem; border-radius: 12px;
    font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.6;
    overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.tool-label { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.tool-textarea { width: 100%; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 13px; min-height: 80px; resize: vertical; }
.tool-field { margin-bottom: 1rem; }
.tool-loading { text-align: center; padding: 2rem; color: #64748b; }
.tool-error { background: #fef2f2; color: #b91c1c; padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-top: 1rem; }
.hidden { display: none !important; }

/* 工具页营销介绍区块 */
.tool-hero-pills {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem;
}
.tool-hero-pills span {
    font-size: 11px; font-weight: 600; color: #cbd5e1; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); padding: 6px 12px; border-radius: 999px;
}
.tool-intro-wrap { max-width: 80rem; margin: 0 auto; padding: 0 2rem 4rem; }
.tool-intro-section {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 2rem 1.75rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}
.tool-intro-section--alt { background: #f8fafc; }
.tool-intro-section--dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155; color: #e2e8f0;
}
.tool-intro-section--dark .tool-intro-label { color: #60a5fa; }
.tool-intro-section--dark h2 { color: #f8fafc; }
.tool-intro-section--dark .tool-intro-head > p { color: #94a3b8; }
.tool-intro-section--dark .tool-intro-card {
    background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1);
}
.tool-intro-section--dark .tool-intro-card h3 { color: #f1f5f9; }
.tool-intro-section--dark .tool-intro-card p { color: #94a3b8; }
.tool-intro-head { margin-bottom: 1.5rem; max-width: 48rem; }
.tool-intro-label {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
    text-transform: uppercase; color: #2563eb; margin-bottom: 0.5rem;
}
.tool-intro-head h2 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; line-height: 1.3; }
.tool-intro-head > p { font-size: 0.9rem; color: #64748b; line-height: 1.7; }
.tool-intro-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.tool-intro-card {
    background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.1rem 1.25rem;
}
.tool-intro-weight {
    font-size: 10px; font-weight: 800; color: #2563eb; letter-spacing: 0.08em; margin-bottom: 0.35rem;
}
.tool-intro-card h3 { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 0.35rem; }
.tool-intro-meta { font-size: 11px; color: #6b7280; margin-bottom: 0.35rem !important; }
.tool-intro-card p { font-size: 12px; color: #64748b; line-height: 1.6; margin: 0; }
.tool-score-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tool-score-band {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem;
}
.tool-score-band strong { display: block; font-size: 13px; color: #0f172a; margin-bottom: 0.25rem; }
.tool-score-band span { font-size: 12px; color: #64748b; }
.tool-sample-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tool-sample-card {
    border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.25rem; background: #fff;
}
.tool-sample-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.tool-sample-top span:first-child { font-weight: 700; font-size: 13px; color: #111827; }
.tool-sample-score {
    font-size: 1.5rem; font-weight: 900; color: #2563eb; background: #eff6ff;
    width: 2.5rem; height: 2.5rem; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.tool-sample-band { font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 0.5rem; }
.tool-sample-card > p { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 0.5rem; }
.tool-sample-tags { color: #2563eb !important; font-weight: 600; }
.tool-sample-fix { color: #059669 !important; }
.tool-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.tool-flow-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.tool-flow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}
.tool-flow-card strong {
    display: block;
    color: #0f172a;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}
.tool-flow-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
}

/* 一站式 SEO 检测报告 */
.seo-report { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; }
.seo-report-head { border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; margin-bottom: 1.25rem; }
.seo-report-brand { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; color: #2563eb; text-transform: uppercase; }
.seo-report-head h2 { font-size: 1.35rem; font-weight: 900; margin: 0.5rem 0 0.25rem; color: #0f172a; }
.seo-report-url, .seo-report-time { font-size: 12px; color: #64748b; margin: 0.15rem 0; word-break: break-all; }
.seo-report-score { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.seo-score-ring {
  width: 88px; height: 88px; border-radius: 50%; border: 6px solid #2563eb;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.seo-score-num { font-size: 1.75rem; font-weight: 900; line-height: 1; }
.seo-score-sub { font-size: 10px; color: #94a3b8; }
.seo-report-block { margin-bottom: 1.25rem; }
.seo-report-block h3 { font-size: 0.95rem; font-weight: 800; color: #111827; margin-bottom: 0.6rem; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.seo-table th, .seo-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; vertical-align: top; }
.seo-table th { background: #f8fafc; width: 28%; font-weight: 700; color: #475569; }
.seo-outline { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.seo-outline li { padding: 4px 0; border-bottom: 1px dashed #f1f5f9; color: #374151; }
.seo-h1 { font-weight: 800; }
.seo-h2 { padding-left: 12px; }
.seo-h3 { padding-left: 24px; }
.seo-h4, .seo-h5, .seo-h6 { padding-left: 36px; color: #64748b; }
.seo-issue-list { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.seo-issue-list li { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; background: #f8fafc; border-left: 3px solid #94a3b8; }
.seo-issue-critical { border-left-color: #dc2626 !important; background: #fef2f2 !important; }
.seo-issue-high { border-left-color: #ea580c !important; }
.seo-issue-medium { border-left-color: #d97706 !important; }
.seo-muted { font-size: 12px; color: #94a3b8; }
.seo-warn { font-size: 12px; color: #b45309; margin-bottom: 0.5rem; }
.seo-report-foot { font-size: 10px; color: #94a3b8; text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.seo-export-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.seo-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 700; color: #475569; cursor: pointer;
}
.seo-btn-ghost:hover { border-color: #2563eb; color: #2563eb; }
.td-icon-teal { background: #ccfbf1; color: #0d9488; }
.seo-dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.seo-dim-card { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; text-align: center; }
.seo-dim-label { font-size: 10px; color: #64748b; margin-bottom: 6px; }
.seo-dim-score { font-size: 1.5rem; font-weight: 900; color: #2563eb; }
.seo-sub-scores { font-size: 12px; color: #475569; margin-top: 8px; }
.seo-priority-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12px; color: #2563eb; }
.seo-priority-list li { padding: 2px 0; }
.seo-robots-preview { font-size: 10px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; margin-top: 8px; white-space: pre-wrap; word-break: break-all; max-height: 120px; overflow: auto; }
