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

:root {
  --ink: #0E2A2F;
  --ink-deep: #0A2024;
  --amber: #E8A33D;
  --paper: #F2EEE8;
  --surface: rgba(242, 238, 232, 0.05);
  --line: rgba(242, 238, 232, 0.12);
  --muted: rgba(242, 238, 232, 0.68);
  --disp: "Syne", "Manrope", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  padding-bottom: 108px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62vw 62vw at 88% -12%, rgba(232, 163, 61, 0.17), transparent 62%),
    radial-gradient(52vw 52vw at -6% 34%, rgba(232, 163, 61, 0.09), transparent 66%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 42%, #0B2327);
}

img { border: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- 底部固定条 ---- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(10, 32, 36, 0.92);
  border-top: 1px solid rgba(232, 163, 61, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.36);
}

.dock__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 16px;
}

.dock__grp {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  flex-wrap: wrap;
}

.dock__grp:first-child { justify-self: end; }
.dock__grp:last-child { justify-self: start; }

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 9px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.dock a:hover,
.dock a.is-on {
  color: var(--paper);
  background: rgba(232, 163, 61, 0.16);
  transform: translateY(-1px);
}

.dock__brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--paper) !important;
  padding: 11px 14px !important;
  white-space: nowrap;
}

.dock__cta {
  margin-left: 6px;
  background: var(--amber) !important;
  color: #10262A !important;
  font-weight: 700;
  border-radius: 999px !important;
  padding: 11px 18px !important;
}

.dock__cta:hover {
  background: #F0B056 !important;
}

/* ---- 主体骨架 ---- */
.post {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---- 首屏 ---- */
.hero {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 70vh;
  margin: 20px 0 26px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(232, 163, 61, 0.3), transparent 62%),
    linear-gradient(160deg, #123539, #0A2024);
  border-bottom: 4px solid var(--amber);
}

.hero__layers {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  perspective: 1px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero__img {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06);
  opacity: 0.72;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(66px);
  will-change: transform;
}

.hero__glow--a {
  width: 46vw;
  height: 46vw;
  left: -10vw;
  top: 4%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.55), transparent 70%);
}

.hero__glow--b {
  width: 34vw;
  height: 34vw;
  right: -6vw;
  bottom: 0;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.4), transparent 72%);
}

.hero__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  text-align: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(72px, 17vw, 226px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(242, 238, 232, 0.09);
  will-change: transform;
}

.hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 42, 47, 0.58) 0%,
    rgba(14, 42, 47, 0.24) 44%,
    rgba(14, 42, 47, 0.94) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 34px 22px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(31px, 5.2vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero__hint {
  margin: 16px 0 0;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: rgba(242, 238, 232, 0.72);
}

/* ---- 左侧栏 ---- */
.rail {
  grid-column: 1;
  grid-row: 2 / span 300;
}

.rail__box {
  position: sticky;
  top: 22px;
  padding: 20px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  border-bottom: 3px solid rgba(232, 163, 61, 0.55);
}

.rail small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.rail h2 {
  margin: 0.12em 0 0.65em;
  font-family: var(--disp);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.rail__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: r;
}

.rail__list li { counter-increment: r; }

.rail__list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 8px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.rail__list a::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--disp);
  font-size: 15px;
  color: rgba(232, 163, 61, 0.72);
  min-width: 2ch;
}

.rail__list a:hover {
  color: var(--paper);
  background: rgba(232, 163, 61, 0.14);
  padding-left: 12px;
}

.rail__cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 163, 61, 0.55);
  color: var(--amber);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rail__cta:hover {
  background: var(--amber);
  color: #10262A;
}

/* ---- 正文卡片 ---- */
.post > section:not(.hero) {
  position: relative;
  grid-column: 2;
  margin-bottom: 22px;
  padding: 30px 28px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: 24px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.post > section:not(.hero):hover {
  border-color: rgba(232, 163, 61, 0.34);
  background: rgba(242, 238, 232, 0.07);
}

.post > section:not(.hero)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 16px;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), rgba(232, 163, 61, 0));
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post > section:not(.hero):hover::after { width: 122px; }

.post > section > *:first-child { margin-top: 0; }
.post > section > *:last-child { margin-bottom: 0; }

.post h2 {
  margin: 0.5em 0 0.62em;
  font-family: var(--disp);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.26;
  letter-spacing: -0.015em;
}

.post h3 {
  margin: 1.1em 0 0.5em;
  font-family: var(--disp);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
}

.post small {
  display: block;
  margin-bottom: 0.4em;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.post p { margin: 0 0 1em; }

.post ul,
.post ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.post li { margin: 0.4em 0; }

.post a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 0.6em 0;
}

.post blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid rgba(232, 163, 61, 0.5);
  color: var(--muted);
}

/* ---- 页脚 ---- */
.foot {
  max-width: 1160px;
  margin: 8px auto 0;
  padding: 0 22px;
}

.foot__cta {
  margin-top: 32px;
  padding: 46px 22px;
  border: 1px solid rgba(232, 163, 61, 0.42);
  border-radius: 28px;
  border-bottom: 4px solid var(--amber);
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 120%, rgba(232, 163, 61, 0.24), transparent 70%),
    rgba(242, 238, 232, 0.04);
}

.foot__cta a {
  display: inline-block;
  padding: 8px 6px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 44px);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.25s ease, letter-spacing 0.25s ease, transform 0.25s ease;
}

.foot__cta a:hover {
  color: var(--amber);
  letter-spacing: 0.03em;
  transform: translateY(-2px);
}

.foot__base {
  padding: 26px 0 10px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.foot__base p { margin: 0; }

/* ---- 滚动动效 ---- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .post {
    display: block;
    padding: 0 18px;
  }

  .hero { margin: 16px 0 20px; min-height: 64vh; }

  .rail { margin: 0 0 20px; }

  .rail__box { position: static; }

  .rail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rail__list a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-height: 40px;
  }

  .rail__list a:hover { padding-left: 12px; }

  .post > section:not(.hero) {
    margin-bottom: 16px;
    padding: 24px 18px 34px;
  }

  .post > section:not(.hero)::after { left: 18px; }
}

@media (max-width: 860px) {
  body { padding-bottom: 168px; }

  .dock__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 6px 8px;
  }

  .dock__grp { display: contents; }

  .dock__brand {
    grid-column: 1 / -1;
    order: -1;
    justify-self: center;
    min-height: 0;
    padding: 6px 10px !important;
    font-size: 16px;
  }

  .dock a {
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 9px 4px;
    font-size: 16px;
    line-height: 1.2;
  }

  .dock__cta {
    margin-left: 0;
    justify-self: center;
    padding: 9px 6px !important;
    border-radius: 12px !important;
  }

  .foot { padding: 0 18px; }
  .foot__cta { padding: 36px 18px; }
}

@media (max-width: 520px) {
  .hero { min-height: 60vh; }
  .hero__inner { padding: 26px 16px; }
  .hero__hint { letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dock a,
  .post > section:not(.hero)::after,
  .foot__cta a {
    transition: none;
  }
}

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