@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

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

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Didact Gothic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.page { overflow-x: clip; }

img { max-width: 100%; }

/* 顶部公告长条 */
.ticker {
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid #000;
}
.ticker-track {
  display: inline-flex;
  animation: tick 26s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-size: 0.76rem;
  letter-spacing: 0.45em;
  padding-right: 3.2rem;
  text-transform: uppercase;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 页头 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #000;
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem clamp(1rem, 4vw, 3rem);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: 0.94rem;
}
.nav-r { justify-content: flex-end; }
.nav a {
  display: inline-block;
  padding: 0.62rem 0;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.brand {
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-decoration: none;
  color: #000;
  text-align: center;
  padding: 0.5rem 0.2rem;
  white-space: nowrap;
}

/* 首屏 */
main { display: block; }

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 5vw, 4.5rem) clamp(3.5rem, 9vw, 8rem);
  border-bottom: 1px solid #000;
  background-image: radial-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 24px);
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  word-break: break-word;
}
.hero-desc {
  margin: 1.4rem 0 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.7;
  border-left: 3px solid #000;
  padding-left: 0.9rem;
}

.fig-a, .fig-b {
  position: absolute;
  margin: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  overflow: hidden;
  --py: 0px;
  will-change: transform;
}
.fig-a {
  right: 34%;
  top: 10%;
  width: min(30vw, 300px);
  transform: rotate(-4deg) translateY(var(--py));
  z-index: 2;
  box-shadow: 10px 10px 0 #000;
}
.fig-b {
  right: 5%;
  bottom: 12%;
  width: min(27vw, 250px);
  transform: rotate(3deg) translateY(var(--py));
  box-shadow: -8px 8px 0 #000;
}
.hero-img { display: block; width: 100%; height: auto; }

/* 正文与侧栏 */
.read {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem) clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.read-body { min-width: 0; overflow-wrap: break-word; }
.read-body > div {
  padding: clamp(1.8rem, 4.5vw, 3.2rem) 0;
  border-top: 1px solid #000;
  scroll-margin-top: 110px;
}
.read-body > div:first-child { border-top: 0; padding-top: 0; }
.read-body h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 900;
}
.read-body h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.read-body p { margin: 0 0 1rem; max-width: 64ch; }
.read-body ul, .read-body ol { padding-left: 1.3rem; max-width: 62ch; }
.read-body li { margin: 0.35rem 0; }
.read-body a { color: #000; text-decoration: underline; text-underline-offset: 0.22em; }
.read-body img, .read-body figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.read-body figure {
  margin: 1.4rem 0;
  border-bottom: 3px solid #000;
  padding-bottom: 0.8rem;
}
.read-body blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid #000;
  font-size: 1.05rem;
}
.read-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.read-body th, .read-body td { border-bottom: 1px solid #000; padding: 0.55rem 0.4rem; text-align: left; }
.read-body time { font-family: "Poiret One", sans-serif; letter-spacing: 0.12em; font-size: 0.85rem; }

/* 侧栏 */
.side {
  position: sticky;
  top: 110px;
  border-top: 4px solid #000;
  padding-top: 0.9rem;
}
.side h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.subtitle {
  margin: 0.35rem 0 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  opacity: 0.65;
}
.toc {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
}
.toc li a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid #000;
  font-size: 0.94rem;
  color: #000;
  text-decoration: none;
}
.toc li a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: "Poiret One", sans-serif;
  letter-spacing: 0.14em;
  margin-right: 0.65rem;
  opacity: 0.55;
}
.toc li a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* 页脚 */
.foot {
  margin-top: clamp(2rem, 6vw, 4rem);
  background: #000;
  color: #fff;
  padding: clamp(2.2rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem) 1.6rem;
}
.foot-cta a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  border-bottom: 5px solid #fff;
  padding-bottom: 0.14rem;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 2rem;
}
.foot-cols dl { margin: 0; }
.foot-cols dt {
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
  margin-bottom: 0.7rem;
}
.foot-cols dd { margin: 0; font-size: 0.94rem; }
.foot-cols a {
  display: inline-block;
  padding: 0.7rem 0;
  color: #fff;
  text-decoration: none;
}
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.copy {
  margin: 2.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.to-top:hover { background: #000; color: #fff; }

@media (max-width: 900px) {
  .bar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "b b"
      "l r";
    gap: 0 0.6rem;
    padding: 0.3rem 1rem 0.4rem;
  }
  .brand { grid-area: b; border-bottom: 1px solid #000; padding: 0.45rem 0; }
  .nav-l { grid-area: l; }
  .nav-r { grid-area: r; justify-content: flex-end; }
  .nav { font-size: 0.88rem; gap: 0 0.75rem; }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    padding: 2rem 1.1rem 4rem;
    gap: 1rem;
  }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .fig-a, .fig-b {
    position: static;
    width: auto;
    box-shadow: none;
    transform: none;
  }
  .fig-a { transform: rotate(-2deg) translateY(var(--py)); }
  .fig-b { transform: rotate(2deg) translateY(var(--py)); }

  .read { grid-template-columns: 1fr; }
  .read-body > div { scroll-margin-top: 130px; }
  .side {
    position: static;
    order: 2;
    border-top: 1px solid #000;
    padding-top: 1rem;
    margin-top: 1.6rem;
  }
}

@media (max-width: 700px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .copy { letter-spacing: 0.12em; }
}

@media (max-width: 420px) {
  .foot-cols { grid-template-columns: 1fr; }
  .nav a { padding: 0.68rem 0; }
  .to-top { bottom: 0.75rem; right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .fig-a, .fig-b { transform: none; }
}

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