:root {
  --bg-paper: #f7f3ea;
  --bg-card: #fffdf8;
  --ink: #1f1c18;
  --ink-mid: #575047;
  --ink-light: #877e72;
  --line: #e4dccb;
  --red: #9e2a2b;
  --red-soft: #fdf2f2;
  --blue: #234e5e;
  --blue-soft: #f0f6f8;
  --wx-green: #07c160;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", serif;
  background: var(--bg-paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.brand-dot {
  background: var(--ink);
  color: #fffdf8;
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-mid);
}
.nav-links a:hover { color: var(--red); }

.hero {
  background: linear-gradient(180deg, #efe8d8 0%, var(--bg-paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 34px 18px 30px;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  color: var(--ink-mid);
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
}
.hero-sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-mid);
}
.hero-sub strong { color: var(--red); }

.search-card {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid #d8ceba;
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow: 0 6px 20px rgba(45, 35, 20, 0.05);
  text-align: left;
}
.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.s-tab {
  border: 1px solid var(--line);
  background: #f6f1e6;
  color: var(--ink-mid);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.s-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.seal-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}
.seal-mini.red { background: var(--red); }
.seal-mini.blue { background: var(--blue); }

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #cfc4ae;
  border-radius: 9px;
  padding: 6px 6px 6px 12px;
}
.field-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
.field-main label, .field-sel label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mid);
  white-space: nowrap;
}
.field-main input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
  padding: 6px 0;
}
.field-sep {
  width: 1px;
  height: 24px;
  background: var(--line);
}
.field-sel {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-sel select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
  padding: 6px 4px;
  cursor: pointer;
}
.submit-btn {
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.red-btn { background: var(--red); }
.red-btn:hover { background: #842021; }
.blue-btn { background: var(--blue); }
.blue-btn:hover { background: #1a3b47; }

.quick-row {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-light);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.quick-row a {
  color: var(--ink-mid);
  padding: 1px 6px;
  border-radius: 4px;
  background: #f4efe4;
}
.quick-row a:hover {
  color: var(--red);
  background: #ebe3d2;
}

.container {
  max-width: 1140px;
  margin: 24px auto 48px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 3px 12px rgba(30, 24, 16, 0.04);
}
.jiapu-card { border-top: 3px solid var(--red); }
.fangzhi-card { border-top: 3px solid var(--blue); }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.big-seal {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.big-seal.red { background: var(--red); }
.big-seal.blue { background: var(--blue); }
.card-kicker {
  font-size: 12px;
  color: var(--ink-light);
}
.card-head h2 {
  font-size: 20px;
  font-weight: 800;
}
.card-desc {
  font-size: 14px;
  color: var(--ink-mid);
}
.sub-entry-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sub-entry-links a {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f5f0e5;
  border: 1px solid var(--line);
  color: var(--ink);
}
.sub-entry-links a:hover { border-color: var(--ink-mid); }
.card-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.price-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.enter-btn {
  display: inline-block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
}

.bundle-banner {
  background: linear-gradient(135deg, #fffdf9 0%, #f9f1e4 100%);
  border: 1px solid #dfd1b8;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bundle-text { flex: 1; min-width: 260px; }
.bundle-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #eccaca;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.bundle-text h3 { font-size: 18px; margin-bottom: 6px; }
.bundle-text p { font-size: 13.5px; color: var(--ink-mid); }
.bundle-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wx-cta-btn {
  background: var(--wx-green);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
}
.wx-cta-btn:hover { filter: brightness(0.95); }
.wx-id-note { font-size: 12.5px; color: var(--ink-mid); }

.box-sec {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sec-head h2 { font-size: 17.5px; font-weight: 800; }
.sec-head p { font-size: 13px; color: var(--ink-light); margin-top: 2px; }
.more-link { font-size: 13px; font-weight: 600; color: var(--red); }

.pill-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  background: #f7f3ea;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.pill small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-light);
}
.pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

.prov-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}
.prov-pair-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #faf7f0;
}
.prov-pair-name {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
}
.prov-pair-links {
  display: flex;
  gap: 6px;
  font-size: 12px;
}
.pair-a {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  border-radius: 5px;
  font-weight: 600;
}
.jiapu-a {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #efd2d2;
}
.fangzhi-a {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #cde0e6;
}
.pair-a:hover { filter: brightness(0.96); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.guide-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: #faf7f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guide-card:hover { border-color: var(--ink-mid); background: #fff; }
.g-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.g-badge.red { background: var(--red-soft); color: var(--red); }
.g-badge.blue { background: var(--blue-soft); color: var(--blue); }
.guide-card h3 { font-size: 15px; line-height: 1.45; }
.guide-card p { font-size: 12.5px; color: var(--ink-mid); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-item {
  padding: 14px;
  border-radius: 8px;
  background: #faf7f0;
  border: 1px solid var(--line);
}
.faq-item h4 { font-size: 14.5px; margin-bottom: 5px; }
.faq-item p { font-size: 13px; color: var(--ink-mid); }

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 18px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mid);
}
.footer-links {
  margin-top: 6px;
  color: var(--ink-light);
}
.footer-links a { color: var(--ink-mid); }
.footer-links a:hover { color: var(--red); }

.fab-wx {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  background: var(--wx-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(7, 193, 96, 0.35);
  cursor: pointer;
}

.wx-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.58);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wx-backdrop.open { display: flex; }
.wx-modal {
  background: var(--bg-card);
  width: 100%;
  max-width: 410px;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--line);
}
.wx-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.wx-modal-head h3 { font-size: 16.5px; }
.close-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 2px 9px;
  cursor: pointer;
}
.wx-banner {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.wx-preview {
  background: #f6f2e8;
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--ink-mid);
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.wx-qr-box {
  text-align: center;
  margin-bottom: 10px;
}
.wx-qr-box img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.wx-qr-tip { font-size: 12px; color: var(--ink-light); margin-top: 4px; }
.wx-id-line {
  text-align: center;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.wx-id-line strong { color: var(--red); font-size: 15px; user-select: all; }
.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 6px;
  cursor: pointer;
}
.wx-main-btn {
  width: 100%;
  background: var(--wx-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.wx-time {
  text-align: center;
  font-size: 12px;
  color: var(--ink-light);
  margin-top: 8px;
}

@media (max-width: 780px) {
  .dual-grid, .faq-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; align-items: stretch; padding: 10px; }
  .field-sep { display: none; }
  .field-sel { border-top: 1px solid var(--line); padding-top: 6px; }
  .submit-btn { width: 100%; margin-top: 4px; }
}
