/* ==========================================================================
   辰星玩具 CHENXING TOYS — 「义乌批发目录册」视觉系统
   纸张底色 / 极细分割线 / 等宽价签 / 宋体大标题
   ========================================================================== */

@font-face { font-family: 'Bricolage'; src: url('/static/fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/static/fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains'; src: url('/static/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f2e8;
  --paper-2: #efe9db;
  --paper-3: #e6dfcd;
  --ink: #17140d;
  --ink-70: rgba(23, 20, 13, .70);
  --ink-50: rgba(23, 20, 13, .50);
  --ink-35: rgba(23, 20, 13, .35);
  --rule: rgba(23, 20, 13, .14);
  --rule-2: rgba(23, 20, 13, .26);
  --red: #d6391c;
  --blue: #14556f;
  --yellow: #f0b429;

  --f-display: 'Bricolage', 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --f-body: 'Instrument', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --f-mono: 'JetBrains', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --shadow: 0 1px 0 rgba(23,20,13,.04), 0 18px 40px -28px rgba(23,20,13,.45);
  --gut: clamp(18px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* 纸张颗粒 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, dt, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10000; }
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------------ 顶栏 */
.topbar { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar__l, .topbar__r { color: var(--ink-70); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar__l i { font-style: normal; margin-inline: 8px; color: var(--ink-35); }
.topbar__r a:hover { color: var(--red); }
.langmenu { position: relative; }
.langmenu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--rule-2); padding: 2px 9px; border-radius: 2px; font-size: 11.5px; letter-spacing: .04em; transition: .18s; white-space: nowrap; }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary:hover, .langmenu[open] > summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.langmenu__ul { position: absolute; top: calc(100% + 8px); right: 0; background: var(--paper); border: 1px solid var(--rule-2); min-width: 156px; z-index: 300; box-shadow: var(--shadow); padding: 4px; }
[dir="rtl"] .langmenu__ul { right: auto; left: 0; }
.langmenu__ul li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 13px; transition: .15s; }
.langmenu__ul li a:hover { background: var(--paper-2); }
.langmenu__ul li a.is-on { font-weight: 600; }
.langmenu__ul li a.is-on::after { content: '✓'; color: var(--red); font-size: 12px; }

/* ------------------------------------------------------------------ 页头 */
.masthead { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--rule); }
.masthead__in { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); height: 82px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); border-radius: 3px;
  font-family: var(--f-display); font-size: 23px; font-weight: 700; line-height: 1;
  transition: transform .5s cubic-bezier(.2,.9,.2,1), background .3s;
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); background: var(--red); }
.logo__txt { display: flex; flex-direction: column; gap: 2px; }
.logo__txt strong { font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.logo__txt em { font-family: var(--f-mono); font-style: normal; font-size: 9.5px; letter-spacing: .19em; color: var(--ink-50); }

.nav { display: flex; gap: clamp(6px, 1.6vw, 26px); margin-right: auto; }
.nav__a { position: relative; font-size: 14.5px; font-weight: 500; padding: 6px 2px; color: var(--ink-70); transition: color .2s; }
.nav__a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--red); transition: right .32s cubic-bezier(.2,.9,.2,1); }
.nav__a:hover { color: var(--ink); }
.nav__a:hover::after, .nav__a.is-on::after { right: 0; }
.nav__a.is-on { color: var(--ink); font-weight: 600; }

.searchbox { display: flex; align-items: center; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--paper); overflow: hidden; width: 236px; transition: .25s; }
.searchbox:focus-within { border-color: var(--ink); width: 276px; }
.searchbox input { border: 0; background: none; padding: 8px 10px; font: inherit; font-size: 13px; width: 100%; outline: none; }
.searchbox input::placeholder { color: var(--ink-35); }
.searchbox button { border: 0; background: none; padding: 8px 10px; cursor: pointer; color: var(--ink-50); display: grid; place-items: center; }
.searchbox button:hover { color: var(--red); }

