/* Marrowick Knit — 虚构品牌概念站（第二版）
   整页底子是一块地衣金色的平针织物；首屏是一圈环形育克，标题放在“领口”里；
   段落之间用窄花边分隔；商品挂着吊牌，地址做成织唛。
   字体：Bricolage Grotesque（可变字重与光学尺寸，SIL OFL）。 */

@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --gold: #e2b634;
  --gold-deep: #c99a1c;
  --indigo: #22356b;
  --indigo-ink: #182751;
  --madder: #a3242c;
  --paper: #f6f3ea;
  --ink-soft: #3d4a6d;
  --knit: none;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font: "Bricolage Grotesque", var(--cjk);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; overflow-x: clip; }
.js:not(.ready) body { visibility: hidden; }
body {
  margin: 0; background-color: var(--gold); background-image: var(--knit); color: var(--indigo-ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.55; font-variation-settings: "opsz" 16; font-weight: 500;
  -webkit-tap-highlight-color: rgba(34, 53, 107, 0.15); touch-action: manipulation; overflow-x: clip;
}
:lang(zh-CN) body, :lang(ja) body, :lang(ko) body { line-height: 1.8; }
::selection { background: var(--indigo); color: var(--gold); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--madder); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; font-variation-settings: "opsz" 96; }
:lang(zh-CN) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { letter-spacing: 0; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
h1, h2, h3, p, dd { overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--indigo); color: var(--gold); padding: 0.75rem 1rem; border-radius: 0.5rem; }
.skip:focus { top: 1rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 页眉 ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.875rem var(--gutter); min-height: 4.25rem;
  background-color: var(--gold); background-image: var(--knit);
  box-shadow: 0 6px 10px -8px rgba(24, 39, 81, 0.45);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; font-variation-settings: "opsz" 48; }
