:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #5c6773;
  --line: #dfe4ea;
  --accent: #e4572e;
  --accent-soft: #fdeee7;
  --teal: #0f766e;
  --teal-soft: #e6f4f2;
  --danger: #b42318;
  --warning: #b54708;
  --green: #15803d;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

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

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand strong {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  white-space: nowrap;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--text);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 18px 48px;
}

.hero {
  padding: 34px 0 26px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.mode-tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 14px;
}

.mode-tab,
.plain-button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mode-tab.is-active,
.plain-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.product-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: 0;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px;
}

.price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.toolbar input[type="search"],
.toolbar input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 14px;
  min-width: 0;
}

.toolbar input[type="search"] {
  flex: 1 1 220px;
}

.toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.offer-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.offer-table th,
.offer-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.offer-table th {
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.offer-table tr:last-child td {
  border-bottom: 0;
}

.offer-table a {
  color: var(--teal);
  font-weight: 700;
}

.offer-table a:hover {
  color: var(--accent);
}

.offer-title {
  max-width: 360px;
}

.offer-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.tag-stock {
  color: var(--green);
  background: #e8f6ee;
}

.tag-low {
  color: var(--warning);
  background: #fdf1e2;
}

.tag-out {
  color: var(--muted);
  background: #eef0f2;
}

.tag-anomaly {
  color: var(--danger);
  background: #fdecec;
}

.tag-muted {
  color: var(--muted);
  background: #eef0f2;
}

.tag-teal {
  color: var(--teal);
  background: var(--teal-soft);
}

.tag-reputation {
  margin-left: 4px;
  padding: 1px 7px;
}

.tag-reputation-推荐 {
  color: var(--green);
  background: #e8f6ee;
}

.tag-reputation-正常 {
  color: var(--teal);
  background: var(--teal-soft);
}

.tag-reputation-待观察,
.tag-reputation-高风险 {
  color: var(--warning);
  background: #fdf1e2;
}

.official-lowest td {
  background: #f1fbf8;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
}

.stat .value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
}

.copy-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
}

.copy-block h2 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: 0;
}

.copy-block p {
  margin: 8px 0;
  color: var(--muted);
}

.form-card {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.form-card label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 14px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.form-card textarea {
  min-height: 100px;
  resize: vertical;
}

.form-card button {
  margin-top: 14px;
  border: 0;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 30px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner a {
  color: var(--muted);
  margin-right: 12px;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .section-head {
    flex-direction: column;
    gap: 4px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
