:root {
  color-scheme: light;
  --bg: #fdf8f0;
  --surface: #fffdf8;
  --ink: #172e2c;
  --muted: #52635f;
  --green: #125e50;
  --mint: #d7efdc;
  --peach: #ffe3cf;
  --yellow: #fbeab8;
  --line: #ded9cb;
  --radius: 23px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; line-height: 1.6; }
body { margin: 0; background: var(--bg); color: var(--ink); }
body, form, figure { margin-block: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #b04e24; outline-offset: 4px; }
h1, h2, h3, p, ul, ol { margin-block-start: 0; }
h1, h2, h3 { line-height: 1.22; }
p { margin-block-end: 1rem; }
.shell { width: min(calc(100% - 56px), 1160px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; padding: 10px; z-index: 3; background: white; }
.muted, small { color: var(--muted); }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 73px; }
.topbar nav, .footer-inner, .pills, .buttons, .pages { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar nav a { padding: 7px 13px; border-radius: 999px; font-weight: 650; color: var(--ink); text-decoration: none; }
.topbar nav a[aria-current], .topbar nav a:hover { background: var(--mint); color: var(--green); }
.wordmark { font-size: 1.28rem; line-height: 1.2; font-weight: 800; text-decoration: none; color: var(--ink); }
.wordmark img { width: auto; max-width: 180px; height: 44px; object-fit: contain; }
.top-account { justify-self: end; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--green); font-weight: 700; text-decoration: none;
}
.button:hover { border-color: var(--green); }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
.button.primary:hover { background: #0d4e43; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 43px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.shop, .blog-content { min-height: 66vh; padding-block: 34px 64px; }
.welcome {
  position: relative; overflow: hidden; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: center;
  gap: 42px; padding: 46px 50px; border: 1px solid #edcdb0;
  border-radius: 30px; background: linear-gradient(115deg, #fff0d3 1%, #ffe0cb 100%);
}
.welcome-copy { min-width: 0; }
.welcome h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); letter-spacing: -.048em; margin-block-end: 12px; font-weight: 880; }
.welcome p { color: #37514b; max-width: 46ch; }
.welcome-decoration { min-height: 124px; }
.welcome-decoration::before, .welcome-decoration::after {
  content: ""; position: absolute; z-index: -1; width: 280px; height: 280px;
  transform: rotate(-17deg); border: 1px solid #aebeaa; background: var(--mint); border-radius: 65px;
  right: 2%; top: -12%; opacity: .7;
}
.welcome-decoration::after { transform: rotate(24deg); right: -8%; top: 43%; background: #fff4c8; border-color: #e3c793; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px; border-radius: 15px; background: var(--surface); max-width: 590px; }
.search-form input { min-width: 0; border: 0; background: transparent; }
.welcome .pills { margin-block-start: 20px; }
.pills a, .kind {
  padding: 3px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  color: var(--green); font-size: .88rem; font-weight: 650; text-decoration: none;
}
.pills a:hover, .pills a[aria-current] { background: var(--green); border-color: var(--green); color: white; }
.featured { display: block; padding: 11px; background: var(--surface); border: 1px solid #ead1bf; border-radius: 23px; text-decoration: none; box-shadow: 0 8px 24px #35231116; }
.featured img { border-radius: 14px; width: 100%; aspect-ratio: 18 / 11; object-fit: contain; background: var(--mint); }
.featured strong { display: block; overflow-wrap: anywhere; padding: 8px 4px 3px; }
.banner-strip { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 24px; border: 1px solid var(--line); }
.banner-strip figure img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.banner-strip figcaption { padding: 8px 16px; color: var(--ink); background: var(--surface); }
.carousel-controls { display: flex; gap: 6px; position: absolute; inset: auto 12px 12px auto; }
.carousel-controls .button { min-height: 34px; padding: 3px 10px; font-size: .9rem; }
.section-block { margin-top: 38px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 1.95rem); }
.section-head a { font-weight: 700; }
.collections, .gallery-items, .records, .article-index { list-style: none; padding: 0; margin: 0; }
.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.collection {
  height: 100%; display: block; border-radius: 19px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: translate .2s ease, border-color .2s ease;
}
.collection:hover { translate: 0 -3px; border-color: var(--green); }
.collection-cover { background: var(--mint); position: relative; width: 100%; aspect-ratio: 5 / 4; }
.collections li:nth-child(4n + 2) .collection-cover { background: var(--peach); }
.collections li:nth-child(4n + 3) .collection-cover { background: var(--yellow); }
.collections li:nth-child(4n + 4) .collection-cover { background: #d8eaf0; }
.collection-cover img { width: 100%; height: 100%; object-fit: contain; }
.collection-cover .kind { position: absolute; top: 9px; left: 9px; }
.collection h3 { font-size: 1rem; margin: 13px 13px 4px; overflow-wrap: anywhere; }
.collection p { margin: 0 13px 13px; color: var(--muted); font-size: .88rem; }
.rank-grid, .split-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rank-panel, .panel, .filters, .empty, .article-cards > article, .article-media > article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px;
}
.rank-panel h3 { font-size: 1.2rem; margin-bottom: 12px; }
.ranking { padding-inline-start: 1.8em; margin: 0; }
.ranking li::marker { color: var(--green); font-weight: 800; }
.ranking li + li { border-top: 1px solid var(--line); }
.ranking a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0 8px 4px; text-decoration: none; color: var(--ink); }
.ranking small { display: block; }
.ranking img { border-radius: 8px; width: 42px; height: 42px; background: var(--mint); object-fit: contain; }
.ranking data { font-size: .89rem; color: var(--green); }
.ranking strong { overflow-wrap: anywhere; }
.notice { padding: 13px 16px; background: var(--mint); border-radius: 13px; }
.page-heading h1, .blog-heading h1, .standalone h1 { font-size: clamp(2rem, 5vw, 3rem); margin-block: 0 20px; }
.filters { display: grid; grid-template-columns: minmax(180px, 1.7fr) repeat(3, minmax(95px, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 20px; }
.fields, .filters label { display: grid; gap: 5px; }
.fields { gap: 14px; }
.fields button { justify-self: start; }
.fields label { display: grid; gap: 6px; font-weight: 650; }
.fields label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.fields .check input { width: auto; min-height: auto; margin-top: .45em; }
.pages { justify-content: center; margin-block-start: 22px; }
.crumb { color: var(--muted); margin-bottom: 16px; }
.series-view { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); align-items: start; gap: 24px; }
.series-info { display: grid; gap: 13px; position: sticky; top: 20px; overflow-wrap: anywhere; }
.series-info h1, .series-info p, .series-info .pills { margin: 0; }
.series-info h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); }
.gallery-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.picture-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; text-align: center; }
.picture-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #eaf2e9; }
.picture-card figcaption, .picture-card .action { padding: 7px; overflow-wrap: anywhere; }
.picture-card .button { min-height: 34px; padding: 3px 8px; font-size: .86rem; }
.price { color: var(--green); font-size: 1.65rem; font-weight: 800; }
.checkout { width: 100%; }
.compact { width: min(100%, 610px); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.account-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.account-top p { margin: 0; overflow-wrap: anywhere; }
.account-records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.records li { display: grid; gap: 2px; padding: 9px 0; overflow-wrap: anywhere; }
.records li + li { border-top: 1px solid var(--line); }
details { padding: 9px 0; }
summary { cursor: pointer; color: var(--green); font-weight: 700; }
details form { margin-top: 13px; }
.payment-qr { margin-bottom: 10px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding-block: 25px; column-gap: 21px; }
.footer-inner .wordmark { margin-inline-end: auto; font-size: 1.05rem; }
.footer-inner .wordmark img { height: 34px; }
.standalone { margin: 6vh auto; }
.article-index li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.article-index li a { font-weight: 700; }
.article-cards, .article-media { display: grid; gap: 15px; }
.article-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-media > article { display: grid; gap: 18px; grid-template-columns: 105px 1fr; }
.article-media > article time { padding: 7px; background: var(--peach); text-align: center; border-radius: 13px; align-self: start; }
.article-cards p, .article-media p { margin: 0; color: var(--muted); }
.story-narrow { max-width: 730px; margin-inline: auto; }
.story time { color: var(--muted); }
.story h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-block: 10px 21px; }
.story-banner { padding: 18px 24px; background: var(--mint); border-radius: var(--radius); margin-bottom: 20px; }
.story-grid { display: grid; grid-template-columns: 160px 1fr; gap: 20px; }
.story-grid time { display: block; }
.story-copy { overflow-wrap: anywhere; line-height: 1.8; }
.story-copy img { height: auto; }

@media (max-width: 900px) {
  .welcome { padding: 36px; gap: 24px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { grid-template-columns: 1fr auto; row-gap: 8px; padding-block: 12px; }
  .top-account { grid-column: 2; grid-row: 1; }
  .topbar nav { grid-column: 1 / -1; gap: 4px; }
  .topbar nav a { padding: 5px 10px; }
  .shop, .blog-content { padding-block: 22px 42px; }
  .welcome { padding: 24px 19px; grid-template-columns: 1fr; }
  .welcome h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .welcome-decoration { display: none; }
  .featured { width: min(70%, 260px); }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rank-grid, .split-panel, .series-view, .account-records, .article-cards, .story-grid { grid-template-columns: 1fr; }
  .series-info { position: static; grid-row: 1; }
  .gallery-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .panel, .rank-panel { padding: 15px; }
  .article-media > article { grid-template-columns: 1fr; }
  .article-media > article time { justify-self: start; }
  .carousel-controls { inset: auto 5px 4px auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
