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

:root {
  --red: #FF3B30;
  --ink: #111111;
  --cream: #F5F1E8;
  --paper: #FFFFFF;
  --soft: #565656;
  --line: 3px solid var(--ink);
  --r: 28px;
  --shadow: 10px 10px 0 var(--ink);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.62;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 14px; }
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; font-size: 16px; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 120;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; }

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--cream);
  border-bottom: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  max-width: 62%;
}

.brand__name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand__mark {
  flex: none;
  width: 24px;
  height: 24px;
  background: var(--red);
  border: 2.5px solid var(--ink);
  display: inline-block;
  object-fit: cover;
}

.top__act {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.top__contact,
.burger,
.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.burger {
  background: var(--red);
  color: #fff;
  letter-spacing: 0.06em;
}

.top__contact:hover,
.top__contact:focus-visible { background: var(--ink); color: var(--cream); }
.burger:hover,
.burger:focus-visible { background: var(--ink); color: var(--cream); }

/* 全屏菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 32px;
  background: var(--red);
  color: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }

.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid rgba(245, 241, 232, 0.5);
}

.menu__brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.menu__close {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

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

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 56px;
  padding: 10px 6px;
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(24px, 6.6vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  border-bottom: 2px solid rgba(245, 241, 232, 0.35);
  transition: color 0.16s ease, transform 0.16s ease;
}

.menu__nav a:hover,
.menu__nav a:focus-visible {
  color: var(--ink);
  transform: translateX(6px);
}

.menu__nav .idx {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.menu__nav li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.menu.is-open .menu__nav li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 38ms);
}

/* 主区 */
.main { display: block; }
.sheet { display: block; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 26px;
  min-height: 45vh;
  padding: 34px 20px 30px;
  border-bottom: var(--line);
}

.hero__text { text-align: center; }

.hero__h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin: 16px auto 0;
  max-width: 36ch;
  font-size: 17px;
  color: var(--soft);
}

.hero__art {
  position: relative;
  min-height: 210px;
  background: var(--red);
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.hero__block {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(17, 17, 17, 0.16) 14px 16px),
    var(--red);
}

.badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: 78%;
  padding: 7px 14px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-4deg);
}

/* 版心：左栏 + 正文 */
.stage {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 64px;
}

.rail {
  position: sticky;
  top: 84px;
  padding: 16px 14px 18px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink);
}

.rail__cap,
.foot__cap {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.rail__cap { color: var(--soft); }

.rail__nav ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.rail__nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rail__nav .idx {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

.rail__nav a:hover,
.rail__nav a:focus-visible,
.rail__nav a[aria-current="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* 正文 */
.prose {
  min-width: 0;
  padding: 30px 24px 40px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: 12px 12px 0 var(--red);
}

.prose article[id] { scroll-margin-top: 92px; }

.prose > article + article {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 2px dashed rgba(17, 17, 17, 0.28);
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.14;
}

.prose h2 span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 6px solid var(--red);
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.25;
}

.prose h3 span { box-shadow: inset 0 -0.42em 0 rgba(255, 59, 48, 0.28); }

.prose p,
.prose li { max-width: 68ch; }

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.prose li { margin: 6px 0; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.prose a:hover { background: rgba(255, 59, 48, 0.16); }

.prose strong { font-weight: 700; background: rgba(255, 59, 48, 0.18); }

.prose blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 6px solid var(--red);
  background: var(--cream);
  border-radius: 0 16px 16px 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 0 0 18px; }
.prose figcaption { font-size: 16px; color: var(--soft); margin-top: 6px; }
.prose img { display: block; height: auto; border: 2.5px solid var(--ink); border-radius: 20px; }

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}
.prose th,
.prose td { border: 2px solid var(--ink); padding: 9px 11px; text-align: left; }
.prose th { background: var(--cream); }

.prose hr { height: 3px; border: 0; background: var(--ink); margin: 26px 0; }

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 36px 20px 48px;
  background: var(--ink);
  color: var(--cream);
  border-top: 8px solid var(--red);
}

.foot__mark span {
  display: block;
  font-size: clamp(28px, 6vw, 62px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.foot__nav ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
}

.foot__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid rgba(245, 241, 232, 0.22);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.foot__nav a:hover,
.foot__nav a:focus-visible { color: var(--red); border-color: var(--red); }

.foot__copy {
  text-align: center;
  font-size: 16px;
  color: rgba(245, 241, 232, 0.82);
  padding-top: 4px;
}

.foot__top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2.5px solid var(--cream);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.foot__top a:hover,
.foot__top a:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

/* 滚动揭示 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* 窄屏 */
@media (max-width: 900px) {
  .stage { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .prose { box-shadow: 8px 8px 0 var(--red); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__mark { grid-column: 1 / -1; }
  .foot__copy { text-align: left; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 24px 16px 26px;
  }
  .hero__text { text-align: center; }
  .hero__art,
  .hero__img,
  .hero__block { min-height: 170px; }
  .stage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px 48px;
  }
  .rail { position: static; box-shadow: 5px 5px 0 var(--ink); padding: 14px 12px; }
  .rail__nav ol { grid-template-columns: 1fr 1fr; gap: 4px; }
  .rail__nav a { font-size: 16px; padding: 8px 9px; }
  .prose { padding: 22px 16px 30px; box-shadow: 6px 6px 0 var(--red); }
  .foot { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px 40px; }
  .foot__nav ol { grid-template-columns: 1fr 1fr; }
  .foot__top { grid-row: 4; }
}

@media (max-width: 420px) {
  .brand { font-size: 15px; max-width: 46%; }
  .top__contact { padding: 0 11px; font-size: 15px; }
  .burger { padding: 0 12px; }
  .hero__h1 { font-size: clamp(30px, 9.4vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .menu__nav li { opacity: 1; transform: none; }
}

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