@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --ink: #0C1210;
  --deep: #16211D;
  --lime: #8FD14F;
  --text: #E9F1E7;
  --muted: #9CB2A2;
  --line: rgba(143, 209, 79, .2);
  --hair: rgba(143, 209, 79, .12);
  --glass: rgba(22, 33, 29, .56);
  --sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  padding-bottom: 138px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 顶部进度 */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 90;
  background: rgba(143, 209, 79, .12);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(143, 209, 79, .7);
}

/* 首屏 */
.scene {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  perspective: 1px;
  border-bottom: 1px solid var(--line);
}

.scene-media {
  position: absolute;
  inset: -8% 0 -14% 0;
  margin: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(143, 209, 79, .18), transparent 60%),
    linear-gradient(160deg, var(--deep), var(--ink) 70%);
}

.scene-media .media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06);
  transform: translate3d(0, calc(var(--sy, 0) * -0.16px), 0) scale(1.06);
  will-change: transform;
}

.scene-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 16, .62) 0%, rgba(12, 18, 16, .18) 38%, rgba(12, 18, 16, .92) 88%),
    linear-gradient(90deg, rgba(12, 18, 16, .7), transparent 62%);
}

.scene-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 60rem;
  padding: 5rem 1.15rem 5.5rem;
  text-align: right;
}

.scene-copy h1 {
  margin: 0 0 .55rem;
  font-size: clamp(2rem, 7.2vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -.012em;
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}

.scene-copy p {
  margin: 0 auto;
  max-width: 33rem;
  color: #C9D8C6;
  font-weight: 300;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .6);
}

.scene-slash {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  height: 46px;
  background: linear-gradient(90deg, var(--lime), rgba(143, 209, 79, .55));
  clip-path: polygon(0 100%, 100% 6%, 100% 100%);
  z-index: 1;
  opacity: .9;
}

/* 正文 */
.story { padding: 0 1.1rem; }

.story > section { max-width: 56rem; margin: 0 auto; }

.story > section:not(.plate) {
  position: relative;
  margin: 1.35rem auto;
  padding: 1.5rem 1.15rem 1.7rem 1.35rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  backdrop-filter: blur(12px) saturate(1.06);
  border: 1px solid var(--line);
  border-radius: 0;
  scroll-margin-top: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.story > section:not(.plate)::before {
  content: "";
  position: absolute;
  left: 0; top: 1.5rem; bottom: 1.7rem;
  width: 3px;
  background: linear-gradient(180deg, var(--lime), rgba(143, 209, 79, .1));
}

.story small {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--lime);
}

.story h2 {
  margin: .1rem 0 .75rem;
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  line-height: 1.34;
  letter-spacing: -.008em;
  font-weight: 600;
}

.story h3 {
  margin: 1.2rem 0 .4rem;
  font-size: clamp(1.1rem, 3.6vw, 1.28rem);
  line-height: 1.4;
  color: #DDEBD8;
}

.story p { margin: .55rem 0 .9rem; color: #DCE7DA; }

.story ul, .story ol {
  margin: .6rem 0 1rem;
  padding-left: 1.15rem;
  color: #D3E1D0;
}

.story li { margin: .3rem 0; }
.story strong { color: #F2F9EF; font-weight: 600; }
.story a { color: var(--lime); border-bottom: 1px solid var(--hair); }
.story a:hover { border-bottom-color: var(--lime); }

/* 影像层 */
.plate {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 1.9rem auto 1rem;
  max-width: 56rem;
}

.plate .layer {
  position: relative;
  margin: 0;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--deep), var(--ink) 75%);
}

.plate .layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, rgba(12, 18, 16, .1), rgba(12, 18, 16, .78));
  pointer-events: none;
}

.plate .layer .media-img {
  width: 100%;
  height: clamp(210px, 34vh, 320px);
  object-fit: cover;
  transform: translate3d(0, calc(var(--sy, 0) * -0.05px), 0) scale(1.1);
  will-change: transform;
  transition: filter .5s ease;
}

.plate .layer:hover .media-img { filter: saturate(1.18) brightness(1.05); }

.plate-end { margin-bottom: 2rem; }
.plate-end .layer { min-height: 150px; }

