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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --sun: #ffdb58;
  --ink: #000000;
  --paper: #fffdf5;
  --line: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
}

*, *::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: 'Nunito', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fredoka', 'Nunito', system-ui, 'PingFang SC', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--paper);
  border-bottom: var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 3px;
  text-decoration: none;
  background: var(--blue);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}
.mark:hover { background: var(--sun); }
.mark-pic { display: block; width: 36px; height: 36px; object-fit: cover; }
.mark-txt {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  padding: 0 7px;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--red);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.contact:hover { background: var(--sun); }

/* 锚点条 */
.dock {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sun);
  border-bottom: var(--line);
}
.dock nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dock ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: max-content;
}
.dock li { border-right: 2px solid var(--ink); }
.dock li:last-child { border-right: 0; }
.dock a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.dock a::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  background: var(--red);
  border: 2px solid var(--ink);
}
.dock a:hover, .dock a:focus-visible { background: var(--blue); }

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 54px 18px 94px;
  background: var(--blue);
}
.hero::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -3px;
  height: 26px;
  background: var(--red);
  border-top: var(--line);
  transform: skewY(-1.4deg);
  transform-origin: right bottom;
}
.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  text-align: center;
  background: rgba(255, 253, 245, 0.95);
  border: var(--line);
  box-shadow: 9px 9px 0 var(--ink);
  padding: 26px 22px 24px;
}
.hero-copy h1 {
  font-size: clamp(30px, 7.4vw, 54px);
  letter-spacing: -0.5px;
}
.hero-copy p { margin: 14px 0 20px; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  background: var(--red);
  border: var(--line);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

/* 正文骨架 */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 30px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 64px;
}

.stream {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.stream > article {
  background: rgba(255, 255, 255, 0.88);
  border: var(--line);
  box-shadow: var(--pop);
  padding: 22px 20px;
  scroll-margin-top: 80px;
  overflow-wrap: break-word;
}
.stream h2 { font-size: clamp(22px, 4.2vw, 30px); margin: 0 0 4px; }
.stream h3 { font-size: 20px; margin: 22px 0 8px; }
.stream hr { border: 0; border-top: 3px solid var(--ink); margin: 10px 0 16px; }
.stream p { margin: 0 0 14px; }
.stream ul, .stream ol { margin: 0 0 14px; padding-left: 22px; }
.stream li { margin: 0 0 8px; }
.stream a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.stream figure { margin: 0 0 14px; }
.stream img { display: block; height: auto; border: var(--line); }
.stream blockquote {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--sun);
  border: var(--line);
}
.stream blockquote p:last-child { margin: 0; }

/* 右侧栏 */
.rail {
  position: sticky;
  top: 74px;
  background: var(--sun);
  border: var(--line);
  box-shadow: var(--pop);
  padding: 16px;
}
.rail h2 { font-size: 18px; margin: 0 0 8px; }
.rail hr { border: 0; border-top: 3px solid var(--ink); margin: 0 0 14px; }
.rail ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  background: #fff;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.rail a:hover { background: var(--blue); }
.rail .totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--red);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.rail .totop:hover { background: var(--blue); }

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 26px 18px;
  background: var(--ink);
  color: var(--paper);
  border-top: var(--line);
}
.foot-brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 64px);
  line-height: 0.95;
  color: var(--sun);
  text-shadow: 4px 4px 0 var(--red);
}
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}
.foot-nav a:hover { color: var(--sun); }
.foot-copy { font-size: 16px; }

/* 动效 */
@media (prefers-reduced-motion: no-preference) {
  .reveal .stream > article,
  .reveal .rail {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal .is-in { opacity: 1; transform: none; }
}

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

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 16px 48px; }
  .rail { position: static; }
  .rail ul { flex-direction: row; flex-wrap: wrap; }
  .rail li { flex: 1 1 45%; }
  .rail a { justify-content: center; }
}

@media (max-width: 700px) {
  .foot { flex-direction: column; align-items: center; text-align: center; }
  .foot-nav ul { justify-content: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 40px 14px 78px; }
  .hero-copy { padding: 22px 16px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .dock a { padding: 0 11px; font-size: 16px; }
  .stream > article { padding: 18px 15px; }
}

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