/* 朗齿AI义齿大脑 —— 纯白、线性图标、无 emoji 图标（红线标准） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f6f8fb; color: #1f2937; font-size: 14px; }
.ic { width: 18px; height: 18px; vertical-align: -3px; flex: none; }
.ic.big { width: 34px; height: 34px; color: #94a3b8; }

header.top { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; border-radius: 10px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; }
.logo .ic { width: 22px; height: 22px; }
.brand h1 { font-size: 18px; }
.brand p { color: #6b7280; font-size: 12px; margin-top: 2px; }

.tabs { display: flex; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #4b5563; cursor: pointer; font-size: 14px; }
.tab:hover { background: #f1f5f9; }
.tab.active { background: #2563eb; color: #fff; }

main { max-width: 1080px; margin: 20px auto; padding: 0 16px; }
.tabpane { display: none; }
.tabpane.active { display: block; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.card h2 { font-size: 15px; margin-bottom: 8px; }
.hint { color: #6b7280; font-size: 12.5px; margin-bottom: 12px; line-height: 1.7; }

.drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 34px 16px; text-align: center; color: #64748b; transition: border-color .15s, background .15s; }
.drop.over { border-color: #2563eb; background: #eff6ff; }
.dz-text { margin: 8px 0 14px; font-size: 13px; }
.demo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.demo-label { color: #6b7280; font-size: 12.5px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; font-size: 13.5px; }
.btn:hover { background: #f3f4f6; }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1 1 300px; }
.col label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; }
textarea, input[type=text], input[type=number] { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-family: inherit; }
.col.params label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.col.params input { width: 110px; }
.or { color: #9ca3af; font-size: 12.5px; margin: 14px 0 6px; }
input[type=file] { font-size: 12.5px; color: #4b5563; }

.result { margin-top: 16px; display: none; }
.result.show { display: block; }

.verdict-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #fbfdff; }
.vc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge.pass { background: #dcfce7; color: #15803d; }
.badge.review { background: #fef9c3; color: #a16207; }
.badge.fail { background: #fee2e2; color: #b91c1c; }
.badge.gray { background: #f1f5f9; color: #475569; }
.vc-meta { color: #6b7280; font-size: 12px; margin-left: auto; }
.vc-summary { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.vc-items { list-style: none; }
.vc-items li { border-top: 1px solid #f1f5f9; padding: 8px 2px; font-size: 13px; line-height: 1.7; }
.vc-items .sev { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; }
.sev.low { background: #f1f5f9; color: #475569; }
.sev.mid { background: #fef9c3; color: #a16207; }
.sev.high { background: #fee2e2; color: #b91c1c; }
.vc-extra { margin-top: 10px; color: #4b5563; font-size: 12.5px; white-space: pre-wrap; line-height: 1.6; background: #f8fafc; border-radius: 8px; padding: 8px 10px; }
.vc-views { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vc-views img { width: 176px; border-radius: 8px; border: 1px solid #e5e7eb; background: #0f172a; }
.vc-actions { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.correct-form { display: none; margin-top: 10px; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.correct-form.show { display: block; }
.correct-form label { display: block; font-size: 12.5px; margin: 8px 0 4px; }
.correct-form select, .correct-form textarea { width: 100%; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; }

.list { margin-top: 6px; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.list-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .kind { color: #6b7280; font-size: 12px; width: 64px; flex: none; }
.list-item .time { color: #9ca3af; font-size: 11.5px; width: 150px; flex: none; text-align: right; }
.empty { color: #9ca3af; font-size: 13px; padding: 12px 2px; }

.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.stat { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 16px; min-width: 110px; }
.stat b { display: block; font-size: 20px; }
.stat span { color: #6b7280; font-size: 12px; }

footer { text-align: center; color: #9ca3af; font-size: 12px; padding: 10px 0 28px; }
.loading { color: #2563eb; font-size: 13px; padding: 12px 0; display: flex; align-items: center; gap: 8px; }
.spin { width: 14px; height: 14px; border: 2px solid #bfdbfe; border-top-color: #2563eb; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lan-pin-layer { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.lan-pin-box { background: #fff; border-radius: 14px; padding: 26px 28px; width: 300px; text-align: center; }
.lan-pin-box h2 { font-size: 16px; margin-bottom: 8px; }
.lan-pin-box input { width: 100%; padding: 10px; font-size: 18px; letter-spacing: 6px; text-align: center; border: 1px solid #d1d5db; border-radius: 8px; margin: 12px 0 10px; }
.lan-pin-box .btn { width: 100%; justify-content: center; }
.mesh-layer { position: fixed; inset: 0; background: rgba(10, 15, 25, 0.92); display: flex; align-items: center; justify-content: center; z-index: 9900; }
.mesh-box { background: #0b121f; border-radius: 12px; padding: 10px; width: min(96vw, 900px); height: min(90vh, 640px); display: flex; flex-direction: column; gap: 8px; }
.mesh-bar { display: flex; align-items: center; gap: 8px; color: #e2e8f0; font-size: 13px; }
.mesh-bar .btn { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.mesh-box canvas { flex: 1; width: 100%; border-radius: 8px; background: #0b121f; touch-action: none; }
.mesh-hint { color: #64748b; font-size: 11.5px; text-align: center; }
.mesh-annotate-box { display: flex; gap: 8px; align-items: stretch; }
.mesh-annotate-box textarea { flex: 1; padding: 8px 10px; border: 1px solid #334155; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 13px; font-family: inherit; resize: none; }
.mesh-annotate-box .btn { flex: none; }
