:root {
  --paper: #f6ecd8;
  --paper-deep: #eadcc4;
  --ink: #181713;
  --ink-soft: rgba(24, 23, 19, 0.16);
  --seal: #a9281f;
  --seal-dark: #7f1d18;
  --tea: #c8d1c2;
  --tea-deep: #6b7c6f;
  --mulberry: #7b2f29;
  --mist: rgba(255, 255, 255, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 32%, rgba(178, 79, 62, 0.09), transparent 5.5rem),
    radial-gradient(circle at 20% 38%, rgba(61, 73, 65, 0.07), transparent 12rem),
    linear-gradient(180deg, #fbf5e8 0%, var(--paper) 56%, var(--paper-deep) 100%);
}

.paper-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.58;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(93, 67, 39, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 18%, rgba(93, 67, 39, 0.04) 0 1px, transparent 1.5px),
    radial-gradient(circle at 55% 70%, rgba(93, 67, 39, 0.035) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(80, 60, 38, 0.03), rgba(255, 255, 255, 0.16));
  background-size: 17px 19px, 23px 29px, 31px 37px, 100% 100%;
  mix-blend-mode: multiply;
}

.hero {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-5vh);
  text-align: center;
}

.home-page .hero {
  gap: 0.35rem;
}

.seal {
  position: relative;
  width: clamp(7rem, 13vw, 11rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: clamp(1.7rem, 3vw, 2.5rem);
  color: #fff6e6;
  background:
    radial-gradient(circle at 33% 25%, rgba(255, 255, 255, 0.15), transparent 28%),
    linear-gradient(145deg, #b83225, var(--seal) 56%, var(--seal-dark));
  border-radius: 11%;
  box-shadow:
    inset 0 0 0 0.22rem rgba(255, 237, 211, 0.22),
    inset 0 0 0 0.58rem rgba(104, 16, 13, 0.16),
    0 1.3rem 2.6rem rgba(76, 41, 27, 0.12);
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  inset: 0.52rem;
  border: 0.23rem solid rgba(255, 238, 216, 0.78);
  border-radius: 8%;
  clip-path: polygon(0 0, 42% 0, 42% 7%, 62% 7%, 62% 0, 100% 0, 100% 44%, 93% 44%, 93% 62%, 100% 62%, 100% 100%, 58% 100%, 58% 93%, 39% 93%, 39% 100%, 0 100%, 0 56%, 7% 56%, 7% 38%, 0 38%);
  opacity: 0.85;
}

.seal::after {
  inset: -0.18rem;
  border-color: rgba(126, 25, 19, 0.78);
  border-width: 0.2rem;
  filter: blur(0.2px);
  opacity: 0.72;
}

.seal span {
  position: relative;
  z-index: 1;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: clamp(4.7rem, 8.4vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg) translateY(-0.08em);
  text-shadow: 0.05em 0.04em 0 rgba(75, 8, 4, 0.11);
}

h1 {
  margin: 0;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(4.8rem, 13vw, 12rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-shadow:
    0 0.03em 0 rgba(0, 0, 0, 0.06),
    0 0.16em 0.32em rgba(61, 47, 34, 0.08);
}

.hero-subtitle {
  margin-top: 0.25rem;
  max-width: 20rem;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.14em;
  color: rgba(24, 23, 19, 0.66);
}

.ink-link {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.95rem 1.35rem 0.95rem 1.15rem;
  border: 1px solid rgba(123, 47, 41, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.92), rgba(244, 232, 212, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), transparent 42%);
  color: var(--mulberry);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1.1rem 2.3rem rgba(72, 40, 28, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ink-link,
.ink-link:visited,
.ink-link:hover,
.ink-link:active {
  color: var(--mulberry);
  text-decoration: none;
}

.ink-link * {
  text-decoration: none;
}

.ink-link:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 47, 41, 0.38);
  box-shadow:
    0 1.4rem 2.6rem rgba(72, 40, 28, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.ink-link:focus-visible {
  outline: 2px solid rgba(123, 47, 41, 0.45);
  outline-offset: 4px;
}

.ink-link-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 170, 145, 0.22), rgba(123, 47, 41, 0.08));
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 1rem;
  color: var(--tea-deep);
}

.ink-link-text {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.08rem;
  letter-spacing: 0.18em;
  color: inherit;
  text-decoration: none;
}

.mountain {
  position: absolute;
  z-index: 1;
  bottom: -7vh;
  width: 58vw;
  height: 47vh;
  opacity: 0.8;
  filter: blur(0.3px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.mountain-left {
  left: -7vw;
  background-image:
    linear-gradient(to top, rgba(30, 35, 32, 0.25), transparent 48%),
    radial-gradient(ellipse at 15% 95%, rgba(18, 22, 20, 0.30), transparent 26%),
    radial-gradient(ellipse at 31% 66%, rgba(48, 58, 54, 0.20), transparent 28%),
    radial-gradient(ellipse at 43% 50%, rgba(56, 66, 62, 0.12), transparent 21%),
    radial-gradient(ellipse at 62% 70%, rgba(45, 54, 51, 0.13), transparent 21%),
    radial-gradient(ellipse at 77% 84%, rgba(54, 60, 56, 0.09), transparent 30%);
  clip-path: polygon(0 100%, 0 58%, 10% 48%, 18% 42%, 25% 55%, 33% 33%, 44% 52%, 51% 45%, 60% 67%, 70% 56%, 84% 76%, 100% 69%, 100% 100%);
}

.mountain-right {
  right: -6vw;
  height: 52vh;
  background-image:
    linear-gradient(to top, rgba(26, 31, 29, 0.22), transparent 48%),
    radial-gradient(ellipse at 82% 58%, rgba(44, 51, 47, 0.25), transparent 26%),
    radial-gradient(ellipse at 66% 42%, rgba(58, 64, 60, 0.17), transparent 21%),
    radial-gradient(ellipse at 48% 70%, rgba(44, 51, 48, 0.14), transparent 24%),
    radial-gradient(ellipse at 25% 77%, rgba(53, 58, 53, 0.10), transparent 24%);
  clip-path: polygon(0 100%, 0 76%, 16% 61%, 26% 72%, 39% 54%, 50% 67%, 62% 35%, 72% 24%, 84% 50%, 91% 43%, 100% 55%, 100% 100%);
}

.river {
  position: absolute;
  z-index: 2;
  left: 22vw;
  right: 13vw;
  bottom: 4vh;
  height: 20vh;
  opacity: 0.48;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(201, 166, 105, 0.28), transparent 42%),
    linear-gradient(173deg, transparent 0 29%, rgba(178, 143, 86, 0.18) 30% 34%, transparent 35% 44%, rgba(178, 143, 86, 0.15) 45% 49%, transparent 50% 100%);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.sun {
  position: absolute;
  z-index: 2;
  right: 13vw;
  top: 38vh;
  width: clamp(2.4rem, 4vw, 4rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 74, 61, 0.28), rgba(177, 74, 61, 0.06) 68%, transparent 70%);
}

.birds {
  position: absolute;
  z-index: 3;
  right: 18vw;
  top: 50vh;
  width: 11rem;
  height: 4rem;
  opacity: 0.35;
}

.birds span {
  position: absolute;
  width: 1.6rem;
  height: 0.6rem;
  border-top: 0.12rem solid rgba(32, 31, 27, 0.76);
  border-radius: 50%;
  transform: rotate(12deg);
}

.birds span::after {
  content: "";
  position: absolute;
  right: -0.82rem;
  top: -0.12rem;
  width: 1.2rem;
  height: 0.48rem;
  border-top: 0.12rem solid rgba(32, 31, 27, 0.76);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.birds span:nth-child(1) { left: 0; top: 1.4rem; transform: scale(0.65) rotate(8deg); }
.birds span:nth-child(2) { left: 2.4rem; top: 0.7rem; transform: scale(0.52) rotate(-5deg); }
.birds span:nth-child(3) { left: 4.7rem; top: 1.9rem; transform: scale(0.62) rotate(10deg); }
.birds span:nth-child(4) { left: 6.6rem; top: 0.9rem; transform: scale(0.5) rotate(-4deg); }
.birds span:nth-child(5) { left: 8.7rem; top: 1.5rem; transform: scale(0.56) rotate(9deg); }

.page::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  height: 42vh;
  background: linear-gradient(to top, rgba(246, 236, 216, 0.28), var(--mist) 46%, transparent 100%);
  pointer-events: none;
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 5;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(24, 23, 19, 0.52);
}

.weidu-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 58, 49, 0.08), transparent 18rem),
    radial-gradient(circle at 82% 26%, rgba(123, 47, 41, 0.08), transparent 16rem),
    linear-gradient(180deg, #fbf4e7 0%, #f3e7d0 55%, #e6d8bf 100%);
}

