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

:root {
  --ink: #000000;
  --blue: #3bb1ff;
  --coral: #ff5252;
  --paper: #f1f9ff;
  --white: #ffffff;
  --line: 3px solid var(--ink);
  --edge: 6px 6px 0 var(--ink);
  --r: 28px;
}

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

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
}

h1, h2, h3 {
  font-family: "Bodoni Moda", "Songti SC", Georgia, serif;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

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

/* 页头 */
.masthead {
  background: var(--paper);
  border-bottom: var(--line);
  padding: 14px 16px 16px;
}

.masthead__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 15px;
  background: var(--white);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.brand:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.brand__text {
  font-family: "Bodoni Moda", "Songti SC", Georgia, serif;
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
}

.brand__logo,
.brand__mark {
  flex: none;
  width: 34px;
  height: 34px;
  border: var(--line);
  border-radius: 50%;
  background: var(--blue);
  object-fit: cover;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 22px;
  background: var(--coral);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

/* 折叠菜单 */
.panel {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
}

.panel__sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.panel__sum::-webkit-details-marker { display: none; }

.panel__sum svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.panel[open] .panel__sum svg { transform: rotate(90deg); }

.panel__menu {
  list-style: none;
  margin: 0;
  padding: 4px 12px 14px;
  display: grid;
  gap: 8px;
}

.panel__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  background: var(--paper);
  border: 3px solid transparent;
  border-radius: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.panel__menu a::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--coral);
  border: 2px solid var(--ink);
}

.panel__menu a:hover,
.panel__menu a:focus-visible {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

/* 主体骨架 */
.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 16px 60px;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr);
}

.doc { min-width: 0; }

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
  margin: 0 6px 26px 0;
  padding: 26px 20px;
  background: var(--blue);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--edge);
}

.hero__kick {
  margin: 0;
  padding: 3px 16px;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 1rem;
}

.hero__title {
  font-size: clamp(2.1rem, 7.4vw, 4.6rem);
  font-weight: 700;
}

/* 正文区块 */
.doc > section[id] {
  padding: 32px 0;
  border-bottom: 3px dashed rgba(0, 0, 0, 0.3);
  scroll-margin-top: 150px;
}

.doc > section[id]:last-child { border-bottom: 0; }

.doc section small {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  background: var(--blue);
  border: var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.doc section h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  margin-bottom: 14px;
}

.doc section h3 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 26px 0 10px;
}

.doc section p { max-width: 66ch; }

.doc section a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid var(--coral);
}

.doc section a:hover { background: var(--blue); }

.doc section ul,
.doc section ol {
  max-width: 66ch;
  padding-left: 22px;
}

.doc section li { margin-bottom: 8px; line-height: 1.65; }

.doc section img {
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--edge);
  margin: 18px 0;
}

.doc section blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--white);
  border: var(--line);
  border-left: 10px solid var(--coral);
  border-radius: 12px;
}

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

/* 侧栏 */
.rail {
  align-self: start;
  padding: 18px 16px 20px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r);
}

.rail small {
  display: inline-block;
  padding: 1px 10px;
  background: var(--coral);
  border: var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.rail__title {
  font-size: 1.5rem;
  margin: 8px 0 12px;
}

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

.rail__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.16);
  font-weight: 500;
  text-decoration: none;
}

.rail__list a:hover { background: var(--blue); }

.rail__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  background: var(--blue);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.rail__top:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* 页脚 */
.foot {
  margin-top: 12px;
  padding: 36px 16px 20px;
  background: var(--ink);
  color: var(--white);
  border-top: var(--line);
}

.foot__grid {
  max-width: 1180px;
  margin: 0 auto 26px;
  display: grid;
  gap: 26px;
}

.foot__big {
  font-family: "Bodoni Moda", "Songti SC", Georgia, serif;
  font-size: clamp(1.9rem, 8.4vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}

.foot__note {
  margin: 0;
  color: #cfe9ff;
  letter-spacing: 0.06em;
}

.foot__addr {
  font-style: normal;
  display: grid;
  gap: 6px;
  align-content: start;
  line-height: 1.6;
}

.foot__addr p { margin: 0; }

.foot__host {
  color: var(--blue);
  letter-spacing: 0.08em;
  word-break: break-all;
}

.foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.32);
}

.foot__links a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.foot__copy {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc > section {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.doc > section:nth-child(2) { animation-delay: 0.06s; }
.doc > section:nth-child(3) { animation-delay: 0.12s; }
.doc > section:nth-child(4) { animation-delay: 0.18s; }
.doc > section:nth-child(5) { animation-delay: 0.24s; }
.doc > section:nth-child(6) { animation-delay: 0.3s; }
.doc > section:nth-child(7) { animation-delay: 0.36s; }
.doc > section:nth-child(8) { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* 断点 */
@media (min-width: 780px) {
  .foot__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 880px) {
  .masthead {
    position: sticky;
    top: 0;
    z-index: 9;
  }
  .panel { border-radius: 999px; }
  .panel__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
  }
  .panel__menu a { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .hero {
    min-height: 45vh;
    justify-content: center;
    padding: 44px 36px;
  }
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 34px;
    padding-top: 34px;
  }
  .rail { position: sticky; top: 170px; }
  .doc > section[id] { scroll-margin-top: 190px; }
}

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