:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #26312f;
  --muted: #6b7572;
  --line: #dce2de;
  --brand: #315f58;
  --brand-dark: #234842;
  --soft: #e7efec;
  --warm: #f1e7d7;
  --shadow: 0 12px 30px rgba(39, 63, 57, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 222, 0.9);
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--brand);
  font-family: Georgia, serif;
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: #53615d;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-dark);
  background: var(--soft);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

main {
  flex: 1;
  min-height: 68vh;
}

.hero {
  padding: 76px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: var(--brand);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(38px, 5vw, 62px);
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-art {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #eef2ee;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: 9px;
  color: #fff;
  background: var(--brand);
  font-weight: 600;
}

.button:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--brand);
  background: transparent;
}

.section {
  padding: 54px 0;
}

.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f1f0eb;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
  font-weight: 600;
}

.section-heading p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
}

.text-link {
  flex: none;
  color: var(--brand);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(39, 63, 57, 0.035);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-image {
  width: calc(100% + 48px);
  max-width: none;
  height: 160px;
  margin: -24px -24px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  object-fit: cover;
  background: var(--soft);
}

.card[hidden] {
  display: none;
}

.card .tag,
.article-meta .tag {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 13px;
}

.card h3 {
  margin: 14px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  line-height: 1.45;
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf0ee;
  color: #7b8582;
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 22px 0;
  border-top: 2px solid var(--brand);
}

.feature strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.quote-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 42px;
  padding: 36px;
  border-radius: 18px;
  background: var(--warm);
}

.quote-box img {
  border-radius: 14px;
}

.quote-box blockquote {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  line-height: 1.7;
}

.quote-box cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
}

.page-hero {
  padding: 68px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #53615d;
  background: var(--surface);
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.search-box {
  width: min(300px, 100%);
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.search-box:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(49, 95, 88, 0.12);
}

.empty-message {
  display: none;
  padding: 40px;
  border: 1px dashed #bfc9c4;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

.notes-list {
  display: grid;
  gap: 18px;
}

.note {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note time {
  color: var(--brand);
  font-weight: 700;
}

.note h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
}

.note p {
  margin: 0;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  align-items: start;
  justify-content: space-between;
  gap: 54px;
}

.article-content {
  padding: 46px 0 70px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-cover {
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.prose {
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  line-height: 2;
}

.prose h2 {
  margin: 38px 0 12px;
  font-size: 27px;
  line-height: 1.45;
}

.prose p {
  margin: 0 0 20px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  color: #44504d;
  background: var(--soft);
}

.article-aside {
  position: sticky;
  top: 100px;
  margin-top: 46px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-aside h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.article-aside a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.article-aside a:hover {
  color: var(--brand);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: start;
  gap: 50px;
}

.profile-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.avatar {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-family: Georgia, serif;
  font-size: 36px;
}

.profile-card h2 {
  margin: 0;
  font-size: 24px;
}

.profile-card p {
  margin: 6px 0 18px;
  color: var(--muted);
}

.contact-link {
  color: var(--brand);
  font-weight: 700;
  word-break: break-all;
}

.about-copy h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.about-copy p {
  margin: 0 0 25px;
  color: #4f5c58;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.principle {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.principle strong {
  display: block;
  margin-bottom: 5px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 38px 0;
  color: #dce7e3;
  background: #263a36;
}

.site-footer h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-note {
  margin: 0;
  color: #adbfba;
  font-size: 14px;
}

.beian {
  font-size: 14px;
}

.beian a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .hero-grid,
  .quote-box,
  .about-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 620px;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-aside {
    position: static;
    margin: 0 0 50px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading,
  .filter-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .feature-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .search-box {
    width: 100%;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-box {
    padding: 24px;
  }

  .quote-box blockquote {
    font-size: 21px;
  }
}