.navcta { flex: none; }
.burger { display: none; border: 1px solid var(--rule-2); background: none; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: .28s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ 按钮 */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 1px solid var(--ink); border-radius: 2px; font-size: 14.5px; font-weight: 600; cursor: pointer; background: none; transition: .26s cubic-bezier(.2,.9,.2,1); white-space: nowrap; }
.btn .ar { transition: transform .3s cubic-bezier(.2,.9,.2,1); }
.btn:hover .ar { transform: translateX(5px); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); border-color: var(--red); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { border-color: var(--rule-2); color: var(--ink-70); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 72%);
  opacity: .85;
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 76px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 84px); }

.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 22px; }
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--ink-35); flex: none; }
.kicker span { position: relative; }

.hero__h1 {
  font-family: var(--f-display);
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.022em;
  margin-bottom: 26px;
}
.hero__h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero__h1 em::after {
  content: ''; position: absolute; left: -1%; right: -1%; bottom: .09em; height: .17em;
  background: var(--yellow); z-index: -1; transform: skewX(-12deg);
}
.lang-en .hero__h1 { letter-spacing: -.035em; font-size: clamp(32px, 4.4vw, 60px); }
.hero__sub { font-size: clamp(15px, 1.15vw, 17px); color: var(--ink-70); max-width: 46ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
.hero__stat { padding-right: clamp(18px, 2.6vw, 38px); margin-right: clamp(18px, 2.6vw, 38px); border-right: 1px solid var(--rule); }
.hero__stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__stat b { display: block; font-family: var(--f-mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.hero__stat b i { font-style: normal; font-size: .5em; color: var(--red); margin-left: 2px; }
.hero__stat span { font-size: 12px; color: var(--ink-50); }

/* Hero 右侧：倾斜的产品卡片堆 */
.stack { position: relative; height: clamp(360px, 46vw, 520px); }
.stack__card {
  position: absolute; background: var(--paper); border: 1px solid var(--rule-2); padding: 9px 9px 0;
  box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.2,.9,.2,1), box-shadow .4s;
  will-change: transform;
}
.stack__card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.stack__card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 2px 10px; }
.stack__card .n { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.stack__card .p { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }
.stack__card:nth-child(1) { width: 47%; left: 0; top: 2%; transform: rotate(-5deg); z-index: 2; }
.stack__card:nth-child(2) { width: 42%; right: 0; top: 20%; transform: rotate(4.5deg); z-index: 3; }
.stack__card:nth-child(3) { width: 38%; left: 16%; bottom: 0; transform: rotate(-1.5deg); z-index: 1; }
.stack:hover .stack__card:nth-child(1) { transform: rotate(-7deg) translate(-6px, -6px); }
.stack:hover .stack__card:nth-child(2) { transform: rotate(6.5deg) translate(6px, -10px); }
.stack:hover .stack__card:nth-child(3) { transform: rotate(-.5deg) translateY(6px); }

.stamp {
  position: absolute; z-index: 5; right: 2%; bottom: 12%;
  width: clamp(88px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; line-height: 1.35;
  box-shadow: 0 10px 24px -12px rgba(214,57,28,.9);
  animation: spin 26s linear infinite;
}
.stamp b { display: block; font-family: var(--f-display); font-size: 22px; letter-spacing: 0; margin-bottom: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ 滚动条带 */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 1px solid var(--ink); }
.ticker__track { display: flex; gap: 0; width: max-content; animation: mar 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 40px); padding: 13px clamp(18px, 3vw, 40px) 13px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.ticker__track span::after { content: '✦'; color: var(--yellow); font-size: 13px; letter-spacing: 0; }
@keyframes mar { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ 区块头 */
.sec { padding-block: clamp(52px, 7vw, 100px); border-bottom: 1px solid var(--rule); }
.sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.sec--flush { border-bottom: 0; }
.sec-head { margin-bottom: clamp(28px, 3.6vw, 52px); }
.sec-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-h2 { font-family: var(--f-display); font-size: clamp(27px, 3.5vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.sec-head__more { font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; transition: .22s; white-space: nowrap; }
.sec-head__more:hover { color: var(--red); border-color: var(--red); }
.sec-head__more:hover .ar { transform: translateX(4px); display: inline-block; }
.sec-head__more .ar { transition: transform .3s; }

/* ------------------------------------------------------------------ 分类目录 */
.cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 72px); border-top: 1px solid var(--rule-2); }
.cat { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 17px 14px 17px 6px; border-bottom: 1px solid var(--rule); position: relative; transition: .3s cubic-bezier(.2,.9,.2,1); }
.cat::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .34s cubic-bezier(.2,.9,.2,1); z-index: 0; }
.cat:hover::before, .cat:focus-visible::before { transform: scaleY(1); }
.cat > * { position: relative; z-index: 1; transition: color .25s; }
.cat__no { font-family: var(--f-mono); font-size: 11px; color: var(--ink-35); }
.cat__t { font-family: var(--f-display); font-size: clamp(19px, 1.9vw, 25px); font-weight: 700; line-height: 1.2; }
.cat__t em { display: block; font-family: var(--f-mono); font-style: normal; font-size: 10px; letter-spacing: .18em; color: var(--ink-35); margin-top: 3px; text-transform: uppercase; font-weight: 500; }
.cat__n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-50); }
.cat:hover .cat__t, .cat:hover .cat__no, .cat:hover .cat__n, .cat:hover .cat__t em { color: var(--paper); }
.cat:hover .cat__no, .cat:hover .cat__t em { opacity: .6; }

/* ------------------------------------------------------------------ 商品卡 */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.card { border: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; transition: border-color .3s, transform .4s cubic-bezier(.2,.9,.2,1), box-shadow .4s; }
.card:hover { border-color: var(--rule-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.9,.2,1), filter .4s; mix-blend-mode: multiply; }
.card:hover .card__media img { transform: scale(1.055); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-35); }
.card__tags { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; padding: 3px 7px; text-transform: uppercase; font-weight: 600; }
.tag--new { background: var(--ink); color: var(--paper); }
.tag--hot { background: var(--red); color: #fff; }
.tag--cus { background: var(--yellow); color: var(--ink); }
.card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__sku { color: var(--ink-35); font-size: 10px; margin-bottom: 1px; }
.card__name { font-size: 14.5px; font-weight: 600; line-height: 1.42; }
.card__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.card__name a:hover { color: var(--red); }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--rule); }
.card__price { font-family: var(--f-mono); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.card__price--q { font-size: 12px; color: var(--ink-50); font-weight: 500; }
.card__moq { font-size: 11px; color: var(--ink-50); }

/* ------------------------------------------------------------------ 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule-2); }
.stat { padding: clamp(20px, 2.6vw, 36px); border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-mono); font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.stat b i { font-style: normal; color: var(--red); font-size: .42em; vertical-align: super; margin-left: 3px; }
.stat span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-50); }

/* ------------------------------------------------------------------ 服务能力 */
.svcs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-2); }
.svc { padding: clamp(22px, 2.8vw, 38px) clamp(16px, 2vw, 30px) clamp(22px, 2.8vw, 38px) 0; border-right: 1px solid var(--rule); position: relative; }
.svc:last-child { border-right: 0; }
.svc__no { font-family: var(--f-mono); font-size: 11px; color: var(--red); display: block; margin-bottom: 16px; letter-spacing: .2em; }
.svc h3 { font-family: var(--f-display); font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; margin-bottom: 9px; }
.svc p { font-size: 13.5px; color: var(--ink-70); line-height: 1.66; }

