:root {
  --ink: #1f2933; --muted: #6b7785; --line: #e3e7ec; --bg: #f5f7fa; --card: #fff;
  --brand: #1f6f4a; --brand-2: #e8f3ed; --warn: #b54708; --warn-2: #fff4e5; --bad: #b42318; --bad-2: #fdecea;
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.envtip { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: #fff4e5; color: #b54708; border: 1px solid #f5c68a; font-weight: 600; }

.top { background: var(--brand); color: #fff; padding: 28px 0 22px; }
.top h1 { margin: 0 0 6px; font-size: 26px; }
.top .sub { margin: 0 0 8px; opacity: .92; }
.top .safe { margin: 0; display: inline-block; background: rgba(255,255,255,.14); padding: 4px 12px; border-radius: 999px; font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.card h2 { margin: 0 0 14px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.no { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 15px; }

.drop { border: 2px dashed #b8c4cf; border-radius: 12px; padding: 34px 16px; text-align: center; background: #fafbfc; transition: .15s; outline: none; }
.drop.over, .drop:focus { border-color: var(--brand); background: var(--brand-2); }
.drop-big { font-size: 21px; font-weight: 700; }
.drop-small { color: var(--muted); margin: 8px auto 16px; max-width: 640px; }
.drop-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.btn { display: inline-block; border: 0; border-radius: 10px; padding: 10px 18px; font-size: 16px; cursor: pointer; background: var(--brand); color: #fff; font-family: inherit; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { font-size: 20px; padding: 14px 36px; }
.btn.green { background: #138a4b; }

.formbox { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.formbox.ok { background: var(--brand-2); }
.formbox.bad { background: var(--bad-2); color: var(--bad); }
.formbox select { font-size: 15px; margin-left: 6px; }
.legend { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; margin: 0 4px 0 10px; }
.tag.ok { background: var(--brand-2); color: var(--brand); }
.tag.need { background: var(--warn-2); color: var(--warn); }
.tag.gray { background: #eef1f4; color: var(--muted); }

.tablewrap { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; background: #f0f3f6; z-index: 1; font-weight: 600; }
td.fname { max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td:nth-child(2), td:nth-child(3), th { white-space: nowrap; }
tr.need { background: var(--warn-2); }
tr.gray td { color: var(--muted); }
td select { font-size: 14px; padding: 3px 4px; border-radius: 6px; border: 1px solid #c5ced8; max-width: 170px; }
tr.need select { border-color: var(--warn); }
.row-btns { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.status { margin-top: 12px; color: var(--muted); min-height: 1.6em; }
.status.err { color: var(--bad); }
.result { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--brand-2); }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.num { background: #fff; border-radius: 10px; padding: 10px 12px; }
.num b { display: block; font-size: 24px; }
.num span { color: var(--muted); font-size: 13px; }
.num.bad b { color: var(--bad); }
.num.warn b { color: var(--warn); }

.faq details { border-top: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: #3d4a57; margin: 6px 0 2px; }
.foot { color: var(--muted); font-size: 13px; padding: 10px 16px 30px; text-align: center; }

@media (max-width: 640px) {
  .top h1 { font-size: 21px; }
  .card { padding: 16px; }
  .btn.big { width: 100%; }
  td.fname { max-width: 150px; }
}
