:root {
  --store-navy: #103d55;
  --store-navy-2: #1d6b7d;
  --store-teal: #2a918d;
  --store-paper: #f2f5f3;
  --store-surface: #fff;
  --store-ink: #15272f;
  --store-muted: #6a7d83;
  --store-line: #dbe5e2;
  --store-soft: #edf5f3;
  --store-shadow: 0 14px 36px rgba(18, 60, 78, .075);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--store-ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--store-paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 88% 0, #dcefeb 0, transparent 28%), linear-gradient(180deg, #f7f9f7, var(--store-paper)); color: var(--store-ink); font-size: 14px; line-height: 1.55; }
button, input, select { font: inherit; }
button, select, a { cursor: pointer; }
a { color: inherit; }

.store-topbar,
.store-detail-topbar {
  color: #fff;
  background: linear-gradient(135deg, var(--store-navy), var(--store-navy-2) 64%, var(--store-teal));
  box-shadow: 0 14px 36px rgba(18, 60, 78, .16);
}

.store-topbar-inner,
.store-detail-topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  min-height: 132px;
  margin: auto;
  padding: 26px 0 28px;
}

.store-home,
.store-back {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .14);
}

.store-home:hover,
.store-back:hover { background: rgba(255, 255, 255, .18); }
.store-home svg,
.store-back svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-topbar-copy,
.store-detail-topbar-copy { min-width: 0; }
.store-eyebrow { margin: 0 0 4px; color: #9de2da; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.store-topbar h1,
.store-detail-topbar h1 { margin: 0; color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.store-topbar p,
.store-detail-topbar p { margin: 6px 0 0; color: #d8ecee; font-size: 13px; }

.store-shell,
.store-detail-shell { width: min(1200px, calc(100% - 32px)); margin: auto; padding: 24px 0 68px; }
.store-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.store-stat { border: 1px solid var(--store-line); border-radius: 10px; padding: 15px 17px; background: rgba(255, 255, 255, .94); box-shadow: var(--store-shadow); }
.store-stat span { display: block; color: var(--store-muted); font-size: 12px; }
.store-stat strong { display: block; margin-top: 4px; color: var(--store-navy); font-size: 27px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.store-stat.is-colmo strong { color: #8b5b9f; }

.store-toolbar { margin-top: 16px; border: 1px solid var(--store-line); border-radius: 10px; padding: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--store-shadow); }
.store-toolbar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.store-toolbar-head h2 { margin: 0; color: var(--store-navy); font-size: 22px; line-height: 1.25; }
.store-toolbar-head p { margin: 3px 0 0; color: var(--store-muted); font-size: 12px; }
.store-source { flex: 0 0 auto; color: var(--store-muted); font-size: 11px; text-align: right; }
.store-filters { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr)) auto; gap: 10px; }
.store-search,
.store-filter { display: flex; align-items: center; min-width: 0; min-height: 44px; border: 1px solid var(--store-line); border-radius: 8px; background: #f9fbfa; }
.store-search { gap: 9px; padding: 0 12px; }
.store-search svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: #6f878c; stroke-width: 1.8; }
.store-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--store-ink); font-size: 13px; }
.store-search input::placeholder { color: #88979b; }
.store-filter { padding: 0 10px; }
.store-filter span { flex: 0 0 auto; margin-right: 7px; color: #536a71; font-size: 11px; font-weight: 800; white-space: nowrap; }
.store-filter select { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--store-ink); font-size: 12px; text-overflow: ellipsis; }
.store-search:focus-within,
.store-filter:focus-within { border-color: #6db7ae; box-shadow: 0 0 0 3px rgba(42, 145, 141, .12); }
.store-reset { min-height: 44px; border: 1px solid var(--store-line); border-radius: 8px; padding: 0 13px; background: #fff; color: var(--store-navy); font-size: 12px; font-weight: 800; }
.store-reset:hover { border-color: var(--store-teal); background: var(--store-soft); }

.store-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 24px 2px 10px; }
.store-results-head h2 { margin: 0; color: var(--store-navy); font-size: 19px; }
.store-results-head span { color: var(--store-muted); font-size: 12px; }
.store-table-panel { overflow: hidden; border: 1px solid var(--store-line); border-radius: 10px; background: var(--store-surface); box-shadow: var(--store-shadow); }
.store-table-scroll { overflow-x: auto; }
.store-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.store-table th { padding: 0; border-bottom: 1px solid var(--store-line); background: #f3f8f6; color: #4c676f; font-size: 11px; font-weight: 850; text-align: left; white-space: nowrap; }
.store-table th:nth-child(1) { width: 125px; }
.store-table th:nth-child(2) { width: 29%; }
.store-table th:nth-child(3) { width: 90px; }
.store-table th:nth-child(4) { width: 90px; }
.store-table th:nth-child(5) { width: 18%; }
.store-table th:nth-child(6) { width: 110px; }
.store-table th:nth-child(7) { width: 125px; }
.store-table th:nth-child(8) { width: 22%; }
.store-table th button { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 43px; border: 0; padding: 0 13px; background: transparent; color: inherit; font: inherit; text-align: left; }
.store-table th button:hover,
.store-table th button[aria-pressed="true"] { background: #e7f3f0; color: var(--store-navy); }
.sort-mark { color: #91a3a5; font-size: 12px; }
.store-table th button[aria-pressed="true"] .sort-mark { color: var(--store-teal); }
.store-table td { padding: 12px 13px; border-bottom: 1px solid #edf1f0; color: #31484f; font-size: 12px; vertical-align: middle; }
.store-table tbody tr:last-child td { border-bottom: 0; }
.store-table tbody tr:hover { background: #fbfdfc; }
.store-code { color: #536d75; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.store-name-link { display: inline; border-radius: 4px; padding: 2px 4px; color: #087d78; font-weight: 850; text-decoration: underline; text-decoration-color: rgba(42, 145, 141, .34); text-underline-offset: 3px; }
.store-name-link:hover { background: #e1f3ef; color: #075d5a; text-decoration-color: currentColor; }
.store-cell-muted { color: #829196; }
.store-brand { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; padding: 0 8px; background: #e8f4f1; color: #237772; font-size: 10px; font-weight: 850; }
.store-brand.is-colmo { background: #f2eaf7; color: #795087; }
.store-contact { white-space: nowrap; font-variant-numeric: tabular-nums; }
.store-empty { padding: 65px 20px; color: #7e8d91; text-align: center; }
.store-empty strong { display: block; color: var(--store-navy); font-size: 18px; }
.store-empty p { margin: 5px 0 16px; font-size: 12px; }

.detail-breadcrumb { margin-bottom: 16px; }
.detail-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; color: #54747b; font-size: 12px; font-weight: 800; text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--store-teal); }
.detail-breadcrumb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border: 1px solid var(--store-line); border-top: 4px solid var(--store-teal); border-radius: 10px; padding: 22px 24px; background: #fff; box-shadow: var(--store-shadow); }
.detail-hero h2 { margin: 8px 0 4px; color: var(--store-navy); font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.03em; }
.detail-hero p { margin: 0; color: var(--store-muted); font-size: 13px; }
.detail-hero-code { color: #536e75; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.detail-brand { display: inline-flex; min-height: 28px; align-items: center; border-radius: 999px; padding: 0 10px; background: #e8f4f1; color: #237772; font-size: 11px; font-weight: 850; }
.detail-brand.is-colmo { background: #f2eaf7; color: #795087; }
.detail-source { flex: 0 0 auto; color: var(--store-muted); font-size: 11px; text-align: right; }
.detail-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.detail-overview-card { min-width: 0; border: 1px solid var(--store-line); border-radius: 10px; padding: 14px 16px; background: rgba(255, 255, 255, .95); }
.detail-overview-card span { display: block; color: var(--store-muted); font-size: 11px; }
.detail-overview-card strong { display: block; overflow: hidden; margin-top: 5px; color: var(--store-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.detail-fields-panel { margin-top: 14px; border: 1px solid var(--store-line); border-radius: 10px; padding: 20px; background: #fff; box-shadow: var(--store-shadow); }
.detail-fields-panel h3 { margin: 0 0 14px; color: var(--store-navy); font-size: 19px; }
.detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.detail-field { min-width: 0; border-left: 3px solid #d9eeea; border-radius: 5px; padding: 9px 11px; background: #f7faf9; }
.detail-field-label { display: block; color: #6b8085; font-size: 10px; font-weight: 850; }
.detail-field-value { display: block; margin-top: 3px; color: #29434b; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.detail-not-found { border: 1px dashed #b8cdc8; border-radius: 10px; padding: 70px 20px; background: #fff; text-align: center; }
.detail-not-found h2 { margin: 0 0 6px; color: var(--store-navy); }
.detail-not-found p { margin: 0 0 18px; color: var(--store-muted); font-size: 12px; }
.detail-not-found a { display: inline-flex; min-height: 40px; align-items: center; border-radius: 8px; padding: 0 14px; background: var(--store-navy); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }

@media (min-width: 1440px) {
  .store-topbar-inner,
  .store-detail-topbar-inner { width: min(1880px, calc(100% - 72px)); }
  .store-shell,
  .store-detail-shell { width: min(1880px, calc(100% - 72px)); padding-top: 32px; }
  .store-table td { padding-top: 14px; padding-bottom: 14px; }
}

@media (min-width: 2000px) {
  .store-topbar-inner,
  .store-detail-topbar-inner { width: min(2040px, calc(100% - 96px)); }
  .store-shell,
  .store-detail-shell { width: min(2040px, calc(100% - 96px)); }
  .store-table th:nth-child(2) { width: 31%; }
  .store-table th:nth-child(5) { width: 20%; }
}

@media (max-width: 900px) {
  .store-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-search { grid-column: 1 / -1; }
  .store-reset { grid-column: 1 / -1; }
  .store-table { min-width: 900px; }
}

@media (max-width: 700px) {
  .store-topbar-inner,
  .store-detail-topbar-inner { min-height: 116px; padding: 20px 0 22px; }
  .store-home,
  .store-back { width: 46px; height: 46px; border-radius: 12px; }
  .store-topbar h1,
  .store-detail-topbar h1 { font-size: 26px; }
  .store-topbar p,
  .store-detail-topbar p { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .store-shell,
  .store-detail-shell { padding-top: 18px; padding-bottom: 54px; }
  .store-summary,
  .detail-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-stat { padding: 12px 13px; }
  .store-stat strong { font-size: 23px; }
  .store-toolbar { padding: 14px; }
  .store-toolbar-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .store-source { text-align: left; }
  .store-filters { grid-template-columns: 1fr; }
  .store-search,
  .store-reset { grid-column: auto; }
  .detail-hero { flex-direction: column; padding: 18px; }
  .detail-source { text-align: left; }
  .detail-fields-panel { padding: 15px; }
  .detail-fields { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .store-topbar-inner,
  .store-detail-topbar-inner,
  .store-shell,
  .store-detail-shell { width: calc(100% - 26px); }
  .store-topbar-inner,
  .store-detail-topbar-inner { gap: 11px; }
  .store-home,
  .store-back { width: 42px; height: 42px; }
  .store-home svg,
  .store-back svg { width: 22px; height: 22px; }
  .store-topbar h1,
  .store-detail-topbar h1 { font-size: 24px; }
  .store-results-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .detail-hero h2 { font-size: 25px; }
}