/* ------------------------------------------------------------------ 展示条 / CTA */
.band { background: var(--ink); color: var(--paper); padding-block: clamp(44px, 6vw, 80px); position: relative; overflow: hidden; }
.band::after { content: 'CHENXING'; position: absolute; right: -2%; bottom: -18%; font-family: var(--f-display); font-weight: 800; font-size: clamp(90px, 17vw, 250px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(246,242,232,.10); pointer-events: none; letter-spacing: -.04em; }
.band__in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.band h2 { font-family: var(--f-display); font-size: clamp(24px, 3.2vw, 42px); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; max-width: 22ch; }
.band p { color: rgba(246,242,232,.6); margin-top: 12px; font-size: 14.5px; max-width: 46ch; }
.band .btn--red { flex: none; }

/* ------------------------------------------------------------------ 产品列表页 */
.pagehead { padding-block: clamp(30px, 4vw, 54px) clamp(22px, 2.6vw, 34px); border-bottom: 1px solid var(--rule); }
.crumb { display: flex; gap: 9px; align-items: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-50); text-transform: uppercase; margin-bottom: 18px; flex-wrap: wrap; }
.crumb a:hover { color: var(--red); }
.crumb i { font-style: normal; color: var(--ink-35); }
.pagehead h1 { font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.pagehead p.lead { margin-top: 14px; color: var(--ink-70); max-width: 62ch; font-size: 15px; }

.filterbar { position: sticky; top: 82px; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.filterbar__in { display: flex; align-items: center; gap: 10px; padding-block: 13px; overflow-x: auto; scrollbar-width: none; }
.filterbar__in::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--rule); padding: 7px 15px; font-size: 13px; white-space: nowrap; transition: .22s; border-radius: 2px; color: var(--ink-70); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip em { font-family: var(--f-mono); font-style: normal; font-size: 10px; opacity: .55; margin-left: 5px; }
.filterbar__sort { margin-left: auto; display: flex; gap: 8px; align-items: center; padding-left: 16px; }
.filterbar__sort select { border: 1px solid var(--rule-2); background: var(--paper); padding: 7px 10px; font: inherit; font-size: 12.5px; border-radius: 2px; cursor: pointer; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 20px 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-50); text-transform: uppercase; }

