/* ============================================
   IMUOO 免费 GEO 诊断页（audit.php）
   · 示例报告：优化前后对比式诊断报告（深海军蓝 + 琥珀/青对比）
   · 极简表单：网址 + 联系方式
   ============================================ */

.audit-section { padding: 70px 0 90px; }

/* ───────── 示例报告展示台 ───────── */
.audit-sample {
    position: relative;
    border-radius: 26px;
    padding: 30px;
    background:
        radial-gradient(ellipse at 12% 10%, rgba(34, 211, 238, 0.1), transparent 55%),
        radial-gradient(ellipse at 88% 90%, rgba(99, 102, 241, 0.14), transparent 55%),
        linear-gradient(150deg, #060e1f 0%, #0a1628 55%, #060e1f 100%);
    box-shadow: 0 34px 80px -26px rgba(2, 3, 16, 0.75);
    overflow: hidden;
}

.audit-sample-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.audit-sample-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.audit-sample-tag::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: #67e8d3;
    box-shadow: 0 0 10px rgba(103, 232, 211, 0.9);
}

.audit-sample-note {
    font-size: 11.5px;
    color: rgba(168, 184, 204, 0.6);
    letter-spacing: 0.4px;
}

/* ───────── 分数流（最大冲击力） ───────── */
.audit-cmp { padding: 6px 4px 8px; }

