:root {
  --bg: #f3efe6;
  --bg-soft: #fffaf2;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --ink: #1c2a2f;
  --ink-soft: #56696d;
  --line: rgba(28, 42, 47, 0.12);
  --accent: #d46a3f;
  --accent-deep: #9e3f1d;
  --accent-cool: #2f7a78;
  --shadow: 0 24px 70px rgba(41, 50, 51, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC", serif;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(212, 106, 63, 0.22), transparent 24rem),
    radial-gradient(circle at right 10%, rgba(47, 122, 120, 0.18), transparent 28rem),
    linear-gradient(180deg, #f8f3ea 0%, #efe5d8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-header,
.site-footer,
.hero-card,
.feature-post,
.post-card,
.article-shell,
.term-card,
.section-head {
  backdrop-filter: blur(12px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand strong,
h1,
h2,
h3 {
  font-family: var(--font-display);
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
  box-shadow: 0 0 0 10px rgba(212, 106, 63, 0.12);
}

.top-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-nav a,
.feature-link,
.pager a,
.article-footer a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-nav a:hover,
.feature-link:hover,
.pager a:hover,
.article-footer a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.page-main {
  display: grid;
  gap: 24px;
}

.hero-card,
.feature-post,
.section-head,
.article-shell {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  padding: 36px;
  border-radius: 36px;
}

.hero-copy h1,
.section-head h1,
.article-head h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-text,
.section-copy,
.card-summary,
.article-meta,
.site-footer,
.hero-panel p,
.article-body {
  color: var(--ink-soft);
}

.hero-text {
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-stats,
.article-meta,
.tag-row,
.pager,
.term-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats span,
.tag-row span,
.article-meta span,
.term-card span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 122, 120, 0.09);
  border: 1px solid rgba(47, 122, 120, 0.1);
  font-size: 0.88rem;
}

.hero-art {
  min-height: 240px;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: end;
}

.hero-orb {
  position: absolute;
  inset: 0 auto auto 16px;
  width: min(20vw, 220px);
  aspect-ratio: 1;
  border-radius: 34% 66% 65% 35% / 42% 38% 62% 58%;
  background: linear-gradient(180deg, rgba(212, 106, 63, 0.95), rgba(47, 122, 120, 0.84));
  filter: saturate(0.9);
}

.hero-panel {
  width: min(100%, 270px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(20, 35, 40, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 248, 240, 0.86);
  line-height: 1.7;
}

.feature-post,
.section-head {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
}

.feature-post {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.feature-post h2,
.post-card h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.18;
}

.meta-line,
.card-date {
  margin: 0 0 12px;
  color: var(--accent-cool);
  font-size: 0.92rem;
}

.post-grid,
.term-grid {
  display: grid;
  gap: 20px;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.term-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.post-card {
  min-height: 220px;
}

.article-shell {
  padding: 40px;
  border-radius: 36px;
}

.article-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  padding-top: 32px;
  font-size: 1.05rem;
  line-height: 1.95;
}

.article-body h2,
.article-body h3 {
  color: var(--ink);
  margin-top: 2.4em;
}

.article-body pre {
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: #1f2a30;
  color: #f5efe7;
}

.article-body blockquote {
  margin: 1.6rem 0;
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(212, 106, 63, 0.06);
}

.article-footer {
  padding-top: 24px;
}

.term-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.term-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pager {
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.site-footer {
  margin-top: 8px;
  padding: 18px 24px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
  .hero-card,
  .feature-post,
  .post-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .feature-post {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header,
  .hero-card,
  .feature-post,
  .section-head,
  .article-shell {
    padding: 20px;
  }

  .site-header {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy h1,
  .section-head h1,
  .article-head h1 {
    font-size: 2.4rem;
  }
}
