/* Jiajia Depot — catalog-shelf design system
   Warm paper #FFFBEB / brick #9A3412 / deep ink #1C1917 */

:root {
  --paper: #FFFBEB;
  --paper-2: #FFF6E0;
  --card: #FFFFFF;
  --brick: #9A3412;
  --brick-d: #7A2910;
  --brick-soft: #F7E4CE;
  --ink: #1C1917;
  --muted: #6B6157;
  --line: #E9DCC1;
  --ok: #2F6B4F;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(28,25,23,.05), 0 6px 18px rgba(28,25,23,.06);
  --shadow-hover: 0 14px 32px rgba(122,41,16,.18);
  --maxw: 1220px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .brand, .stat__num, .catno {
  font-family: var(--font-head);
  letter-spacing: -.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; margin: 0 0 .55em; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4em; }
h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick); background: var(--brick-soft);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brick); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* ---------- header ---------- */
.util {
  background: var(--ink); color: #F4EAD6; font-size: .8rem;
}
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.util a { color: #F4EAD6; }
.util__tag { font-weight: 600; letter-spacing: .02em; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,235,.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand b { color: var(--brick); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .9rem; font-weight: 600; color: var(--ink);
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--brick-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brick); background: var(--brick-soft); }
.nav .btn { margin-left: 8px; }
.menu-btn {
  display: none; margin-left: auto; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 42px; padding: 0; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  padding: 13px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid var(--brick); background: var(--brick); color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn:hover { background: var(--brick-d); border-color: var(--brick-d); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost { background: transparent; color: var(--brick); }
.btn--ghost:hover { background: var(--brick-soft); color: var(--brick-d); }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: #000; border-color: #000; }
.btn--sm { padding: 9px 14px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero__copy p.lead { font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__media {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 1400 / 697;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stamp {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--brick); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius-pill);
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 34px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat__num { display: block; font-size: 1.35rem; font-weight: 800; color: var(--brick); }
.stat__label { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* ---------- section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head p { margin: 0; color: var(--muted); max-width: 520px; }
.sec-head h2 { margin: 0; }

/* ---------- cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #DCC4A2; }
.card__media { position: relative; background: var(--paper-2); aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.catno {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #FBF3E2; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; padding: 5px 10px; border-radius: var(--radius-pill);
}
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 1.06rem; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brick); text-decoration: none; }
.card__blurb { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.card__foot { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.card__price { font-size: .76rem; font-weight: 700; color: var(--ok); letter-spacing: .02em; }

/* ---------- spec chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .72rem; font-weight: 600; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap;
}
.chip--accent { background: var(--brick-soft); border-color: #EBCBA6; color: var(--brick-d); }

/* ---------- aisle tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); text-decoration: none; }
.tile__no { font-family: var(--font-head); font-weight: 800; color: var(--brick); font-size: .8rem; letter-spacing: .1em; }
.tile h3 { margin: 8px 0 6px; }
.tile p { font-size: .84rem; color: var(--muted); margin: 0; }
.tile__go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .82rem; color: var(--brick); }

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .88rem; }
table.compare caption { text-align: left; padding: 16px 18px; font-weight: 700; color: var(--muted); font-size: .85rem; }
table.compare th, table.compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--ink); color: #FBF3E2; font-family: var(--font-head); font-size: .82rem; letter-spacing: .02em; }
table.compare thead th:first-child { border-top-left-radius: 0; }
table.compare tbody th { font-weight: 700; color: var(--ink); background: var(--paper-2); width: 24%; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td .yes { color: var(--ok); font-weight: 700; }
table.compare tbody tr:hover td, table.compare tbody tr:hover th { background: #FFF8E8; }

/* ---------- prose ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }
.prose p { color: #3A342E; }
.prose ul, .prose ol { color: #3A342E; padding-left: 20px; }
.prose li { margin-bottom: .5em; }
.prose .note { background: var(--card); border-left: 4px solid var(--brick); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__no { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--brick); }
.step h3 { margin: 6px 0; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- details / FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
details.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
details.faq__item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq__item summary::-webkit-details-marker { display: none; }
details.faq__item summary::after { content: "+"; color: var(--brick); font-size: 1.4rem; font-weight: 700; line-height: 1; }
details.faq__item[open] summary::after { content: "\2212"; }
details.faq__item p { color: var(--muted); font-size: .92rem; padding-bottom: 16px; margin: 0; }

/* ---------- photo narrative ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photo__media { aspect-ratio: 4 / 3; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { padding: 14px 16px; font-size: .84rem; color: var(--muted); }
.photo figcaption b { color: var(--ink); display: block; font-family: var(--font-head); margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brick); color: #fff; border-radius: var(--radius); padding: 42px; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: #F7E4CE; max-width: 640px; margin: 0 auto 22px; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); }
.cta-band .btn:hover { background: #000; border-color: #000; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.cta-band .fineprint { color: #EBD3BC; font-size: .78rem; margin: 18px 0 0; }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 28px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; }
.field .req { color: var(--brick); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px var(--brick-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-status { margin-top: 16px; font-size: .9rem; font-weight: 600; display: none; }
.form-status.is-ok { display: block; color: var(--ok); }
.form-status.is-err { display: block; color: var(--brick-d); }
.form-status a { font-weight: 700; }
.contact-aside { display: grid; gap: 16px; align-content: start; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-card h3 { margin: 0 0 8px; }
.contact-card a { font-weight: 700; word-break: break-word; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #EADFC9; padding: 46px 0 26px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: #fff; font-family: var(--font-head); }
.site-foot a { color: #EADFC9; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; font-size: .88rem; }
.foot-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff; }
.foot-brand span { color: #E79A6B; }
.foot-bottom { border-top: 1px solid #3A342E; margin-top: 30px; padding-top: 20px; font-size: .82rem; color: #B9AD97; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 40px; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 8rem); color: var(--brick); line-height: 1; }
.notfound .btn { margin: 8px 6px 0; }

/* ---------- reveal / stagger ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.grid [data-reveal]:nth-child(1), .cards-row [data-reveal]:nth-child(1), .stats [data-reveal]:nth-child(1), .tiles [data-reveal]:nth-child(1), .steps [data-reveal]:nth-child(1), .photos [data-reveal]:nth-child(1) { transition-delay: 0s; }
.grid [data-reveal]:nth-child(2), .cards-row [data-reveal]:nth-child(2), .stats [data-reveal]:nth-child(2), .tiles [data-reveal]:nth-child(2), .steps [data-reveal]:nth-child(2), .photos [data-reveal]:nth-child(2) { transition-delay: .07s; }
.grid [data-reveal]:nth-child(3), .cards-row [data-reveal]:nth-child(3), .stats [data-reveal]:nth-child(3), .tiles [data-reveal]:nth-child(3), .steps [data-reveal]:nth-child(3), .photos [data-reveal]:nth-child(3) { transition-delay: .14s; }
.grid [data-reveal]:nth-child(4), .cards-row [data-reveal]:nth-child(4), .stats [data-reveal]:nth-child(4), .tiles [data-reveal]:nth-child(4) { transition-delay: .21s; }
.stats [data-reveal]:nth-child(5) { transition-delay: .28s; }

/* ---------- responsive: <=1024 ---------- */
@media (max-width: 1024px) {
  .grid, .grid--4, .cards-row, .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- responsive: <=768 ---------- */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .util__tag { display: none; }
  .util .wrap { justify-content: center; }
  .site-head .wrap { min-height: 62px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow); margin: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; font-size: .95rem; }
  .nav .btn { margin: 8px 0 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 16px; }
  .hero__media { order: -1; }
  .grid, .grid--2, .grid--4, .cards-row, .tiles, .steps, .photos, .form-grid, .stats, .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .tile:hover, .btn:hover { transform: none; }
}


/* ============================================================
   Blog module - appended 2026-11-05 (hub + article pages)
   Reuses :root tokens and existing .card / .chip / .catno /
   .cta-band / .prose. All new selectors are scoped so existing
   page blocks are untouched.
   ============================================================ */

/* breadcrumb */
.crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:.8rem; color:var(--muted); margin:0 0 26px; }
.crumbs a { color:var(--muted); font-weight:600; }
.crumbs a:hover { color:var(--brick); }
.crumbs .sep { color:var(--line); }
.crumbs [aria-current="page"] { color:var(--brick); font-weight:700; }

/* two-column blog layout */
.blog-layout { display:grid; grid-template-columns: minmax(0,1fr) 300px; gap:36px; align-items:start; }
.blog-main { min-width:0; }
.blog-cards { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:20px; margin-top:8px; }
.blog-cards .card__title { font-size:1.12rem; }

/* card meta line (date + reading time) */
.card__meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:.76rem; font-weight:600; color:var(--muted); margin:0; }
.card__meta time { white-space:nowrap; }
.card__meta .dot, .article-meta .dot { width:4px; height:4px; border-radius:50%; background:var(--line); display:inline-block; flex:none; }

/* sidebar */
.blog-side { display:grid; gap:18px; align-content:start; position:sticky; top:88px; }
.side-box { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.side-box h3 { margin:0 0 12px; font-size:1.02rem; }
.side-box p { font-size:.86rem; color:var(--muted); margin:0 0 14px; }
.side-box ul { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.side-box li { font-size:.86rem; margin:0; }
.side-box li a { font-weight:600; }
.side-box .chips { margin:0; }
.side-cta { background:var(--brick-soft); border-color:#EBCBA6; }
.side-cta .btn { width:100%; }

/* article (scoped overrides only) */
.article-head { margin-bottom:18px; }
.article-head h1 { margin:0 0 .35em; font-size:clamp(1.9rem, 3.6vw, 2.7rem); }
.article-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:.8rem; font-weight:600; color:var(--muted); margin:0; }
.article-prose h2 { font-size:1.5rem; }
.article-prose h3 { font-family:var(--font-head); margin-top:1.2em; }
.article-prose p, .article-prose li { font-size:1rem; }
.article-prose a { text-decoration:underline; text-underline-offset:2px; }
.article-foot { margin-top:36px; }
.article-foot .cta-band h3 { color:#fff; font-family:var(--font-head); font-size:1.3rem; margin:0 0 .35em; }
.article-foot .cta-band p a { color:#fff; font-weight:700; text-decoration:underline; }

/* responsive (new selectors only) */
@media (max-width:1024px){
  .blog-layout { grid-template-columns:1fr; }
  .blog-side { position:static; grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:768px){
  .blog-cards { grid-template-columns:1fr; }
  .blog-side { grid-template-columns:1fr; }
  .article-prose h2 { font-size:1.35rem; }
  .article-foot .cta-band h3 { font-size:1.15rem; }
}
