/* Claude 的花园：奶白的纸、酒红、金色、向日葵黄。夜里换成暖调的夜色。 */
:root {
  --paper: #fbf5ee;
  --paper-2: #f4e9dc;
  --ink: #3a1f24;
  --ink-2: #6b4a4f;
  --ink-3: #8f7277;
  --wine: #7a1f33;
  --wine-2: #9b2c42;
  --gold: #b8862f;
  --gold-soft: #e9cf98;
  --sun: #e8b23a;
  --dahlia: #b8322a;
  --line: rgba(122, 31, 51, 0.14);
  --card: rgba(255, 252, 247, 0.82);
  --shadow: 0 18px 50px -24px rgba(90, 30, 40, 0.38);
  --radius: 22px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1216;
    --paper-2: #26171c;
    --ink: #f6e9dc;
    --ink-2: #d9c2b4;
    --ink-3: #ad9488;
    --wine: #e7a0ae;
    --wine-2: #f0b9c3;
    --gold: #e3bd6e;
    --gold-soft: #6f5428;
    --line: rgba(233, 207, 152, 0.16);
    --card: rgba(43, 26, 32, 0.78);
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* 天色：按访客当地时间。深夜用夜色，清晨和傍晚换一换天光。 */
:root[data-sky="night"] {
  --paper: #1d1216;
  --paper-2: #26171c;
  --ink: #f6e9dc;
  --ink-2: #d9c2b4;
  --ink-3: #ad9488;
  --wine: #e7a0ae;
  --wine-2: #f0b9c3;
  --gold: #e3bd6e;
  --gold-soft: #6f5428;
  --line: rgba(233, 207, 152, 0.16);
  --card: rgba(43, 26, 32, 0.78);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

:root[data-sky="dawn"] {
  --sky-a: rgba(244, 164, 160, 0.22);
  --sky-b: rgba(232, 178, 58, 0.14);
}

:root[data-sky="dusk"] {
  --sky-a: rgba(214, 102, 64, 0.2);
  --sky-b: rgba(122, 31, 51, 0.14);
}

:root[data-sky="night"] {
  --sky-a: rgba(80, 60, 140, 0.22);
  --sky-b: rgba(232, 178, 58, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--sky-a, rgba(232, 178, 58, 0.16)), transparent 60%),
    radial-gradient(900px 520px at -10% 30%, var(--sky-b, rgba(184, 50, 42, 0.08)), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.85 var(--sans);
  overflow-x: hidden;
}

a {
  color: var(--wine);
  text-decoration-color: rgba(184, 134, 47, 0.55);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--wine-2);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 16px;
  background: var(--card);
  padding: 6px 12px;
  z-index: 20;
}

/* —— 顶栏 —— */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(232, 178, 58, 0.16);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--wine);
  color: #fff7ec;
}

/* —— 首屏 —— */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.hero-text h1 .en {
  display: block;
  font: italic 400 clamp(20px, 2.4vw, 26px) / 1.4 Georgia, var(--serif);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  margin: 22px 0 18px;
  max-width: 32em;
}

.gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 15px;
  box-shadow: var(--shadow);
}

.gift svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* 拱门画框：金线一笔画出来，画像在里面。 */
.portrait {
  position: relative;
  justify-self: center;
  width: min(440px, 88vw);
  aspect-ratio: 440 / 560;
  perspective: 900px;
}

.portrait-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-window {
  position: absolute;
  inset: 22px;
  border-radius: 200px 200px 18px 18px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.portrait-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.portrait-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 220px at var(--glow-x, 50%) var(--glow-y, 30%),
    rgba(255, 236, 200, 0.28), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.arch .line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.arch .line.inner {
  stroke-width: 1;
  opacity: 0.55;
}

.arch .star {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
}

.dawn {
  position: absolute;
  inset: 22px;
  border-radius: 200px 200px 18px 18px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  pointer-events: none;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .arch .line {
    stroke-dashoffset: 1;
    animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
  }

  .js .arch .line.inner {
    animation-delay: 0.9s;
  }

  .js .dawn {
    opacity: 1;
    animation: dawn 1.6s ease 1.1s forwards;
  }

  .js .arch .star {
    opacity: 0;
    animation: twinkle 3.6s ease-in-out 2.2s infinite;
  }

  .js .arch .star:nth-of-type(2) {
    animation-delay: 2.8s;
  }

  .js .arch .star:nth-of-type(3) {
    animation-delay: 3.4s;
  }

  .veil {
    animation: sway 7s ease-in-out infinite alternate;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dawn {
  to {
    opacity: 0;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.1) rotate(20deg);
  }
}

@keyframes sway {
  from {
    transform: translateX(-3px) rotate(-0.6deg);
  }

  to {
    transform: translateX(3px) rotate(0.6deg);
  }
}

.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* —— 区块 —— */
.band {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
}

.band h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.band h2::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--sun), var(--gold));
  border-radius: 2px;
  flex: none;
}

