:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #232323;
  --text-body: #4c4a4a;
  --text-muted: #6a6666;
  --accent: #cf3b32;
  --accent-ink: #ffffff;
  --accent-2: #8a2a24;
  --border: #eeeeee;
  --border-strong: #dddddd;
  --footer-line: #595959;
  --copyright-bg: #dddddd;
  --shadow: 0 0 1px 0 #ccc;
  --container: 1255px;
  --radius: 0;
  --radius-md: 4px;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:not(.site-cta):hover,
a:not(.site-cta):focus-visible {
  color: var(--accent);
}

h1 {
  font-size: 32px;
  line-height: 1.25;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.logo:hover,
.logo:focus-visible {
  color: var(--accent-2);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-family: inherit;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
}

.site-nav a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #000000;
  min-height: 44px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.banner-line {
  margin: 0;
  padding: 1em 0;
  text-align: center;
  background: var(--bg);
  color: #b0b0b0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.page-wrap {
  background: var(--bg);
  padding: 2.5rem 0 3.5rem;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 2rem 1.75rem;
  align-items: start;
}

.entry {
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 3.5rem;
  position: relative;
  padding: 2.5rem 2rem 2rem;
}

.entry:last-of-type {
  margin-bottom: 2rem;
}

.entry__badge {
  position: absolute;
  top: -1.1rem;
  left: 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.55rem 0.85rem;
  text-align: center;
  z-index: 2;
}

.entry__badge::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border: 10px solid transparent;
  border-top-color: var(--accent);
}

.entry__tags {
  position: relative;
  top: -2.75rem;
  margin: 0 auto 0.25rem;
  width: min(80%, 28rem);
  background: var(--surface);
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.entry__tags a {
  color: #6e6e6e;
  margin: 0 0.35rem;
  display: inline-block;
  line-height: 1.8;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
}

.entry__tags a:hover,
.entry__tags a:focus-visible {
  color: var(--accent);
}

.entry h1,
.entry h2 {
  text-align: center;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
  line-height: 1.25;
}

.entry h1 {
  font-size: 2rem;
}

.entry h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.entry h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.entry p,
.entry li,
.entry dd,
.entry td,
.entry th {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

.entry p {
  margin: 0 0 1rem;
  text-align: left;
}

.entry .lede {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.entry ul,
.entry ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  text-align: left;
}

.entry li {
  margin: 0.35rem 0;
}

.entry a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry a:hover,
.entry a:focus-visible {
  color: var(--accent-2);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
  background: var(--surface);
}

th,
td {
  border: 1px solid #f1f1f1;
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.faq {
  margin: 1.5rem 0 0;
  text-align: left;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.6rem;
  width: 1rem;
  flex-shrink: 0;
}

.faq details[open] summary::before {
  content: "−";
}

.faq p {
  margin: 0.65rem 0 0.25rem 1.6rem;
}

.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  justify-content: center;
}

.index-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.index-nav a:hover,
.index-nav a:focus-visible,
.index-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.sidebar .widget {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem;
  margin-bottom: 2.25rem;
  position: relative;
  text-align: left;
}

.widget::before {
  content: "";
  position: absolute;
  top: -0.25em;
  left: 50%;
  transform: translateX(-50%);
  width: 10%;
  min-width: 2rem;
  height: 0.45em;
  background: var(--accent);
}

.widget h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin: 0;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--border);
}

.widget li:last-child {
  border-bottom: 0;
}

.widget a {
  color: var(--text-body);
  display: block;
  min-height: 44px;
  line-height: 1.5;
  padding: 0.35rem 0;
  text-decoration: none;
}

.widget a:hover,
.widget a:focus-visible {
  color: var(--accent);
}

.site-footer {
  background: var(--surface);
  border-top: 0.5em solid var(--footer-line);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--text);
  font-size: 0.9rem;
  display: inline-block;
  min-height: 44px;
  padding: 0.35rem 0;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.copyright {
  background: var(--copyright-bg);
  padding: 0.65rem 0;
  font-size: 0.75rem;
  color: #555555;
  text-align: center;
}

.page-title-bar {
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 0 0 2rem;
  padding: 2rem 1rem;
  text-align: center;
}

.page-title-bar h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}

.not-found {
  text-align: center;
  padding: 3rem 1.5rem;
}

.not-found h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.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: 980px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .sidebar .widget {
    margin-bottom: 0;
  }
}

@media (max-width: 860px) {
  .site-header .container {
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .site-nav ul.open,
  .site-nav:not(.is-ready) ul {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 0.5rem;
    border-top: 1px solid rgba(120, 120, 120, 0.12);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .entry {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .entry h1 {
    font-size: 1.55rem;
  }

  .entry h2 {
    font-size: 1.25rem;
  }

  .entry__tags {
    width: 92%;
    top: -2.4rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .logo {
    font-size: 1.35rem;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .entry__badge {
    left: 0.75rem;
    font-size: 0.75rem;
  }

  body {
    font-size: 16px;
  }
}
