/* WcceWiki · 基础样式（学生端与维护端共用） */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --shell: 1180px;
  --paper: #f7f5f0;
  --paper-deep: #efebe2;
  --card: #fffefb;
  --ink: #16203a;
  --ink-soft: #39435c;
  --muted: #747d95;
  --faint: #98a0b4;
  --line: #e2ddd2;
  --line-soft: #ece8df;
  --navy: #1b3763;
  --navy-deep: #101d35;
  --amber: #a9641f;
  --amber-soft: #fbf3e6;
  --focus: #2f5ea8;
  --radius-lg: 20px;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(22, 32, 58, .04);
  --shadow-lift: 0 22px 42px -30px rgba(22, 32, 58, .55);
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--navy); }
button { font-family: inherit; }
svg { display: block; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.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;
}

.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--navy);
  color: #f7f2e6;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.brand-mark.small { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: #c8d2e0; color: var(--navy); }

.btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--navy);
  font-size: 12.5px;
  cursor: pointer;
  border-bottom: 1px solid rgba(27, 55, 99, .25);
  line-height: 1.5;
}
.link-btn:hover { border-bottom-color: var(--navy); }

@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
