/* 公共颜色、字号与留白沿用原作业的 Apple 风格。 */
:root {
  --ink: #1d1d1f;
  --text: #424245;
  --muted: #626267;
  --paper: #fff;
  --soft: #f5f5f7;
  --line: #dfdfe4;
  --line-strong: #c7c7ce;
  --blue: #0071e3;
  --blue-dark: #0066cc;
  --blue-ink: #0057b3;
  --blue-light: #eef5ff;
  --orange: #ad4019;
  --orange-light: #fff2e8;
  --radius: 20px;
  --small-radius: 12px;
  --page-width: 1120px;
  --page-gutter: 48px;
  --wrap-width: min(var(--page-width), calc(100% - 2 * var(--page-gutter)));
  --mono: "SFMono-Regular", Consolas, monospace;
  --sans:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  scroll-padding-top: 74px;
  -webkit-text-size-adjust: 100%;
}
/* 统一盒模型与页面外边距 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
/* 内容撑满余高，短页页脚贴底 */
@media screen {
  body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  body > main {
    flex-grow: 1;
  }
}
/* 统一表单字体、默认间距和隐藏状态 */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
[hidden] {
  display: none !important;
}
/* 键盘焦点与通用容器 */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
::selection {
  background: #d7e9ff;
  color: var(--ink);
}
.wrap {
  width: var(--wrap-width);
  margin-inline: auto;
}
.breadcrumb {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a:hover {
  color: var(--blue-ink);
}
/* 保留朗读文字，聚焦时显示跳转入口 */
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: absolute;
  left: 8px;
  top: 8px;
  background: white;
  padding: 0.5rem 1rem;
  z-index: 9;
}
main:focus {
  outline: none;
}

/* 黏性页头、校徽、导航和速查入口 */
[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafafaf5;
  border-bottom: 1px solid #e8e8ed;
}
.site-bar {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.brand-emblem {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}
.site-nav {
  display: flex;
  align-self: stretch;
  gap: clamp(16px, 2.6vw, 34px);
  align-items: stretch;
  margin-inline: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  white-space: nowrap;
  font-size: 13px;
}
.site-nav a[aria-current] {
  font-weight: 650;
}
.site-nav a[aria-current],
.site-nav a:hover {
  color: var(--blue-ink);
}
.quick-link {
  white-space: nowrap;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  background: var(--orange-light);
  color: #93340f;
  font-size: 13px;
  font-weight: 650;
  padding: 7px 15px;
  border-radius: 999px;
}
.quick-link:hover,
.quick-link[aria-current] {
  background: #ffe4d4;
}
.cross-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  color: currentColor;
  background:
    linear-gradient(currentColor 0 0) center / 100% 3px no-repeat,
    linear-gradient(currentColor 0 0) center / 3px 100% no-repeat;
}
.menu-toggle {
  display: none;
}
/* 公共页脚身份区和辅助链接 */
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 22px;
}
[data-site-footer] {
  background: var(--soft);
  border-top: 1px solid #e8e8ed;
}
.foot-identity,
.foot-links {
  display: flex;
  align-items: center;
  gap: 19px;
}
.foot-identity .site-brand {
  font-size: 16px;
  gap: 7px;
}
.foot-identity .brand-emblem {
  width: 24px;
  height: 24px;
}
.foot-links {
  color: var(--muted);
  font-size: 12px;
}
.foot-links a:hover {
  color: var(--blue-ink);
  text-decoration: underline;
}

/* 复用主按钮与浅色按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.button:hover {
  background: var(--blue-dark);
}
.button-tonal {
  background: var(--blue-light);
  color: var(--blue-ink);
}
.button-tonal:hover {
  background: #e0edff;
}

/* 中等屏幕收紧页边距和导航间距 */
@media (max-width: 900px) {
  :root {
    --page-gutter: 26px;
  }
  .site-nav {
    gap: 12px;
  }
}
/* 窄屏折叠菜单，页脚改纵向 */
@media (max-width: 760px) {
  :root {
    --page-gutter: 18px;
  }
  .site-bar {
    min-height: 56px;
    gap: 10px;
  }
  .site-brand {
    font-size: 18px;
  }
  .brand-emblem {
    width: 32px;
    height: 32px;
  }
  .quick-link {
    margin-left: auto;
    padding: 7px 12px;
    font-size: 12px;
  }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 50%;
  }
  .menu-toggle:hover,
  .menu-open .menu-toggle {
    background: #ededf0;
  }
  .menu-lines {
    width: 16px;
    height: 8px;
    border-block: 1.6px solid currentColor;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 57px);
    overflow-y: auto;
    padding: 7px var(--page-gutter) 12px;
    background: #fafafa;
    border-bottom: 1px solid var(--line);
  }
  .menu-open .site-nav {
    display: grid;
    gap: 2px;
  }
  .site-nav a {
    min-height: 44px;
    padding: 10px;
    border-radius: 9px;
    font-size: 15px;
  }
  .site-nav a[aria-current] {
    background: var(--blue-light);
  }
  .foot-row {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px;
    gap: 12px;
  }
  .foot-identity,
  .foot-links {
    gap: 13px;
  }
}
/* 打印仅保留页面内容，展开容器宽度 */
@media print {
  [data-site-header],
  [data-site-footer],
  [data-print] {
    display: none !important;
  }
  .wrap {
    width: 100%;
  }
}
