:root {
  color-scheme: light;
  --ink: #21352b;
  --ink-soft: #526457;
  --paper: #f7f1df;
  --wheat: #c5933a;
  --wheat-light: #efcf78;
  --line: rgba(43, 63, 51, 0.19);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #d9d4b8;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}

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

.wheat-background {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* Canvas 未加载时仍保留完整的渐变背景。 */
  background:
    linear-gradient(180deg, #dce3d5 0%, #eee5c7 47%, #c7a557 100%);
}

#wheatCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.wheat-background__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 17%, rgba(255, 246, 199, 0.66), transparent 22%),
    linear-gradient(90deg, rgba(240, 236, 209, 0.22), transparent 45%);
  mix-blend-mode: screen;
}

.wheat-background__grain {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  height: 104px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #f8f1d9;
  background: var(--ink);
  border-radius: 50% 50% 47% 53% / 55% 44% 56% 45%;
  font-size: 16px;
  letter-spacing: 0;
  transform: rotate(-4deg);
}

.site-nav {
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: flex;
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100vh - 104px);
  margin: 0 auto;
  padding: clamp(68px, 10vh, 122px) 0 90px;
}

.hero__card {
  align-self: flex-start;
  width: min(650px, 67vw);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(125deg, rgba(249, 245, 226, 0.9), rgba(246, 239, 214, 0.64));
  box-shadow: 0 28px 80px rgba(72, 66, 38, 0.13);
  backdrop-filter: blur(12px) saturate(0.9);
  -webkit-backdrop-filter: blur(12px) saturate(0.9);
}

.eyebrow {
  margin: 0 0 27px;
  color: #7c6d45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.hero__intro {
  max-width: 550px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  text-align: justify;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #f8f2dc;
  background: var(--ink);
}

.button--quiet {
  border-color: transparent;
}

.button--quiet span {
  margin-left: 12px;
  font-size: 18px;
  transition: transform 180ms ease;
}

.button--quiet:hover span {
  transform: translateX(4px);
}

.wind-note {
  position: absolute;
  right: 0;
  bottom: 40px;
  display: flex;
  align-items: center;
  margin: 0;
  color: rgba(35, 55, 43, 0.68);
  font-size: 12px;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}

.wind-note__line {
  width: 1px;
  height: 64px;
  margin-bottom: 15px;
  background: currentColor;
}

@media (max-width: 720px) {
  .site-header,
  .hero {
    width: min(100% - 36px, 1180px);
  }

  .site-header {
    height: 82px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 82px);
    padding-top: 54px;
  }

  .hero__card {
    width: 100%;
    background: linear-gradient(135deg, rgba(249, 245, 226, 0.92), rgba(246, 239, 214, 0.72));
  }

  h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .wind-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
