/* 金达康 · 往来账 — Web 令牌（企业版） */
:root {
  --ink: #0b1220;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;
  --canvas: #f4f6f9;
  --canvas-bg:
    linear-gradient(180deg, #eef2f7 0%, #f4f6f9 42%, #f4f6f9 100%);
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0a2f5c;
  --brand-deep: #061e3d;
  --brand-soft: #e8eef6;
  --brand-mint: #d7e4f2;
  --cta: #0a2f5c;
  --cta-hover: #134a82;
  --cta-text: #ffffff;
  --accent: #1a4f8c;
  --ok: #0f766e;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-weight: 400;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button, .btn { font-family: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.site-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--display);
}
.site-brand strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-brand span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.site-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.site-links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: none; }
.btn:active { transform: none; opacity: 0.92; }
.btn-primary {
  background: var(--cta);
  color: var(--cta-text) !important;
}
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost {
  background: #fff;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--canvas);
  border-color: var(--line-strong);
  color: var(--ink) !important;
}
.btn-light {
  background: #fff;
  color: var(--brand) !important;
  border: 1px solid var(--line);
}
.site-footer {
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  background: #fff;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
