:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-strong: #ebeff7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-alt: rgba(248, 250, 255, 0.92);
  --text: #18212f;
  --muted: #627089;
  --line: #dbe3f1;
  --brand: #2257d6;
  --brand-dark: #193f9c;
  --brand-soft: #e7efff;
  --accent: #14a06f;
  --shadow: 0 18px 48px rgba(28, 46, 92, 0.08);
  --radius: 8px;
  --wrap: 1180px;
  --canvas-a: rgba(34, 87, 214, 0.16);
  --canvas-b: rgba(20, 160, 111, 0.12);
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1017;
  --bg-strong: #101621;
  --panel: rgba(19, 25, 36, 0.9);
  --panel-alt: rgba(26, 33, 47, 0.9);
  --text: #f3f5f9;
  --muted: #98a7bc;
  --line: #263247;
  --brand: #d9e0ea;
  --brand-dark: #ffffff;
  --brand-soft: rgba(217, 224, 234, 0.12);
  --accent: #9fb7cf;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
  --canvas-a: rgba(255, 255, 255, 0.13);
  --canvas-b: rgba(180, 192, 205, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(34, 87, 214, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
}

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

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(calc(100% - 32px), var(--wrap));
  margin: 0 auto;
}

.hero {
  padding: 36px 0 20px;
}

.hero-box {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(219, 227, 241, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-main {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(34, 87, 214, 0.09), rgba(20, 160, 111, 0.05)),
    var(--panel);
}

.hero-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.theme-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
}

.lead {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.meta-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.contact-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-box h2,
.list-head h2 {
  margin: 0;
  font-size: 22px;
}

.subtext {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.contact-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
}

.hint {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(20, 160, 111, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.catalog {
  padding: 14px 0 34px;
}

.list-wrap {
  padding: 24px;
}

.list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.list-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-grow {
  min-width: 220px;
  flex: 1 1 260px;
}

.field-fixed {
  min-width: 180px;
  flex: 0 0 220px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.control {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.control:focus,
.theme-toggle:focus,
.btn:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 87, 214, 0.14);
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: transparent;
}

thead {
  background: rgba(34, 87, 214, 0.07);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--brand-dark);
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(34, 87, 214, 0.05);
}

.name-cell {
  font-weight: 700;
  color: var(--text);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.price-badge.empty {
  background: rgba(127, 142, 166, 0.15);
  color: var(--muted);
}

.site-link {
  color: var(--brand);
  font-weight: 700;
}

.site-link:hover {
  color: var(--brand-dark);
}

.site-missing {
  color: var(--muted);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.pager-info {
  color: var(--muted);
  font-size: 14px;
}

.pager-actions {
  display: flex;
  gap: 8px;
}

.btn {
  min-width: 96px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover:not(:disabled),
.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

footer {
  padding: 18px 0 28px;
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: 18px 22px;
  background: var(--panel);
}

.footer-brand {
  min-width: 260px;
  flex: 1 1 420px;
  font-size: 15px;
  font-weight: 700;
}

.footer-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-record img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .hero-box {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .contact-box,
  .list-wrap {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 20px), var(--wrap));
  }

  .hero {
    padding-top: 22px;
  }

  h1 {
    font-size: 30px;
  }

  .pager-actions,
  .toolbar,
  .list-head,
  .hero-topbar {
    width: 100%;
  }

  .field-fixed {
    flex: 1 1 220px;
  }

  .btn {
    flex: 1 1 0;
  }

  .footer-box {
    padding: 16px;
  }
}