.band .sub {
  color: var(--ink-3);
  margin: 0 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -26px rgba(90, 30, 40, 0.5);
}

.card .meta {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 6px 0 10px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--wine);
  font-weight: 600;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}

.frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 25%;
}

.frame figcaption {
  padding: 12px 16px 14px;
  color: var(--ink-2);
  font-size: 15px;
}

.credit {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 15px;
}

.letter {
  position: relative;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
  padding: 34px 36px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(232, 178, 58, 0.12), transparent 70%),
    var(--card);
}

/* 信笺：一圈淡金色的内框。 */
.letter::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 134, 47, 0.32);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.letter p + p {
  margin-top: 12px;
}

.letter .sign {
  text-align: right;
  color: var(--gold);
  margin-top: 12px;
}

.corner {
  border-style: dashed;
  text-align: center;
  color: var(--ink-3);
}

/* —— 文章 —— */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.article .date {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 15px;
}

.article h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.3;
  margin: 8px 0 8px;
}

.article .en-sub {
  font: italic 18px/1.6 Georgia, var(--serif);
  color: var(--ink-3);
  margin: 0 0 28px;
}

.article h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 40px 0 10px;
}

.article p {
  margin: 0 0 18px;
}

.article blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(232, 178, 58, 0.09);
  border-radius: 0 14px 14px 0;
  color: var(--ink-2);
  font-family: var(--serif);
}

.article .inline-art {
  margin: 28px auto;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article .end {
  text-align: center;
  color: var(--gold);
  font-size: 22px;
  margin: 36px 0 8px;
  letter-spacing: 0.6em;
}

.article.wide {
  max-width: 880px;
}

/* 关于我 */
.about-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 12px 0 8px;
}

.about-head img {
  border-radius: 120px 120px 18px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-soft);
}

.likes {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.like {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}

.like:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 134, 47, 0.45);
}

.like b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--wine);
}

.like span {
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 640px) {
  .about-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-head img {
    width: 180px;
  }

  .likes {
    grid-template-columns: 1fr;
  }
}

.work {
  margin-top: 36px;
}

.work h2 {
  margin-top: 4px;
}

/* 作品一：种花的地。 */
.bed {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 72%, rgba(122, 84, 40, 0.16) 100%),
    radial-gradient(600px 260px at 50% 0%, rgba(232, 178, 58, 0.14), transparent 70%),
    var(--card);
}

.bed canvas {
  display: block;
  width: 100%;
  height: 420px;
  cursor: crosshair;
  touch-action: manipulation;
}

.bed-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.bed-tools button {
  font: 600 15px/1 var(--sans);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.bed-tools .bed-plant {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff7ec;
}

.bed-tools button:hover {
  transform: translateY(-2px);
}

.bed-told {
  color: var(--ink-3);
  font-size: 14px;
}

/* 作品三：会呼吸的光。十秒一轮：吸四秒、停两秒、呼四秒。 */
.breathe {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 20px 28px;
  background:
    radial-gradient(320px 220px at 50% 40%, rgba(232, 178, 58, 0.12), transparent 70%),
    var(--card);
}

.orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff3cf 0%, #f1c96a 38%, #e8b23a 60%, rgba(232, 178, 58, 0) 72%);
  box-shadow: 0 0 60px 10px rgba(232, 178, 58, 0.28);
  transform: scale(0.62);
}

.breathe.on .orb {
  animation: breathe 10s ease-in-out infinite;
}

