:root {
  color-scheme: light;
  --ink: #49352e;
  --muted: #635650;
  --paper: #fffcf9;
  --line: #f2e5dc;
  --accent: #ff9872;
  --container: 1290px;
  font: 100%/1.55 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #986046; outline-offset: 4px; }
.container { width: min(var(--container), calc(100% - 7.5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 1rem; top: -7rem; padding: .65rem 1rem; background: white; border-radius: 12px; }
.skip:focus { top: .5rem; }
.header { background: #e2f2fb; position: relative; z-index: 3; }
.bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1010px; }
.brand { display: inline-flex; align-items: center; gap: .35rem; font-size: 1.45rem; font-weight: 900; white-space: nowrap; }
.brand img { width: 50px; height: auto; }
.spark { display: inline-block; position: absolute; width: 20px; height: 27px; margin-left: 7px; transform: translateY(-4px); color: #ffc94e; }
.spark::before, .spark::after { content: ""; width: 15px; height: 4px; border-radius: 9px; background: currentColor; position: absolute; left: 2px; top: 12px; transform: rotate(-27deg); }
.spark::after { transform: rotate(10deg); top: 21px; width: 10px; left: 5px; }
.spark::before { box-shadow: 0 -8px currentColor; }
.brand .spark { position: relative; margin-left: 0; color: #f69258; transform: scale(.65) translateY(-9px); }
#nav { display: flex; align-items: center; gap: clamp(.2rem, 1.2vw, 1.25rem); }
#nav a { padding: .28rem clamp(.55rem, 1.15vw, 1rem); white-space: nowrap; border-radius: 14px; font-weight: 700; transition: background .2s; }
#nav a:hover, #nav a[aria-current] { background: #fbdccd; }
.menu-toggle { display: none; border: 0; background: #fbe1d4; border-radius: 14px; padding: .6rem .8rem; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(252px, 17.7vw, 280px);
  background: linear-gradient(180deg,#adddf8 0%,#d3effb 72%,#dff0bd 94%,var(--paper) 99%);
}
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto -4% -20px; height: 35px; background: var(--paper); border-radius: 50% 42% 0 0; }
.hero-garden { position: absolute; z-index: -2; width: clamp(114px, 13vw, 200px); height: auto; bottom: 0; left: 0; mask-image: linear-gradient(90deg,#000 49%,transparent 100%); }
.hero-art { position: absolute; z-index: -2; width: min(50%, 755px); height: 100%; object-fit: cover; object-position: left bottom; right: 0; bottom: 0; mask-image: linear-gradient(90deg,transparent,#000 13%); }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { width: max-content; max-width: 60%; padding: clamp(1.8rem, 2.6vw, 3rem) 0 2.4rem; margin-left: clamp(55px, 14.25vw, 218px); }
.hero h1 { position: relative; width: fit-content; max-width: 100%; font: 950 clamp(2rem, 3.6vw, 3.85rem)/1.22 "Microsoft YaHei", "PingFang SC", "YouYuan", sans-serif; letter-spacing: -.035em; -webkit-text-stroke: .55px currentColor; color: #402b25; text-shadow: 2px 2px #fff6df, -2px -2px #fff6df, 2px -2px #fff6df, -2px 2px #fff6df; }
.hero h1 .spark { transform: scale(1.25) translate(2px, 4px); }
.hero p { font-size: clamp(1rem, 1.5vw, 1.32rem); font-weight: 700; margin-top: .32rem; }
.hero p span { color: #f88464; font-size: 1.4em; line-height: 1; vertical-align: -.05em; text-shadow: 1px 1px white, -1px -1px white; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.05rem; }
.pill { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .42rem 1.45rem; border-radius: 99px; font-size: 1.1rem; font-weight: 800; transition: background .2s, transform .2s; }
.pill:hover { transform: translateY(-2px); }
.primary { background: #ff8c66; color: #39251d; border: 2px solid #fffaf0; padding-inline: 1.9rem; }
.primary:hover { background: #ffab8c; }
.secondary { background: #fffdf8e8; border: 2px solid #624337; }
.secondary:hover { background: #ffefdf; }
.content { padding-block: .65rem 0; }
.content section { scroll-margin-top: 1rem; }
.inline-section { display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: start; gap: 1rem; }
h2 { position: relative; width: fit-content; padding-bottom: .45rem; font: 900 1.65rem/1.3 "Microsoft YaHei", "PingFang SC", "YouYuan", sans-serif; -webkit-text-stroke: .35px currentColor; white-space: nowrap; }
h2::after { content: ""; display: block; width: 69px; height: 5px; background: #ffcc56; border-radius: 50% 60% 28% 25%; transform: rotate(-6deg); margin-top: .25rem; }
.entry-grid, .project-grid { display: grid; gap: .7rem; }
.entry-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.entry {
  display: grid; grid-template-columns: minmax(34px, 33%) minmax(0,1fr); align-items: center;
  gap: .6rem; position: relative; text-align: left; border: 1px solid #ffffffcf;
  border-radius: 22px; padding: .73rem 1.3rem .88rem .8rem; width: 100%; min-height: 106px;
  box-shadow: 0 4px 12px #50332208; transition: transform .2s, box-shadow .2s;
}
.entry:hover, .project-card:hover { transform: translateY(-3px); box-shadow: 0 9px 20px #50332216; }
.entry img { width: 100%; height: auto; border-radius: 12px; mask-image: radial-gradient(ellipse 67% 68%,#000 64%,transparent 100%); }
.entry:hover img { animation: wiggle .4s ease; }
@keyframes wiggle { 30% { transform: rotate(-6deg); } 65% { transform: rotate(5deg); } }
.entry-copy { display: grid; gap: .15rem; }
.entry-copy strong { font-size: 1.2rem; line-height: 1.25; }
.entry-copy > span { font-size: .9rem; color: #4e4642; line-height: 1.5; }
.entry-arrow { position: absolute; right: .52rem; bottom: .52rem; width: 1.5rem; height: 1.5rem; display: grid; place-content: center; border-radius: 50%; background: #fffdf8e8; color: var(--arrow,#904527); font-size: 1.55rem; line-height: 1; padding-bottom: 2px; }
.peach { background: linear-gradient(135deg,#fcf1eb,#fbe6dc); }
.mint { background: linear-gradient(135deg,#e3f6f1,#d5efeb); --arrow: #1b776e; }
.sky { background: linear-gradient(135deg,#edf7ff,#daedfb); --arrow: #1a6fa2; }
.cream { background: linear-gradient(135deg,#fff8e9,#fff0d3); }
.periwinkle { background: #eaf0fd; --arrow: #4261a1; }
.green { background: #e7f7ec; --arrow: #267a5b; }
.lavender { background: #f1eaf9; --arrow: #74528e; }
.project-section { margin-top: 1.7rem; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: .75rem; }
.more { background: transparent; border: 0; border-radius: 10px; padding: .45rem .3rem; min-height: 44px; white-space: nowrap; font-size: .95rem; }
.more:hover { color: #985337; text-decoration: underline; }
.project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.project-card { min-width: 0; background: #fffdfa; border: 1px solid var(--line); border-radius: 19px; padding: .34rem; box-shadow: 0 5px 12px #5c362909; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.project-cover { width: 100%; height: auto; aspect-ratio: 3.45; object-fit: cover; border-radius: 14px 14px 10px 10px; }
.project-body { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .34rem .45rem .46rem; }
.project-copy { min-width: 0; }
.project-copy h3 { font-size: 1.22rem; line-height: 1.22; }
.project-copy p { font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: .16rem; }
.project-action { flex-shrink: 0; display: inline-flex; gap: .25rem; align-items: center; justify-content: center; min-height: 38px; padding: .28rem .7rem; border: 0; border-radius: 99px; font-size: .89rem; font-weight: 750; background: #fbd5c0; transition: background .2s; }
.project-action:hover { background: #ffc4a5; }
.tool-section { margin-top: 1.55rem; }
.tool-section .entry { min-height: 76px; grid-template-columns: minmax(34px, 24%) minmax(0,1fr); padding: .55rem 1.2rem .55rem .85rem; }
.tool-section .entry-arrow { top: 50%; transform: translateY(-50%); background: transparent; right: .25rem; }
.about-section { margin-top: 1.5rem; grid-template-columns: 115px minmax(0,1fr); }
.about-card { position: relative; display: grid; grid-template-columns: minmax(118px,20%) minmax(0,1fr) minmax(150px,31%); align-items: center; border: 1px solid var(--line); border-radius: 23px; min-height: 169px; background: #fffdfa; box-shadow: 0 5px 12px #50332208; }
.portrait { width: 100%; height: auto; max-width: 218px; margin-inline: auto; mask-image: radial-gradient(ellipse 73% 75%,#000 62%,transparent 100%); }
.about-copy { position: relative; z-index: 1; padding: .65rem .4rem; }
.about-copy h3 { font-size: 1.35rem; }
.about-copy p { font-size: .92rem; line-height: 1.55; margin-top: .28rem; }
.about-art { position: absolute; inset: 0 0 0 auto; width: 33%; border-radius: inherit; overflow: hidden; background: linear-gradient(160deg,transparent 28%,#e8f5fb 52%,#d8eab0 75%,#b6d782 100%); mask-image: linear-gradient(90deg,transparent,#000 23%); }
.scene { position: absolute; width: min(71%,253px); aspect-ratio: 219 / 184; bottom: 0; left: 0; mask-image: linear-gradient(90deg,#000 78%,transparent); }
.landscape { width: 100%; height: auto; }
.sleeping-cat { position: absolute; left: 36.5297%; top: 44.0217%; width: 57.5342%; height: auto; }
.sign { position: absolute; display: grid; align-content: center; gap: 2px; right: 8%; top: 1%; bottom: 0; padding: 0 .1rem; }
.sign::before { content: ""; position: absolute; z-index: -1; width: 13px; background: #b3794e; border: 2px solid #a26943; border-radius: 8px; inset: 4% 0 0 45%; }
.sign span { display: block; text-align: center; padding: .08rem .8rem; font-weight: 850; color: #583824; border: 2px solid #b68153; background: #ffd9ad; border-radius: 8px 13px 12px 6px; box-shadow: inset 0 0 0 2px #ffe9cd; transform: rotate(-4deg); }
.sign span:nth-child(even) { transform: rotate(3deg); }
.footer { position: relative; isolation: isolate; padding: .8rem 0 1.25rem; margin-top: .3rem; background: linear-gradient(180deg,transparent 24%,#eef6e8 90%); }
.footer::before, .footer::after { content: ""; position: absolute; z-index: -1; bottom: 0; width: min(23vw,240px); height: 68px; background: url("assets/decorations/footer-garden.webp") left bottom / contain no-repeat; mask-image: linear-gradient(90deg,#000 65%,transparent); pointer-events: none; }
.footer::after { right: 0; transform: scaleX(-1); }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: .9rem; font-size: .9rem; }
.footer .brand { font-size: 1rem; }
.footer .brand img { width: 35px; }
#registration { display: flex; flex-wrap: wrap; gap: .5rem; }
#registration a { text-decoration: underline; }
.toast { position: fixed; bottom: max(1rem,env(safe-area-inset-bottom)); z-index: 6; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); display: flex; align-items: center; gap: .6rem; border: 1px solid #edcdba; border-radius: 22px; background: #fff5e9; padding: .45rem .55rem .45rem .8rem; box-shadow: 0 8px 30px #55331a33; }
.toast button { background: #ffeadb; border: 0; border-radius: 50%; min-width: 44px; min-height: 44px; font-size: 1.25rem; }
@media (max-width: 1100px) {
  .container { width: calc(100% - 3.5rem); }
  .inline-section { grid-template-columns: 120px minmax(0,1fr); }
  .hero-copy { margin-left: 8vw; }
  .entry { grid-template-columns: minmax(28px, 27%) minmax(0,1fr); padding-inline: .52rem 1.15rem; }
  .project-body { align-items: flex-start; flex-direction: column; }
  .project-action { align-self: flex-end; }
}
@media (max-width: 900px) {
  .inline-section { grid-template-columns: minmax(0,1fr); gap: .25rem; }
  .entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .entry { grid-template-columns: minmax(34px, 20%) minmax(0,1fr); min-height: 84px; }
  .tool-section .entry { grid-template-columns: minmax(34px, 18%) minmax(0,1fr); }
  .hero-copy { margin-left: 4vw; }
  .hero-art { object-fit: contain; object-position: right bottom; width: 53%; }
}
@media (max-width: 710px) {
  .container { width: calc(100% - 2rem); }
  .bar { min-height: 58px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 43px; }
  .menu-toggle { display: block; min-height: 44px; }
  #nav { display: none; position: absolute; top: calc(100% - 1px); right: 1rem; left: 1rem; background: #f1f9fd; box-shadow: 0 6px 14px #3f302022; border: 1px solid #d2eaf6; border-radius: 0 0 18px 18px; padding: .5rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #nav.is-open { display: grid; }
  #nav a { min-height: 44px; display: grid; place-content: center; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 100%; padding: 1.35rem 0 .25rem; width: 100%; margin: 0; text-align: center; }
  .hero h1 { margin-inline: auto; font-size: clamp(1.65rem,7.7vw,2.75rem); }
  .hero h1 .spark { transform: scale(.9) translateX(-3px); }
  .hero p { font-size: .95rem; }
  .hero-actions { justify-content: center; gap: .65rem; margin-top: .65rem; }
  .pill { font-size: 1rem; min-height: 44px; padding-inline: .9rem; }
  .hero-garden { display: none; }
  .hero-art { position: relative; width: min(100%, 600px); height: auto; margin-inline: auto; mask-image: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-body { flex-direction: row; align-items: center; padding: .5rem; }
  .project-action { align-self: center; min-height: 44px; }
  .entry-grid { gap: .48rem; }
  .entry, .tool-section .entry { grid-template-columns: minmax(28px,24%) minmax(0,1fr); min-height: 86px; border-radius: 17px; gap: .35rem; padding-inline: .45rem 1rem; }
  .entry-copy strong { font-size: 1.02rem; }
  .entry-copy > span { font-size: .81rem; }
  .entry-arrow { width: 1.1rem; height: 1.1rem; font-size: 1.15rem; right: .22rem; bottom: .26rem; }
  .about-card { grid-template-columns: 100px minmax(0,1fr); align-items: start; padding-bottom: 95px; overflow: hidden; }
  .about-copy { padding-right: .5rem; }
  .about-copy h3 { font-size: 1.15rem; }
  .portrait { margin-top: .5rem; }
  .about-art { width: 78%; height: 99px; inset: auto 0 0 auto; }
  .sign { font-size: .65rem; }
  .sign span { padding: 0 .5rem; }
  .scene { width: 55%; }
  .footer-inner { column-gap: .5rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
