:root {
  --fg: #1d2330;
  --muted: #5b6474;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #dde1e8;
  --accent: #1f4e79;
  --accent-fg: #ffffff;
  --ok: #1d6b3a;
  --warn: #7a5200;
  --block: #8a1f1f;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans CJK SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
h1 { font-size: 1.6rem; margin: 0.2em 0 0.6em; }
h2 { font-size: 1.25rem; margin: 1.2em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1em 0 0.4em; }
.small { font-size: 0.85rem; color: var(--muted); }
.muted { color: var(--muted); }
.inline { display: inline; }
.hidden { display: none; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--accent); letter-spacing: 0.02em; }
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 1.1rem; padding: 2px 10px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 12px; }
  .nav.open { display: flex; }
}
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 16px 0 24px; }
.site-footer .links a { margin-right: 4px; }

.banner { padding: 8px 16px; text-align: center; font-size: 0.9rem; }
.banner-operator { background: #fff4d6; border-bottom: 1px solid #e8d18a; }
.flash { background: #e8f1fb; border: 1px solid #b8d0ea; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }

.btn, button.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px;
  padding: 9px 16px; font-size: 0.95rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn-secondary { background: #e9edf3; color: var(--fg); }
.btn-danger { background: var(--block); }
.btn-small { padding: 5px 10px; font-size: 0.85rem; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

form.stack label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 0.92rem; }
form.stack .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date],
input[type=datetime-local], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
textarea { min-height: 90px; }
textarea.tall { min-height: 220px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-weight: 400 !important; }
.check input { margin-top: 5px; }
.actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; border: 1px solid var(--line); background: #f1f3f6; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; background: #eef2f7; border: 1px solid var(--line); }

.result { border-left: 4px solid var(--line); padding: 6px 10px; margin: 6px 0; background: #fbfcfd; }
.result.pass { border-color: var(--ok); }
.result.warn { border-color: var(--warn); }
.result.block { border-color: var(--block); }
.result .label { font-weight: 600; }
.verdict-pass { color: var(--ok); font-weight: 700; }
.verdict-block { color: var(--block); font-weight: 700; }

.record-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.record-item:last-child { border-bottom: 0; }
.record-item .meta { font-size: 0.82rem; color: var(--muted); }
blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--line); color: #333; }

.para { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 10px 0; background: #fff; }
.para-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }

.hero { padding: 26px 0 8px; }
.hero h1 { font-size: 2rem; }
.lead { font-size: 1.1rem; color: #333; max-width: 700px; }
.price { font-size: 1.6rem; font-weight: 700; }
.steps { padding-left: 1.2em; }
.steps li { margin: 6px 0; }
.kpi { font-size: 1.5rem; font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 4px 0 10px 12px; margin-left: 6px; }
.timeline .when { font-size: 0.8rem; color: var(--muted); }
pre.email { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: 8px; font-family: inherit; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: #fff; font-size: 0.9rem; }
.tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
@media print { .site-header, .site-footer, .actions, .tabs { display: none; } }
.pos-input { width: 72px; flex: 0 0 auto; }
.para textarea { min-height: 70px; }
