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

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

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

body {
  margin: 0;
  padding-bottom: 8rem;
  background: #fff;
  color: #000;
  font-family: "Rubik", "Outfit", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1rem; }

:where(h1, h2, h3, h4) {
  margin: 0;
  font-family: "Outfit", "Rubik", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* ==== hero ==== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1240px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 8rem) clamp(1.1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero > * { min-width: 0; }

.hero__title {
  font-size: clamp(3rem, 8vw, 8rem);
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.hero__lead {
  max-width: 36ch;
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero__media {
  position: relative;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border: 2px solid #000;
  border-radius: 10px;
  background: #000;
  overflow: hidden;
  box-shadow: 14px 14px 0 #000;
}

.hero__img { width: 100%; height: 100%; object-fit: cover; }

.hero__wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.hero__wave span {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 8px;
  background: #fff;
  border-radius: 2px;
  transform-origin: bottom;
  animation: pulse 2.6s ease-in-out infinite alternate;
}

.hero__wave span:nth-child(3n) { animation-duration: 3.4s; }
.hero__wave span:nth-child(4n) { animation-duration: 2s; }
.hero__wave span:nth-child(5n) { animation-duration: 3.9s; }

@keyframes pulse {
  from { transform: scaleY(0.6); }
  to { transform: scaleY(1); }
}

.hero__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  max-width: calc(100% - 1.8rem);
  padding: 0.3rem 0.9rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ==== body grid ==== */
.body {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5rem);
}

.rail {
  position: sticky;
  top: 1.5rem;
  min-width: 0;
  padding: 1.1rem 1.1rem 1.3rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.rail__title {
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 700;
  border-bottom: 3px solid #000;
  padding-bottom: 0.45rem;
}

.rail__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  margin: 0.6rem 0 0;
}

.rail__list dt { margin: 0; min-width: 0; }

.rail__list dt a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #000;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.rail__list dt a:hover { background: #000; color: #fff; }

.rail__list dd {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000;
  opacity: 0.55;
}

/* ==== prose ==== */
.prose {
  counter-reset: sec;
  min-width: 0;
  max-width: 72ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose section[id] {
  counter-increment: sec;
  scroll-margin-top: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 2px solid #000;
  min-width: 0;
}

.prose section[id]:first-of-type { border-top: 0; padding-top: 0; }

.prose section[id]::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.8rem;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.prose h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

.prose h2 > span {
  display: inline-block;
  border-bottom: 0.1em solid #000;
  padding-bottom: 0.04em;
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
}

.prose h3 > span { display: inline-block; }

.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }

.prose a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { font-weight: 700; }

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 6px solid #000;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.prose figure { margin: 1.6rem 0; max-width: 100%; }
.prose figcaption { font-size: 0.9rem; margin-top: 0.5rem; }

.prose img,
.prose video,
.prose iframe,
.prose svg {
  max-width: 100%;
  height: auto;
}

.prose img {
  border: 2px solid #000;
  border-radius: 10px;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  border: 1px solid #000;
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.prose pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.9rem 1rem;
  border: 2px solid #000;
  border-radius: 10px;
  margin: 1.4rem 0;
}

.prose pre code { display: block; max-width: 100%; overflow-wrap: normal; word-break: normal; }
.prose code { overflow-wrap: anywhere; }

.prose hr { border: 0; border-top: 2px solid #000; margin: 2rem 0; }

/* ==== footer ==== */
.foot {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.1rem, 5vw, 4rem) 1.4rem;
  border-top: 2px solid #000;
}

.foot__col { min-width: 0; }

.foot__h {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.foot__h > span {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 3px solid #000;
}

.foot__brand {
  margin: 0;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.foot__nav dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.1rem;
  margin: 0;
}

.foot__nav dt { margin: 0; min-width: 0; }

.foot__nav dt a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid #000;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot__nav dt a:hover { background: #000; color: #fff; }
.foot__nav dd { display: none; }

.foot__col--more a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid #000;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.foot__col--more a:hover { background: #000; color: #fff; }

.foot__bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  padding-top: 1.1rem;
  border-top: 2px solid #000;
  font-size: 0.95rem;
  min-width: 0;
}

.foot__copy { font-weight: 700; letter-spacing: 0.02em; overflow-wrap: anywhere; }

.foot__bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.2rem;
  font-weight: 600;
  text-decoration: none;
}

/* ==== dock ==== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #000;
  color: #fff;
  border-top: 2px solid #000;
  padding: 0.35rem clamp(0.6rem, 4vw, 2rem) calc(0.35rem + env(safe-area-inset-bottom));
}

.dock__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
  max-width: 1240px;
  margin: 0 auto;
}

.dock__left {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
}

.dock__right {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 0.15rem;
}

.dock__nav dt { margin: 0; min-width: 0; }
.dock__nav dd { display: none; }
.dock__more dl { display: none; }

.dock a,
.dock summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.55rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.dock a:hover,
.dock summary:hover { background: #fff; color: #000; }

.dock__brand {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.dock__more { position: relative; }
.dock__more summary { list-style: none; }
.dock__more summary::-webkit-details-marker { display: none; }
.dock__more summary::after { content: "▴"; margin-left: 0.35rem; font-size: 0.7rem; }

.dock__more > dl {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  display: grid;
  min-width: 10.5rem;
  max-width: calc(100vw - 1.2rem);
  margin: 0;
  padding: 0.35rem;
  background: #000;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.dock__more > dl dt a { min-height: 42px; width: 100%; white-space: normal; }

/* ==== motion ==== */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero__title, .hero__lead, .hero__media {
  animation: rise 0.55s ease-out both;
}

.hero__lead { animation-delay: 0.08s; }
.hero__media { animation-delay: 0.16s; }

.rail__list dt, .foot__nav dt, .foot__col--more a {
  animation: rise 0.45s ease-out both;
}

.rail__list dt:nth-child(n+1) { animation-delay: 0.04s; }
.rail__list dt:nth-child(2) { animation-delay: 0.08s; }
.rail__list dt:nth-child(3) { animation-delay: 0.12s; }
.rail__list dt:nth-child(4) { animation-delay: 0.16s; }
.rail__list dt:nth-child(5) { animation-delay: 0.2s; }
.rail__list dt:nth-child(6) { animation-delay: 0.24s; }
.rail__list dt:nth-child(7) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title, .hero__lead, .hero__media,
  .rail__list dt, .foot__nav dt, .foot__col--more a,
  .hero__wave span { animation: none; }
}