.weidu-page .page-shell {
  position: relative;
  width: min(100vw, 100%);
  min-height: 100svh;
  padding: 1rem 0.85rem 3.2rem;
  display: grid;
  place-items: center;
}

.book-scene {
  position: relative;
  width: min(40rem, calc(100vw - 0.9rem));
  min-height: min(56rem, calc(100svh - 2rem));
  display: grid;
  place-items: center;
  place-content: start center;
  padding-top: clamp(2rem, 4.2vh, 3.2rem);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 70% 18%, rgba(123, 47, 41, 0.09), transparent 10rem),
    radial-gradient(circle at 24% 26%, rgba(107, 124, 111, 0.09), transparent 12rem),
    linear-gradient(180deg, rgba(255, 248, 236, 0.94), rgba(242, 232, 214, 0.88));
  box-shadow:
    0 2rem 4rem rgba(68, 45, 28, 0.08),
    inset 0 0 0 1px rgba(120, 89, 58, 0.12);
  overflow: hidden;
}

.book-scene::before,
.book-scene::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.book-scene::before {
  width: 18rem;
  height: 18rem;
  right: -5rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(123, 47, 41, 0.12), transparent 68%);
}

.book-scene::after {
  width: 14rem;
  height: 14rem;
  left: -2rem;
  bottom: 5rem;
  background: radial-gradient(circle, rgba(107, 124, 111, 0.14), transparent 68%);
}

