@import url("/brand/palette.css?v=20261002-palette-1");

:root {
  --blue: var(--wx-primary);
  --blue-light: var(--wx-primary);
  --blue-dark: var(--wx-link);
  --coral: var(--wx-hover);
  --ink: var(--wx-text);
  --link: var(--wx-link);
  --muted: var(--wx-muted);
  --paper: var(--wx-panel);
  --rule: var(--wx-line);
  --text: var(--wx-text);
  --soft-panel: var(--wx-soft);
  --soft-border: var(--wx-line);
  --copy: var(--wx-muted);
  color-scheme: light;
  font-family: Tahoma, "Microsoft YaHei", "PingFang SC", SimSun, sans-serif;
  font-synthesis: none;
}

html[data-theme="dark"] { color-scheme: dark; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
}

body {
  min-width: 0;
  background: var(--wx-bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wx-focus);
  outline-offset: 2px;
}

#top {
  position: absolute;
  inset: 0 auto auto 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  height: 50px;
  background: var(--blue);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 985px;
  height: 50px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 50px;
  color: #fff;
  white-space: nowrap;
}

.brand-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
}

.brand img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 60px;
  height: 40px;
  object-fit: contain;
  /* Include the former square icon letterboxing in the visible gap. */
  margin-right: calc(20px / 3);
}

.brand span {
  display: block;
  font-size: 13px;
  line-height: 1;
}

.domain-list,
.header-actions a {
  font-size: 13px;
  line-height: 50px;
}

.domain-list {
  display: flex;
  gap: 18px;
  margin-left: 60px;
  color: #fff;
  white-space: nowrap;
}

.domain-list b {
  color: #fff94a;
  font-weight: 700;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
  height: 50px;
}