/* ==== breakpoints ==== */
@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
  .rail__list dd { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__col--more { grid-column: 1 / -1; }
  .foot__col--more a { display: inline-block; margin-right: 1.5rem; border-bottom: 1px solid #000; }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(2.5rem, 11vw, 4rem);
  }
  .hero__media { aspect-ratio: 16 / 10; box-shadow: 8px 8px 0 #000; }
  .hero__title { font-size: clamp(2.5rem, 11.5vw, 4.2rem); }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { padding-bottom: 10.5rem; }

  .dock__nav { flex-wrap: wrap; row-gap: 0; }
  .dock__brand {
    order: -1;
    flex: 0 0 100%;
    justify-content: center;
    min-height: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid #3a3a3a;
    font-size: 1.05rem;
  }
  .dock__left { flex: 1 1 auto; justify-content: space-around; }
  .dock__right { flex: 0 0 auto; }
  .dock a, .dock summary { padding: 0.5rem 0.35rem; font-size: 0.95rem; }
  .dock__more > dl { right: auto; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 380px) {
  .dock a, .dock summary { font-size: 0.9rem; padding: 0.5rem 0.25rem; }
  .dock__brand { font-size: 1rem; }
  .prose th, .prose td { padding: 0.45rem 0.4rem; }
}

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