.audit-score-flow {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 26px 30px;
    border-radius: 14px;
    background: linear-gradient(160deg, #0f2038, #0a1628);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.audit-score-node { text-align: center; min-width: 130px; }

.audit-num {
    font-weight: 900;
    line-height: 1;
    font-size: 64px;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
}
.audit-num.old { color: rgba(148, 163, 184, 0.85); }
.audit-num.new { background: linear-gradient(100deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 24px rgba(99, 102, 241, 0.4)); }

.audit-lbl { font-size: 12px; color: #7d90a8; margin-top: 8px; letter-spacing: 1px; }

.audit-grade {
    display: inline-block;
    margin-top: 8px;
    font-family: Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 1px 14px;
    border-radius: 3px;
}
.audit-grade.ga { color: rgba(148, 163, 184, 0.9); background: rgba(148, 163, 184, 0.12); border: 1px solid rgba(148, 163, 184, 0.3); }
.audit-grade.gb { color: #fff; background: linear-gradient(135deg, #6366f1, #06b6d4); border: 1px solid rgba(129, 140, 248, 0.5); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }

.audit-arrow {
    font-size: 34px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    top: -8px;
    animation: auditNudge 1.6s ease-in-out infinite;
}

@keyframes auditNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(8px); }
}

.audit-delta {
    font-weight: 800;
    font-size: 16px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    padding: 8px 18px;
    border-radius: 5px;
    position: relative;
    top: -8px;
    white-space: nowrap;
}

.audit-cmp-note {
    margin-top: 16px;
    padding: 0 6px;
    font-size: 14px;
    color: #a8b8cc;
    line-height: 1.8;
    max-width: 760px;
}

.audit-cmp-note strong { color: #e8eef6; }

/* ───────── 数据卡 ───────── */
.audit-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.audit-stat {
    background: linear-gradient(160deg, #0f2038, #0a1628);
    border: 1px solid rgba(120, 150, 190, 0.14);
    border-radius: 12px;
    padding: 20px 22px;
    transition: border-color 0.25s, transform 0.25s;
}

.audit-stat:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-3px); }

.audit-stat .k { font-size: 12px; color: #7d90a8; letter-spacing: 0.6px; margin-bottom: 10px; }

.audit-stat .v {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    color: #e8eef6;
    font-variant-numeric: tabular-nums;
}
.audit-stat .v .ov { color: rgba(148, 163, 184, 0.9); }
.audit-stat .v .nv { color: #67e8f9; }
.audit-stat .v .arrow { color: rgba(255, 255, 255, 0.35); font-weight: 700; font-size: 18px; }

.audit-stat .d { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); margin-top: 8px; line-height: 1.6; }

/* ───────── GEO 五维雷达图（与首页主题一致） ───────── */
.audit-radar { margin-top: 22px; padding: 22px 26px; border-radius: 14px; background: #0a1628; border: 1px solid rgba(120, 150, 190, 0.12); }

.hx-geo-radar .geo-radar-svg {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}
.hx-geo-radar .before-poly { opacity: 0; transition: opacity 0.8s ease 0.2s; }
.hx-geo-radar .after-poly {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hx-geo-radar.is-on .before-poly { opacity: 1; }
.hx-geo-radar.is-on .after-poly { stroke-dashoffset: 0; }

.audit-rlegend {
    display: flex;
    gap: 24px;
    font-size: 12.5px;
    color: #7d90a8;
    margin-top: 10px;
}
.audit-rlegend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.audit-rlegend .lo { background: rgba(148, 163, 184, 0.5); }
.audit-rlegend .ln { background: linear-gradient(90deg, #6366f1, #22d3ee); }

/* ───────── 对比表 ───────── */
.audit-cmp-table {
    margin-top: 22px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(120, 150, 190, 0.14);
}

.audit-cmp-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }

.audit-cmp-table th, .audit-cmp-table td { padding: 12px 18px; text-align: left; vertical-align: top; }

.audit-cmp-table thead th {
    background: #0f2038;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #a8b8cc;
    border-bottom: 2px solid rgba(34, 211, 238, 0.2);
}
.audit-cmp-table thead th:first-child { width: 128px; }
.audit-cmp-table thead th.col-old { color: rgba(148, 163, 184, 0.9); }
.audit-cmp-table thead th.col-new { color: #67e8f9; }

.audit-cmp-table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.audit-cmp-table tbody tr { transition: background 0.2s; }
.audit-cmp-table tbody tr:hover { background: rgba(34, 211, 238, 0.05); }
.audit-cmp-table td { border-bottom: 1px solid rgba(120, 150, 190, 0.09); color: #e8eef6; }
.audit-cmp-table td:first-child { font-weight: 700; color: #a8b8cc; white-space: nowrap; }
.audit-cmp-table .old-cell { color: #7d90a8; }
.audit-cmp-table .new-cell { color: #e8eef6; }
.audit-cmp-table tbody tr:last-child td { border-bottom: none; }

.audit-st {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    border-radius: 3px;
    padding: 1px 9px;
    white-space: nowrap;
    margin-bottom: 4px;
}
.audit-st.st-no { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.audit-st.st-yes { color: #34d399; background: rgba(52, 211, 153, 0.12); }

/* ───────── 问题闭环印章 ───────── */
.audit-issues {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.audit-stamp {
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1.5px solid;
    padding: 4px 12px;
    border-radius: 3px;
    transform: rotate(-1.2deg);
}
.audit-stamp.p0 { color: #f87171; border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.audit-stamp.p1 { color: #fbbf24; border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.1); }
.audit-stamp.p2 { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.audit-stamp.ok { color: #34d399; border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); }

/* ───────── 结论 callout ───────── */
.audit-summary {
    margin-top: 22px;
    padding: 24px 30px;
    border-radius: 0 14px 14px 0;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-left: 4px solid #22d3ee;
    background: linear-gradient(160deg, rgba(34, 211, 238, 0.07), rgba(34, 211, 238, 0.02));
}

.audit-summary h3 { font-size: 18px; font-weight: 800; color: #e8eef6; margin-bottom: 10px; }

.audit-summary p { font-size: 14px; color: #a8b8cc; line-height: 1.85; }
.audit-summary strong { color: #e8eef6; }

/* ───────── 底部：表单 + 说明 ───────── */
.audit-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
    align-items: start;
    margin-top: 64px;
}

.audit-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 38px;
    box-shadow: var(--shadow-md);
    scroll-margin-top: 24px;
}

/* 提交后定位到表单的提示高亮 */
.audit-form-card.is-flash { animation: auditFlash 1.6s ease; }

@keyframes auditFlash {
    0%, 55% { box-shadow: 0 0 0 3px var(--primary), 0 0 44px rgba(99, 102, 241, 0.35); }
    100%    { box-shadow: var(--shadow-md); }
}

.audit-form-card h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.audit-form-desc {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 26px;
}

.audit-privacy {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.audit-side { display: grid; gap: 26px; }

.audit-side-block {
    background: linear-gradient(160deg, #f8faff, #fff);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 28px;
}

.audit-side-block h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.audit-side-block h3::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.audit-side-list { list-style: none; display: grid; gap: 10px; }

.audit-side-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.audit-side-list li i {
    font-style: normal;
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1.7;
}

.audit-side-note {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ───────── 响应式 ───────── */
@media (max-width: 980px) {
    .audit-stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .audit-bottom { grid-template-columns: 1fr; }
    .audit-num { font-size: 52px; }
}

@media (max-width: 620px) {
    .audit-section { padding: 50px 0 70px; }
    .audit-sample { padding: 20px; }
    .audit-score-flow { padding: 20px 18px; gap: 14px; }
    .audit-num { font-size: 44px; }
    .audit-arrow { font-size: 26px; }
    .audit-delta { font-size: 14px; padding: 6px 12px; }
    .audit-stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .audit-stat { padding: 16px 14px; }
    .audit-stat .v { font-size: 20px; }
    .audit-cmp-table { overflow-x: auto; }
    .audit-cmp-table table { min-width: 520px; }
    .audit-summary { padding: 20px 22px; }
    .audit-form-card { padding: 30px 22px; }
}

/* ───────── 弱动效 ───────── */
@media (prefers-reduced-motion: reduce) {
    .audit-arrow { animation: none; }
    .hx-geo-radar .before-poly,
    .hx-geo-radar .after-poly {
        transition: none !important;
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
    }
    .audit-stat, .audit-cmp-table tbody tr { transition: none; }
}