/* 侧栏 */
.rail {
  align-self: start;
  padding: 1rem .95rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(22, 33, 29, .62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail small { margin-bottom: .25rem; }

.rail h2 {
  margin: 0 0 .7rem;
  font-size: 1.02rem;
  letter-spacing: .04em;
  font-weight: 600;
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .1rem .6rem;
}

.rail a {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .25rem .1rem;
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--hair);
  transition: color .25s ease, padding-left .25s ease;
}

.rail a:hover, .rail a:focus-visible {
  color: var(--text);
  padding-left: .3rem;
}

.num {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--lime);
  opacity: .85;
}

/* 页脚 */
footer {
  display: grid;
  gap: .7rem;
  margin-top: 2.4rem;
  padding: 1.5rem 1.15rem 2.2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(22, 33, 29, .5));
}

footer p { margin: 0; max-width: 56rem; }

.f-mark {
  display: block;
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--lime);
  margin-bottom: .3rem;
}

.f-note { display: block; color: var(--muted); font-size: .95rem; line-height: 1.7; }

.f-links {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .95rem;
  font-size: 1rem;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}

.f-links a:hover { color: var(--lime); border-bottom-color: var(--lime); }

footer small {
  display: block;
  padding-top: .8rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: rgba(156, 178, 162, .75);
}

/* 底部固定条 + 全屏菜单 */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(12, 18, 16, .84);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid var(--line);
  transition: background .3s ease;
}

.dock-bar {
  order: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .85rem;
  border-top: 1px solid var(--hair);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .3rem .2rem;
  font-family: var(--mono);
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--text);
  flex: 0 1 auto;
  min-width: 0;
}

.brand .mark { color: var(--lime); }
.brand .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 34vw;
}
.brand:hover .name { color: var(--lime); }

.find { flex: 1 1 auto; min-width: 0; }

.find input {
  width: 100%;
  min-height: 42px;
  padding: .35rem .7rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: rgba(22, 33, 29, .85);
  border: 1px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.find input::placeholder {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
}

.burger {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lime);
  transition: transform .3s ease;
}

.dock.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.dock.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.dock-nav {
  order: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hair);
}
.dock-nav::-webkit-scrollbar { display: none; }

.dock-nav ul {
  display: flex;
  gap: .1rem;
  margin: 0;
  padding: 0 .5rem;
  list-style: none;
}

.dock-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .3rem .6rem;
  font-size: 1rem;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .22s ease, border-color .22s ease;
}

.dock-nav a:hover, .dock-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--lime);
}

.dock-nav li[hidden] { display: none; }

.dock.open {
  top: 0;
  background: rgba(12, 18, 16, .975);
  border-top: 0;
}

.dock.open .dock-bar { order: 0; border-top: 0; padding: .7rem .85rem; }

.dock.open .dock-nav {
  order: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.dock.open .dock-nav ul {
  flex-direction: column;
  padding: 1.1rem .9rem 3rem;
  gap: .05rem;
}

.dock.open .dock-nav a {
  width: 100%;
  min-height: 54px;
  font-size: 1.15rem;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--hair);
  border-left: 2px solid transparent;
  padding-left: .8rem;
}

.dock.open .dock-nav a:hover,
.dock.open .dock-nav a:focus-visible {
  border-bottom-color: var(--hair);
  border-left-color: var(--lime);
  background: rgba(143, 209, 79, .06);
}

/* 滚动揭示 */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* 桌面 */
@media (min-width: 760px) {
  body { padding-bottom: 128px; }

  .scene-copy { padding: 7rem 2rem 6rem; }
  .story { padding: 0 1.6rem; }

  .story > section:not(.plate) { padding: 2rem 2rem 2.1rem 2.2rem; margin: 1.7rem auto; }

  .plate { grid-template-columns: minmax(0, 1fr) 244px; gap: 1.2rem; align-items: start; }
  .plate-end { display: block; }

  .rail { position: sticky; top: 1.2rem; }
  .rail ul { grid-template-columns: 1fr; }

  footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem 2rem;
    padding: 2rem 1.6rem 2.4rem;
  }
  footer small { grid-column: 1 / -1; }
  .f-links { justify-content: flex-end; }

  .dock .dock-nav ul { justify-content: flex-start; }
}

@media (min-width: 1100px) {
  .scene-copy { padding: 9rem 3rem 7rem; }
  .dock-nav a { padding: .3rem .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .scene-media .media-img, .plate .layer .media-img { transform: none !important; }
}

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