:root {
  color-scheme: light;
  --page: #f4f6f5;
  --surface: #ffffff;
  --surface-subtle: #eef2f0;
  --ink: #17231f;
  --ink-secondary: #4f5f58;
  --muted: #6d7a74;
  --line: #d6ddda;
  --line-strong: #aebbb5;
  --accent: #276b58;
  --accent-hover: #205a4a;
  --accent-soft: #e6f0ec;
  --info: #345f84;
  --warning: #93611f;
  --danger: #a33f38;
  --danger-soft: #f8ecea;
  --success: #2f724d;
  --focus: rgba(52, 95, 132, 0.28);
  --shadow: 0 12px 32px rgba(23, 35, 31, 0.12);
  --radius: 6px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--page);
}
main { flex: 1 0 auto; }
a, button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.topbar .brand,
.legal-header .brand {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}
.topbar-context { color: var(--muted); font-size: 14px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-link { color: var(--info); font-size: 14px; font-weight: 700; text-decoration: none; }

.site-footer {
  flex: 0 0 auto;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.site-footer-company { margin: 0 0 6px; color: var(--ink-secondary); font-weight: 650; }
.site-footer-meta { margin: 0; display: inline-flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; }
.site-footer-divider { color: var(--line-strong); }
.site-beian, .site-contact { color: inherit; text-decoration: none; }
.site-beian:hover, .site-contact:hover { color: var(--accent); text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .topbar { min-height: 54px; padding: 0 16px; }
  .topbar-context { font-size: 13px; }
  .site-footer { width: min(100% - 32px, 1120px); padding-bottom: 32px; }
}