.book-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(125deg, transparent 0 45%, rgba(123, 47, 41, 0.08) 46% 49%, transparent 50% 100%),
    linear-gradient(55deg, transparent 0 52%, rgba(107, 124, 111, 0.08) 53% 56%, transparent 57% 100%);
}

.book-ink {
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(24, 23, 19, 0.22), transparent 45%),
    radial-gradient(ellipse at 18% 42%, rgba(24, 23, 19, 0.14), transparent 42%),
    radial-gradient(ellipse at 86% 44%, rgba(24, 23, 19, 0.12), transparent 40%);
  clip-path: polygon(0 100%, 0 62%, 10% 56%, 22% 48%, 35% 54%, 46% 42%, 59% 53%, 71% 40%, 83% 50%, 92% 45%, 100% 53%, 100% 100%);
  opacity: 0.5;
}

.book-art {
  position: absolute;
  inset: 14% 10% auto 10%;
  height: 21rem;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(0.2px);
}

.book-art::before,
.book-art::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  border-radius: 1.4rem 1.6rem 1.2rem 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.82), rgba(235, 223, 200, 0.9)),
    radial-gradient(circle at 20% 22%, rgba(123, 47, 41, 0.1), transparent 18%);
  border: 1px solid rgba(93, 67, 39, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 1.2rem 2.8rem rgba(68, 45, 28, 0.08);
}

.book-art::before {
  left: 0;
  transform: perspective(1200px) rotateY(12deg) rotateZ(-7deg);
}

.book-art::after {
  right: 0;
  transform: perspective(1200px) rotateY(-12deg) rotateZ(7deg);
}

.book-spine {
  position: absolute;
  left: 50%;
  top: 4%;
  bottom: 4%;
  width: 1.15rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(123, 47, 41, 0.14), rgba(107, 124, 111, 0.08)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 28%, rgba(255, 255, 255, 0.18) 52%, transparent 72%, rgba(0, 0, 0, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.book-lines {
  position: absolute;
  inset: 3rem 1.2rem 3rem;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 1.6rem,
      rgba(74, 62, 48, 0.07) 1.65rem,
      rgba(74, 62, 48, 0.07) 1.82rem
    );
  opacity: 0.8;
}

.weidu-card {
  position: relative;
  z-index: 1;
  width: min(24rem, calc(100% - 1rem));
  padding: 1.55rem 1.2rem 1.35rem;
  border-radius: 1.55rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 242, 0.78), rgba(245, 235, 217, 0.92));
  border: 1px solid rgba(101, 78, 56, 0.14);
  box-shadow:
    0 1.6rem 3rem rgba(69, 46, 29, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  text-align: center;
}