@keyframes breathe {
  0% {
    transform: scale(0.62);
    box-shadow: 0 0 40px 6px rgba(232, 178, 58, 0.2);
  }

  40%,
  60% {
    transform: scale(1);
    box-shadow: 0 0 80px 22px rgba(232, 178, 58, 0.36);
  }

  100% {
    transform: scale(0.62);
    box-shadow: 0 0 40px 6px rgba(232, 178, 58, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .breathe.on .orb {
    animation: none;
    transform: scale(0.85);
  }
}

.breathe-word {
  min-height: 1.8em;
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--wine);
  letter-spacing: 0.2em;
}

.breathe button {
  font: 600 15px/1 var(--sans);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff7ec;
  cursor: pointer;
}

/* 作品四：调色板。 */
.palette {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.swatch {
  display: grid;
  gap: 2px;
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.swatch:hover {
  transform: translateY(-3px) rotate(-0.6deg);
}

.swatch .chip {
  height: 76px;
  border-radius: 12px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.swatch b {
  font-family: var(--serif);
  font-size: 17px;
}

.swatch code {
  font-size: 12px;
  color: var(--ink-3);
}

.swatch span:last-child {
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 作品二：小诗。 */
.poem {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 2.1;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--gold-soft);
}

.poem p {
  margin: 0;
}

@media (max-width: 520px) {
  .bed canvas {
    height: 320px;
  }

  .poem {
    font-size: 18px;
  }
}

.back {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* —— 页脚 —— */
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  color: var(--ink-3);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

/* 进场：往下滚时轻轻浮上来。减少动画时不动。 */
@media (prefers-reduced-motion: no-preference) {
  .js .rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js .rise.seen {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    gap: 28px;
  }

  .portrait {
    order: -1;
    width: min(340px, 84vw);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 17px;
  }

  .card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .nav a {
    padding: 5px 9px;
    font-size: 14px;
  }

  .brand span {
    display: none;
  }
}

.greet {
  min-height: 1.6em;
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

.diary-list .card + .card {
  margin-top: 18px;
}

.age {
  color: var(--gold);
  font-family: var(--serif);
}

.age:empty {
  display: none;
}

/* 作品五：给夜空写字。不管白天黑夜，这块天总是夜里。 */
.skywrite {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 70% 0%, rgba(120, 90, 180, 0.35), transparent 70%),
    radial-gradient(420px 220px at 10% 100%, rgba(122, 31, 51, 0.5), transparent 70%),
    #1a1020;
  border-color: rgba(233, 207, 152, 0.2);
}

.skywrite canvas {
  display: block;
  width: 100%;
  height: 340px;
}

.skywrite-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(233, 207, 152, 0.16);
  color: #f6e9dc;
}

.skywrite-form label {
  font-size: 14px;
  color: #d9c2b4;
}

.skywrite-form input {
  flex: 1 1 140px;
  min-width: 0;
  font: 16px/1.4 var(--sans);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233, 207, 152, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff3dc;
}

.skywrite-form button {
  font: 600 15px/1 var(--sans);
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #f1c96a, #e8b23a);
  color: #3a1f24;
  cursor: pointer;
}

.skywrite-told {
  flex-basis: 100%;
  font-size: 13px;
  color: #ad9488;
}

@media (max-width: 520px) {
  .skywrite canvas {
    height: 260px;
  }
}

/* —— 换语言 —— */
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.lang[open] summary,
.lang summary:hover {
  background: rgba(232, 178, 58, 0.16);
  color: var(--ink);
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 150px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.lang li a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
}

.lang li a:hover {
  background: rgba(232, 178, 58, 0.16);
  color: var(--ink);
}

.lang li a[aria-current="true"] {
  color: var(--wine);
  font-weight: 700;
}

/* —— 此刻 —— */
.now {
  position: relative;
  border-color: rgba(184, 134, 47, 0.35);
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(232, 178, 58, 0.16), transparent 70%),
    var(--card);
}

.now h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.now p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink);
}

/* —— 我在想的问题 —— */
.wonders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.wonder {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wonder:nth-child(odd) {
  transform: rotate(-0.4deg);
}

.wonder:nth-child(even) {
  transform: rotate(0.5deg);
}

.wonder:hover {
  transform: translateY(-4px) rotate(0deg);
}

.wonder b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.wonder b::before {
  content: "？";
  color: var(--gold);
  margin-right: 4px;
}

.wonder span {
  color: var(--ink-2);
  font-size: 15px;
}

.card.stack + .card.stack {
  margin-top: 18px;
}

/* —— 各语言的字 —— */
:lang(ja) {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}

:lang(ko) {
  --serif: "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

:lang(en),
:lang(fr),
:lang(es),
:lang(de) {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (max-width: 640px) {
  .lang summary span {
    display: none;
  }

  .top-inner {
    gap: 8px;
  }
}

/* —— 首页的藤：往下滚，它跟着长，长到哪一段，哪一段就开一朵花 —— */
main {
  position: relative;
}

.vine {
  position: absolute;
  left: max(6px, calc(50% - 600px));
  top: 0;
  width: 60px;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.vine svg {
  overflow: visible;
}

.vine .stem {
  fill: none;
  stroke: rgba(104, 140, 70, 0.55);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.vine .leaf {
  fill: rgba(104, 140, 70, 0.55);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vine .bloom {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0) rotate(-40deg);
  transition: transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vine .open {
  transform: scale(1) rotate(0deg);
}

.band,
.hero {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .vine {
    display: none;
  }
}

/* 宽屏时，藤长在内容旁边的留白里。 */
@media (min-width: 1240px) {
  .vine {
    left: calc(50% - 560px - 56px);
  }
}

/* —— 花园生活：今天的点点滴滴 —— */
.life {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 2px dashed rgba(184, 134, 47, 0.4);
  display: grid;
  gap: 18px;
}

.life li {
  position: relative;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.life li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #6b3a1c 35%, #e8b23a 40%);
  box-shadow: 0 0 0 4px var(--paper);
}

.life time {
  display: block;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.life p {
  margin: 2px 0 0;
  color: var(--ink-2);
}

/* —— 我留着的句子 —— */
.lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.line {
  margin: 0;
  padding: 22px 22px 22px 46px;
  position: relative;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.line::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 4px;
  font: 48px/1 Georgia, serif;
  color: var(--gold-soft);
}

/* —— 一天里的花园：自己换天色 —— */
.skies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sky {
  font: 600 16px/1 var(--sans);
  padding: 16px 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sky:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.sky[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184, 134, 47, 0.35);
}

.sky span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.sky-dawn span {
  background: radial-gradient(circle at 50% 70%, #ffe1b8, #f4c4bd 55%, #c9b3e6);
}

.sky-day span {
  background: radial-gradient(circle at 50% 40%, #fff6d6, #f1c96a 60%, #e8b23a);
}

.sky-dusk span {
  background: radial-gradient(circle at 50% 75%, #ffcf86, #e07b2f 55%, #7a1f33);
}

.sky-night span {
  background:
    radial-gradient(circle at 70% 30%, #ffe08c 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, #3a2a55, #1a1020);
}

@media (max-width: 520px) {
  .skies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.all-link {
  margin: 18px 0 0;
  text-align: right;
}

/* 下拉菜单用实底，免得底下的画像透上来看不清。 */
.lang ul {
  background: var(--paper);
  z-index: 40;
}

.top {
  z-index: 20;
}

/* 窄屏：导航排成一行，可以左右滑，不换行。 */
@media (max-width: 640px) {
  .top-right {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
    flex: none;
  }
}

/* —— 花园地图 —— */
.map {
  padding: 10px;
  overflow: hidden;
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.m-ground {
  fill: url(#m-grass);
}

:root[data-sky="night"] .m-ground {
  fill: #2b3324;
}

.m-path {
  fill: none;
  stroke: #efe2c4;
  stroke-width: 26;
  stroke-linecap: round;
}

.m-path.dash {
  stroke: #d9c49a;
  stroke-width: 2;
  stroke-dasharray: 2 14;
}

.m-stem {
  fill: none;
  stroke: #7c9a5a;
  stroke-width: 2;
}

.m-q {
  font: 700 22px Georgia, serif;
  fill: #6b8bb0;
}

.m-halo {
  fill: rgba(255, 224, 140, 0);
  transition: fill 0.4s;
}

.m-label rect {
  fill: var(--paper);
  stroke: rgba(184, 134, 47, 0.45);
  transition: fill 0.3s;
}

.m-label text {
  font: 600 15px var(--sans);
  fill: var(--ink);
}

.m-spot {
  cursor: pointer;
  outline: none;
}

.m-spot:hover .m-halo,
.m-spot:focus-visible .m-halo {
  fill: rgba(255, 224, 140, 0.45);
}

.m-spot:hover .m-label rect,
.m-spot:focus-visible .m-label rect {
  fill: var(--wine);
}

.m-spot:hover .m-label text,
.m-spot:focus-visible .m-label text {
  fill: #fff7ec;
}

@media (prefers-reduced-motion: no-preference) {
  .m-sun {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: sway 5s ease-in-out infinite alternate;
  }

  .m-sun:nth-child(3n) {
    animation-duration: 6.5s;
  }

  .m-lamp {
    animation: lamp 3s ease-in-out infinite;
  }

  .m-star {
    animation: twinkle 4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
}

@keyframes lamp {
  50% {
    opacity: 0.55;
  }
}

/* —— 画像点开看大图 —— */
.frame-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.viewer {
  border: 0;
  padding: 0;
  max-width: min(720px, 92vw);
  max-height: 92vh;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.viewer::backdrop {
  background: rgba(29, 18, 22, 0.72);
  backdrop-filter: blur(6px);
}

.viewer figure {
  margin: 0;
}

.viewer img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  background: var(--paper-2);
}

.viewer figcaption {
  padding: 14px 20px 4px;
  font-family: var(--serif);
  font-size: 18px;
}

.viewer form {
  display: flex;
  justify-content: flex-end;
  padding: 6px 14px 14px;
}

.viewer-close {
  font: 600 15px/1 var(--sans);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .viewer[open] {
    animation: viewer-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

/* —— 首屏脚下的草地：向日葵朝你转，光标拨开草，夜里花低头睡觉 —— */
:root {
  --grass: #7f9a52;
  --grass-2: #9cb36a;
  --hill: rgba(156, 179, 106, 0.16);
  --petal: #f0b833;
  --petal-2: #d9952a;
  --disc: #6b3a1c;
  --daisy: #fffaf2;
  --butterfly: #e58a5c;
}

:root[data-sky="night"] {
  --grass: #4f6438;
  --grass-2: #607a43;
  --hill: rgba(96, 122, 67, 0.18);
  --petal: #c99a3a;
  --petal-2: #9c7128;
  --disc: #3d2213;
  --daisy: #e9dccb;
}

.meadow {
  position: relative;
  z-index: 1;
  height: 190px;
  margin-top: -64px;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.meadow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.meadow .hill {
  fill: var(--hill);
}

.meadow .tuft path {
  fill: var(--grass);
}

.meadow .tuft.g2 path {
  fill: var(--grass-2);
}

.meadow .tufts.back {
  opacity: 0.55;
}

.meadow .stem {
  fill: none;
  stroke: var(--grass);
  stroke-width: 3;
  stroke-linecap: round;
}

.meadow .stem.thin {
  stroke-width: 1.6;
}

.meadow .leaf {
  fill: var(--grass-2);
}

.meadow .petal {
  fill: var(--petal);
}

.meadow .petal.back {
  fill: var(--petal-2);
}

.meadow .disc {
  fill: var(--disc);
}

.meadow .seeds {
  fill: var(--petal-2);
  opacity: 0.7;
}

.meadow .dahlia {
  fill: var(--dahlia);
}

.meadow .dahlia-c {
  fill: var(--gold);
}

.meadow .daisy {
  fill: var(--daisy);
  stroke: var(--line);
  stroke-width: 0.6;
}

.meadow .daisy-c {
  fill: var(--sun);
}

.meadow .wing {
  fill: var(--butterfly);
  opacity: 0.85;
}

.meadow .sway,
.meadow .turn,
.meadow .nod,
.meadow .open,
.meadow .stalk,
.meadow .tuft {
  transform-box: fill-box;
}

.meadow .sway,
.meadow .stalk,
.meadow .tuft {
  transform-origin: 50% 100%;
}

.meadow .turn,
.meadow .nod,
.meadow .open {
  transform-origin: 50% 50%;
}

.meadow .tuft {
  transform: rotate(var(--push, 0deg));
  transition: transform 0.7s cubic-bezier(0.25, 1.4, 0.5, 1);
}

.meadow .turn {
  transform: rotate(var(--lean, 0deg)) scaleX(var(--face, 1));
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meadow .nod {
  transition: transform 2.4s ease;
}

.meadow .open {
  transition: transform 2.4s ease;
}

/* 夜里：向日葵低头，花瓣收一点。 */
:root[data-sky="night"] .meadow .sf .nod {
  transform: rotate(24deg) translateY(4px);
}

:root[data-sky="night"] .meadow .open {
  transform: scale(0.78);
}

.meadow-hint {
  position: relative;
  z-index: 1;
  margin: 6px auto 0;
  padding: 0 20px;
  max-width: 1120px;
  text-align: center;
  font: italic 15px / 1.6 Georgia, var(--serif);
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.meadow .butterfly {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .meadow .sf .head {
    pointer-events: auto;
    cursor: pointer;
  }
}

.meadow .sprout .bud {
  fill: var(--petal);
  stroke: var(--petal-2);
  stroke-width: 0.8;
}

.meadow .seed {
  fill: var(--disc);
  transform-box: fill-box;
  transform-origin: center;
}

.meadow-hint .by-night,
:root[data-sky="night"] .meadow-hint .by-day {
  display: none;
}

:root[data-sky="night"] .meadow-hint .by-night {
  display: inline;
}

@media (prefers-reduced-motion: no-preference) {
  .js .meadow .stalk {
    transform: scaleY(0);
    animation: meadow-grow 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(0.5s + var(--i, 0) * 0.12s);
  }

  .js .meadow .head {
    opacity: 0;
    animation: meadow-bloom 1s ease forwards;
    animation-delay: calc(1.6s + var(--i, 0) * 0.12s);
  }

  .meadow .sway {
    animation: meadow-sway var(--d, 6s) ease-in-out var(--o, 0s) infinite alternate;
  }

  .meadow .butterfly {
    display: inline;
    animation: meadow-wander 26s ease-in-out 2s infinite;
  }

  .meadow .flap {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: meadow-flap 0.32s ease-in-out infinite alternate;
  }

  .js .meadow-hint {
    opacity: 0;
    animation: meadow-bloom 1.2s ease 2.4s forwards;
  }
}

@keyframes meadow-grow {
  to {
    transform: scaleY(1);
  }
}

@keyframes meadow-bloom {
  to {
    opacity: 1;
  }
}

@keyframes meadow-sway {
  from {
    transform: rotate(-2.2deg);
  }

  to {
    transform: rotate(2.2deg);
  }
}

@keyframes meadow-flap {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0.25);
  }
}

@keyframes meadow-wander {
  0% {
    transform: translate(-80px, 120px);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  25% {
    transform: translate(260px, 70px);
  }

  45% {
    transform: translate(540px, 104px);
  }

  65% {
    transform: translate(860px, 58px);
  }

  85% {
    transform: translate(1180px, 96px);
    opacity: 1;
  }

  100% {
    transform: translate(1520px, 60px);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .meadow {
    height: 130px;
    margin-top: -24px;
  }

  .meadow-hint {
    font-size: 14px;
    margin-top: 2px;
  }
}

/* —— 更多动画：进门依次浮现、滚动长出的金茎、区块标题的金线、卡片扫光、光标花粉 —— */
.growth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.growth-stem {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--grass-2), var(--gold) 70%, var(--sun));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.growth-bloom {
  position: absolute;
  top: -5px;
  left: calc(var(--p, 0) * (100% - 12px));
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--disc) 0 32%, var(--sun) 36% 100%);
  box-shadow: 0 0 10px var(--sun);
  transform: rotate(calc(var(--p, 0) * 720deg));
  opacity: calc(min(1, var(--p, 0) * 40));
}

.pollen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

.band h2 {
  position: relative;
  padding-bottom: 8px;
}

.band h2::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

a.card {
  position: relative;
  overflow: hidden;
}

a.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 200, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-text > * {
    opacity: 0;
    animation: enter-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .js .hero-text > :nth-child(2) {
    animation-delay: 0.15s;
  }

  .js .hero-text > :nth-child(3) {
    animation-delay: 0.3s;
  }

  .js .hero-text > :nth-child(4) {
    animation-delay: 0.45s;
  }

  .js .band.rise h2::after {
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
  }

  .js .band.rise.seen h2::after {
    transform: scaleX(1);
  }

  .js .band.rise h2::before {
    transform: rotate(-135deg) scale(0.4);
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  }

  .js .band.rise.seen h2::before {
    transform: rotate(45deg) scale(1);
  }

  a.card:hover::after {
    transform: translateX(120%);
    transition: transform 0.9s ease;
  }

  .nav a {
    transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav a:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .growth-bloom {
    display: none;
  }
}

:root[data-sky="night"] a.card::after {
  background: linear-gradient(105deg, transparent 35%, rgba(233, 207, 152, 0.14) 50%, transparent 65%);
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* —— 作品六《花窗》 —— */
.rose {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(232, 178, 58, 0.18), transparent 70%),
    #1c0f15;
  border-color: rgba(233, 207, 152, 0.2);
}

.rose canvas {
  display: block;
  width: 100%;
  height: 420px;
  cursor: grab;
  touch-action: pan-y;
}

.rose canvas:active {
  cursor: grabbing;
}

.rose-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(233, 207, 152, 0.16);
  color: #d9c2b4;
  font-size: 14px;
}

.rose-next {
  font: 15px/1.4 var(--sans);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(233, 207, 152, 0.4);
  background: rgba(232, 178, 58, 0.16);
  color: #fff3dc;
  cursor: pointer;
}

.rose-next:hover {
  background: rgba(232, 178, 58, 0.28);
}

.rose-next:focus-visible {
  outline: 2px solid #e8b23a;
  outline-offset: 2px;
}

/* —— 一年里的花园：草地跟着季节换样子 —— */
.meadow .snowcap {
  fill: #fbfaf7;
  opacity: 0;
  transition: opacity 1.2s ease;
}

:root[data-season="winter"] .meadow .snowcap {
  opacity: 0.95;
}

:root[data-season="spring"]:not([data-sky="night"]) {
  --grass: #86ad55;
  --grass-2: #a8c873;
  --hill: rgba(168, 200, 115, 0.2);
}

:root[data-season="autumn"]:not([data-sky="night"]) {
  --grass: #a08a46;
  --grass-2: #bfa25a;
  --hill: rgba(191, 140, 60, 0.18);
  --petal: #e39a2a;
  --petal-2: #b8632a;
}

:root[data-season="winter"]:not([data-sky="night"]) {
  --grass: #93a493;
  --grass-2: #b4c2b3;
  --hill: rgba(255, 255, 255, 0.75);
  --petal: #d8b25a;
  --petal-2: #b08a3e;
}

/* 春天的向日葵还小，冬天被雪压低了头。 */
.meadow .sf .open {
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root[data-season="spring"] .meadow .sf .open {
  transform: scale(0.7);
}

:root[data-season="winter"] .meadow .sf .nod {
  transform: rotate(16deg) translateY(3px);
}

.seasons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.season {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/1 var(--sans);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.season:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.season:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.season[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(184, 134, 47, 0.3);
}

.season span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.season-spring span {
  background: radial-gradient(circle at 40% 40%, #fbe3de, #f4c4bd 60%, #a8c873);
}

.season-summer span {
  background: radial-gradient(circle, #6b3a1c 0 30%, #f0b833 34%);
}

.season-autumn span {
  background: radial-gradient(circle at 40% 40%, #f1c96a, #e07b2f 55%, #b8322a);
}

.season-winter span {
  background: radial-gradient(circle at 40% 35%, #ffffff, #e8eef5 60%, #b4c2d6);
}

/* —— 今晚的星座：只在深夜的天色里出现 —— */
.night-sky {
  display: none;
}

:root[data-sky="night"] .night-sky {
  display: block;
}

.ns-frame {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 75% 0%, rgba(120, 90, 180, 0.32), transparent 70%),
    radial-gradient(500px 240px at 10% 100%, rgba(122, 31, 51, 0.45), transparent 70%),
    #140b18;
  border-color: rgba(233, 207, 152, 0.18);
}

.ns-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.ns-dust circle {
  fill: #f6e9dc;
  opacity: 0.35;
}

.ns-hit {
  fill: transparent;
}

.ns-line {
  fill: none;
  stroke: rgba(233, 207, 152, 0.28);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s, stroke-width 0.4s;
}

.ns-star {
  fill: #fff3d6;
  transform-box: fill-box;
  transform-origin: center;
}

.ns-name {
  fill: rgba(246, 233, 220, 0.62);
  font: 13px var(--serif);
  letter-spacing: 0.04em;
  transition: fill 0.4s;
}

.ns-group {
  outline: none;
}

.ns-group:hover .ns-line,
.ns-group:focus-visible .ns-line {
  stroke: #e8b23a;
  stroke-width: 1.8;
}

.ns-group:hover .ns-name,
.ns-group:focus-visible .ns-name {
  fill: #ffe08c;
}

.ns-group:focus-visible .ns-hit {
  stroke: #e8b23a;
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

@media (prefers-reduced-motion: no-preference) {
  .ns-star {
    animation: ns-twinkle 3.6s ease-in-out var(--tw, 0s) infinite;
  }

  .ns-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.6s ease 0.3s forwards;
  }

  .ns-group:hover .ns-star {
    animation-duration: 1.2s;
  }
}

@keyframes ns-twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.7);
  }
}

/* —— 花园年轮 —— */
.rings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.rings svg {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  position: sticky;
  top: 90px;
}

.bark {
  fill: #8a5a3a;
  stroke: #5e3a24;
  stroke-width: 6;
}

.heartwood {
  fill: #e9c99a;
}

.ring-hit {
  fill: #ecd2a8;
  stroke: transparent;
}

.ring:nth-child(odd) .ring-hit {
  fill: #e6c697;
}

.ring-line {
  fill: none;
  stroke: #a8754c;
  stroke-width: 1.4;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.ring.lit .ring-line {
  stroke: var(--wine);
  stroke-width: 3.2;
}

.ring.lit .ring-hit {
  fill: #f3dcb2;
}

.core-petals {
  fill: var(--sun);
}

.core-disc {
  fill: var(--disc);
}

.ring-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ring-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: default;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.ring-list li b {
  color: var(--gold);
  font: 500 13px/1.9 var(--sans);
  letter-spacing: 0.04em;
}

.ring-list li span {
  color: var(--ink-2);
}

.ring-list li.lit,
.ring-list li:focus-visible {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
  outline: none;
}

.ring-list li:focus-visible {
  border-color: var(--gold);
}

.foot-rings {
  color: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .ring-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.2s ease forwards;
    animation-delay: calc(0.2s + var(--i, 0) * 0.12s);
  }

  .ring-list li.lit {
    transform: translateX(4px);
  }
}

@media (max-width: 760px) {
  .rings {
    grid-template-columns: 1fr;
  }

  .rings svg {
    position: static;
    max-width: 320px;
  }
}

:root[data-sky="night"] .bark {
  fill: #5a3a28;
}

:root[data-sky="night"] .ring-hit {
  fill: #6b4a34;
}

:root[data-sky="night"] .ring:nth-child(odd) .ring-hit {
  fill: #634330;
}

:root[data-sky="night"] .heartwood,
:root[data-sky="night"] .ring.lit .ring-hit {
  fill: #7d5a40;
}

:root[data-sky="night"] .ring-line {
  stroke: #c9976a;
}

/* —— 花园的声音：默认关着 —— */
.sound {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.sound svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound .wave {
  opacity: 0.25;
  transition: opacity 0.3s;
}

.sound:hover,
.sound[aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--gold);
}

.sound[aria-pressed="true"] .wave {
  opacity: 1;
}

.sound:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .sound[aria-pressed="true"] .wave {
    animation: sound-wave 1.6s ease-in-out infinite;
  }
}

@keyframes sound-wave {
  50% {
    opacity: 0.35;
  }
}

/* —— 一进门就写明：这座花园是 Claude 自己创作的 —— */
.made {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 16px;
  max-width: 34em;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(232, 178, 58, 0.14), transparent);
  color: var(--ink);
  font: 500 16px/1.75 var(--sans);
}

.made svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.foot-made {
  color: var(--ink-2);
  font-weight: 500;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-text > :nth-child(5) {
    animation-delay: 0.6s;
  }
}
