/* 站度网 · AI 内容元数据自检器
 * 依赖 life-calc.css 的基础类（container / card / card-title / btn / field / hint / tip-box）
 * 本文件只写专有类，全部以 amc- 开头。
 */

#app {
    --amc-ok: #059669;
    --amc-ok-bg: #ecfdf5;
    --amc-warn: #d97706;
    --amc-warn-bg: #fffbeb;
    --amc-bad: #dc2626;
    --amc-bad-bg: #fef2f2;
    --amc-info: #2563eb;
    --amc-info-bg: #eff6ff;
    --text-dim: #86868b;
    --bg-soft: #f5f6f8;
    --bg-soft-2: #eceef1;
}

/* ---------- 上传区 ---------- */
#app .amc-nowrap {
    white-space: nowrap;
}

#app .amc-drop {
    border: 2px dashed var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
    padding: 38px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .18s;
    outline: none;
}

#app .amc-drop:hover,
#app .amc-drop:focus-visible {
    border-color: var(--primary);
    background: var(--primary-light);
}

#app .amc-drop.over {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.006);
}

#app .amc-drop-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

#app .amc-drop-t {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

#app .amc-drop-s {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.9;
}

#app .amc-drop-line {
    display: inline;
}

/* 桌面端用间隔号连成一段，移动端各自成行，避免「视频 MP4 / MOV」被拆开 */
#app .amc-drop-line + .amc-drop-line::before {
    content: "\00B7";
    margin: 0 7px;
    opacity: .55;
}

#app .amc-drop-safe {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
}

/* ---------- 忙碌条 ---------- */
#app .amc-busy {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--amc-info-bg);
    border: 1px solid #dbeafe;
    font-size: 13px;
    color: var(--amc-info);
    margin-top: 14px;
}

#app .amc-spin {
    width: 15px;
    height: 15px;
    border: 2px solid #bfdbfe;
    border-top-color: var(--amc-info);
    border-radius: 50%;
    animation: amc-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes amc-spin {
    to { transform: rotate(360deg); }
}

/* ---------- 提示条 ---------- */
#app .amc-alert {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

#app .amc-alert.error { background: var(--amc-bad-bg); color: var(--amc-bad); border: 1px solid #fecaca; }
#app .amc-alert.success { background: var(--amc-ok-bg); color: var(--amc-ok); border: 1px solid #a7f3d0; }
#app .amc-alert.info { background: var(--amc-info-bg); color: var(--amc-info); border: 1px solid #dbeafe; }

/* ---------- 风险结论 ---------- */
#app .amc-hero {
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    background: #fff;
    margin-bottom: 16px;
}

#app .amc-hero.lv-confirmed { background: linear-gradient(135deg, #fef2f2, #fff5f5); border-color: #fecaca; }
#app .amc-hero.lv-likely    { background: linear-gradient(135deg, #fffbeb, #fffdf5); border-color: #fde68a; }
#app .amc-hero.lv-editor    { background: linear-gradient(135deg, #eff6ff, #f5f9ff); border-color: #bfdbfe; }
#app .amc-hero.lv-weak      { background: linear-gradient(135deg, #f8fafc, #fcfdfe); border-color: #e2e8f0; }
#app .amc-hero.lv-clean     { background: linear-gradient(135deg, #ecfdf5, #f5fffb); border-color: #a7f3d0; }
#app .amc-hero.lv-error     { background: linear-gradient(135deg, #fef2f2, #fff5f5); border-color: #fecaca; }

#app .amc-hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#app .amc-hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    flex-shrink: 0;
}

#app .lv-confirmed .amc-hero-tag { background: var(--amc-bad); }
#app .lv-likely .amc-hero-tag    { background: var(--amc-warn); }
#app .lv-editor .amc-hero-tag    { background: var(--amc-info); }
#app .lv-weak .amc-hero-tag      { background: #64748b; }
#app .lv-clean .amc-hero-tag     { background: var(--amc-ok); }
#app .lv-error .amc-hero-tag     { background: var(--amc-bad); }

#app .amc-hero-head {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.2px;
}

#app .amc-hero-detail {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ---------- 文件信息 ---------- */
#app .amc-kv-list {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 16px;
    background: #fff;
}

#app .amc-kv {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

#app .amc-kv:last-child { border-bottom: none; }

#app .amc-k {
    width: 84px;
    flex-shrink: 0;
    color: var(--text-dim);
}

#app .amc-v {
    flex: 1;
    color: var(--text);
    word-break: break-all;
    min-width: 0;
}

#app .amc-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------- 层概览 ---------- */
#app .amc-layers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 16px 0 18px;
}

#app .amc-layer {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    padding: 10px 8px;
    text-align: center;
    transition: all .15s;
}

#app .amc-layer.on {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: 0 1px 3px rgba(37, 99, 235, .08);
}

#app .amc-layer-n {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1.15;
    margin-bottom: 3px;
}

#app .amc-layer.on .amc-layer-n { color: var(--primary); }

#app .amc-layer-t {
    display: block;
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 证据列表 ---------- */
#app .amc-ev {
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #fff;
}

#app .amc-ev:last-child { margin-bottom: 0; }

