/* =========================================================
   针织面料库存系统 V2.0
   简约绿色商务风 · 本地离线
   ========================================================= */

:root {
  --green-950: #0d2f20;
  --green-900: #123f2a;
  --green-800: #155c3b;
  --green-700: #1d7048;
  --green-600: #2d8359;
  --green-100: #dcebe1;
  --green-50: #eaf3ed;
  --bg: #f3f7f4;
  --bg-deep: #e8f0ea;
  --card: #ffffff;
  --ink: #17241c;
  --ink-2: #35463b;
  --muted: #728177;
  --line: #dce6df;
  --line-strong: #c5d7cb;
  --amber: #9b6a25;
  --amber-bg: #f8edd9;
  --red: #a54234;
  --red-bg: #fbe9e6;
  --shadow-sm: 0 2px 8px rgba(19, 57, 37, 0.04);
  --shadow-md: 0 18px 48px rgba(19, 57, 37, 0.1);
  --shadow-lg: 0 30px 90px rgba(10, 38, 24, 0.25);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: var(--green-700);
}

:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  color: #fff;
  background: var(--green-800);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 顶部提示 ---------- */

.top-strip {
  position: relative;
  z-index: 70;
  color: rgba(255, 255, 255, 0.76);
  background: var(--green-950);
  font-size: 11px;
  line-height: 1.4;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding-block: 6px;
}

.top-strip-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #6ed49a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 212, 154, 0.12);
}

.top-strip-text {
  flex: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-strip-safe {
  flex: none;
  padding: 2px 8px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  border-radius: 9px 9px 9px 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(21, 92, 59, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check-button:hover {
  background: var(--green-100);
  border-color: var(--line-strong);
}

.check-button svg {
  width: 17px;
  height: 17px;
}

.issue-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.issue-badge.has-issues {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 5px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--green-700);
}

.header-link svg {
  width: 14px;
  height: 14px;
}

/* ---------- 数据提示条 ---------- */

.data-notice {
  position: relative;
  z-index: 50;
  color: #674911;
  background: #fff5de;
  border-bottom: 1px solid #f1dfb8;
}

.data-notice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-block: 6px;
}

.data-notice svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.data-notice p {
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.data-notice button {
  flex: none;
  padding: 4px 9px;
  color: #674911;
  background: transparent;
  border: 1px solid rgba(103, 73, 17, 0.24);
  border-radius: 999px;
  font-size: 10px;
  cursor: pointer;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 96px;
  background:
    radial-gradient(circle at 85% 18%, rgba(76, 148, 105, 0.12), transparent 32%),
    linear-gradient(135deg, #eaf3ed 0%, #f5f9f6 58%, #eef5f0 100%);
  border-bottom: 1px solid var(--line);
}

.hero-pattern {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 610px;
  height: 610px;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(21, 92, 59, 0.045) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(21, 92, 59, 0.045) 13px 14px);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 74px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.5);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 70px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--green-800);
}

