@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000;
  --paper: #fdf7ec;
  --line: 3px solid #000;
  --shadow: 5px 5px 0 #000;
}

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

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

body {
  margin: 0;
  font-family: "Lexend", "Source Sans 3", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#0000001a 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-x: hidden;
}

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

a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: 0;
  height: 4px;
  width: 62px;
  background: #000;
  margin: 4px 0 18px;
}

/* 顶部细条 */
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border-bottom: var(--line);
}

.ticker-dot {
  width: 11px;
  height: 11px;
  background: var(--red);
  border: 2px solid #fff;
  animation: blink 1.6s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    background: var(--blue);
  }
}

/* 页头 */
.masthead {
  background: #fff;
  border-bottom: var(--line);
}

.brandrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: #000;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: var(--line);
  box-shadow: 3px 3px 0 #000;
  background: var(--red);
  object-fit: cover;
}

.brand-mark--txt {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--blue);
  border: var(--line);
  box-shadow: 4px 4px 0 #000;
  padding: 2px 12px 3px;
}

.mainmenu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 18px;
  background: var(--red);
  color: #fff;
  border: var(--line);
  box-shadow: 4px 4px 0 #000;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
}

.menu-wrap:not([open]) .menu-toggle::after {
  transform: rotate(-45deg);
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
}

.menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 15px;
  background: #fff;
  border: var(--line);
  color: #000;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: var(--blue);
  box-shadow: 3px 3px 0 #000;
  transform: translate(-2px, -2px);
}

/* 头图 */
.hero {
  position: relative;
  display: grid;
  min-height: 45vh;
  background-color: #000;
  background-image: radial-gradient(#ffffff2e 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  border-bottom: 5px solid #000;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  color: #fff;
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(28px, 5.6vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-shadow: 4px 4px 0 #000;
}

.hero-desc {
  margin: 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 var(--blue);
  padding: 8px 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  background: var(--blue);
  border: var(--line);
  box-shadow: 4px 4px 0 #fff;
  color: #000;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--red);
  transform: translate(-2px, -2px);
}

/* 主体 */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 16px 54px;
}

.content {
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 22px 22px 34px;
  min-width: 0;
}

.content > section {
  scroll-margin-top: 130px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 3px dashed #00000030;
}

.content > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  margin: 0 0 8px;
}

.content h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.content h2 + hr {
  background: var(--blue);
  height: 6px;
  width: 74px;
}

.content h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 26px 0 8px;
  padding-left: 12px;
  border-left: 8px solid var(--blue);
}

.content p {
  margin: 0 0 16px;
}

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.content li {
  margin-bottom: 8px;
}

.content li::marker {
  color: var(--red);
  font-weight: 700;
}

.content img {
  border: var(--line);
  box-shadow: 4px 4px 0 #000;
  margin: 6px 0 18px;
}

.content blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #fff3d6;
  border: var(--line);
  box-shadow: 4px 4px 0 #000;
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

.content th,
.content td {
  border: 3px solid #000;
  padding: 8px 10px;
  text-align: left;
}

.content th {
  background: var(--blue);
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 18px;
  background: var(--blue);
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 16px 14px 18px;
}

.rail-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 700;
}

.rail hr {
  background: #000;
  width: 44px;
}

.rail-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  background: #fff;
  border: var(--line);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 #000;
  transform: translate(-2px, -2px);
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  background: #000;
  color: #fff;
  border-top: 5px solid var(--red);
  padding: 24px 16px;
}

.foot-brand {
  flex: 1 1 240px;
  min-width: 0;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.foot-logo:hover {
  color: var(--blue);
}

.foot-nav {
  flex: 1 1 auto;
}

.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  border: 3px solid #fff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.foot-list a:hover,
.foot-list a:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #000;
}

.foot-copy {
  flex: 0 0 auto;
}

.foot-copy p {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 44px;
  }

  .rail {
    position: static;
  }

  .content {
    padding: 18px 16px 26px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 52vh;
  }

  .brand-name {
    font-size: 22px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-copy {
    width: 100%;
    border-top: 3px solid #ffffff33;
    padding-top: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
