:root {
  --bg: #f4ede1;
  --paper: rgba(255, 250, 242, 0.82);
  --paper-strong: rgba(255, 248, 238, 0.96);
  --ink: #1f2430;
  --muted: #6c665e;
  --accent: #b55233;
  --accent-deep: #7f3621;
  --line: rgba(31, 36, 48, 0.1);
  --shadow: 0 24px 60px rgba(88, 57, 24, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(205, 119, 74, 0.2), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(99, 127, 108, 0.22), transparent 30%),
    linear-gradient(180deg, #f9f3e9 0%, #f4ede1 45%, #efe5d6 100%);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 244, 226, 0.96), rgba(247, 230, 214, 0.88)),
    #fff;
  box-shadow: var(--shadow);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.hero__glow--one {
  top: -36px;
  right: 120px;
  width: 240px;
  height: 240px;
  background: rgba(181, 82, 51, 0.16);
}

.hero__glow--two {
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  background: rgba(78, 118, 93, 0.18);
}

.eyebrow,
.sidebar-head__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
#reader-title,
.nav-link__title {
  font-family: Georgia, "Songti SC", "STSong", serif;
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.hero__intro {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero__meta,
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__meta span,
.reader-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(31, 36, 48, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel--sticky {
  position: sticky;
  top: 24px;
  padding: 22px 18px 18px;
}

.panel--reader {
  min-height: 760px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 248, 238, 0.92));
}

.sidebar-head h2 {
  margin: 10px 0 0;
  font-size: 1.8rem;
}

.panel__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.article-nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.nav-link {
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  transform: translateY(-2px);
  border-color: rgba(181, 82, 51, 0.32);
  background: rgba(255, 251, 246, 0.94);
  box-shadow: 0 12px 30px rgba(127, 54, 33, 0.08);
}

.nav-link__title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.45;
}

.nav-link__meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.reader-head__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#reader-title {
  margin: 12px 0 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.15;
}

.reader-body {
  margin-top: 24px;
  color: #312c26;
  font-size: 1.02rem;
  line-height: 1.95;
}

.reader-body p {
  margin: 0 0 18px;
}

.reader-body p:last-child {
  margin-bottom: 0;
}

.footer {
  margin-top: 26px;
  padding: 24px 8px 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.footer a {
  color: var(--accent-deep);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--sticky {
    position: static;
  }

  .panel--reader {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .hero,
  .panel--sticky,
  .panel--reader {
    padding: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    line-height: 1.05;
  }

  .nav-link__title {
    font-size: 1.08rem;
  }
}