.hero-desc {
  max-width: 520px;
  margin: 22px 0 0;
  color: #5c6b61;
  font-size: 14px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  width: 5px;
  height: 5px;
  background: var(--green-600);
  border-radius: 50%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 92, 59, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(21, 92, 59, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-stat {
  padding: 22px 22px 19px;
}

.hero-stat:nth-child(2n) {
  border-left: 1px solid var(--line);
}

.hero-stat:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.hero-stat-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.hero-stat strong {
  display: inline-block;
  margin-top: 5px;
  color: var(--green-900);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.hero-stat small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

/* ---------- 目录 ---------- */

.catalog {
  padding-bottom: 80px;
  scroll-margin-top: 86px;
}

.catalog-panel {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 46px rgba(19, 57, 37, 0.09);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 15px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box:focus-within {
  background: #fff;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45, 131, 89, 0.1);
}

.search-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--green-700);
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #98a49b;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.clear-search {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: #e9f0eb;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.clear-search svg {
  width: 14px;
  height: 14px;
}

.sort-control {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap select {
  height: 38px;
  max-width: 158px;
  padding: 0 30px 0 11px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.select-wrap select:focus-visible {
  border-color: var(--green-600);
}

.select-wrap svg {
  position: absolute;
  right: 8px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.filter-label {
  flex: none;
  width: 34px;
  padding-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 10px;
  color: var(--ink-2);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
  color: var(--green-700);
  border-color: var(--line-strong);
}

.filter-chip.is-active {
  color: #fff;
  background: var(--green-800);
  border-color: var(--green-800);
}

.chip-count {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  color: var(--muted);
  background: #e9efeb;
  border-radius: 4px;
  font-size: 8px;
  line-height: 1;
}

.filter-chip.is-active .chip-count {
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.88);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.result-summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 11.5px;
}

.result-summary strong {
  color: var(--green-800);
  font-size: 14px;
}

.source-note {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

/* ---------- 面料卡片 ---------- */

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.fabric-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fabric-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.fabric-card:focus-within {
  border-color: var(--green-600);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(45, 131, 89, 0.08);
}

.card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  outline: 0;
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-deep);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fabric-card:hover .card-image {
  transform: scale(1.025);
}

.card-badges {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 92, 59, 0.12);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.badge::before {
  width: 5px;
  height: 5px;
  background: var(--green-600);
  border-radius: 50%;
  content: "";
}

.badge.is-low {
  color: var(--amber);
  border-color: rgba(155, 106, 37, 0.16);
}

.badge.is-low::before {
  background: var(--amber);
}

.badge.is-out {
  color: #66736b;
}

.badge.is-out::before {
  background: #8a978e;
}

.badge.is-pending {
  color: var(--amber);
}

.badge.is-pending::before {
  background: var(--amber);
}

.badge-demo {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 7px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(18, 63, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.card-sku {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  padding: 5px 7px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(18, 30, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 17px 14px;
}

.card-category {
  margin: 0 0 4px;
  color: var(--green-700);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.card-component {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 13px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.card-spec dt {
  flex: none;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.card-spec dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-stock {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.stock-number span,
.stock-status span {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
}

.stock-number strong {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.stock-number strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.stock-number.is-unknown strong {
  color: var(--amber);
  font-size: 12px;
}

.stock-status {
  text-align: right;
}

.stock-status strong {
  display: block;
  margin-top: 1px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
}

.card-price-label {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
}

.card-price {
  display: flex;
  align-items: baseline;
  margin: 2px 0 0;
  color: var(--green-900);
  font-weight: 700;
  line-height: 1.2;
}

.card-price .currency {
  margin-right: 2px;
  font-size: 11px;
}

.card-price strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.card-price .unit {
  margin-left: 3px;
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 400;
}

.card-price.is-contact {
  color: var(--green-800);
  font-size: 13px;
  font-weight: 600;
}

.card-updated {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  text-align: right;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 17px 14px;
}

.card-action-left {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.card-detail-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
  transition: color 0.2s ease;
}

.card-detail-hint:hover {
  color: var(--green-700);
}

.card-detail-hint svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.fabric-card:hover .card-detail-hint svg {
  transform: translateX(2px);
}

.card-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid rgba(21, 92, 59, 0.14);
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.card-contact:hover {
  color: #fff;
  background: var(--green-800);
}

.card-contact svg {
  width: 12px;
  height: 12px;
}

.card-warning {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--amber);
  font-size: 8.5px;
}

.card-warning svg {
  width: 11px;
  height: 11px;
}

/* 无法正常渲染的记录也要显示，不静默消失 */

.problem-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: #fffdf9;
  border: 1px dashed #e2c99c;
  border-radius: var(--radius-md);
}

.problem-card .problem-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
}

.problem-card h3 {
  margin: 0;
  font-size: 15px;
}

.problem-card p {
  max-width: 260px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.problem-card code {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 8px;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
}

/* ---------- 空状态 ---------- */

.empty-state {
  margin-top: 20px;
  padding: 64px 24px 58px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.empty-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  place-items: center;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 50%;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 21px;
}

.empty-state h3 {
  margin: 0;
  font-size: 17px;
}

.empty-state p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 按钮 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-primary {
  color: #fff;
  background: var(--green-800);
  border-color: var(--green-800);
}

.button-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
}

.button-light {
  color: var(--green-900);
  background: #fff;
  border-color: #fff;
}

.button-light:hover {
  background: var(--green-50);
  border-color: var(--green-50);
}

.button-outline {
  color: var(--green-800);
  background: transparent;
  border-color: rgba(21, 92, 59, 0.25);
}

.button-outline:hover {
  background: var(--green-50);
  border-color: rgba(21, 92, 59, 0.4);
}

/* ---------- 服务条 ---------- */

.service-strip {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--green-900);
}

.service-strip::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.022) 9px 10px),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.022) 9px 10px),
    radial-gradient(circle at 86% 30%, rgba(137, 213, 167, 0.13), transparent 34%);
  content: "";
  pointer-events: none;
}

.service-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 46px;
}

.service-inner .eyebrow {
  margin-bottom: 12px;
}

.service-inner h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.service-inner p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 32px 0 26px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  font-size: 18px;
  border-radius: 7px 7px 7px 2px;
}

.footer-brand strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.footer-brand p,
.footer-meta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.footer-meta {
  text-align: right;
}

/* ---------- 错误页 ---------- */

.fatal-error {
  padding: 40px 0 80px;
}

.fatal-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
  background: #fff;
  border: 1px solid #edd8d3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.fatal-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--red);
  background: var(--red-bg);
  border-radius: 50%;
  font-size: 25px;
  font-weight: 700;
}

