:root {
  --bg: #f5f1e8;
  --ink: #1f2622;
  --muted: #667067;
  --line: rgba(31, 38, 34, 0.15);
  --paper: #fffaf0;
  --shadow: 0 24px 70px rgba(31, 38, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(23, 124, 101, 0.11), transparent 32%),
    linear-gradient(280deg, rgba(183, 72, 47, 0.1), transparent 36%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: -999rem;
  z-index: 20;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
}

.skip-link:focus {
  left: 1rem;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(21rem, 32vw) 1fr;
  min-height: 100vh;
}

.profile {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.76);
  backdrop-filter: blur(16px);
}

.profile__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.eyebrow,
.feature__kicker {
  margin: 0 0 0.9rem;
  color: var(--accent, #177c65);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 500;
  line-height: 0.9;
}

.intro {
  max-width: 29rem;
  color: #384039;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.quick-notes {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0;
}

.quick-notes div {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.quick-notes dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-notes dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.42);
  color: #39423b;
  font-size: 0.9rem;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 38, 34, 0.35);
  background: #ffffff;
}

.stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  align-content: start;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.feature {
  display: grid;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid rgba(31, 38, 34, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.feature--wide {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
}

.feature__image {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 0;
  background: #d8d1c4;
  cursor: zoom-in;
}

.feature__image::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  content: "查看";
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(31, 38, 34, 0.64);
  color: #fff;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
}

.feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.feature__image:hover img,
.feature__image:focus-visible img {
  transform: scale(1.04);
}

.feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.feature__copy h2 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

.feature__copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 5vh 4vw;
  background: rgba(10, 11, 10, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__frame {
  width: min(92vw, 76rem);
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.lightbox__image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #111;
}

.lightbox__caption {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 1024px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .profile {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile__inner {
    min-height: 72vh;
  }
}

@media (max-width: 760px) {
  .stories,
  .feature--wide {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature--wide {
    grid-column: span 1;
    min-height: auto;
  }

  .feature__image {
    min-height: 16rem;
  }

  .profile__inner {
    min-height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
