:root { --bg:#f6f7f9; --card:#fff; --line:#e3e6ea; --text:#1f2937; --muted:#6b7280; --brand:#0b6e4f; --brand-2:#0e7490; --danger:#b91c1c; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color:var(--brand-2); text-decoration:none; }
a:hover { text-decoration:underline; }
.nav { display:flex; gap:16px; align-items:center; padding:10px 24px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.nav .logo { font-weight:700; color:var(--brand); font-size:16px; }
.nav input { margin-left:auto; width:260px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; }
.wrap { max-width:1200px; margin:24px auto; padding:0 24px; }
h1 { font-size:20px; } h2 { font-size:16px; margin:24px 0 8px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:12px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.card h3 { margin:0 0 4px; font-size:15px; }
.muted { color:var(--muted); font-size:12px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); }
th, td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
th { background:#fafbfc; cursor:pointer; user-select:none; font-weight:600; }
th.nosort { cursor:default; }
tr:hover td { background:#f8fafb; }
.price { color:var(--brand); font-weight:600; }
.tag { display:inline-block; padding:1px 8px; border-radius:10px; background:#eef6f2; color:var(--brand); font-size:12px; margin-right:6px; }
.filters { display:flex; flex-wrap:wrap; gap:10px 18px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:12px 0; align-items:center; }
.filters label { font-size:13px; color:var(--muted); }
.filters input[type=number] { width:90px; padding:4px 6px; border:1px solid var(--line); border-radius:6px; }
.filters select, .filters input[type=text] { padding:4px 6px; border:1px solid var(--line); border-radius:6px; }
form.panel { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px; max-width:720px; }
form.panel label { display:block; margin:10px 0 4px; font-size:13px; color:var(--muted); }
form.panel input, form.panel select, form.panel textarea { width:100%; padding:7px 9px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.btn { display:inline-block; padding:7px 16px; border:none; border-radius:6px; background:var(--brand); color:#fff; cursor:pointer; font:inherit; }
.btn.secondary { background:#fff; color:var(--text); border:1px solid var(--line); }
.btn.danger { background:var(--danger); }
.btn.small { padding:3px 10px; font-size:12px; }
a.btn { text-decoration:none; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.tabs .btn.secondary.active { border-color:var(--brand); color:var(--brand); }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#111827; color:#fff; padding:9px 18px; border-radius:8px; opacity:0; transition:opacity .3s; z-index:10; pointer-events:none; }
.toast.show { opacity:1; }
.scroll-x { overflow-x:auto; }
.empty { padding:40px; text-align:center; color:var(--muted); background:#fff; border:1px dashed var(--line); border-radius:10px; }
.badge { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; margin-left:6px; }
.badge.type { background:#eef2ff; color:#3730a3; }
.badge.st-pending { background:#f1f5f9; color:#475569; }
.badge.st-in_review { background:#fef9c3; color:#854d0e; }
.badge.st-approved { background:#dcfce7; color:#166534; }
.badge.st-rejected { background:#fee2e2; color:#991b1b; }
.audit-item { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid var(--line); }
.audit-item input[type=checkbox] { margin-top:4px; width:16px; height:16px; flex:0 0 auto; }
.audit-item .txt { flex:1; }
.audit-item .note { width:260px; padding:4px 6px; border:1px solid var(--line); border-radius:6px; flex:0 0 auto; }
.account-box { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; margin-left:8px; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(135deg,#eef6f2,#f6f7f9 55%,#e8f5f8); }
.login-card { width:min(420px,100%); background:#fff; border:1px solid var(--line); border-radius:14px; padding:28px; box-shadow:0 12px 40px rgba(15,23,42,.08); }
.login-card h1 { margin:0 0 4px; color:var(--brand); font-size:22px; }
.app-login-brand { display:grid; gap:5px; }
.app-login-brand span:first-child { color:var(--muted); font:11px/1.2 var(--mono); letter-spacing:.12em; }
.login-card label { display:block; margin:14px 0 5px; color:var(--muted); }
.login-card input { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:7px; font:inherit; }
.login-card .btn { width:100%; margin-top:20px; padding:10px; }
.error-text { min-height:22px; margin:10px 0 0; color:var(--danger); }
.password-result { margin:16px 0; padding:14px; border:1px solid #86efac; background:#f0fdf4; border-radius:8px; }
.password-code { font:700 22px/1.4 ui-monospace,Consolas,monospace; letter-spacing:1px; color:var(--brand); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.solution-compare th + th, .solution-compare td + td { border-left:2px solid #cbd5e1; }
.modal { width:min(560px,calc(100% - 32px)); border:1px solid var(--line); border-radius:12px; padding:0; box-shadow:0 18px 60px rgba(15,23,42,.2); }
.modal::backdrop { background:rgba(15,23,42,.35); }
.modal form { padding:20px; }
.modal h2 { margin-top:0; }
.modal label { display:block; margin:10px 0 4px; color:var(--muted); }
.modal input { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin:18px 0 0; }
.page-title-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.page-title-row h1 { margin-bottom:0; }
.page-title-row p { margin:2px 0 0; }
.overview-filters { align-items:flex-end; }
.overview-filters label { display:flex; flex-direction:column; gap:3px; }
.overview-filters input, .overview-filters select { min-width:170px; height:32px; }
.result-count { margin:10px 0; }
.overview-table td { vertical-align:top; }
.qualification { font-weight:600; margin-left:0; white-space:nowrap; }
.q-approved { color:#166534; background:#dcfce7; }
.q-pending { color:#475569; background:#f1f5f9; }
.q-in_review { color:#854d0e; background:#fef9c3; }
.q-rejected { color:#991b1b; background:#fee2e2; }
.company-overview-card { display:block; color:inherit; min-height:155px; }
.company-overview-card:hover { text-decoration:none; border-color:#94a3b8; box-shadow:0 4px 14px rgba(15,23,42,.06); }
.company-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.company-card-top h3 { white-space:normal; }
.company-meta { display:flex; justify-content:space-between; gap:10px; margin-top:18px; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.company-note { margin-top:8px; white-space:normal; }
@media (max-width:800px) {
  .nav { flex-wrap:wrap; gap:8px 12px; padding:10px 14px; }
  .nav input { order:3; width:100%; }
  .account-box { width:100%; margin-left:0; }
  .page-title-row { align-items:flex-start; }
  .overview-filters label, .overview-filters input, .overview-filters select { width:100%; min-width:0; }
}