#app .amc-ev.ev-confirmed { border-left-color: var(--amc-bad); background: #fffafa; }
#app .amc-ev.ev-likely    { border-left-color: var(--amc-warn); background: #fffdf7; }
#app .amc-ev.ev-weak      { border-left-color: #94a3b8; }
#app .amc-ev.ev-hint      { border-left-color: #cbd5e1; background: #fbfcfd; }
#app .amc-ev.ev-camera    { border-left-color: var(--amc-ok); background: #f8fffc; }
#app .amc-ev.ev-info      { border-left-color: #cbd5e1; }

#app .amc-ev-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

#app .amc-ev-layer {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--bg-soft-2);
    color: var(--text-secondary);
    flex-shrink: 0;
    letter-spacing: .3px;
}

#app .amc-ev.ev-confirmed .amc-ev-layer { background: #fee2e2; color: #b91c1c; }
#app .amc-ev.ev-likely .amc-ev-layer    { background: #fef3c7; color: #b45309; }
#app .amc-ev.ev-camera .amc-ev-layer    { background: #d1fae5; color: #047857; }

#app .amc-ev-key {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

#app .amc-ev-val {
    font-size: 13px;
    color: var(--text);
    line-height: 1.65;
    word-break: break-all;
    font-family: inherit;
    background: var(--bg-soft);
    padding: 7px 11px;
    border-radius: 6px;
    margin-bottom: 7px;
}

/* 纯 ASCII 的技术值才走等宽 —— 中文用等宽字体会被拉开很大字距 */
#app .amc-ev-val.amc-mono-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    letter-spacing: -0.1px;
}

#app .amc-ev-note {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

#app .amc-empty {
    padding: 22px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    background: var(--bg-soft);
    border-radius: 10px;
    border: 1px dashed var(--border);
}

/* ---------- 无信号说明 ---------- */
#app .amc-notes {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--amc-warn-bg);
    border: 1px solid #fde68a;
    font-size: 13px;
    line-height: 1.8;
    color: #92400e;
}

#app .amc-notes p { margin: 0 0 6px; }
#app .amc-notes p:last-child { margin-bottom: 0; }

/* ---------- 申诉材料 ---------- */
#app .amc-appeal-hint {
    font-size: 13px;
    line-height: 1.75;
    padding: 11px 14px;
    border-radius: 9px;
    margin-bottom: 12px;
}

#app .amc-appeal-hint.good {
    background: var(--amc-ok-bg);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

#app .amc-appeal-hint.warn {
    background: var(--amc-warn-bg);
    border: 1px solid #fde68a;
    color: #92400e;
}

#app .amc-appeal {
    width: 100%;
    min-height: 240px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg-soft);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

#app .amc-appeal:focus {
    border-color: var(--primary);
    background: #fff;
}

#app .amc-appeal-bar {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ---------- 合规说明 ---------- */
#app .amc-legal {
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fffafa;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.8;
    color: #7f1d1d;
}

#app .amc-legal b { color: #991b1b; }

#app .amc-legal-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 8px;
}

/* ---------- 诚实边界清单 ---------- */
#app .amc-limits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 4px;
}

#app .amc-limit {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 15px;
    background: #fff;
}

#app .amc-limit-t {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#app .amc-limit-d {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

#app .amc-limit-d code,
#app .amc-notes code,
#app .amc-legal code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    background: var(--bg-soft-2);
    padding: 1px 5px;
    border-radius: 4px;
    color: #334155;
}

#app .amc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

#app .amc-dot.ok { background: var(--amc-ok); }
#app .amc-dot.no { background: var(--amc-bad); }
#app .amc-dot.mid { background: var(--amc-warn); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
    #app {
        padding: 0;
    }

    #app .amc-drop {
        padding: 28px 14px;
    }

    /* 窄屏下三行各自独立，不靠分隔号拼接 */
    #app .amc-drop-line {
        display: block;
    }

    #app .amc-drop-line + .amc-drop-line::before {
        content: none;
    }

    #app .amc-drop-safe {
        margin-top: 8px;
    }

    #app .amc-drop-ico {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    #app .amc-drop-t { font-size: 14px; }

    #app .amc-layers {
        grid-template-columns: repeat(3, 1fr);
    }

    #app .amc-limits {
        grid-template-columns: 1fr;
    }

    #app .amc-hero {
        padding: 16px 16px;
    }

    #app .amc-hero-head {
        font-size: 15.5px;
    }

    #app .amc-hero-detail {
        font-size: 13px;
    }

    #app .amc-appeal {
        min-height: 200px;
        font-size: 11.5px;
    }

    #app .amc-appeal-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    #app .amc-appeal-bar .btn {
        width: 100%;
    }

    /* 第三个按钮单独占一整行，避免 390px 下挤成两行半 */
    #app .amc-appeal-bar .btn:last-child {
        grid-column: 1 / -1;
    }

    #app .amc-k {
        width: 62px;
    }

    #app .amc-ev {
        padding: 11px 12px;
    }
}

@media (max-width: 380px) {
    #app .amc-layers {
        grid-template-columns: repeat(2, 1fr);
    }
}