.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding-block: clamp(34px, 4vw, 56px); }
.pg { display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 12px; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; transition: .2s; }
.pg:hover { border-color: var(--ink); background: var(--paper-2); }
.pg--on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pg--gap { border-color: transparent; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-50); font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; }

/* ------------------------------------------------------------------ 商品详情 */
.pdp { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(28px, 3.6vw, 48px); align-items: start; }
.gallery__main { border: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: 1; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 68px; height: 68px; padding: 0; border: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; cursor: pointer; }
.gallery__thumbs button.is-on { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.pdp__sku { color: var(--ink-50); margin-bottom: 10px; }
.pdp h1 { font-family: var(--f-display); font-size: clamp(25px, 3vw, 38px); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.pdp__en { font-size: 13.5px; color: var(--ink-50); margin-bottom: 22px; }
.pdp__price { display: flex; align-items: flex-end; gap: 12px; padding-block: 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.pdp__price b { font-family: var(--f-mono); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.pdp__price span { font-size: 12.5px; color: var(--ink-50); padding-bottom: 3px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-bottom: 22px; }
.spec > div { padding: 11px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.spec > div:nth-child(odd) { padding-right: 16px; }
.spec > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.spec dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-35); text-transform: uppercase; white-space: nowrap; min-width: 52px; }
.spec dd { margin: 0; font-weight: 500; }
.pdp__desc { font-size: 14.5px; color: var(--ink-70); line-height: 1.8; margin-bottom: 26px; }
.pdp__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pdp__note { border: 1px solid var(--rule); padding: 14px 16px; font-size: 12.5px; color: var(--ink-70); background: var(--paper-2); line-height: 1.7; }

/* ------------------------------------------------------------------ 表单 */
.iform { display: grid; gap: 14px; }
.iform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.iform label { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-50); }
.iform input, .iform textarea, .iform select {
  border: 1px solid var(--rule-2); background: var(--paper); padding: 11px 13px; font-family: var(--f-body); font-size: 14px;
  color: var(--ink); border-radius: 2px; outline: none; transition: border-color .2s, background .2s; width: 100%; resize: vertical;
}
.iform input:focus, .iform textarea:focus, .iform select:focus { border-color: var(--ink); }
.iform__full { grid-column: 1 / -1; }
.iform__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.iform__hint { color: var(--ink-50); font-size: 10.5px; letter-spacing: .1em; }
.band .iform label { color: rgba(246,242,232,.55); }
.band .iform input, .band .iform textarea { background: rgba(246,242,232,.06); border-color: rgba(246,242,232,.18); color: var(--paper); }
.band .iform input:focus, .band .iform textarea:focus { border-color: var(--paper); background: rgba(246,242,232,.1); }

/* ------------------------------------------------------------------ 联系页 */
.contactgrid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 5vw, 76px); align-items: start; }
.clist { border-top: 1px solid var(--rule-2); }
.clist > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.clist dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-35); text-transform: uppercase; }
.clist dd { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.clist dd a { border-bottom: 1px solid var(--rule-2); transition: .2s; }
.clist dd a:hover { color: var(--red); border-color: var(--red); }

/* ------------------------------------------------------------------ 关于页 */
.aboutgrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.aboutgrid h1 { font-family: var(--f-display); font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; position: sticky; top: 108px; }
.aboutgrid .prose p { font-size: 15.5px; line-height: 1.88; color: var(--ink-70); margin-bottom: 20px; }
.aboutgrid .prose p:first-child::first-letter { font-family: var(--f-display); font-size: 3.1em; float: left; line-height: .84; padding: 4px 10px 0 0; color: var(--red); font-weight: 700; }

/* ------------------------------------------------------------------ 定制步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.step { background: var(--paper); padding: clamp(20px, 2.6vw, 34px); }
.step__no { font-family: var(--f-mono); font-size: 30px; font-weight: 700; color: var(--paper-3); line-height: 1; letter-spacing: -.04em; }
.step h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.step p { font-size: 13px; color: var(--ink-70); line-height: 1.7; }

/* ------------------------------------------------------------------ 公告 */
.notice { border: 1px solid var(--rule-2); border-left: 3px solid var(--red); padding: 22px 26px; background: var(--paper-2); margin-bottom: 14px; }
.notice time { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-35); }
.notice h3 { font-size: 16px; font-weight: 600; margin: 7px 0 8px; }
.notice p { font-size: 14px; color: var(--ink-70); line-height: 1.75; }

