@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 {
  --ink: #000000;
  --paper: #ffffff;
  --grey: #e6e6e6;
  --r: 18px;
  --sh: 0 16px 34px rgba(0, 0, 0, 0.10);
  --display: 'Fredoka', 'Nunito', system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --text: 'Nunito', system-ui, '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(--text);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* 头部：细条 + 品牌行 + 菜单行 */
.masthead { border-bottom: 3px solid var(--ink); }

.ticker {
  margin: 0;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark {
  display: block;
  padding: 14px clamp(18px, 5vw, 48px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.menu { border-top: 1px solid var(--ink); }

.menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px clamp(18px, 5vw, 48px);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.lbl-c { display: none; }
.menu[open] .lbl-o { display: none; }
.menu[open] .lbl-c { display: inline; }

.menu[open] > summary {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 90;
  min-height: 46px;
  padding: 8px 18px;
  justify-content: center;
  letter-spacing: 0.14em;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
}
.menu[open] > summary::after { display: none; }

.menu > menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu[open] > menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: auto;
  padding: 88px clamp(18px, 6vw, 48px) 28px;
  background: var(--ink);
  color: var(--paper);
}

.menu[open] > menu li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.menu[open] > menu li:nth-child(1) { transition-delay: 0.03s; }
.menu[open] > menu li:nth-child(2) { transition-delay: 0.07s; }
.menu[open] > menu li:nth-child(3) { transition-delay: 0.11s; }
.menu[open] > menu li:nth-child(4) { transition-delay: 0.15s; }
.menu[open] > menu li:nth-child(5) { transition-delay: 0.19s; }
.menu[open] > menu li:nth-child(6) { transition-delay: 0.23s; }
.menu[open] > menu li:nth-child(7) { transition-delay: 0.27s; }

.menu[open] > menu.in li { opacity: 1; transform: none; }

.menu[open] > menu a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 4px 2px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.35rem, 6.5vw, 2rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #2b2b2b;
  transition: padding-left 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.menu[open] > menu a:hover,
.menu[open] > menu a:focus-visible {
  padding-left: 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 10px;
}

/* 巨标题区 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 45vh;
  padding: clamp(64px, 11vw, 96px) clamp(18px, 5vw, 48px) clamp(26px, 5vw, 48px);
  border-bottom: 3px solid var(--ink);
  text-align: right;
}

.badge {
  position: absolute;
  top: clamp(16px, 4vw, 32px);
  left: clamp(18px, 5vw, 48px);
  max-width: calc(100% - clamp(36px, 10vw, 96px));
  padding: 7px 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-3deg);
  box-shadow: var(--sh);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* 侧栏 + 正文 */
.stage {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px) clamp(18px, 5vw, 48px) clamp(40px, 7vw, 80px);
}

.rail {
  position: sticky;
  top: 20px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.rail-list { margin: 0; padding: 0; list-style: none; min-width: 0; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 2px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--grey);
  transition: transform 0.2s ease, padding-left 0.2s ease;
}
.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { transform: translateX(4px); padding-left: 6px; }

.longform { min-width: 0; max-width: 70ch; }

.rule {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(22px, 4vw, 34px);
  font-family: var(--display);
}
.rule::before { content: ""; flex: 1; min-width: 0; height: 6px; background: var(--ink); }
.rule figcaption { font-size: 16px; font-weight: 600; letter-spacing: 0.2em; }

.content {
  font-size: 17.5px;
  line-height: 1.78;
  overflow-wrap: break-word;
  word-break: break-word;
}

.content > article {
  padding: clamp(18px, 3.4vw, 30px);
  margin: 0 0 clamp(20px, 3.4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
  scroll-margin-top: 24px;
  min-width: 0;
}
.content > article:nth-child(even) { margin-left: clamp(0px, 4vw, 36px); }
.content > article:last-child { margin-bottom: 0; }

.content h2 {
  margin: 0 0 0.6em;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.content h3 {
  margin: 1.1em 0 0.5em;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.content h2 span, .content h3 span { display: inline-block; }

.content p { margin: 0 0 1em; }
.content ul, .content ol { padding-left: 1.25em; margin: 0 0 1em; }
.content li { margin-bottom: 0.4em; }
.content a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.content figure { margin: 1.4em 0; max-width: 100%; }
.content figcaption { font-size: 16px; color: #333; }
.content img { max-width: 100%; border-radius: 12px; }
.content pre,
.content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  font-size: 16px;
}
.content pre { padding: 14px; border: 1px solid var(--ink); border-radius: 12px; }
.content blockquote {
  margin: 1.4em 0;
  padding: 0.15em 0 0.15em 18px;
  border-left: 6px solid var(--ink);
  font-size: 1.06em;
  font-weight: 600;
}
.content strong { font-weight: 700; }

.content > article:first-of-type > p:first-of-type::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.8;
}

/* 页脚 */
.foot { margin-top: clamp(30px, 6vw, 60px); border-top: 3px solid var(--ink); }
.foot > article {
  padding: clamp(24px, 5vw, 44px) clamp(18px, 5vw, 48px);
  border-bottom: 1px solid var(--ink);
}

.cta { background: var(--ink); color: var(--paper); }
.cta h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 8.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.totop {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid var(--paper);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.totop:hover { background: var(--paper); color: var(--ink); }

.fnav h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
}
.fnav menu { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.fnav a:hover { border-bottom-color: var(--ink); }

.colo { font-size: 16px; letter-spacing: 0.06em; text-align: center; }
.colo p { margin: 0; overflow-wrap: anywhere; }

/* 滚入 */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rail { position: static; min-width: 0; max-width: 100%; padding: 14px; }
  .rail-h { margin-bottom: 8px; }
  .rail-list {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list li { flex: 0 0 auto; }
  .rail-list a {
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
    border: 1px solid var(--ink);
    border-radius: 999px;
  }
  .rail-list li:last-child a { border-bottom: 1px solid var(--ink); }
  .rail-list a:hover { transform: none; padding-left: 14px; background: var(--ink); color: var(--paper); }
  .longform { max-width: none; min-width: 0; }
  .content > article:nth-child(even) { margin-left: 0; }
}

@media (max-width: 420px) {
  .hero { min-height: 0; padding-top: 72px; }
  .badge { padding: 6px 14px; }
  .content { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .menu[open] > menu li { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

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