@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef0f3;
  --paper: #ffffff;
  --ink: #2c3138;
  --muted: #5d6670;
  --line: #d5dae1;
  --purple: #5c5278;
  --purple-ink: #ffffff;
  --purple-soft: #ece8f2;
  --sans: "Source Sans 3", "WenQuanYi Micro Hei", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: only light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
button, input, textarea { font: inherit; color: inherit; }
button, summary { appearance: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
button:disabled, .text-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.2; margin: 0 0 0.4rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 0.7rem; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.35rem 0.6rem;
}
.skip:focus { top: 0.4rem; }

.shell { width: min(1680px, calc(100% - 2rem)); margin: 0 auto; }
.bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; gap: 1rem; min-height: 3.4rem; }
.mark { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-inline { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; list-style: none; padding: 0; margin: 0; }
.nav-inline a { color: var(--ink); text-decoration: none; }
.nav-inline a:hover { color: var(--purple); }
.list-link {
  margin-left: auto;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.list-link span {
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.95rem;
}
.list-link[data-has-items="true"] { background: var(--purple); color: var(--purple-ink); border-color: var(--purple); }
.list-link[data-has-items="true"] span { background: #fff; color: var(--purple); }
.wa-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--purple);
  color: var(--purple-ink);
  font-weight: 600;
  text-decoration: none;
}
.wa-link:hover { color: var(--purple-ink); }
.tool-head .wa-link, .sheet-side .wa-link { margin: 0.2rem 0 0.8rem; }
.nav-fold { display: none; }
.nav-fold summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.nav-fold ul { list-style: none; margin: 0.3rem 0 0; padding: 0 0 0.6rem; }
.nav-fold a { display: inline-block; padding: 0.3rem 0; color: var(--ink); text-decoration: none; }
.preview-note { margin: 0; padding: 0.35rem 0 0.55rem; color: var(--muted); font-size: 0.95rem; }

.tool { padding: 1.1rem 0 2rem; }
.tool-head { max-width: 46rem; margin-bottom: 0.9rem; }
.tool-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
}
.filters label { display: grid; gap: 0.3rem; font-weight: 600; }
.filters input[type="search"] { width: 100%; border: 1px solid var(--line); background: var(--bg); min-height: 44px; padding: 0.5rem 0.65rem; border-radius: 8px; }
.filter-current { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.filter-current p { margin: 0; font-weight: 600; }
.filter-fold summary { cursor: pointer; font-weight: 600; }
.brand-list { display: grid; gap: 0.4rem; margin-top: 0.45rem; }
.brand-list button, .text-btn, .gallery-nav button, .proc-list button, .clear-btn, .actions button, .submit {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-list button { justify-content: flex-start; }
.brand-list button[aria-pressed="true"], .actions button[aria-pressed="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--purple-ink);
}
.actions button { background: var(--purple); border-color: var(--purple); color: var(--purple-ink); }
.actions button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--purple);
  border-color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--purple);
}
.text-btn { background: var(--paper); color: var(--ink); }
.submit { background: var(--ink); color: #fff; border-color: var(--ink); width: 100%; }
.send-lock { margin: 0; padding: 0.7rem 0.8rem; background: #f7f1f3; border: 1px solid #7a3148; border-radius: 8px; font-weight: 600; }
.filter-note { color: var(--muted); font-size: 0.88rem; margin: 0; }
.result-count { color: var(--muted); font-size: 0.92rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.card { background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.card-photo { display: block; background: #e6e9ee; }
.card-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 0.7rem 0.75rem 0.8rem; display: grid; align-content: start; gap: 0.2rem; }
.card-body h2 { font-size: 1.55rem; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.brand { margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.fact { color: var(--muted); font-size: 1rem; margin: 0.2rem 0 0.55rem; }
.actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0.45rem; }
.empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  padding: 0.9rem;
  margin-top: 0.8rem;
}

.sheet { padding: 1.1rem 0 2rem; }
.crumb { color: var(--muted); font-size: 0.9rem; }
.crumb a { color: var(--purple); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr); gap: 1.25rem; align-items: start; }
.gallery { background: var(--paper); border: 1px solid var(--line); padding: 0.6rem; }
.gallery-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e6e9ee; }
.gallery-nav, .thumbs { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.thumbs { overflow-x: auto; }
.thumbs button { padding: 0; border: 1px solid transparent; background: #e6e9ee; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--purple); }
.thumbs img { width: 5rem; height: 3.6rem; object-fit: cover; }
.sheet-side { background: var(--paper); border: 1px solid var(--line); padding: 0.9rem; }
.facts { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.35rem 0.6rem; margin: 0 0 0.8rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.qty { display: grid; gap: 0.25rem; font-weight: 600; max-width: 8rem; margin-bottom: 0.6rem; }
.qty input, .form input, .form textarea, .request-fields input, .request-fields textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.45rem 0.5rem;
  width: 100%;
  font-weight: 400;
}

.prose { max-width: 42rem; }
.page { padding: 1.1rem 0 2rem; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.5rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 0.65rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }

.form, .request-fields { display: grid; gap: 0.65rem; }
.form { max-width: 40rem; }
.form label, .request-fields label { display: grid; gap: 0.25rem; font-weight: 600; }
.req { font-weight: 400; color: var(--muted); }
.errors { color: #7a3148; font-weight: 600; min-height: 1.1em; margin: 0; }
.status { border: 1px solid var(--line); background: var(--paper); padding: 0.65rem 0.75rem; }
.status[data-state="not-sent"], .status[data-state="invalid"] { border-color: #7a3148; }
.submit { background: var(--ink); color: white; border: 1px solid var(--ink); padding: 0.55rem 0.8rem; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.proc-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.proc-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem auto;
  gap: 0.6rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
}
.proc-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.foot { border-top: 1px solid var(--line); padding: 1rem 0 1.6rem; color: var(--muted); font-size: 1rem; }
.foot a { margin-right: 0.9rem; color: var(--ink); font-weight: 600; }
.ver { font-size: 0.8rem; }

@media (max-width: 820px) {
  .tool { padding-top: 0.55rem; }
  .tool-head { margin-bottom: 0.45rem; }
  .tool-grid, .sheet-grid, .split { grid-template-columns: 1fr; }
  .filters { padding: 0.65rem; }
  .nav-inline { display: none; }
  .nav-fold { display: block; width: 100%; }
  .shell { width: min(1680px, calc(100% - 1.2rem)); }
  .proc-list li { grid-template-columns: 1fr; }
  .bar-row { flex-wrap: wrap; padding: 0.4rem 0; }
}
@media (min-width: 821px) {
  .filter-fold > summary { display: none; }
}
@media (min-width: 1360px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1680px) {
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
