:root {
  color-scheme: light;
  --paper: #f4efe5;
  --ink: #223129;
  --muted: #627067;
  --line: #cbbca8;
  --green: #244b3d;
  --blue: #1f5f8b;
  --gold: #b47b32;
  --white: #fffaf1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(34, 49, 41, 0.12);
  background: rgba(244, 239, 229, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand span {
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 6px;
}

.site-nav a:hover {
  background: rgba(36, 75, 61, 0.09);
  text-decoration: none;
}

.intro-section,
.content-band,
.project-section,
.records-section {
  padding: clamp(32px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.intro-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 620px;
  overflow: hidden;
  background: var(--paper);
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/web/assets/avatars/avatar_04.png?v=202606161816-d33958ec0b59") right 12% center / 220px 220px repeat;
  opacity: 0.08;
  pointer-events: none;
}

.intro-section > * {
  position: relative;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.intro-copy p:not(.eyebrow),
.project-copy p,
.records-section p {
  max-width: 680px;
  color: var(--muted);
}

.intro-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link,
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-link,
.project-links a:first-child {
  background: var(--green);
  color: #fffdf8;
}

.secondary-link,
.project-links a:last-child {
  border: 1px solid var(--line);
  background: var(--white);
}

.intro-visual {
  justify-self: end;
  width: min(100%, 380px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 22px 70px rgba(34, 49, 41, 0.14);
}

.intro-visual img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  image-rendering: pixelated;
}

.intro-visual strong,
.intro-visual span {
  display: block;
  text-align: center;
}

.intro-visual strong {
  font-size: 22px;
}

.intro-visual span {
  color: var(--muted);
}

.content-band {
  background: var(--white);
  border-block: 1px solid rgba(34, 49, 41, 0.12);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 24px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.note-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.note-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.note-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: var(--green);
  color: #fffdf8;
}

.project-copy {
  max-width: 800px;
}

.project-copy .eyebrow,
.project-copy p {
  color: #e6cf9d;
}

.project-links a:last-child {
  color: var(--ink);
}

.records-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.record-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.record-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.record-list dt {
  color: var(--muted);
}

.record-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.record-list a,
.site-footer a {
  color: var(--blue);
}

.police-beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-beian-link img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  padding: 18px;
  border-top: 1px solid rgba(34, 49, 41, 0.12);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-section,
  .records-section {
    grid-template-columns: 1fr;
  }

  .intro-section {
    min-height: 0;
  }

  .intro-section::before {
    background-position: right 18px top 90px;
    background-size: 130px 130px;
  }

  .intro-visual {
    justify-self: stretch;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .project-section {
    align-items: stretch;
    flex-direction: column;
  }

  .record-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 460px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding-inline: 6px;
  }

  .primary-link,
  .secondary-link,
  .project-links a {
    width: 100%;
  }
}