.fatal-card .eyebrow {
  justify-content: center;
  margin-bottom: 10px;
  color: var(--red);
}

.fatal-card h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.fatal-message {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.fatal-code {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  color: var(--red);
  background: var(--red-bg);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
}

.recovery-steps {
  margin: 25px 0;
  padding: 18px 20px;
  text-align: left;
  background: #faf8f3;
  border: 1px solid #eee5d7;
  border-radius: 10px;
}

.recovery-steps h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

.recovery-steps ol {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 2;
}

/* ---------- 弹窗通用 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 22px;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.25s, opacity 0.25s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 20, 0.58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.988);
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.2, 0.75, 0.2, 1);
  overscroll-behavior: contain;
}

.modal.is-open .modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 6;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(19, 57, 37, 0.09);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: var(--green-50);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* ---------- 详情 ---------- */

.detail-panel {
  overflow: hidden auto;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: 590px;
}

.detail-media {
  position: relative;
  display: grid;
  min-height: 590px;
  padding: 24px;
  overflow: hidden;
  place-items: center;
  background: var(--bg-deep);
}

.detail-media-bg {
  position: absolute;
  inset: -24px;
  background-position: center;
  background-size: cover;
  filter: blur(26px) saturate(0.85) brightness(0.94);
  opacity: 0.55;
  transform: scale(1.08);
  pointer-events: none;
}

.detail-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 38, 24, 0.01) 62%, rgba(10, 38, 24, 0.2) 100%);
  content: "";
  pointer-events: none;
}

.detail-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 20px 50px rgba(10, 38, 24, 0.23);
}

.detail-image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(10, 30, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0.05em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 34px 30px;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 28px;
}