/* ------------------------------------------------------------------ 页脚 */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 5vw, 68px) 22px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: clamp(26px, 4vw, 64px); padding-bottom: 40px; border-bottom: 1px solid rgba(246,242,232,.14); }
.foot__k { color: rgba(246,242,232,.4); font-size: 9.5px; margin-bottom: 16px; }
.foot__big { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; }
.foot__d { font-size: 13px; color: rgba(246,242,232,.55); line-height: 1.75; max-width: 40ch; }
.foot__ul { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.foot__ul a { color: rgba(246,242,232,.72); transition: .2s; }
.foot__ul a:hover { color: var(--yellow); }
.foot__ul--c li { color: rgba(246,242,232,.55); line-height: 1.6; }
.foot__ul--c a { color: rgba(246,242,232,.78); }
.foot__bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.foot__bar span { font-size: 9.5px; color: rgba(246,242,232,.32); letter-spacing: .12em; }

/* ------------------------------------------------------------------ 入场动画 */
.reveal { animation: rise .74s cubic-bezier(.2,.9,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ticker__track, .stamp { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1100px) {
  .hero__in { grid-template-columns: 1fr; }
  .stack { height: 400px; max-width: 520px; margin-inline: auto; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .svcs { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(2) { border-right: 0; }
  .svc:nth-child(1), .svc:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .pdp { grid-template-columns: 1fr; }
  .contactgrid, .aboutgrid { grid-template-columns: 1fr; }
  .aboutgrid h1 { position: static; }
}
@media (max-width: 860px) {
  .topbar__l { display: none; }
  .masthead__in { height: 66px; gap: 12px; }
  .nav { display: none; position: fixed; inset: 104px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; padding: 14px var(--gut) 22px; gap: 2px; box-shadow: var(--shadow); max-height: calc(100vh - 104px); overflow: auto; }
  .nav.is-open { display: flex; }
  .nav__a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav__a::after { display: none; }
  .searchbox { display: none; }
  .navcta { display: none; }
  .burger { display: block; margin-left: auto; }
  .cats { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr 1fr; }
  .filterbar { top: 66px; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__stat { padding-right: 18px; margin-right: 18px; }
}
@media (max-width: 560px) {
  .grid-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__body { padding: 10px 10px 12px; }
  .card__name { font-size: 13px; }
  .card__price { font-size: 14px; }
  .card__moq { display: none; }
  .svcs { grid-template-columns: 1fr; }
  .svc { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .iform__row { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec > div:nth-child(even) { border-left: 0; padding-left: 0; }
  .stack { height: 340px; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; padding-top: 0; }
  .hero__stat { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 13px 0; margin: 0; }
  .hero__stat:nth-child(even) { border-right: 0; padding-left: 14px; }
  .hero__stat:nth-child(n+3) { border-bottom: 0; }
  .stamp { width: 76px; font-size: 8px; top: 0; right: 0; bottom: auto; }
  .stamp b { font-size: 19px; }
  .clist > div { grid-template-columns: 78px 1fr; }
}


/* ==========================================================================
   阿拉伯语 / RTL 从右到左
   ========================================================================== */

/* 阿拉伯语字体与排版：Bricolage / Instrument 无阿拉伯字形，需显式指定系统字体 */
.lang-ar {
  --f-display: 'Bricolage', 'Geeza Pro', 'Noto Naskh Arabic', 'Al Bayan', 'Segoe UI', Tahoma, serif;
  --f-body: 'Instrument', 'Geeza Pro', 'Noto Naskh Arabic', 'Al Bayan', 'Segoe UI', Tahoma, sans-serif;
}
.lang-ar body, body.lang-ar { line-height: 1.85; }
/* 阿拉伯文不能用 letter-spacing，否则字间距会散开、连写被破坏 */
.lang-ar .mono, .lang-ar .kicker, .lang-ar .cat__t em, .lang-ar .tag,
.lang-ar .crumb, .lang-ar .ticker__track span, .lang-ar .result-line,
.lang-ar .notice time, .lang-ar .step__no, .lang-ar .card__sku,
.lang-ar .pdp__sku, .lang-ar .foot__k, .lang-ar .foot__bar span,
.lang-ar .stack__card .p, .lang-ar .cat__no, .lang-ar .cat__n,
.lang-ar .searchbox input, .lang-ar .langmenu > summary {
  letter-spacing: 0;
}

/* ---- 左右镜像 ---- */
[dir="rtl"] .hero__stat {
  border-right: 0; border-left: 1px solid var(--rule);
  padding-right: 0; padding-left: clamp(18px, 2.6vw, 38px);
  margin-right: 0; margin-left: clamp(18px, 2.6vw, 38px);
}
[dir="rtl"] .hero__stat:last-child { border-left: 0; margin-left: 0; padding-left: 0; }
[dir="rtl"] .stat { border-right: 0; border-left: 1px solid var(--rule); }
[dir="rtl"] .stat:last-child { border-left: 0; }
[dir="rtl"] .svc {
  border-right: 0; border-left: 1px solid var(--rule);
  padding: clamp(22px, 2.8vw, 38px) 0 clamp(22px, 2.8vw, 38px) clamp(16px, 2vw, 30px);
}
[dir="rtl"] .svc:last-child { border-left: 0; }
[dir="rtl"] .card__tags { left: auto; right: 9px; }
[dir="rtl"] .stack__card:nth-child(1) { left: auto; right: 0; }
[dir="rtl"] .stack__card:nth-child(2) { right: auto; left: 0; }
[dir="rtl"] .stamp { right: auto; left: 2%; }
[dir="rtl"] .spec > div:nth-child(odd) { padding-right: 0; padding-left: 16px; }
[dir="rtl"] .spec > div:nth-child(even) { padding-left: 0; padding-right: 16px; border-left: 0; border-right: 1px solid var(--rule); }
[dir="rtl"] .cat { padding: 17px 6px 17px 14px; }
[dir="rtl"] .band::after { right: auto; left: -2%; }
[dir="rtl"] .filterbar__sort { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 16px; }
[dir="rtl"] .nav__a::after { left: 100%; right: 0; }
[dir="rtl"] .nav__a:hover::after, [dir="rtl"] .nav__a.is-on::after { left: 0; }
[dir="rtl"] .aboutgrid .prose p:first-child::first-letter { float: right; padding: 4px 0 0 10px; }
[dir="rtl"] .clist > div { grid-template-columns: 96px 1fr; }
[dir="rtl"] .caret, [dir="rtl"] .sec-head__more .ar { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn .ar { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .hero__h1 em::after { transform: skewX(12deg); }
[dir="rtl"] .logo__txt strong { letter-spacing: 0; }

@media (max-width: 1100px) {
  [dir="rtl"] .svc:nth-child(2) { border-left: 0; }
}
@media (max-width: 860px) {
  [dir="rtl"] .nav__a::after { display: none; }
}
@media (max-width: 560px) {
  [dir="rtl"] .hero__stat { border-right: 0; border-left: 1px solid var(--rule); margin: 0; }
  [dir="rtl"] .hero__stat:nth-child(even) { border-left: 0; padding-left: 0; padding-right: 14px; }
  [dir="rtl"] .svc { border-left: 0; padding-left: 0; }
  [dir="rtl"] .spec > div:nth-child(even) { border-right: 0; padding-right: 0; }
}

/* 西/葡/阿语文字更长，标题字号略降，避免断行难看 */
.lang-es .hero__h1, .lang-pt .hero__h1 { font-size: clamp(29px, 3.9vw, 54px); letter-spacing: -.03em; }
.lang-ar .hero__h1 { font-size: clamp(27px, 3.6vw, 50px); line-height: 1.42; letter-spacing: 0; }
.lang-es .hero__sub, .lang-pt .hero__sub, .lang-ar .hero__sub { font-size: clamp(14px, 1.05vw, 16px); }
/* 数据条：允许换行，换行后不要留半截分隔线 */
.hero__stats { flex-wrap: wrap; row-gap: 16px; }
.hero__stat { border-right: 1px solid var(--rule); }

/* ==========================================================================
   儿童风格主题（2026-11 改版）
   糖果色 / 大圆角 / 圆体字 / 更活泼的动效
   ========================================================================== */

@font-face { font-family: 'Baloo'; src: url('/static/fonts/baloo2.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --paper: #fff8ec;
  --paper-2: #ffefd9;
  --paper-3: #ffe2c2;
  --ink: #2e2a4f;
  --ink-70: rgba(46, 42, 79, .72);
  --ink-50: rgba(46, 42, 79, .52);
  --ink-35: rgba(46, 42, 79, .32);
  --rule: rgba(46, 42, 79, .12);
  --rule-2: rgba(46, 42, 79, .22);
  --red: #ff5a79;
  --blue: #4ea8de;
  --yellow: #ffc93c;
  --teal: #2ec4b6;
  --purple: #8b7cf6;
  --f-display: 'Baloo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 4px 0 rgba(46,42,79,.10), 0 18px 34px -26px rgba(46,42,79,.5);
}

/* ---- 字体：标题改圆体 ---- */
.hero__h1, .sec-h2, .cat__t, .pagehead h1, .aboutgrid h1, .pdp h1,
.svc h3, .step h3, .foot__big, .logo__txt strong, .band h2, .notice h3 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero__h1 { line-height: 1.12; }

/* ---- 圆角 & 柔和边框 ---- */
.card { border-radius: var(--r-md); border-width: 2px; overflow: hidden; }
.card__media { border-radius: 0; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); }
.btn { border-radius: var(--r-pill); border-width: 2px; font-weight: 700; }
.chip { border-radius: var(--r-pill); border-width: 2px; }
.searchbox, .langmenu > summary, .langmenu__ul { border-radius: var(--r-sm); }
.pg { border-radius: 10px; border-width: 2px; }
.iform input, .iform textarea, .iform select { border-radius: 12px; border-width: 2px; }
.notice { border-radius: var(--r-md); border-width: 2px; }
.tag { border-radius: var(--r-pill); padding: 4px 10px; font-weight: 700; }
.step, .stats, .cats, .svcs, .spec > div { border-radius: 0; }
.stats { border-radius: var(--r-lg); overflow: hidden; border-width: 2px; }
.ticker { border-radius: 0; }
.stack__card { border-radius: 12px; border-width: 2px; }
.stack__card img { border-radius: 8px; }
.pdp__note, .pdp__price { border-radius: var(--r-sm); }
.gallery__main { border-radius: var(--r-md); border-width: 2px; overflow: hidden; }
.gallery__thumbs button { border-radius: 10px; }
.pdp__note { border-width: 2px; }
.logo__mark { border-radius: 12px; }
.foot { border-radius: 0; }

/* ---- 背景：糖果色光斑 + 圆点纸纹 ---- */
.hero::before {
  background-image: radial-gradient(rgba(46,42,79,.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(110% 80% at 70% 20%, #000 0%, transparent 78%);
          mask-image: radial-gradient(110% 80% at 70% 20%, #000 0%, transparent 78%);
  opacity: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255,201,60,.55), transparent) 12% 18% / 340px 340px no-repeat,
    radial-gradient(closest-side, rgba(255,90,121,.32), transparent) 88% 8% / 300px 300px no-repeat,
    radial-gradient(closest-side, rgba(46,196,182,.30), transparent) 72% 92% / 380px 380px no-repeat;
  filter: blur(2px);
}

/* ---- 按钮更弹 ---- */
.btn:hover { transform: translateY(-2px); }
.btn--red { box-shadow: 0 4px 0 rgba(46,42,79,.18); }
.btn--red:hover { box-shadow: 0 6px 0 rgba(46,42,79,.22); }
.btn--ink { box-shadow: 0 4px 0 rgba(46,42,79,.16); }

/* ---- 分类目录悬停填色改成彩色 ---- */
.cat::before { background: var(--purple); border-radius: 12px; }
.cat:hover .cat__t, .cat:hover .cat__no, .cat:hover .cat__n, .cat:hover .cat__t em { color: #fff; }

/* ---- 数据条上色 ---- */
.stat b { color: var(--ink); }
.stat:nth-child(1) b i { color: var(--red); }
.stat:nth-child(2) b i { color: var(--teal); }
.stat:nth-child(3) b i { color: var(--purple); }
.stat:nth-child(4) b i { color: var(--yellow); }

/* ==========================================================================
   产品画册
   ========================================================================== */
.cat-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 30px); }
.cat-book { border: 2px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: .35s cubic-bezier(.2,.9,.2,1); }
.cat-book:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); border-color: var(--rule-2); }
.cat-book__cover { display: block; position: relative; background: var(--paper-2); aspect-ratio: 3/4; overflow: hidden; }
.cat-book__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2,.9,.2,1); }
.cat-book:hover .cat-book__cover img { transform: scale(1.03); }
.cat-book__pages { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: var(--r-pill); font-size: 10px; }
.cat-book__body { padding: 16px 18px 18px; }
.cat-book__body h3 { font-family: var(--f-display); font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.cat-book__body p { font-size: 13px; color: var(--ink-70); margin-bottom: 12px; }
.cat-book__more { font-size: 14px; font-weight: 700; color: var(--red); }

.pagehead--tight { padding-block: clamp(20px, 2.6vw, 34px) 10px; }
.reader { padding-block: 10px clamp(40px, 5vw, 70px); }
.reader__bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 16px; }
.reader__now { color: var(--ink-50); }
.cbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--ink); border-radius: var(--r-pill); font-weight: 700; font-size: 14px; transition: .2s; background: #fff; }
.cbtn:hover { background: var(--ink); color: var(--paper); }
.cbtn.is-off { opacity: .3; pointer-events: none; border-color: var(--rule-2); }
.reader__page { background: var(--paper-2); border: 2px solid var(--rule); border-radius: var(--r-lg); padding: clamp(10px, 1.6vw, 22px); display: grid; place-items: center; }
.reader__page img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px -18px rgba(46,42,79,.6); }
.reader__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: thin; }
.cthumb { flex: none; width: 62px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; transition: .2s; opacity: .75; }
.cthumb img { width: 100%; display: block; }
.cthumb:hover { opacity: 1; }
.cthumb.is-on { border-color: var(--purple); opacity: 1; }

@media (max-width: 960px) {
  .cat-books { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cat-books { grid-template-columns: 1fr; }
  .cthumb { width: 48px; }
}
