@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 {
  --red: #E8452C;
  --yellow: #F7C948;
  --ink: #1F2933;
  --cream: #FFF6E7;
  --paper: #FFFFFF;
  --muted: #5B6672;
  --soft: #EFE2CC;
  --line: 2px solid var(--ink);
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body.menu-open { overflow: hidden; }

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

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

/* 顶部：细条 + 品牌行 */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: var(--line);
}

.ticker {
  background: var(--ink);
  color: var(--yellow);
  height: 34px;
  padding-left: 18px;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: .05em;
}

.ticker-stack { position: relative; height: 34px; overflow: hidden; }

.ticker-stack span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: tick 15s infinite;
}

.ticker-stack span:nth-child(2) { animation-delay: 5s; }
.ticker-stack span:nth-child(3) { animation-delay: 10s; }

@keyframes tick {
  0% { opacity: 0; transform: translateY(10px); }
  4% { opacity: 1; transform: none; }
  29% { opacity: 1; transform: none; }
  33% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; }
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(18px, 4.8vw, 24px);
  letter-spacing: .01em;
}

.brand:hover { color: var(--red); }

.dotmark {
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  border-radius: 2px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.burger:hover { background: var(--red); color: #fff; }
body.menu-open .burger { background: var(--ink); color: var(--yellow); }

.burger-lines { position: relative; display: inline-block; width: 18px; height: 12px; }
.burger-lines::before,
.burger-lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.burger-lines::before { top: 0; }
.burger-lines::after { bottom: 0; }

/* 全屏菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: 106px 20px 44px;
  background: var(--red);
  color: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

body.menu-open .menu { opacity: 1; visibility: visible; }

.menu-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.menu-nav li + li { border-top: 2px solid rgba(255, 255, 255, .45); }

.menu-nav a {
  display: block;
  min-height: 48px;
  padding: 13px 6px;
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(21px, 6.2vw, 30px);
  transition: color .18s ease, padding-left .18s ease;
}

.menu-nav a:hover,
.menu-nav a:focus-visible { color: var(--yellow); padding-left: 14px; }

/* 主体容器 */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
main { flex: 1 0 auto; }

.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 26px 0 0;
}

.stage h1 { font-size: clamp(28px, 7.4vw, 46px); letter-spacing: -.01em; }

.stage h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 10px;
  margin-top: 14px;
  background: var(--yellow);
}

.lede { margin: 16px 0 20px; max-width: 34em; color: var(--muted); }

.jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 2px;
  font-family: var(--head);
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}

.jump::after { content: '\2192'; }
.jump:hover { background: var(--red); color: #fff; }

.stage-art {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: var(--yellow);
  border: var(--line);
  border-radius: 2px;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.stage-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

.blk { position: absolute; }
.blk-a { top: 10px; right: 10px; width: 64px; height: 64px; background: var(--red); border-radius: 50%; }
.blk-b { left: 14px; bottom: 14px; width: 40px; height: 40px; background: var(--ink); }

.band {
  display: flex;
  height: 14px;
  margin-top: 24px;
  border-top: var(--line);
  border-bottom: var(--line);
}
.band span { flex: 1; }
.band span:nth-child(1) { background: var(--red); }
.band span:nth-child(2) { background: var(--ink); }
.band span:nth-child(3) { background: var(--yellow); }

/* 正文 + 右侧栏 */
.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 30px 0 64px;
  align-items: start;
}

.doc { min-width: 0; overflow-wrap: break-word; }

.doc > div {
  padding: 26px 0;
  border-top: 3px solid var(--ink);
  scroll-margin-top: 116px;
}

.doc > div:first-child { border-top: 0; padding-top: 0; }

.doc h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(22px, 4.6vw, 30px);
  margin-bottom: 10px;
}

.doc h2 > span { display: inline-block; padding-left: 12px; border-left: 10px solid var(--red); }

.doc h3 { font-size: clamp(19px, 3.6vw, 23px); margin-top: 22px; }
.doc h3 > span { display: inline-block; padding-bottom: 2px; border-bottom: 4px solid var(--yellow); }

.doc p { margin: 14px 0; }
.doc ul, .doc ol { margin: 14px 0; padding-left: 24px; }
.doc li { margin: 8px 0; }
.doc a { border-bottom: 2px solid var(--yellow); }
.doc a:hover { border-color: var(--red); }
.doc strong { background: var(--yellow); padding: 0 3px; }

.doc blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 10px solid var(--yellow);
}

.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 16px 0; }
.doc th, .doc td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--yellow); font-family: var(--head); }

.rail { display: grid; gap: 18px; align-content: start; }

.rail-box { padding: 16px; background: var(--paper); border: var(--line); border-radius: 2px; }
.rail-box--ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.rail-h { font-size: 18px; margin-bottom: 10px; }
.rail-h > span { display: inline-block; padding-bottom: 2px; border-bottom: 4px solid var(--yellow); }
.rail-box--ink .rail-h > span { border-color: var(--red); }

.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li + li { border-top: 2px solid var(--soft); }
.rail-box--ink .rail-list li + li { border-color: rgba(255, 246, 231, .3); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 600;
}

.rail-box--ink .rail-list a { color: var(--yellow); }
.rail-box--ink .rail-list a:hover { color: #fff; }

/* 页脚 */
.foot { flex-shrink: 0; margin-top: 12px; padding: 34px 18px 18px; background: var(--ink); color: var(--cream); }

.foot-nav { max-width: 1120px; margin: 0 auto; }
.foot-nav dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; }

.foot-nav dt a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 246, 231, .25);
}

.foot-nav dt a:hover { color: var(--yellow); border-color: var(--yellow); }

.giant {
  max-width: 1120px;
  margin: 26px auto 16px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(30px, 11vw, 84px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--yellow);
  word-break: break-word;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 246, 231, .35);
}

.foot-base address { font-style: normal; font-family: var(--head); font-weight: 600; }

.foot-base ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.foot-base ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); }
.foot-base ul a:hover { color: #fff; }

@media (min-width: 700px) {
  .foot-nav dl { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 860px) {
  .stage { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 42px; padding: 44px 0 0; }
  .stage-art { min-height: 260px; }
}

@media (min-width: 960px) {
  .panel { grid-template-columns: minmax(0, 1fr) 288px; gap: 48px; }
  .rail { position: sticky; top: 118px; }
  .stage-art { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-stack span { animation: none; }
  .ticker-stack span:first-child { opacity: 1; }
  .menu, .burger, .menu-nav a, .jump { transition: none; }
}

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