:root {
  --bg: #f4efe5;
  --bg-accent: #fffdf8;
  --surface: rgba(255, 253, 247, 0.76);
  --surface-strong: rgba(255, 251, 242, 0.96);
  --line: rgba(93, 62, 36, 0.14);
  --text: #2d241d;
  --muted: #6d5a4c;
  --accent: #b34b25;
  --accent-deep: #7f2f17;
  --shadow: 0 24px 60px rgba(99, 69, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 218, 171, 0.9), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(206, 122, 85, 0.18), transparent 24%),
    linear-gradient(180deg, #f6f2e9 0%, #f1eadf 42%, #ece3d5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(121, 93, 70, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 93, 70, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark,
h1,
h2,
h3 {
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-url,
.top-link,
.eyebrow,
.card-tag,
.status-pill,
.friend-url {
  letter-spacing: 0.08em;
}

.brand-url,
.top-link,
.hero-copy,
.section-heading p,
.info-card p,
.bullet-panel p,
.site-footer p {
  color: var(--muted);
}

.top-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 180ms ease, border-color 180ms ease;
}

.top-link:hover,
.top-link:focus-visible,
.button:hover,
.button:focus-visible,
.friend-link:hover,
.friend-link:focus-visible {
  transform: translateY(-2px);
}

.hero {
  padding: 12px 0 20px;
}

.hero-panel,
.section,
.site-footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(252, 243, 230, 0.84)),
    var(--surface);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -32px;
  bottom: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 75, 37, 0.26), rgba(179, 75, 37, 0.02));
}

.status-pill,
.card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 75, 37, 0.18);
  color: var(--accent-deep);
  background: rgba(179, 75, 37, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  max-width: 10ch;
  margin: 18px 0 14px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-primary {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
}

main {
  display: grid;
  gap: 22px;
}

.section {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
}

.section-heading.compact {
  max-width: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-heading p {
  margin: 14px 0 0;
  line-height: 1.85;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.info-card,
.bullet-panel,
.friend-link {
  border: 1px solid rgba(93, 62, 36, 0.1);
  border-radius: 22px;
  background: var(--surface-strong);
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin: 16px 0 10px;
  font-size: 1.45rem;
}

.info-card p {
  margin: 0;
  line-height: 1.8;
}

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

.bullet-panel {
  padding: 22px 24px;
}

.bullet-panel p {
  position: relative;
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

.bullet-panel p + p {
  margin-top: 14px;
}

.bullet-panel p::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.link-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.friend-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.friend-link:hover,
.friend-link:focus-visible {
  border-color: rgba(179, 75, 37, 0.28);
}

.friend-name {
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.friend-url {
  color: var(--accent-deep);
  font-size: 0.78rem;
  word-break: break-all;
}

.site-footer {
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.72);
}

.site-footer p {
  margin: 0;
  line-height: 1.75;
}

.site-footer p + p {
  margin-top: 6px;
}

@media (max-width: 840px) {
  .card-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .friend-link {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .section,
  .site-footer {
    border-radius: 22px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