.detail-sku {
  color: var(--green-700);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.detail-content h2 {
  margin: 10px 0 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.detail-component {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.detail-price {
  margin: 2px 0 0;
  color: var(--green-900);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.detail-price.is-contact {
  font-size: 16px;
  font-weight: 600;
}

.detail-price small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.detail-stock {
  flex: none;
  text-align: right;
}

.detail-stock p {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 15px 0 0;
}

.detail-spec {
  padding: 8px 10px;
  background: #f7faf8;
  border: 1px solid #e8efe9;
  border-radius: 7px;
}

.detail-spec dt {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.detail-spec dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-spec-wide {
  grid-column: 1 / -1;
}

.detail-note-box {
  margin-top: 11px;
  padding: 9px 11px;
  background: #fbfaf6;
  border: 1px solid #eee8dc;
  border-radius: 7px;
}

.detail-note-box span {
  color: var(--muted);
  font-size: 8px;
}

.detail-note-box p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.6;
}

.detail-issue-box {
  margin-top: 10px;
  padding: 9px 11px;
  color: #7b5718;
  background: var(--amber-bg);
  border: 1px solid #ecd9b5;
  border-radius: 7px;
}

.detail-issue-box strong {
  font-size: 9px;
}

.detail-issue-box ul {
  margin: 3px 0 0;
  padding-left: 15px;
  font-size: 9px;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.detail-contact-btn {
  width: 100%;
  margin-top: 15px;
}

/* ---------- 数据检查 ---------- */

.check-panel {
  width: min(600px, 100%);
  padding: 30px 28px 26px;
}

.check-heading {
  padding-right: 30px;
}

.check-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 11px;
  place-items: center;
  color: var(--green-800);
  background: var(--green-50);
  border-radius: 50%;
}

.check-icon svg {
  width: 22px;
  height: 22px;
}

.check-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.check-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.check-heading p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.check-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 20px;
}

.summary-cell {
  padding: 10px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}

.summary-cell strong {
  display: block;
  color: var(--green-900);
  font-size: 21px;
  line-height: 1.2;
}

.summary-cell span {
  color: var(--muted);
  font-size: 8px;
}

.summary-cell.has-error strong {
  color: var(--red);
}

.summary-cell.has-warning strong {
  color: var(--amber);
}

.check-section {
  margin-top: 20px;
}

.check-section h3 {
  margin: 0 0 7px;
  font-size: 11px;
}

.check-list {
  max-height: 235px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  font-size: 9.5px;
  line-height: 1.6;
}

.check-item + .check-item {
  border-top: 1px solid var(--line);
}

.check-item .level {
  flex: none;
  padding: 1px 5px;
  color: var(--green-800);
  background: var(--green-50);
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 600;
}

.check-item .level.error {
  color: var(--red);
  background: var(--red-bg);
}

.check-item .level.warning {
  color: var(--amber);
  background: var(--amber-bg);
}

.check-item .level.info {
  color: var(--muted);
  background: #eef1ef;
}

.check-item p {
  flex: 1;
  margin: 0;
}

.check-item code {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.check-empty {
  padding: 22px 14px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.check-help {
  margin: 18px 0;
  padding: 11px 13px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-help strong {
  font-size: 9px;
}

.check-help p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.check-help code {
  padding: 1px 3px;
  color: var(--green-800);
  background: var(--green-50);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 8px;
}

.check-panel > .button {
  width: 100%;
}

/* ---------- 联系 ---------- */

.modal-contact {
  z-index: 120;
}

.contact-panel {
  width: min(440px, 100%);
  padding: 30px 27px 24px;
}

.contact-heading {
  text-align: center;
}

.contact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  place-items: center;
  color: var(--green-800);
  background: var(--green-50);
  border-radius: 50%;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-heading .eyebrow {
  justify-content: center;
  margin: 12px 0 6px;
  font-size: 8px;
}

.contact-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.contact-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.contact-card {
  margin-top: 18px;
  padding: 4px 13px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.contact-row + .contact-row {
  border-top: 1px solid var(--line);
}

.contact-row > span {
  flex: none;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.contact-row strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
}

.contact-row strong em {
  padding: 1px 4px;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: 3px;
  font-size: 7px;
  font-style: normal;
}

.contact-row small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.copy-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-value code {
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
}

.copy-value button {
  height: 21px;
  padding: 0 6px;
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8px;
  cursor: pointer;
}

.copy-value button:hover {
  color: #fff;
  background: var(--green-800);
}

.contact-tip {
  margin: 12px 1px 15px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
  text-align: center;
}

.contact-panel > .button {
  width: 100%;
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 210;
  max-width: calc(100% - 36px);
  padding: 9px 15px;
  color: #fff;
  background: rgba(13, 47, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(10, 30, 20, 0.24);
  font-size: 10px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  padding: 30px;
  place-items: center;
  color: #fff;
  background: var(--green-900);
  font-size: 14px;
  text-align: center;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
  }

  .fabric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 50px 0 92px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-stat {
    padding: 17px 15px 15px;
  }

  .hero-stat:nth-child(n) {
    border-top: 0;
    border-left: 0;
  }

  .hero-stat + .hero-stat {
    border-left: 1px solid var(--line);
  }

  .hero-stat strong {
    font-size: 31px;
  }

  .hero-stat-label {
    font-size: 9px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .detail-media {
    min-height: 0;
    padding: 16px;
    aspect-ratio: 4 / 3;
  }

  .detail-content {
    padding: 25px 24px 24px;
  }

  .detail-panel {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }

  .service-inner {
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .top-strip-safe {
    display: none;
  }

  .top-strip-text {
    font-size: 9.5px;
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .check-button {
    width: 35px;
    padding: 0;
    justify-content: center;
  }

  .check-button-text {
    display: none;
  }

  .issue-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .check-button {
    position: relative;
  }

  .header-link {
    font-size: 0;
    width: 35px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .header-link svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.5vw, 51px);
  }

  .hero-desc {
    margin-top: 17px;
    font-size: 12px;
    line-height: 1.85;
  }

  .hero-meta {
    margin-top: 18px;
    font-size: 9px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat:nth-child(n) {
    border-top: 0;
    border-left: 0;
  }

  .hero-stat:nth-child(2n) {
    border-left: 1px solid var(--line);
  }

  .hero-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .catalog {
    padding-bottom: 60px;
  }

  .catalog-panel {
    margin-top: -34px;
    padding: 15px;
  }

  .search-row {
    flex-wrap: wrap;
    gap: 9px;
  }

  .search-box {
    flex-basis: 100%;
  }

  .sort-control {
    width: 100%;
    justify-content: flex-end;
  }

  .select-wrap select {
    max-width: 170px;
  }

  .filter-rows {
    gap: 7px;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-label {
    width: 29px;
    padding-top: 7px;
    font-size: 9px;
  }

  .filter-group {
    flex: 1;
    flex-wrap: wrap;
    max-width: calc(100% - 37px);
    padding-bottom: 2px;
  }

  .filter-chip {
    flex: none;
  }

  .result-bar {
    margin-top: 19px;
  }

  .source-note {
    display: none;
  }

  .fabric-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .card-media {
    aspect-ratio: 1.58 / 1;
  }

  .card-body {
    padding: 15px 16px 13px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-specs {
    gap: 7px 18px;
  }

  .card-actions {
    padding: 0 16px 13px;
  }

  .service-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 34px;
  }

  .service-inner h2 {
    font-size: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-meta {
    text-align: left;
  }

  .modal {
    padding: 9px;
  }

  .modal-panel {
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 16px;
  }

  .detail-panel {
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
  }

  .detail-media {
    aspect-ratio: 1.45 / 1;
    padding: 13px;
  }

  .detail-content {
    padding: 21px 18px 20px;
  }

  .detail-content h2 {
    font-size: 23px;
  }

  .detail-price {
    font-size: 24px;
  }

  .detail-specs {
    gap: 6px;
  }

  .detail-spec {
    padding: 8px 9px;
  }

  .detail-topline {
    padding-right: 34px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .check-panel {
    padding: 25px 18px 20px;
  }

  .check-summary {
    gap: 5px;
  }

  .contact-panel {
    padding: 25px 18px 20px;
  }

  .fatal-card {
    padding: 30px 20px;
  }

  .fatal-card h2 {
    font-size: 23px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 24px);
  }

  .top-strip-inner {
    gap: 8px;
  }

  .top-strip-label {
    font-size: 10px;
  }

  .top-strip-text {
    white-space: normal;
  }

  .hero {
    padding-bottom: 86px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .hero-stat {
    padding: 14px 12px 13px;
  }

  .hero-stat strong {
    font-size: 27px;
  }

  .hero-stat-label {
    font-size: 8px;
  }

  .catalog-panel {
    margin-top: -30px;
    padding: 12px;
  }

  .search-box {
    padding-inline: 12px;
  }

  .search-box input {
    font-size: 11.5px;
  }

  .filter-row {
    gap: 6px;
  }

  .filter-label {
    width: 26px;
    font-size: 8.5px;
  }

  .filter-group {
    max-width: calc(100% - 32px);
  }

  .filter-chip {
    height: 30px;
    padding-inline: 9px;
    font-size: 9.5px;
  }

  .result-summary {
    font-size: 10.5px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-spec dd {
    font-size: 9.5px;
  }

  .card-price strong {
    font-size: 18px;
  }

  .card-updated {
    font-size: 7.5px;
  }

  .detail-media {
    aspect-ratio: 1.32 / 1;
  }

  .detail-content {
    padding-inline: 15px;
  }

  .detail-content h2 {
    font-size: 21px;
  }

  .detail-price {
    font-size: 22px;
  }

  .detail-stock p {
    font-size: 13px;
  }

  .detail-meta {
    gap: 3px 8px;
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