.weidu-seal {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.95rem;
  display: grid;
  place-items: center;
  border-radius: 20%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #b83225, var(--seal) 60%, var(--seal-dark));
  color: #fff6e6;
  box-shadow:
    inset 0 0 0 0.16rem rgba(255, 235, 206, 0.26),
    0 1rem 2rem rgba(85, 30, 20, 0.12);
}

.weidu-seal span {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 2.3rem;
  line-height: 1;
  transform: rotate(-6deg);
}

.weidu-title {
  margin: 0;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(1.85rem, 4.6vw, 3.1rem) !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-indent: 0.08em;
  line-height: 1.05;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}

.weidu-subtitle {
  margin: 0.7rem auto 0;
  max-width: 100%;
  width: max-content;
  font-size: clamp(0.72rem, 1.55vw, 0.92rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(24, 23, 19, 0.68);
  white-space: nowrap;
  word-break: keep-all;
  text-wrap: nowrap;
}

.weidu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  background: rgba(200, 209, 194, 0.45);
  color: var(--tea-deep);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.weidu-badge i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--tea-deep);
  box-shadow: 0 0 0 0.18rem rgba(107, 124, 111, 0.18);
}

.weidu-waves {
  position: absolute;
  left: 50%;
  bottom: -5rem;
  width: 32rem;
  height: 14rem;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(24, 23, 19, 0.20), transparent 32%),
    radial-gradient(ellipse at 12% 50%, rgba(123, 47, 41, 0.18), transparent 22%),
    radial-gradient(ellipse at 88% 48%, rgba(107, 124, 111, 0.18), transparent 23%);
  opacity: 0.75;
  clip-path: polygon(0 100%, 0 46%, 10% 58%, 18% 44%, 27% 63%, 36% 39%, 46% 54%, 56% 42%, 66% 60%, 76% 40%, 86% 55%, 96% 46%, 100% 58%, 100% 100%);
}

@media (max-width: 720px) {
  .page {
    min-height: 520px;
  }

  .hero {
    transform: translateY(-7vh);
  }

  .seal {
    width: clamp(6.2rem, 30vw, 8.2rem);
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7.2rem);
    letter-spacing: 0.04em;
  }

  .mountain {
    width: 86vw;
    height: 36vh;
    bottom: -4vh;
  }

  .mountain-left {
    left: -26vw;
  }

  .mountain-right {
    right: -32vw;
  }

  .sun,
  .birds {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
    letter-spacing: 0.08em;
  }

  .ink-link {
    margin-top: 0.9rem;
    padding: 0.82rem 1.15rem 0.82rem 0.98rem;
  }

  .site-footer {
    bottom: 0.65rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .weidu-page .page-shell {
    padding: 0.7rem 0.55rem 2.6rem;
  }

  .book-scene {
    width: min(100%, calc(100vw - 0.6rem));
    min-height: calc(100svh - 1.3rem);
    border-radius: 1.2rem;
  }

  .book-art {
    inset: 12% 6% auto 6%;
    height: 15rem;
  }

  .weidu-card {
    width: calc(100% - 0.8rem);
    padding: 1.35rem 1rem 1.1rem;
    border-radius: 1.2rem;
  }

  .weidu-seal {
    width: 3.45rem;
    height: 3.45rem;
    margin-bottom: 0.8rem;
  }

  .weidu-seal span {
    font-size: 1.95rem;
  }

  .weidu-title {
    font-size: clamp(1.55rem, 8.2vw, 2.2rem) !important;
    letter-spacing: 0.06em;
    text-indent: 0.06em;
  }

  .weidu-subtitle {
    font-size: clamp(0.66rem, 3.1vw, 0.8rem);
    line-height: 1.3;
  }

  .weidu-badge {
    margin-top: 0.8rem;
    font-size: 0.76rem;
  }

  .weidu-waves {
    width: 24rem;
    height: 11rem;
    bottom: -5rem;
  }
}