.header-actions a {
  display: block;
  min-width: 60px;
  margin-left: 20px;
  color: #fff;
  text-align: center;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.header-actions a.is-current {
  color: #fff;
}

.theme-toggle {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.theme-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.theme-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.page-shell {
  width: 985px;
  margin: 0 auto;
  padding-top: 57px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 305px 305px 309px;
  gap: 5px;
  min-height: 240px;
  padding: 15px 28px;
  background: var(--paper);
}

.hero-panel--without-image {
  grid-template-columns: 305px minmax(0, 1fr);
}

.hero-panel--without-image .notice-board { width: 100%; }
.hero-image-link { display: block; }
.hero-image-link:focus-visible { outline-offset: -3px; }

.hero-panel--without-notice { grid-template-columns: 305px minmax(0, 1fr); }
.hero-panel--without-image.hero-panel--without-notice { grid-template-columns: minmax(0, 1fr); }
.hero-panel--without-image.hero-panel--without-notice .quick-links { width: 100%; }
.hero-stage { position: relative; overflow: hidden; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide[hidden] { display: none; }
.hero-fragments { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-fragment { position: absolute; overflow: hidden; will-change: transform, opacity; }
.hero-fragment-photo { position: absolute; display: block; max-width: none; }


.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 5px;
  width: 305px;
}

.quick-links a {
  display: block;
  height: 30px;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  line-height: 30px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 120ms ease, transform 120ms ease;
}

.quick-links a:hover {
  background: var(--coral);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--wx-soft);
}

.notice-board {
  width: 309px;
  height: 208px;
  overflow: auto;
  border: 1px solid var(--soft-border);
  background: var(--soft-panel);
}

.notice-board h2 {
  color: #f11;
  font-size: 16px;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
}

.notice-board > p {
  padding: 0 10px 4px;
  color: var(--copy);
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0.3px;
  text-indent: 25px;
}

.notice-board .notice-body { white-space: pre-line; overflow-wrap: anywhere; }

.notice-board ul {
  padding: 0;
  list-style: none;
}

.notice-board li {
  position: relative;
  height: 22px;
  padding-left: 25px;
}

.notice-board li::before {
  position: absolute;
  top: 9px;
  left: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.notice-board a {
  display: block;
  overflow: hidden;
  color: var(--wx-link);
  font-size: 12px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-board li:hover::before {
  background: var(--coral);
}

.spotlight-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: 985px;
  min-height: 50px;
  padding: 10px 30px;
  border-top: 6px solid var(--rule);
  background: var(--paper);
}

.spotlight-strip > span {
  flex: 0 0 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 20px;
}

.spotlight-strip > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 6px 0;
  flex: 1 1 0;
  min-width: 0;
}

.spotlight-strip a {
  max-width: 100%;
  padding: 0 15px;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.spotlight-strip a:hover {
  color: var(--wx-hover) !important;
}

.nav-section[data-managed-category] {
  scroll-margin-top: var(--section-scroll-offset, 58px);
}

.nav-section {
  width: 985px;
  border-top: 6px solid var(--rule);
  background: var(--paper);
}

.section-bar {
  display: flex;
  align-items: flex-start;
  width: 985px;
  min-height: 36px;
}

.section-title {
  position: relative;
  flex: 0 0 160px;
  height: 36px;
  padding-left: 45px;
  overflow: hidden;
  background: var(--blue-light);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 36px;
  white-space: nowrap;
}

.section-title::before {
  position: absolute;
  top: 12px;
  left: 18px;
  width: 13px;
  height: 3px;
  background: #fff;
  box-shadow: 0 5px #fff, 0 10px #fff;
  content: "";
}

.section-title::after {
  position: absolute;
  top: 0;
  right: -36px;
  width: 72px;
  height: 52px;
  background: var(--paper);
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}

.section-desc {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 30px 8px 16px;
  color: #f22;
  font-size: 12px;
  line-height: 20px;
  text-align: right;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.section-desc:empty { display: none; }
html[data-theme="dark"] .section-desc { color: #ff9292; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(8, 116px);
  width: 985px;
  padding: 10px 28px 15px;
  overflow: hidden;
}

.link-grid a {
  display: block;
  width: 116px;
  height: 30px;
  padding: 0 10px;
  overflow: hidden;
  color: var(--link);
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 100ms ease, color 100ms ease;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  background: var(--coral);
  color: #fff !important;
  outline-offset: -2px;
}

.nav-section.colorful .link-grid a {
  font-weight: 700;
}

.tone-red { color: #f00 !important; }
.tone-blue { color: #00f !important; }
.tone-green { color: #090 !important; }
.tone-pink { color: #f3f !important; }
.tone-purple { color: #90f !important; }
.tone-gray { color: #777 !important; }
.tone-dark { color: #333 !important; }
.tone-orange { color: #f96 !important; }

.subpage-shell {
  width: 985px;
  margin: 0 auto;
}

.subpage-banner {
  width: 985px;
  height: 57px;
}

.subpage-info {
  width: 985px;
  padding-top: 15px;
  background: var(--paper);
  font-weight: 600;
  text-align: center;
}

.subpage-info h1 {
  height: 40px;
  margin: 0;
  color: #f00;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
}

.subpage-info hr {
  width: 100%;
  height: 2px;
  margin: 7px 0;
  border: 0;
  border-top: 1px solid #9a9a9a;
  border-bottom: 1px solid #eee;
}

.subpage-copy {
  overflow-wrap: anywhere;
  color: var(--wx-link);
  font-size: 13px;
  font-weight: 600;
  line-height: 40px;
}

.subpage-copy p {
  min-height: 40px;
  line-height: 40px;
}

.subpage-copy a {
  color: var(--wx-link);
}

.subpage-copy a:hover {
  color: var(--coral);
}

.subpage-copy a.release-link {
  font-weight: 400;
  line-height: 30px;
}

.subpage-copy .magenta {
  color: #e0e;
}

.subpage-copy .green {
  color: #008b00;
}

.subpage-footer {
  width: 985px;
}

.data-error {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  padding: 42px 24px;
  border-top: 6px solid var(--rule);
  background: var(--paper);
  color: #d33;
  line-height: 1.7;
  text-align: center;
}

.data-error span {
  color: var(--copy);
}

.site-footer {
  --footer-inline-padding: 16px;
  --footer-tools-clearance: 0px;
  width: 985px;
  min-height: 66px;
  border-top: 6px solid var(--rule);
  background: #111;
  color: #fff;
  text-align: center;
}

.footer-content {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  padding: 20px var(--footer-inline-padding);
  padding-inline-end: calc(var(--footer-inline-padding) + var(--footer-tools-clearance));
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 100%;
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
}

.footer-links a,
.footer-links a:hover {
  color: inherit;
  text-decoration: none;
}

.footer-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-footer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.side-nav {
  position: fixed;
  z-index: 800;
  top: 57px;
  right: 50%;
  width: 60px;
  margin-right: 497px;
  padding: 10px 0;
  max-height: calc(100vh - 69px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 69px - env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  border-radius: 6px 0 0 6px;
  background: var(--blue-light);
}

.side-nav a {
  display: block;
  width: 60px;
  height: 28px;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  line-height: 28px;
  text-align: center;
}

.side-nav a:hover {
  background: var(--wx-hover);
  color: var(--wx-on-primary);
}

.side-nav a.is-active,
.nav-section.is-active > .section-bar > .section-title {
  background: var(--wx-hover);
  color: #fff;
}

.back-to-top {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: 67px;
  display: grid;
  place-items: center;
  width: 53px;
  height: 50px;
  margin-left: 497px;
  border-radius: 6px;
  background: var(--blue-light);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, background-color 120ms ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--wx-hover);
}

.back-to-top span {
  width: 17px;
  height: 17px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: translateY(5px) rotate(45deg);
}

.back-to-bottom span {
  transform: translateY(-5px) rotate(225deg);
}

.page-tools {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 497px;
  max-height: calc(100vh - 70px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 70px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 3px;
}

.page-tools > * { flex-shrink: 0; }

.page-tools .back-to-top {
  position: static;
  display: grid;
  margin: 0;
}

.page-tools .back-to-top:not(.is-visible) {
  display: none;
}

.page-tools .theme-toggle {
  flex: none;
  width: 53px;
  height: 50px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: var(--blue-light);
}

.page-tools .theme-toggle:hover {
  transform: none;
}

/* Keep the three solid tool buttons the same color, including after a tap. */
.page-tools .theme-toggle,
.page-tools .back-to-top,
.page-tools .theme-toggle:hover,
.page-tools .back-to-top:hover {
  background: var(--blue-light);
  color: #fff;
}

html[data-theme="dark"] .notice-board a,
html[data-theme="dark"] .subpage-copy,
html[data-theme="dark"] .subpage-copy a {
  color: var(--wx-link);
}

html[data-theme="dark"] .notice-board h2,
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .subpage-info h1 {
  color: #ff7474;
}

html[data-theme="dark"] .subpage-info hr {
  border-top-color: #4b535d;
  border-bottom-color: #242930;
}

html[data-theme="dark"] .subpage-copy .magenta { color: #ff72ec; }
html[data-theme="dark"] .subpage-copy .green { color: #75dc8d; }
html[data-theme="dark"] .data-error { color: #ff7777; }

html[data-theme="dark"] .tone-red { color: #ff7777 !important; }
html[data-theme="dark"] .tone-blue { color: #82aaff !important; }
html[data-theme="dark"] .tone-green { color: #71d98a !important; }
html[data-theme="dark"] .tone-pink { color: #ff7ce2 !important; }
html[data-theme="dark"] .tone-purple { color: #c38cff !important; }
html[data-theme="dark"] .tone-gray { color: #aab1b8 !important; }
html[data-theme="dark"] .tone-dark { color: #dce2e8 !important; }
html[data-theme="dark"] .tone-orange { color: #ffad78 !important; }

.noscript-message {
  position: fixed;
  z-index: 2000;
  right: 10px;
  bottom: 10px;
  padding: 12px;
  background: #fff3bb;
  color: #6c5710;
}

@media (max-width: 1128px) {
  .page-shell {
    --compact-nav-width: 48px;
    --compact-nav-left: 4px;
    width: calc(100% - 56px - env(safe-area-inset-left, 0px));
    margin-right: 0;
    margin-left: calc(56px + env(safe-area-inset-left, 0px));
  }

  .side-nav {
    display: block;
    position: fixed;
    top: 57px;
    right: auto;
    left: calc(var(--compact-nav-left) + env(safe-area-inset-left, 0px));
    width: var(--compact-nav-width);
    margin: 0;
    padding: 10px 0;
  }

  .side-nav a {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 3px;
    overflow: hidden;
    line-height: 32px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-tools {
    left: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin-left: 0;
  }

  .site-footer { --footer-tools-clearance: 72px; }
}

/* Include the sidebar and scrollbar in the desktop breakpoint; preserve the header right edge. */
@media (min-width: 1129px) {
  .header-inner {
    width: auto;
    margin-left: calc(50% - 557px);
    margin-right: calc(50% - 492.5px);
  }
}

@media (min-width: 721px) and (max-width: 1128px) {
  .header-inner,
  .subpage-shell {
    width: calc(100% - 32px);
    max-width: 985px;
  }

  .header-inner {
    width: auto;
    max-width: none;
    margin-left: calc(12px + env(safe-area-inset-left, 0px));
    margin-right: max(16px, calc((100% - 985px) / 2));
  }

  .page-shell {
    --compact-nav-width: 52px;
    --compact-nav-left: 12px;
    width: calc(100% - 88px - env(safe-area-inset-left, 0px));
    margin-right: 16px;
    margin-left: calc(72px + env(safe-area-inset-left, 0px));
  }

  .subpage-banner,
  .subpage-info,
  .subpage-footer,
  .spotlight-strip,
  .nav-section,
  .section-bar,
  .link-grid,
  .site-footer {
    width: 100%;
    max-width: none;
  }

  .domain-list {
    display: none;
  }

  .hero-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: auto;
  }

  .quick-links { width: 100%; }

  .notice-board {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    min-height: 200px;
  }

  .spotlight-strip > div {
    justify-content: flex-start;
  }

  .link-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .link-grid a {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  .link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    background-size: 480px 320px;
  }

  .site-header,
  .header-inner {
    width: 100%;
  }

  .header-inner {
    padding: 0 0 0 calc(4px + env(safe-area-inset-left, 0px));
  }

  .header-inner .brand { flex: 1 1 auto; width: auto; min-width: 70px; }
  .header-inner .brand img { margin-right: calc(14px / 3); }
  .header-inner .brand-title, .header-inner .brand span { min-width: 0; }

  .brand span {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .domain-list {
    display: none;
  }

  .brand span {
    width: 110px;
    max-width: 110px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions a {
    width: auto;
    min-width: 0;
    margin-left: 0;
    padding: 0 6px;
    font-size: 12px;
  }

  .theme-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    margin-right: 2px;
    margin-left: 5px;
  }

  .subpage-shell,
  .subpage-banner,
  .subpage-info,
  .subpage-footer,
  .spotlight-strip,
  .nav-section,
  .section-bar,
  .link-grid,
  .site-footer {
    width: 100%;
  }

  .page-shell {
    padding-top: 57px;
  }

  .hero-panel {
    display: block;
    width: 100%;
    height: auto;
    min-height: 145px;
    padding: 10px 0 5px;
    background: var(--paper);
  }

  .quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 1.9%;
    width: 100%;
    padding: 0 1.9%;
  }

  .quick-links a {
    min-width: 0;
  }


  .notice-board {
    display: block;
    width: calc(100% - 3.8%);
    height: auto;
    min-height: 0;
    margin: 8px 1.9%;
    padding-bottom: 8px;
  }

  .hero-panel--without-image .notice-board { width: calc(100% - 3.8%); }
  .notice-board p { overflow-wrap: anywhere; }
  .notice-board li { height: auto; }
  .notice-board a { white-space: normal; overflow-wrap: anywhere; }

  .spotlight-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 8px 1.9%;
  }

  .spotlight-strip > span { width: auto; margin: 0 0 5px; }
  .spotlight-strip > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 8px;
    min-width: 0;
    width: 100%;
  }

  .spotlight-strip a {
    display: block;
    min-width: 0;
    padding: 5px 0;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: center;
  }

  .section-bar { flex-wrap: wrap; }
  .section-desc { flex-basis:100%; padding:7px 10px 2px; text-align:left; line-height:1.6; }

  .section-title {
    flex-basis: 160px;
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.9%;
    padding: 15px 1.9%;
  }

  .link-grid a {
    width: 100%;
    min-width: 0;
    padding: 0 0 0 8%;
  }

  .subpage-copy p {
    min-height: 40px;
    padding: 0 4px;
  }

  .site-footer { --footer-inline-padding: 6px; }
  .footer-content { padding-block: 16px; }
  .footer-links { gap: 10px; }
  .site-footer p, .footer-links { font-size: 13px; }
  .footer-content > p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Brand colors shared by desktop and mobile. */
.site-footer { background:var(--wx-primary);border-color:var(--wx-line); }
.section-desc, .notice-board h2, .subpage-info h1 { color:var(--wx-link); }
html[data-theme="dark"] .section-desc, html[data-theme="dark"] .notice-board h2, html[data-theme="dark"] .subpage-info h1 { color:var(--wx-link); }

.site-footer p { color:#fff; }

/* Administrator-managed category notes and footer contact. */
.section-bar { flex-wrap: wrap; }
.section-bar .category-header-note { color:var(--category-note-color, var(--wx-link)); font-size:12px; line-height:1.5; margin:4px 10px; overflow-wrap:anywhere; }
.section-bar a.category-header-note:hover { text-decoration:underline; }
