:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --ink: #202326;
  --muted: #686f76;
  --line: #ded8ca;
  --panel: #fffdf8;
  --accent: #126b63;
  --accent-2: #b84f33;
  --accent-3: #315f9f;
  --accent-soft: #e4f0ed;
  --warm-soft: #f7e8df;
  --shadow: 0 18px 42px rgba(39, 42, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(18, 107, 99, 0.08), transparent 360px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 237, 0.88);
  border-bottom: 1px solid rgba(222, 216, 202, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  min-height: 560px;
  align-items: center;
  padding: 56px 0 44px;
}

.hero-copy h1 {
  max-width: 800px;
  margin: 8px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 750;
}

.button:hover {
  border-color: var(--accent);
}

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

.hero-panel,
.card,
.post-item,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 320px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(18, 107, 99, 0.16), transparent 48%),
    linear-gradient(20deg, rgba(184, 79, 51, 0.14), transparent 44%),
    #fffdf8;
}

.panel-label {
  color: var(--accent);
  font-weight: 850;
}

.hero-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.15;
}

.hero-panel p {
  color: var(--muted);
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.status-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(222, 216, 202, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-item strong {
  margin: 2px 0 0;
  font-size: 19px;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.contact h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-heading p,
.contact p {
  color: var(--muted);
}

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

.card {
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card:hover,
.post-item:hover {
  transform: translateY(-2px);
}

.life-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent-soft);
}

.image-missing::before {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  content: "图片暂时无法加载";
  font-weight: 750;
}

.card-body {
  padding: 18px;
}

.card h3,
.post-item h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card p,
.post-item p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

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

.post-item {
  display: block;
  padding: 20px;
  box-shadow: none;
  transition: transform 180ms ease;
}

.meta {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-3);
  background: #f3f6fb;
  font-size: 12px;
  font-weight: 750;
}

.project-card {
  min-height: 190px;
}

.project-card .card-body {
  display: flex;
  min-height: 190px;
  flex-direction: column;
}

.project-arrow {
  margin-top: auto;
  color: var(--accent-2);
  font-weight: 800;
}

.live-card {
  background:
    linear-gradient(180deg, rgba(49, 95, 159, 0.08), transparent),
    var(--panel);
}

.live-value {
  margin-top: 16px;
  color: var(--accent-3);
  font-size: 30px;
  font-weight: 850;
}

.live-detail {
  margin-top: 8px;
  font-size: 14px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-bottom: 50px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 0 84px;
}

.article-page h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
}

.article-page h2 {
  margin: 36px 0 10px;
  font-size: 26px;
  line-height: 1.25;
}

.article-page p {
  color: var(--muted);
  font-size: 18px;
}

.article-page code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-3);
  font-size: 0.92em;
}

.article-meta {
  margin: 0 0 24px;
  color: var(--accent);
  font-weight: 750;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

@media (max-width: 840px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .life-grid,
  .project-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    display: grid;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 28px, 1120px);
  }

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

  .lead {
    font-size: 17px;
  }

  .status-list {
    grid-template-columns: 1fr;
  }
}
