* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: #f6f4ef; color: #23201b; }
.hidden { display: none !important; }
.muted { color: #8a8378; font-size: 13px; }
.error { color: #b3261e; min-height: 18px; }
button { cursor: pointer; border: 1px solid #c9c2b4; background: #fff; border-radius: 8px; padding: 7px 14px; font-size: 14px; }
button.primary { background: #a33b2e; border-color: #a33b2e; color: #fff; }
button.block { width: 100%; }
button:disabled { opacity: .55; cursor: wait; }
input, textarea, select { width: 100%; border: 1px solid #c9c2b4; border-radius: 8px; padding: 8px 10px; font-size: 14px; background: #fff; font-family: inherit; }
label { display: block; margin: 10px 0; font-size: 14px; }
textarea { line-height: 1.6; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; padding: 32px; border-radius: 14px; width: min(380px, 92vw); box-shadow: 0 8px 30px rgba(60,50,30,.12); }
.topbar { display: flex; justify-content: space-between; align-items: center; background: #2b2620; color: #f2ede3; padding: 10px 18px; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 700; letter-spacing: 1px; }
.navbtn { background: transparent; color: #f2ede3; border-color: #57503f; margin-left: 6px; }
.navbtn.active { background: #a33b2e; border-color: #a33b2e; }
main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: #fff; border: 1px solid #e3ddcf; border-radius: 12px; padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.tag { display: inline-block; border: 1px solid #c9c2b4; border-radius: 999px; padding: 4px 12px; margin: 3px; cursor: pointer; font-size: 13px; background: #fff; user-select: none; }
.tag.on { background: #a33b2e; color: #fff; border-color: #a33b2e; }
.grade { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #a33b2e; color: #a33b2e; font-size: 26px; font-weight: 800; align-items: center; justify-content: center; transform: rotate(-8deg); }
.score-big { font-size: 34px; font-weight: 800; }
.sev-致命 { color: #b3261e; font-weight: 700; }
.sev-重要 { color: #b26a00; font-weight: 700; }
.sev-建议 { color: #5b7a3a; font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #e3ddcf; padding: 7px 9px; text-align: left; font-size: 14px; vertical-align: top; }
.drop { border: 2px dashed #c9c2b4; border-radius: 12px; padding: 26px; text-align: center; color: #8a8378; background: #fbf9f4; }
.drop.over { border-color: #a33b2e; color: #a33b2e; }
.tabs { display: flex; gap: 8px; margin: 8px 0; }
.tabs button.active { background: #2b2620; color: #fff; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #2b2620; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50; max-width: 92vw; }
.warn { background: #fdf3e3; border: 1px solid #e8cf9f; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.bar { height: 8px; background: #eee7d7; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #a33b2e; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
pre.opening { white-space: pre-wrap; background: #fbf9f4; padding: 10px; border-radius: 8px; font-size: 13px; }
