:root {
  color-scheme: light;
  --bg: #f8efe7;
  --paper: rgba(255, 252, 247, .94);
  --paper-soft: rgba(255, 248, 237, .74);
  --text: #2b160d;
  --muted: #755d4f;
  --accent: #b65b25;
  --accent-2: #e3a14f;
  --line: rgba(120, 72, 40, .16);
  --shadow: 0 20px 54px rgba(127, 76, 39, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  background:
    radial-gradient(circle at 16% 8%, rgba(227, 161, 79, .3), transparent 28%),
    linear-gradient(135deg, #fff8ed 0%, var(--bg) 48%, #efd9c5 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 18%, rgba(182, 91, 37, .14), transparent 26%),
    radial-gradient(circle at 8% 82%, rgba(227, 161, 79, .18), transparent 24%);
  animation: ambientDrift 11s ease-in-out infinite alternate;
  pointer-events: none;
}

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

.page {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 calc(58px + env(safe-area-inset-bottom));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(128, 74, 38, .22);
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.links a:hover {
  color: var(--accent);
  background: rgba(255, 252, 247, .72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: pageIn .55s cubic-bezier(.2,.8,.2,1) both;
}

.hero-text {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 248, 237, .76);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: .01em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.22;
}

p {
  margin: 0;
}

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

.lead {
  max-width: 38em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
}

.hero-card {
  min-height: 280px;
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #b55324 0%, #d87931 56%, #e69c48 100%);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -72px -96px auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255,255,255,.16), transparent 56%),
    repeating-radial-gradient(circle, rgba(255,255,255,.18) 0 1px, transparent 1px 34px);
  animation: radarSweep 5s ease-in-out infinite alternate;
}

.hero-card h2,
.hero-card p {
  position: relative;
  z-index: 1;
  max-width: 78%;
}

.hero-card h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.7vw, 42px);
  line-height: 1.24;
  letter-spacing: .02em;
}


.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-card p {
  font-size: 16px;
  line-height: 1.8;
  opacity: .94;
}

.hero-card img {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: clamp(170px, 22vw, 236px);
  border-radius: 36px;
  opacity: .9;
  filter: drop-shadow(0 18px 32px rgba(70, 36, 18, .28));
}

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

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(127, 76, 39, .1);
  animation: cardLift .45s cubic-bezier(.2,.8,.2,1) both;
}

.card h2 {
  font-size: 24px;
}

.card p {
  font-size: 15px;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 12px 24px rgba(182, 91, 37, .22);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(182, 91, 37, .24);
}

.button:active,
.record-link:active,
.links a:active {
  transform: translateY(1px) scale(.98);
  filter: brightness(.98);
}

.footer,
.site-footer {
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 6px;
}

.record-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 247, .62);
  border: 1px solid var(--line);
}

.record-link:hover {
  color: var(--accent);
}

.doc {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(127, 76, 39, .13);
}

.doc h1 {
  font-size: clamp(34px, 5vw, 42px);
}

.doc h2 {
  margin-top: 30px;
  font-size: 24px;
}

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

.doc p + p {
  margin-top: 10px;
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 20px 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-soft);
}

.author-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, .78);
  box-shadow: 0 16px 34px rgba(127, 76, 39, .18);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardLift {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ambientDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1%, 1.5%, 0) scale(1.04); }
}

@keyframes radarSweep {
  from { transform: translate3d(0, 0, 0) scale(.92); opacity: .42; }
  to { transform: translate3d(-28px, 22px, 0) scale(1.08); opacity: .72; }
}

@media (max-width: 1080px) {
  .page {
    width: min(100% - 24px, 760px);
    padding-top: 16px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .links a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    background: rgba(255, 252, 247, .72);
    border: 1px solid var(--line);
    font-size: 13px;
  }

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

  .hero {
    gap: 20px;
    padding: 24px;
    border-radius: 26px;
  }

  h1,
  .doc h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
  }

  .hero-card {
    min-height: 210px;
    padding: 24px;
    border-radius: 24px;
  }

  .hero-card h2 {
    max-width: 76%;
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero-card p {
    max-width: 68%;
    font-size: 15px;
  }

  .hero-card img {
    width: 166px;
    right: -18px;
    bottom: -22px;
    border-radius: 28px;
  }

  .grid {
    gap: 12px;
    margin-top: 14px;
  }

  .card,
  .doc {
    padding: 21px;
    border-radius: 22px;
  }

  .card h2,
  .doc h2 {
    font-size: 22px;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 600px) {
  .page {
    width: min(100% - 22px, 560px);
  }
}

@media (max-width: 420px) {
  .page {
    width: calc(100% - 20px);
  }

  .hero {
    padding: 20px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .hero-card {
    min-height: 190px;
    padding: 20px;
  }

  .hero-card h2 {
    max-width: 78%;
    font-size: 25px;
  }

  .hero-card p {
    max-width: 66%;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-card img {
    width: 140px;
    right: -18px;
    bottom: -18px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
