:root {
  --ink: #241f1a;
  --muted: #786f65;
  --paper: #f6efe2;
  --paper-strong: #fffaf0;
  --line: rgba(36, 31, 26, 0.14);
  --accent: #a94626;
  --accent-strong: #7f2f18;
  --green: #496b53;
  --shadow: 0 24px 70px rgba(54, 38, 20, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(169, 70, 38, 0.2), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(73, 107, 83, 0.18), transparent 22rem),
    linear-gradient(135deg, #f8f1e6 0%, #efe4d1 48%, #f6efe2 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(36, 31, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 31, 26, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 76%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(1900px, calc(100% - 20px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1416px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 12px 36px rgba(54, 38, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-strong);
  border-radius: 50%;
  background: var(--accent);
  font-family: "ZCOOL XiaoWei", serif;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(169, 70, 38, 0.09);
}

main {
  display: grid;
  gap: 28px;
  padding-top: 26px;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(520px, 30vw, 580px);
  gap: 36px;
  height: calc(100vh - 128px);
  min-height: 620px;
  max-height: 920px;
  padding: 26px 42px;
  border: 1px solid rgba(169, 70, 38, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(246, 239, 226, 0.18), rgba(255, 250, 240, 0.88) 18%, rgba(255, 250, 240, 0.88) 82%, rgba(246, 239, 226, 0.18)),
    radial-gradient(circle at 0 32%, rgba(169, 70, 38, 0.12), transparent 28rem),
    radial-gradient(circle at 100% 38%, rgba(73, 107, 83, 0.14), transparent 30rem);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.72);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: clamp(46px, 6.2vh, 78px) clamp(44px, 3.6vw, 68px);
  overflow: hidden;
}

.eyebrow,
.profile-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 920px;
  font-size: clamp(3.9rem, min(6.35vw, 10.6vh), 7.2rem);
  letter-spacing: -0.08em;
  margin-top: clamp(18px, 3vh, 34px);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.25rem;
}

.hero-text {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.9;
}

.hello-marquee {
  width: 100%;
  margin: 22px 0 2px;
  padding: 12px 0;
  overflow: hidden;
  border-block: 1px solid rgba(169, 70, 38, 0.16);
  color: var(--accent-strong);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hello-track {
  display: flex;
  width: max-content;
  gap: 18px;
  margin-block: 7px;
  animation: hello-scroll 42s linear infinite;
}

.hello-track-b {
  animation-duration: 54s;
  animation-name: hello-scroll-offset;
}

.hello-track-c {
  animation-duration: 46s;
  animation-name: hello-scroll-deep;
}

.hello-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(169, 70, 38, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.6);
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  white-space: nowrap;
}

.hello-track strong {
  color: var(--green);
}

@keyframes hello-scroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes hello-scroll-offset {
  from {
    transform: translateX(-160px);
  }

  to {
    transform: translateX(calc(-50% - 160px));
  }
}

@keyframes hello-scroll-deep {
  from {
    transform: translateX(-320px);
  }

  to {
    transform: translateX(calc(-50% - 320px));
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(54, 38, 20, 0.13);
}

.button.primary {
  color: #fffaf0;
  border-color: transparent;
  background: var(--accent);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.68);
}

.profile-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.54);
}

.profile-card {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(36, 31, 26, 0.86), rgba(73, 107, 83, 0.8));
  color: var(--paper-strong);
}

.profile-card img {
  width: 104px;
  height: 104px;
  border: 3px solid rgba(255, 250, 240, 0.76);
  border-radius: 24px;
}

.profile-card p,
.profile-card h2 {
  margin: 0;
}

.profile-card #profileBio {
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.7;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-stats div {
  padding: 12px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.08);
}

.profile-stats dt {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.82rem;
}

.profile-stats dd {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.profile-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-extra span,
.profile-extra a {
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.88rem;
}

.contribution-card { display: grid; width: 100%; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 250, 240, 0.68); }
.contribution-card h3 { color: var(--muted); font-size: 1rem; letter-spacing: 0.04em; }
.contribution-frame { display: block; overflow: hidden; border: 1px solid rgba(36, 31, 26, 0.08); border-radius: 16px; background: #fffaf0; }
.contribution-frame img { display: block; width: 100%; min-height: 104px; object-fit: cover; object-position: left center; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card,
.post-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.62);
}

.project-card p,
.post-item p {
  color: var(--muted);
  line-height: 1.8;
}

.content-section {
  display: grid;
  gap: 12px;
  width: min(1320px, calc(100% - 36px));
  margin-inline: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.project-card {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.project-card p {
  flex: 1;
  margin: 0;
}

.project-toggle {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.54);
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.58);
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.7), rgba(255, 250, 240, 0.42)),
    rgba(255, 250, 240, 0.36);
  box-shadow: 0 18px 48px rgba(54, 38, 20, 0.1), inset 0 1px 0 rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  text-align: left;
  cursor: pointer;
}

.post-item time {
  color: var(--accent-strong);
  font-weight: 900;
}

.post-item p {
  margin: 8px 0 0;
}

.muted {
  color: var(--muted);
}

.article-reader {
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.76), rgba(255, 250, 240, 0.5)),
    rgba(255, 250, 240, 0.38);
  box-shadow: 0 22px 58px rgba(54, 38, 20, 0.12), inset 0 1px 0 rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.article-content {
  color: var(--ink);
  line-height: 1.95;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 1.2em 0 0.45em;
}

.article-content p {
  margin: 0.85em 0;
}

.article-content code {
  padding: 0.1em 0.35em;
  border-radius: 7px;
  background: rgba(36, 31, 26, 0.09);
}

.article-content pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #211d19;
  color: #fff7e8;
}

.article-content pre code {
  padding: 0;
  background: transparent;
}

.article-content blockquote {
  margin: 18px 0;
  padding: 10px 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  background: rgba(169, 70, 38, 0.07);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1320px, calc(100% - 36px));
  margin-inline: auto;
  padding: 30px 4px 0;
  color: var(--muted);
}
