:root {
  color-scheme: light;
  --paper: #fcfaf5;
  --ink: #202922;
  --muted: #515a50;
  --line: #d7dbd1;
  --green: #245238;
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--green); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #a54820; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; }
.header-inner { min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.045em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(14px, 3vw, 38px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover, nav a[aria-current] { color: var(--green); text-decoration: underline; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); align-items: end; gap: 32px; padding-block: clamp(40px, 6vw, 76px) 46px; border-bottom: 1px solid var(--line); }
h1 { font-family: var(--display); font-size: clamp(2.25rem, 6vw, 5.05rem); line-height: 1.13; letter-spacing: -.05em; }
.intro h1 span { color: #a54a2d; }
.intro-side { padding-bottom: 4px; }
.intro-side p { font-size: 17px; line-height: 1.75; color: var(--muted); margin-bottom: 8px; }
.text-link { display: inline-flex; gap: .55em; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section { padding-block: 28px 0; scroll-margin-top: 16px; }
.section h2 { font-size: 18px; margin-bottom: 16px; }
.cat-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-block: 0; margin-top: 28px; background: #f3e8f4; border: 1px solid #e0cfdf; border-radius: 18px; overflow: hidden; }
.cat-spotlight-copy { padding: clamp(23px, 4vw, 46px); }
.cat-spotlight h2 { margin-bottom: 10px; color: #4a365c; font-family: var(--display); font-size: clamp(1.9rem, 4vw, 3rem); }
.cat-spotlight p { max-width: 34ch; color: #57465c; line-height: 1.75; }
.cat-spotlight .text-link { color: #583a69; margin-top: 8px; }
.cat-spotlight img { width: 100%; max-height: 248px; object-fit: cover; object-position: center 74%; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { grid-column: 1 / -1; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 340px; background: #1d3d30; color: #fff9e8; border-radius: 20px; overflow: hidden; }
.feature-copy { padding: clamp(28px, 4vw, 50px); align-self: center; }
.type { display: block; font-size: 13px; line-height: 1.5; font-weight: 700; color: var(--green); }
.feature .type { color: #d3e2a7; }
.feature h3 { margin-top: 10px; font-family: var(--display); font-size: clamp(2.25rem, 4.2vw, 3.8rem); line-height: 1.12; letter-spacing: -.035em; }
.feature p { margin-top: 14px; max-width: 27ch; color: #e9eddf; font-size: 16px; line-height: 1.8; }
.button { display: inline-flex; gap: 12px; align-items: center; min-height: 46px; padding: 8px 17px; margin-top: 23px; border-radius: 8px; background: #ecf0c5; color: #20372b; text-decoration: none; font-size: 15px; font-weight: 750; }
.button:hover { background: #fff5d8; text-decoration: underline; }
.feature .button:focus-visible { outline-color: #fff9e8; }
.feature-visual { position: relative; overflow: hidden; min-height: 250px; background: radial-gradient(ellipse at 60% 70%, #486a47, transparent 70%); }
.orbit { position: absolute; top: 3%; left: 16%; width: 72%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #a9bd8c55; box-shadow: 0 0 0 22px #a9bd8c15, 0 0 0 44px #a9bd8c12; }
.feature-board { position: absolute; width: min(48%, 276px); top: 8%; right: 15%; transform: rotate(10deg); border-radius: 9px; box-shadow: 8px 16px 30px #0e241da6; }
.feature-cat { position: absolute; z-index: 1; width: min(31%, 175px); bottom: 5%; left: 9%; filter: drop-shadow(0 7px 9px #16271b55); }
.product { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; border-radius: 16px; padding: clamp(19px, 2.1vw, 28px); border: 1px solid transparent; }
.product > div { display: flex; flex-direction: column; align-items: start; }
.tools { background: #e9efe3; border-color: #d7e1d1; }
.arcade { background: #f4e9de; border-color: #e9d9c9; }
.arcade .type { color: #85411f; }
.animation { background: #ebe8f3; border-color: #dbd4e9; }
.animation .type { color: #574174; }
.product h3 { margin-top: 4px; font-size: clamp(1.28rem, 2.1vw, 1.6rem); line-height: 1.25; letter-spacing: -.035em; }
.product p, .guide-list p { margin-top: 8px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.product p { margin-bottom: 4px; }
.product .text-link { margin-top: auto; }
.product-icon { display: grid; grid-template: repeat(2, 12px) / repeat(2, 12px); align-content: center; justify-content: center; gap: 4px; width: 52px; height: 52px; background: #305841; color: #e9f0d5; border-radius: 13px; }
.product-icon i { background: currentColor; border-radius: 2px; }
.tools .product-icon i:last-child { border: 2px solid; background: transparent; }
.arcade .product-icon { background: #853e24; color: #ffdfad; transform: rotate(-7deg); }
.arcade .product-icon i { border-radius: 50%; }
.arcade .product-icon i:nth-child(2) { opacity: .58; }
.animation .product-icon { position: relative; background: #574174; color: #f4e9ff; }
.animation .product-icon::before, .animation .product-icon::after {
  content: "";
  position: absolute;
  height: 3px;
  background: currentColor;
  transform-origin: left center;
}
.animation .product-icon::before { top: 34px; left: 13px; width: 22px; transform: rotate(-60deg); }
.animation .product-icon::after { top: 15px; left: 24px; width: 15px; transform: rotate(30deg); }
.animation .product-icon i { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 50%; }
.animation .product-icon i:nth-child(1) { top: 30px; left: 9px; }
.animation .product-icon i:nth-child(2) { top: 11px; left: 20px; }
.animation .product-icon i:nth-child(3) { top: 18px; left: 33px; }
.guides { padding-block: 44px 58px; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.guide-list article { padding: 20px; min-width: 0; }
.guide-list article:nth-child(3n + 1) { padding-left: 0; }
.guide-list article:not(:nth-child(3n + 1)) { border-inline-start: 1px solid var(--line); }
.guide-list article:nth-child(n + 4) { border-top: 1px solid var(--line); }
.guide-list h3 { margin-top: 4px; font-size: 18px; line-height: 1.4; }
.guide-list h3 a { color: var(--ink); display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.guide-list h3 a:hover { text-decoration: underline; }
.guide-list h3 span { color: var(--green); }
.site-footer { border-top: 1px solid var(--line); padding-block: 15px; }
.site-footer .brand { font-size: 20px; }
.reading { width: min(740px, calc(100% - 96px)); margin-inline: auto; padding-block: 36px 64px; }
.reading h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); margin-block: 15px 18px; }
.reading h2 { margin-top: 32px; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.4; }
.reading p, .reading li { font-size: 16px; line-height: 1.85; color: var(--muted); }
.reading p { margin-top: 10px; }
.reading .lead { font-size: 18px; }
.reading ul, .reading ol { padding-inline-start: 1.5em; }
.reading li + li { margin-top: 8px; }
.reading figure { margin-block: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f2efe3; }
.reading figure img { width: min(100%, 340px); margin-inline: auto; border-radius: 6px; }
.reading .wide-figure img { width: 100%; }
.reading .game-board img { width: min(100%, 470px); }
.reading figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.reading .button { background: var(--green); color: white; }
.reading .button:hover { background: #163b28; }
.example { padding: 14px 16px; background: #e9efe3; border-inline-start: 3px solid #558164; overflow-wrap: anywhere; }

@media (min-width: 721px) and (max-width: 960px) {
  .product { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .wrap, .reading { width: calc(100% - 40px); }
  .intro { grid-template-columns: 1fr; gap: 16px; padding-bottom: 25px; }
  .feature { grid-template-columns: 1fr; }
  .feature-copy { padding-bottom: 12px; }
  .feature-visual { min-height: clamp(196px, 55vw, 320px); }
  .feature-board { max-width: 245px; }
  .products, .guide-list, .cat-spotlight { grid-template-columns: 1fr; }
  .cat-spotlight img { max-height: 210px; }
  .guide-list article { padding: 14px 0; }
  .guide-list article:not(:nth-child(3n + 1)) { border-inline-start: 0; }
  .guide-list article + article { border-top: 1px solid var(--line); }
  .guides { padding-block: 34px 40px; }
}

@media (max-width: 420px) {
  .header-inner { min-height: 64px; }
  .header-inner .brand { font-size: 21px; }
  .header-inner .brand img { width: 29px; }
  nav { gap: 2px 12px; }
  nav a { font-size: 13px; }
}

@media (max-width: 350px) {
  .header-inner, .footer-inner { flex-wrap: wrap; }
  .header-inner { padding-block: 10px 0; }
}