.wordmark svg { width: 2rem; height: 1.5rem; flex: none; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 0.25rem 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch { gap: 0.25rem !important; }
.lang-switch a { display: inline-block; text-decoration: none; font-size: 0.875rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 0.5rem; transition: background-color 0.2s ease; }
.lang-switch a:hover { background: rgba(34, 53, 107, 0.12); }
.lang-switch a[aria-current="true"] { background: var(--indigo); color: var(--gold); }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0.75rem; background: var(--indigo); color: var(--gold); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 1.25rem; height: 1.25rem; }
.menu-btn .x { display: none; }
.menu-open .menu-btn .bars { display: none; }
.menu-open .menu-btn .x { display: block; }
@media (max-width: 52rem) {
  .menu-btn { display: inline-flex; }
  .site-nav { position: fixed; inset: 4.25rem 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 1.5rem var(--gutter) 2rem; background-color: var(--gold); background-image: var(--knit); box-shadow: 0 1rem 2rem rgba(24,39,81,.2); opacity: 0; visibility: hidden; transform: translateY(-0.5rem); transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.25s; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; gap: 0.75rem !important; }
  .nav-links a { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
}

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.375rem; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 999px; border: 0; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--indigo); color: var(--gold); }
.btn-ink:hover { background: var(--indigo-ink); }
.btn-line { color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); background: rgba(246, 243, 234, 0.35); }
.btn-line:hover { background: rgba(246, 243, 234, 0.7); }
.btn-paper { background: var(--paper); color: var(--indigo-ink); }
.btn-paper:hover { background: #fff; }

/* ---------- 首屏：环形育克 ---------- */
.yoke-hero { position: relative; height: calc(100svh - 4.25rem); min-height: 36rem; max-height: 62rem; overflow: hidden; }
#yoke { position: absolute; inset: 0; width: 100%; height: 100%; }
.yoke-hero::after { content: ""; position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--r0) * 2); height: calc(var(--r0) * 2); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 1.25rem 2.5rem -1rem rgba(24, 39, 81, 0.45); pointer-events: none; }
.neck {
  position: absolute; left: var(--cx); top: var(--cy); transform: translate(-50%, -50%); z-index: 2;
  width: calc(var(--r0) * 1.62); text-align: center; display: grid; justify-items: center; gap: 1.25rem;
}
.neck h1 { font-size: clamp(2rem, 3.9vw, 3.75rem); line-height: 0.95; letter-spacing: -0.04em; }
:lang(zh-CN) .neck h1, :lang(ja) .neck h1, :lang(ko) .neck h1 { font-size: clamp(1.625rem, 2.9vw, 2.75rem); line-height: 1.25; }
.neck .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.neck .btn { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.lede-band { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.lede-band p { font-size: clamp(1.25rem, 2.2vw, 1.875rem); line-height: 1.35; font-weight: 600; max-width: 46rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 32; }
@media (max-width: 52rem) {
  .yoke-hero { height: min(calc(100svh - 4.25rem), 44rem); min-height: 30rem; }
  .neck .btn { padding: 0.5rem 0.875rem; }
}

/* ---------- 窄花边分隔 ---------- */
canvas.peerie { display: block; width: 100%; height: 3rem; filter: drop-shadow(0 4px 4px rgba(24,39,81,.25)); }
canvas.peerie.thin { height: 2rem; }

/* ---------- 设计工作台：左边成品、右边花型图，改动立刻看到 ---------- */
.studio { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); scroll-margin-top: 4.25rem; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: center; }
.studio-stage { margin: 0; position: sticky; top: 5.25rem; align-self: start; display: grid; justify-items: center; }
.studio-stage canvas { display: block; width: 100%; max-width: 40rem; aspect-ratio: 1 / 0.9; }
.studio-tag {
  margin-top: -0.5rem; display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0.875rem 0.5rem 1.375rem; position: relative;
  background: var(--paper); color: var(--indigo-ink); border-radius: 0.25rem; font-size: 0.9375rem; transform: rotate(-2deg);
  box-shadow: 0 0.75rem 1.25rem -0.75rem rgba(24, 39, 81, 0.55);
}
.studio-tag::before { content: ""; position: absolute; left: 0.5rem; top: 50%; width: 0.4375rem; height: 0.4375rem; margin-top: -0.22rem; border-radius: 50%; background: var(--gold-deep); box-shadow: inset 0 0 0 2px rgba(24,39,81,.35); }
.studio-tag span { color: var(--madder); font-weight: 800; }
.studio-panel h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 0.98; }
:lang(zh-CN) .studio-panel h2, :lang(ja) .studio-panel h2, :lang(ko) .studio-panel h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.3; }
.studio-panel > p:not(.step):not(.chart-note) { margin-top: 0.875rem; max-width: 32rem; color: var(--ink-soft); }
.step { display: flex; align-items: center; gap: 0.625rem; margin-top: 1.25rem; font-weight: 800; font-size: 1rem; }
.step-n { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--indigo); color: var(--gold); font-size: 0.875rem; }
.cw { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; align-items: center; }
.cw button { font: inherit; font-weight: 700; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.375rem 0.875rem 0.375rem 0.5rem; border-radius: 999px; border: 0; background: rgba(246, 243, 234, 0.55); color: var(--indigo-ink); cursor: pointer; transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.cw button:hover { background: rgba(246, 243, 234, 0.85); }
.cw button[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--indigo); }
.cw .sw { display: inline-flex; width: 2.25rem; height: 1.5rem; border-radius: 999px; overflow: hidden; }
.cw .sw i { flex: 1; }
.chart-box { margin-top: 0.75rem; width: fit-content; max-width: 100%; background: var(--paper); padding: 0.75rem; border-radius: 0.375rem; box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(24, 39, 81, 0.6); background-image: linear-gradient(rgba(34,53,107,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(34,53,107,.06) 1px, transparent 1px); background-size: 12px 12px; position: relative; }
.chart-box::after { content: ""; position: absolute; top: 0.375rem; bottom: 0.375rem; left: 50%; width: 0; border-left: 2px dashed rgba(163, 36, 44, 0.45); pointer-events: none; }
.chart { display: grid; grid-template-rows: repeat(13, 1fr); gap: 2px; }
.chart [role="row"] { display: grid; grid-template-columns: repeat(15, 1fr); gap: 2px; }
.cell { width: clamp(1.125rem, 1.55vw, 1.375rem); aspect-ratio: 1; border: 0; padding: 0; border-radius: 3px; cursor: pointer; transition: transform 0.12s ease, background-color 0.2s ease; position: relative; z-index: 1; }
.cell:hover { transform: scale(1.18); z-index: 2; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--indigo); }
.cell:focus-visible { outline: 3px solid var(--madder); outline-offset: 1px; z-index: 3; }
.cell.flash { animation: cellflash 0.5s ease; z-index: 2; }
@keyframes cellflash { 0% { transform: scale(1.45); box-shadow: 0 0 0 3px var(--madder); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163,36,44,0); } }
.step-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1.25rem; max-width: 26rem; }
.step-row .step { margin-top: 0; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.mini { font: inherit; font-weight: 700; font-size: 0.875rem; min-height: 2.5rem; padding: 0.375rem 0.875rem; border-radius: 999px; border: 0; cursor: pointer; background: rgba(246, 243, 234, 0.6); color: var(--indigo-ink); transition: background-color 0.2s ease; }
.mini:hover:not(:disabled) { background: var(--paper); }
.mini-ink { background: var(--indigo); color: var(--gold); }
.mini-ink:hover:not(:disabled) { background: var(--indigo-ink); }
.mini:disabled { opacity: 0.45; cursor: default; }
.chart-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-soft); }
@media (hover: none) { .chart-note { display: none; } }
.neck-link { font-weight: 700; font-size: 0.9375rem; color: var(--indigo-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
@media (max-width: 52rem) {
  .studio { padding-top: 1.5rem; }
  .studio-grid { grid-template-columns: 1fr; gap: 1rem; }
  /* 手机：成品图贴在顶部，往下改花型图时一直看得到 */
  .studio-stage { top: 4.25rem; z-index: 5; margin-inline: calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 0.75rem; background-color: var(--gold); background-image: var(--knit); box-shadow: 0 0.75rem 1rem -0.75rem rgba(24, 39, 81, 0.35); }
  .studio-stage canvas { width: min(100%, 30svh, 17rem); }
  .step-row { max-width: none; }
  .studio-tag { margin-top: -0.25rem; font-size: 0.8125rem; padding-block: 0.3rem; }
  .chart-box { margin-inline: auto; }
  .cell { width: calc((100vw - 2 * var(--gutter) - 1.5rem - 28px) / 15); max-width: 1.625rem; }
}

/* ---------- 区块 ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sec + .label-sec { padding-top: 0; }
.section-h { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 0.98; }
:lang(zh-CN) .section-h, :lang(ja) .section-h, :lang(ko) .section-h { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.25; }
.section-p { margin-top: 1rem; max-width: 38rem; color: var(--ink-soft); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }

/* 挂在商品上的吊牌 */
.swing {
  position: absolute; right: 8%; bottom: 6%; z-index: 2;
  display: grid; gap: 0.125rem; min-width: 7.5rem;
  background: var(--paper); color: var(--indigo-ink);
  padding: 1.25rem 0.875rem 0.75rem; border-radius: 0.25rem 0.25rem 0.5rem 0.5rem;
  clip-path: polygon(18% 0, 82% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: 0 0.75rem 1rem -0.5rem rgba(24, 39, 81, 0.5);
  transform: rotate(var(--tilt, 4deg)); transform-origin: 50% 0;
  font-size: 0.9375rem; line-height: 1.25;
}
.swing::before { content: ""; position: absolute; left: 50%; top: 0.375rem; width: 0.5rem; height: 0.5rem; margin-left: -0.25rem; border-radius: 50%; background: var(--gold-deep); box-shadow: inset 0 0 0 2px rgba(24,39,81,.35); }
.swing b { font-weight: 800; }
.swing .price { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; color: var(--madder); }

.goods { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.goods li { position: relative; min-width: 0; }
.knitpic { aspect-ratio: 1; position: relative; }
.knitpic canvas { position: absolute; inset: 0; }
.goods li:nth-child(2) .swing { --tilt: -3deg; }
.goods li:nth-child(3) .swing { --tilt: 2deg; }
.goods li:nth-child(4) .swing { --tilt: -5deg; }
@media (max-width: 60rem) { .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } .swing { right: 0; bottom: -0.5rem; font-size: 0.8125rem; min-width: 0; } }

/* 从羊毛到毛衣：一根毛线串起五步 */
.thread-wrap { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.yarn-line { position: absolute; left: 0; right: 0; top: 0.9rem; height: 2rem; width: 100%; pointer-events: none; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; counter-reset: s; }
.thread li { position: relative; counter-increment: s; }
.thread li::before { content: counter(s); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--indigo); color: var(--gold); font-weight: 800; position: relative; box-shadow: 0 0 0 5px var(--gold); }
.thread b { display: block; margin-top: 1rem; font-size: 1.1875rem; font-weight: 800; }
.thread p { margin-top: 0.375rem; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 60rem) {
  .yarn-line { display: none; }
  .thread { grid-template-columns: 1fr; gap: 1.5rem; }
  .thread li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1.25rem; }
  .thread li::before { grid-row: span 2; }
  .thread b { margin-top: 0.25rem; }
}

/* 织唛：地址与营业时间 */
.label-sec { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.woven {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 1.5rem 2.5rem; align-items: end;
  background: var(--madder); color: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 3px;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(24, 39, 81, 0.6);
  transform: rotate(-0.6deg);
}
.woven::before { content: ""; position: absolute; inset: 0.5rem; border: 2px dashed rgba(246, 243, 234, 0.55); border-radius: 2px; pointer-events: none; }
.woven h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.02; }
:lang(zh-CN) .woven h2, :lang(ja) .woven h2, :lang(ko) .woven h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.3; }
.woven dl { margin: 0; }
.woven dt { font-size: 0.9375rem; color: #f1c8ca; }
.woven dd { margin: 0.25rem 0 0; font-weight: 800; }
@media (max-width: 60rem) { .woven { grid-template-columns: 1fr 1fr; } .woven h2 { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .woven { grid-template-columns: 1fr; } }

/* 页脚 */
.foot { padding: 2.5rem 0 3rem; font-size: 0.9375rem; color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 4rem; }
.foot p + p { margin-top: 0.5rem; }
.foot .concept { max-width: 46rem; }
@media (max-width: 40rem) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 内页 ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.92; letter-spacing: -0.045em; }
:lang(zh-CN) .page-head h1, :lang(ja) .page-head h1, :lang(ko) .page-head h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.15; }
.page-head p { margin-top: 1.25rem; max-width: 40rem; font-size: 1.1875rem; }

.tabs-wrap { position: sticky; top: 4.25rem; z-index: 10; background-color: var(--gold); background-image: var(--knit); }
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: inherit; font-weight: 700; font-size: 1rem; min-height: 2.75rem; padding: 0.5rem 1.125rem; border-radius: 999px; border: 0; cursor: pointer; background: rgba(246,243,234,.5); color: var(--indigo-ink); transition: background-color 0.2s ease, color 0.2s ease; }
.tab:hover { background: rgba(246,243,234,.8); }
.tab[aria-selected="true"] { background: var(--indigo); color: var(--gold); }
.tab .count { font-weight: 500; opacity: 0.75; margin-left: 0.25rem; }

