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

:root {
  --ink: #0F1115;
  --flame: #FF4D2E;
  --cream: #F5F2EA;
  --card: #FBF8F0;
  --line: rgba(15, 17, 21, .16);
  --line-soft: rgba(245, 242, 234, .18);
  --mute: #6E6A61;
  --disp: 'Space Grotesk', 'DM Sans', "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --text: 'DM Sans', "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px solid var(--flame);
}

.brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand:hover {
  color: var(--flame);
}

.burger {
  margin-left: auto;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream);
  background: transparent;
  border: 2px solid var(--cream);
  border-radius: 0;
  padding: 0 14px;
  min-height: 42px;
  min-width: 64px;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.burger:hover {
  background: var(--cream);
  color: var(--ink);
}

.top.open .burger {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--flame);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 0;
  transition: background-color .16s ease, color .16s ease;
}

.cta:hover {
  background: var(--cream);
  color: var(--ink);
}

/* 全屏遮罩菜单 */
.menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 67px;
  bottom: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--cream);
  padding: 22px 16px 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.top.open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(22px, 6.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid var(--line-soft);
  transition: color .16s ease, padding-left .16s ease;
}

.menu a:hover {
  color: var(--flame);
  padding-left: 12px;
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: 64px 16px 84px;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, .66);
}

.slash {
  position: absolute;
  right: -12%;
  bottom: -34px;
  width: 78%;
  height: 96px;
  background: var(--flame);
  transform: skewY(-5deg);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 18ch;
}

.lede {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.7;
  color: #E4DFD3;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 28px;
  transition: background-color .16s ease, color .16s ease;
}

.jump:hover {
  background: var(--flame);
  color: var(--ink);
}

/* 主体 */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 16px 64px;
}

article {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 88px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--card);
  padding: 18px 16px;
}

.rail-t {
  margin: 0 0 10px;
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid transparent;
  border-radius: 4px;
  transition: background-color .15s ease, border-color .15s ease;
}

.rail a:hover {
  background: var(--flame);
  border-left-color: var(--ink);
}

.prose {
  min-width: 0;
}

.kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--flame);
}

.prose h2 {
  margin: 0 0 14px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.14;
  letter-spacing: -.025em;
}

.prose h3 {
  margin: 26px 0 10px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.prose p {
  margin: 0 0 15px;
  line-height: 1.78;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--flame);
  transition: color .15s ease, border-color .15s ease;
}

.prose a:hover {
  color: var(--flame);
  border-bottom-color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 9px;
  line-height: 1.7;
}

.prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--card);
  border-left: 6px solid var(--flame);
  border-radius: 4px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.prose div {
  padding: 34px 0 10px;
  border-top: 2px solid var(--ink);
}

.prose div[id] {
  scroll-margin-top: 88px;
}

.prose div:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

/* 页脚 */
.foot {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 16px 26px;
  margin-top: 24px;
}

.mark {
  margin: 0 auto 26px;
  max-width: 1180px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(40px, 13.5vw, 112px);
  line-height: .86;
  letter-spacing: -.045em;
  color: var(--flame);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 2px solid var(--line-soft);
  padding-top: 22px;
}

.foot dl {
  margin: 0;
}

.foot dt {
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #A9A398;
  margin-bottom: 8px;
}

.foot dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #D9D4C8;
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  transition: color .15s ease;
}

.foot dd a:hover {
  color: var(--flame);
}

.copy {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 2px solid rgba(245, 242, 234, .1);
  font-size: 14px;
  color: #948E84;
}

/* 动效 */
.prose div,
.foot dd {
  transition: opacity .2s ease, transform .2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .js .prose div {
    opacity: 0;
    transform: translateY(14px);
  }

  .js .prose div.in {
    opacity: 1;
    transform: none;
  }
}

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

  .menu,
  .rail a,
  .burger,
  .cta,
  .jump,
  .prose a,
  .foot dd a {
    transition: none;
  }
}

/* 平板与手机 */
@media (max-width: 900px) {
  article {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .rail {
    position: static;
    top: auto;
    border-radius: 20px;
    padding: 14px 14px 10px;
  }

  .rail ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }

  .rail a {
    font-size: 14px;
    border-left-width: 2px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 66vh;
    padding: 52px 16px 78px;
  }

  .slash {
    height: 64px;
    bottom: -24px;
  }

  main {
    padding: 32px 16px 52px;
  }

  .prose div {
    padding-top: 28px;
  }

  .foot-grid {
    gap: 12px;
  }

  .foot dd,
  .foot dd a {
    font-size: 14px;
  }

  .mark {
    margin-bottom: 20px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 17px;
  }

  .cta {
    padding: 0 10px;
    font-size: 14px;
  }

  .burger {
    padding: 0 10px;
    min-width: 58px;
  }
}

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