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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #ffffff;
  --wash: #e6f4ff;
  --line: 3px solid #000000;
  --shadow: 5px 5px 0 #000000;
  --serif: "EB Garamond", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.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 {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 80;
  display: inline-block;
  padding: 10px 16px;
  background: var(--red);
  border: var(--line);
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip:focus {
  top: 12px;
}

/* ---------- 页头 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 4px solid #000;
}

.masthead__bar {
  max-width: 1220px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.masthead__aside {
  flex: 1 1 auto;
  min-width: 0;
}

.masthead__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.navlist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navlist--b {
  justify-content: flex-end;
}

.navlink {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  border: 3px solid transparent;
  border-radius: 10px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.navlink:hover,
.navlink:focus-visible {
  background: var(--blue);
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
  transform: translate(-1px, -1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: var(--blue);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 #000;
  color: #000;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.brand:hover,
.brand:focus-visible {
  background: var(--red);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.brand__mark {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand__dot {
  display: block;
  width: 13px;
  height: 13px;
  background: #000;
  border-radius: 2px;
}

.finder {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 3px 3px 0 #000;
  overflow: hidden;
}

.finder__input {
  width: 148px;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
}

.finder__input:focus {
  outline: none;
  background: var(--wash);
}

.finder__btn {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-left: var(--line);
  background: var(--blue);
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.finder__btn:hover {
  background: var(--red);
}

/* ---------- 首屏 ---------- */

.hero {
  background: var(--wash);
  border-bottom: 4px solid #000;
}

.hero__grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}

.hero__copy {
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 13px;
  background: #fff;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.1vw, 3.8rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 118px;
  height: 12px;
  margin: 20px auto 0;
  background: var(--red);
  border: 3px solid #000;
}

.hero__ghost {
  display: none;
}

.hero__lede {
  max-width: 44ch;
  margin: 22px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn--primary {
  background: var(--blue);
}

.btn--ghost {
  background: #fff;
}

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

.hero__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--blue);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--red);
  transform: rotate(-1deg);
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.hero__blank {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0, 0, 0, 0.14) 14px 17px);
}

.badge {
  position: absolute;
  padding: 6px 13px;
  background: var(--red);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.badge--a {
  top: -15px;
  left: -13px;
  transform: rotate(-4deg);
}

.badge--b {
  right: -13px;
  bottom: -15px;
  background: #fff;
  transform: rotate(3deg);
}

/* ---------- 主体 ---------- */

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 46px;
  padding: 52px 0 88px;
}

.content {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}

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

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

.content li {
  margin: 0 0 8px;
}

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

.content a:hover {
  text-decoration-color: var(--red);
}

.content strong,
.content b {
  background: var(--wash);
  box-shadow: 0 0 0 3px var(--wash);
}

.content img {
  height: auto;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 6px 6px 0 #000;
}

.content blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--wash);
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.content div {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 3px solid #000;
  scroll-margin-top: 132px;
}

.content div:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.content h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  font-weight: 700;
  line-height: 1.24;
}

.content h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 12px;
  margin-bottom: 14px;
  background: var(--red);
  border: 3px solid #000;
}

.content h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.3;
}

.content div.hit {
  box-shadow: 0 0 0 6px var(--red);
  border-radius: 4px;
}

/* ---------- 侧栏 ---------- */

.sidebar {
  position: sticky;
  top: 108px;
  padding: 20px;
  background: var(--blue);
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.sidebar__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.3;
}

.subtitle {
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 6px solid #000;
  font-size: 16px;
  line-height: 1.6;
}

.sidebar__list {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.sidebar__list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 11px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.sidebar__list a:hover,
.sidebar__list a:focus-visible {
  background: var(--red);
  box-shadow: 3px 3px 0 #000;
  transform: translate(-1px, -1px);
}

.toTop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: #000;
  border: 3px solid #000;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.toTop:hover,
.toTop:focus-visible {
  background: var(--red);
  color: #000;
}

/* ---------- 页脚 ---------- */

.foot {
  background: #000;
  color: #fff;
  border-top: 6px solid var(--blue);
  padding-top: 44px;
}

.foot__grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1.15fr;
  gap: 28px;
}

.foot__col {
  min-width: 0;
}

.foot__brand {
  display: inline-block;
  padding: 6px 13px;
  background: var(--blue);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 #fff;
  color: #000;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.foot__rule {
  display: block;
  width: 74px;
  height: 10px;
  margin-top: 18px;
  background: var(--red);
  border: 3px solid #fff;
}

.foot__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__list--bar {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 4px;
}

.foot__link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.foot__link:hover,
.foot__link:focus-visible {
  background: var(--blue);
  color: #000;
}

.sub {
  padding: 15px;
  background: var(--blue);
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 0 #fff;
  color: #000;
}

.sub__label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

.sub__row {
  display: flex;
  gap: 8px;
}

.sub__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 9px;
  border: 3px solid #000;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
}

.sub__btn {
  min-height: 42px;
  padding: 0 13px;
  background: var(--red);
  border: 3px solid #000;
  border-radius: 8px;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sub__btn:disabled {
  background: #fff;
  cursor: default;
}

.foot__bar {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 20px 26px;
  border-top: 3px solid #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.foot__copy {
  margin: 0;
  font-size: 16px;
}

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .brand,
  .navlink,
  .sidebar__list a {
    transition: none;
  }
}

/* ---------- 断点 ---------- */

@media (min-width: 861px) {
  .hero__grid {
    min-height: 70vh;
  }
}

@media (max-width: 1000px) {
  .content-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .masthead__bar {
    flex-wrap: wrap;
    padding: 9px 14px 13px;
  }

  .masthead__aside {
    flex: 1 0 100%;
  }

  .masthead__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .navlist {
    justify-content: center;
  }

  .navlist--b {
    justify-content: center;
  }

  .finder {
    width: 100%;
  }

  .finder__input {
    flex: 1 1 auto;
    width: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 46px;
  }

  .hero__media {
    transform: none;
    box-shadow: 6px 6px 0 var(--red);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

  .content-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 36px 0 64px;
  }

  .sidebar {
    position: static;
  }

  .content div {
    scroll-margin-top: 220px;
  }

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

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