.panel { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
.panel[hidden] { display: none; }
.panel-intro { max-width: 40rem; color: var(--ink-soft); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.item { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.item .pic { position: relative; }
.item h3 { font-size: 1.625rem; line-height: 1.1; margin-top: 0.75rem; }
:lang(zh-CN) .item h3, :lang(ja) .item h3, :lang(ko) .item h3 { font-size: 1.375rem; line-height: 1.35; }
.item p { color: var(--ink-soft); }
.item .swing { color: var(--indigo-ink); }
.facts { margin: 0.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-size: 0.9375rem; border-top: 2px solid rgba(34,53,107,.25); padding-top: 0.75rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }

/* 编织说明书一样的纸 */
.leaflet {
  background: var(--paper); color: var(--indigo-ink); border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 3rem);
  background-image: linear-gradient(rgba(34,53,107,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34,53,107,.05) 1px, transparent 1px);
  background-size: 14px 14px;
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(24, 39, 81, 0.6);
  transform: rotate(0.5deg);
}
.leaflet .section-p { color: var(--ink-soft); }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--indigo); color: var(--gold); font-weight: 800; margin-bottom: 0.875rem; }
.steps b { display: block; }
.steps p { color: var(--ink-soft); margin-top: 0.25rem; font-size: 1rem; }
.leaflet .btn { margin-top: 2rem; }
.note { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-soft); }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; } }

