@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --ink: #111111;
  --red: #E2401B;
  --paper: #F5F1E8;
  --line: rgba(17, 17, 17, 0.16);
  --glass: rgba(255, 255, 255, 0.55);
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 28px;
  --pad: clamp(18px, 4vw, 32px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

a:hover {
  opacity: 0.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1em;
}

menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dt,
dd {
  margin: 0;
}

hr {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 14px 0 20px;
}

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

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px var(--pad);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--ink);
}

.mark-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 19px;
  font-weight: 800;
}

.topbar-fill {
  display: block;
  min-height: 1px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.cta:hover {
  opacity: 1;
  background: var(--ink);
  color: var(--paper);
}

/* 汉堡 + 全屏遮罩菜单 */
.drawer {
  position: relative;
}

.burger {
  position: relative;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.burger::-webkit-details-marker {
  display: none;
}

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

.burger-bar {
  display: block;
  width: 18px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  height: 10px;
}

.drawer[open] .burger {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--paper);
}

.drawer-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 88px clamp(20px, 8vw, 120px) 40px;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  animation: drop 180ms ease both;
}

.drawer-menu li a {
  display: block;
  min-height: 52px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.18);
  color: var(--paper);
  font-size: clamp(1.25rem, 4.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.drawer-menu li a:hover {
  color: var(--red);
  opacity: 1;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  min-height: 70vh;
  padding: clamp(26px, 6vw, 64px) var(--pad) clamp(34px, 7vw, 72px);
  border-bottom: 2px solid var(--ink);
}

.hero-band {
  position: absolute;
  right: -14%;
  bottom: -34%;
  width: 130%;
  height: 46%;
  background: var(--red);
  opacity: 0.14;
  transform: skewY(-6deg);
  transform-origin: 100% 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 30ch;
}

.hero-title {
  font-size: clamp(2.1rem, 6.8vw, 4.3rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.45em;
}

.hero-lede {
  max-width: 34ch;
  font-size: 1.03rem;
  color: rgba(17, 17, 17, 0.78);
  margin: 0;
}

.art-slot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 22px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: background-color 500ms ease, border-color 500ms ease;
}

.art-slot.tone-1 {
  border-color: var(--red);
}

.art-slot.tone-2 {
  background: rgba(226, 64, 27, 0.12);
}

.art-slot.tone-3 {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.8);
}

.hero-art {
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
}

/* 正文骨架 */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: clamp(22px, 4vw, 52px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 62px) var(--pad) 72px;
}

.prose {
  min-width: 0;
}

.prose section {
  scroll-margin-top: 96px;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding: clamp(20px, 3.2vw, 36px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.prose section:nth-child(even) {
  border-color: rgba(17, 17, 17, 0.55);
}

.prose h2 {
  font-size: clamp(1.35rem, 3.1vw, 1.85rem);
  margin-bottom: 0.25em;
}

.prose h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.32rem);
  margin: 1.1em 0 0.4em;
}

.prose p,
.prose li {
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose img {
  border-radius: 18px;
  margin: 1em 0;
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 6px solid var(--red);
  background: rgba(226, 64, 27, 0.08);
  border-radius: 0 14px 14px 0;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  border: 1.5px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

.prose th {
  background: rgba(226, 64, 27, 0.1);
  font-weight: 700;
}

/* 右侧栏 */
.rail {
  position: sticky;
  top: 88px;
  padding-top: 12px;
  border-top: 8px solid var(--red);
}

.rail-title {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.rail hr {
  border-top: 1.5px solid var(--line);
  margin: 10px 0 8px;
}

.rail-list li a {
  display: block;
  min-height: 40px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.rail-list li a:hover {
  color: var(--red);
  opacity: 1;
}

/* 页脚 */
.foot {
  border-top: 6px solid var(--red);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 6vw, 62px) var(--pad) 22px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}

.foot-word {
  margin: 0 0 10px;
  font-size: clamp(2rem, 8.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.foot-desc {
  max-width: 32ch;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(245, 241, 232, 0.72);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.foot-cols dt {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.foot-cols dd a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  color: var(--paper);
  font-size: 0.92rem;
}

.foot-cols dd a:hover {
  color: var(--red);
  opacity: 1;
}

.copy {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 241, 232, 0.25);
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.68);
}

/* 断点 */
@media (max-width: 980px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .prose section {
    scroll-margin-top: 84px;
  }
  .rail {
    position: static;
  }
  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 30px;
  }
  .hero-copy {
    max-width: none;
  }
  .art-slot {
    max-width: 300px;
    order: 2;
  }
  .hero-lede {
    max-width: none;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta {
    padding: 9px 15px;
    font-size: 0.88rem;
  }
  .burger {
    padding: 8px 13px;
  }
  .burger-txt {
    font-size: 0.88rem;
  }
  .drawer-menu {
    justify-content: flex-start;
    padding-top: 96px;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
  }
  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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