.ws { list-style: none; margin: 2rem 0 0; padding: 0; }
.ws li { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: 1rem 2rem; padding: 1.75rem 0; border-bottom: 2px solid rgba(34,53,107,.2); align-items: start; }
.ws li:first-child { border-top: 2px solid rgba(34,53,107,.2); }
.ws h3 { font-size: 1.75rem; line-height: 1.1; }
:lang(zh-CN) .ws h3, :lang(ja) .ws h3, :lang(ko) .ws h3 { font-size: 1.375rem; line-height: 1.35; }
.ws p { color: var(--ink-soft); margin-top: 0.5rem; font-size: 1rem; }
.ws dl { margin: 0; display: grid; gap: 0.5rem; }
.ws dt { font-size: 0.8125rem; color: var(--ink-soft); }
.ws dd { margin: 0; font-weight: 700; }
.ws .fee { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--madder); }
.ws .swatch { width: 5.5rem; aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden; box-shadow: 0 0.5rem 1rem -0.5rem rgba(24,39,81,.6); }
@media (max-width: 52rem) { .ws li { grid-template-columns: auto 1fr; } .ws li > dl { grid-column: 2; } }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .two { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.hours th, .hours td { text-align: left; padding: 0.75rem 0; border-bottom: 2px solid rgba(34,53,107,.2); font-weight: 500; }
.hours th { font-weight: 700; padding-right: 1rem; }
.addr { font-style: normal; margin-top: 1.5rem; display: grid; gap: 0.25rem; }
.addr b { font-size: 1.125rem; }
.faq { margin-top: 1.5rem; border-top: 3px solid var(--indigo); }
.faq details { border-bottom: 2px solid rgba(34,53,107,.2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.125rem 3rem 1.125rem 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -0.75rem; border-radius: 50%; background: var(--indigo) linear-gradient(var(--gold), var(--gold)) center / 10px 2px no-repeat; }
.faq details:not([open]) summary::after { background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)); background-size: 10px 2px, 2px 10px; background-position: center, center; background-repeat: no-repeat; }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 44rem; }
.mail { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
:lang(zh-CN) :is(em, i, figcaption, .note), :lang(ja) :is(em, i, figcaption, .note), :lang(ko) :is(em, i, figcaption, .note) { font-style: normal; }
.goods li, .items li { min-width: 0; }
:lang(ja) .goods h3, :lang(ja) .item h3 { overflow-wrap: anywhere; }

/* ================= 第三版：照片 + 编织圆环 ================= */
img { height: auto; }

/* 首屏：编织圆环里嵌一张照片，配色按钮同时改圆环、照片和吊牌 */
.hero4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h1 ring" "picks ring" "lede ring" "actions ring"; grid-template-rows: auto auto auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem); align-items: start; }
.hero4-h { grid-area: h1; font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 0.96; letter-spacing: -0.04em; }
:lang(zh-CN) .hero4-h, :lang(ja) .hero4-h, :lang(ko) .hero4-h { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.2; letter-spacing: 0; }
.hero4-picks { grid-area: picks; margin-top: clamp(1.25rem, 2.4vw, 2rem); }
.pick-l { font-weight: 800; font-size: 0.9375rem; margin: 0 0 0.5rem; }
.hero4 .lede { grid-area: lede; margin-top: 1.5rem; max-width: 30rem; font-size: 1.125rem; color: var(--ink-soft); }
.hero4-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1.5rem; align-self: start; }
.hero4-actions .neck-link { margin-left: 0.5rem; }
.ringwrap { grid-area: ring; position: relative; width: min(100%, calc(100svh - 7rem), 40rem); justify-self: center; align-self: start; }
.yoke-hero.ring-box { position: relative; width: 100%; height: auto; aspect-ratio: 1; min-height: 0; max-height: none; border-radius: 50%; overflow: hidden; box-shadow: 0 2rem 3rem -1.5rem rgba(24, 39, 81, 0.6); }
.neckpic { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: calc(var(--r0, 30%) * 2); height: calc(var(--r0, 30%) * 2); transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; z-index: 1; background: #f6f3ea; }
.neckpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.neckpic img.on { opacity: 1; transform: none; }
.neckpic img[data-colorway="peat"] { object-position: 50% 24%; }
.neckpic img[data-colorway="lichen"] { object-position: 50% 40%; }
.yoke-hero.ring-box::after { z-index: 2; }
.ring-tag { position: absolute; left: 50%; bottom: -0.5rem; transform: translateX(-50%) rotate(-2deg); display: flex; gap: 0.75rem; align-items: baseline; margin: 0; z-index: 3; white-space: nowrap; padding: 0.5rem 1rem 0.5rem 1.25rem; }
@media (max-width: 52rem) {
  .hero4 { grid-template-columns: 1fr; grid-template-areas: "h1" "ring" "picks" "lede" "actions"; grid-template-rows: auto; padding-top: 0.75rem; }
  .hero4-h { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  :lang(zh-CN) .hero4-h, :lang(ja) .hero4-h, :lang(ko) .hero4-h { font-size: clamp(1.625rem, 6.8vw, 2.125rem); }
  .ringwrap { width: min(100%, 23rem); margin-top: 1rem; }
  .hero4-picks { margin-top: 1.5rem; }
  .hero4-actions .neck-link { margin-left: 0; }
}

/* 商品卡 */
.gpic { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; background: #2a3556; box-shadow: 0 1rem 1.5rem -1rem rgba(24, 39, 81, 0.6); }
.gpic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.goods li:hover .gpic img { transform: scale(1.05); }
.gpic .swing { right: 6%; bottom: 5%; }
.rise { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .rise:not(.in) { opacity: 0; transform: translateY(1.5rem); }
.photo-note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-soft); }

/* 从羊毛到毛衣：每一步一张照片 */
.stepimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.75rem; margin: 0.875rem 0 0; }
@media (max-width: 60rem) { .thread li .stepimg { grid-column: 2; grid-row: 3; margin: 0.75rem 0 0; max-width: 20rem; } }
.islandpic { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.islandpic img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 1rem; box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(24, 39, 81, 0.6); }
.islandpic.left { margin: 1.5rem 0 0; }
.islandpic.left img { aspect-ratio: 16 / 9; }
@media (max-width: 52rem) { .islandpic img { aspect-ratio: 4 / 3; } }

/* 店铺页 */
.pimg { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1rem; background: #2a3556; }
.pimg[src*="j-peat"] { object-position: 50% 22%; }
.pimg[src*="j-lichen"] { object-position: 50% 40%; }
.item .pic .swing { right: 6%; bottom: 5%; }
.head-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.head-pic { margin: 0; aspect-ratio: 4 / 3; max-height: 26rem; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(24, 39, 81, 0.6); }
.head-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 52rem) { .head-split { grid-template-columns: 1fr; } .head-pic { max-height: none; order: -1; aspect-ratio: 16 / 10; } }

/* 工作坊页 */
.wsimg { width: 7.5rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0.5rem 1rem -0.5rem rgba(24, 39, 81, 0.6); }
@media (max-width: 52rem) { .wsimg { width: 5.5rem; } }
