:root {
  --merchant-template-bg: #f8fbff;
  --merchant-template-card: #ffffff;
  --merchant-template-deep: #071b52;
  --merchant-template-blue: #0a5cff;
  --merchant-template-line: #dbe7ff;
  --merchant-template-soft: #f6f9ff;
  --merchant-template-muted: #52627f;
  --merchant-template-shadow: 0 16px 38px rgba(23, 78, 166, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--merchant-template-deep);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

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

img {
  max-width: 100%;
}

.merchant-template-shell {
  width: min(638px, 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}

.merchant-phone {
  width: 308px;
  min-height: 939px;
  overflow: hidden;
  padding: 10px 8px 12px;
  background: var(--merchant-template-card);
  border: 1px solid var(--merchant-template-line);
  border-radius: 18px;
  box-shadow: var(--merchant-template-shadow);
}

.phone-status {
  height: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--merchant-template-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.phone-status-icons {
  color: #0d1b38;
  font-size: 9px;
  letter-spacing: 1px;
}

.merchant-hero {
  margin: 0;
}

.merchant-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eaf2ff;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(10, 31, 68, 0.10);
}

.merchant-head h1 {
  margin: 14px 0 7px;
  color: var(--merchant-template-deep);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.merchant-head p {
  margin: 0 0 13px;
  color: var(--merchant-template-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.merchant-tags {
  width: 100%;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden;
}

.merchant-tags a {
  flex: 1 1 0;
  min-width: 0;
  height: 22px;
  padding: 0 3px;
  overflow: hidden;
  color: var(--merchant-template-blue);
  background: #f2f7ff;
  border: 1px solid #d8e6ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-intro {
  margin: 0 0 14px;
  padding: 10px 11px;
  color: #132955;
  background: #fbfdff;
  border: 1px solid #e2ebff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.75;
}

.merchant-contact {
  margin-bottom: 17px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dde7f8;
  border-radius: 9px;
}

.contact-row {
  min-height: 42px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 22px 66px 1fr;
  align-items: center;
  border-bottom: 1px solid #edf2fb;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--merchant-template-blue);
}

.contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  color: #4b5d7a;
  font-size: 11px;
  font-weight: 750;
}

.contact-row strong {
  color: var(--merchant-template-deep);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-align: right;
}

.merchant-products h2,
.merchant-faq h2,
.merchant-related h2 {
  margin: 0 0 10px;
  color: var(--merchant-template-deep);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.merchant-products h2 em,
.merchant-related h2 em {
  color: var(--merchant-template-blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 10px 17px;
  justify-content: center;
}

.product-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce8fb;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(10, 38, 92, 0.06);
}

.product-card img {
  display: block;
  width: 100%;
  height: 80px;
  aspect-ratio: auto;
  object-fit: cover;
  background: #edf4ff;
}

.product-card strong {
  display: block;
  padding: 6px 4px 2px;
  color: var(--merchant-template-deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.product-card span {
  display: block;
  padding: 0 4px 7px;
  color: var(--merchant-template-blue);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.template-route-note {
  margin: 15px 0 0;
  color: var(--merchant-template-blue);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
  text-align: center;
}

.merchant-faq {
  margin-top: 28px;
}

.merchant-phone-second .merchant-faq {
  margin-top: 10px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

details {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce8fb;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(10, 38, 92, 0.04);
}

summary {
  position: relative;
  padding: 11px 32px 11px 12px;
  color: var(--merchant-template-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "⌄";
  position: absolute;
  top: 9px;
  right: 12px;
  color: var(--merchant-template-deep);
  font-size: 16px;
}

details[open] summary::after {
  content: "⌃";
}

details p {
  margin: 0;
  padding: 0 12px 11px;
  color: var(--merchant-template-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.65;
}

.merchant-related {
  margin-top: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 128px);
  gap: 12px 20px;
  justify-content: center;
}

.related-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce8fb;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(10, 38, 92, 0.06);
}

.related-card img {
  display: block;
  width: 100%;
  height: 94px;
  aspect-ratio: auto;
  object-fit: cover;
  background: #edf4ff;
}

.related-card strong {
  display: block;
  padding: 7px 7px 2px;
  color: var(--merchant-template-deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.related-card span {
  display: block;
  padding: 0 7px 8px;
  color: #536176;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.template-source {
  margin-top: 32px;
  padding: 19px 12px;
  color: #233a66;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  border: 1px solid #d9e8ff;
  border-radius: 9px;
  text-align: center;
}

.template-source p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.template-source a {
  display: inline-block;
  margin-top: 3px;
  color: var(--merchant-template-blue);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 850px) {
  .merchant-template-shell {
    width: min(430px, 100%);
    padding: 18px 14px;
    display: block;
  }

  .merchant-phone {
    width: 100%;
    min-height: auto;
    margin: 0 auto 20px;
    border-radius: 22px;
  }
}


body {
  padding-bottom: 92px;
}

.merchant-production-shell {
  width: min(638px, 100%);
  margin: 0 auto;
}

.merchant-breadcrumb {
  width: min(638px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 10px 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #416087;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(201, 221, 255, 0.88);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(23, 78, 166, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(142%);
  font-size: 11px;
  font-weight: 750;
}

.merchant-breadcrumb a {
  color: #0a5cff;
}

.merchant-breadcrumb span {
  color: #91a3c0;
}

.merchant-crystal-actions {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(408px, calc(100% - 28px));
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 8px;
  transform: translateX(50%);
  background: rgba(237, 246, 255, 0.66);
  border: 1px solid rgba(179, 213, 255, 0.92);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(18, 73, 159, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(150%);
}

.merchant-crystal-actions a {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 205, 255, 0.95);
  border-radius: 14px;
  color: #0a4cb6;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(215, 236, 255, 0.78));
  box-shadow: 0 8px 18px rgba(48, 119, 211, 0.14), inset 0 1px 1px rgba(255, 255, 255, 1);
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.merchant-crystal-actions a:last-child {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(12, 109, 255, 0.96), rgba(0, 188, 224, 0.86));
  border-color: rgba(121, 213, 255, 0.95);
  text-shadow: 0 1px 1px rgba(1, 50, 104, 0.26);
}

.merchant-crystal-actions a:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 13px 24px rgba(26, 97, 194, 0.24), inset 0 2px 2px rgba(255, 255, 255, 0.95);
}

.merchant-crystal-actions a:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: inset 0 3px 8px rgba(8, 76, 160, 0.22), 0 5px 12px rgba(26, 97, 194, 0.16);
}

.merchant-directory-page {
  min-height: 100vh;
  padding: 24px 16px 56px;
  background: radial-gradient(circle at 12% 0%, rgba(179, 223, 255, 0.64), transparent 30%), linear-gradient(180deg, #f5faff 0%, #ffffff 75%);
}

.merchant-directory-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.merchant-directory-hero,
.merchant-directory-filter,
.merchant-directory-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 223, 255, 0.94);
  box-shadow: 0 16px 38px rgba(27, 84, 168, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
}

.merchant-directory-hero {
  padding: 26px;
  border-radius: 22px;
}

.merchant-directory-kicker,
.merchant-directory-count {
  margin: 0;
  color: #0a5cff;
  font-size: 13px;
  font-weight: 850;
}

.merchant-directory-hero h1 {
  margin: 8px 0;
  color: #071b52;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.12;
}

.merchant-directory-hero p:not(.merchant-directory-kicker) {
  max-width: 680px;
  margin: 0;
  color: #52627f;
  line-height: 1.7;
}

.merchant-directory-filter {
  margin-top: 18px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
  border-radius: 18px;
}

.merchant-directory-filter input,
.merchant-directory-filter select {
  min-height: 44px;
  padding: 0 12px;
  color: #17315e;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #cfdef7;
  border-radius: 12px;
  font: inherit;
}

.merchant-directory-count {
  margin: 18px 0 12px;
}

.merchant-directory-browsebar {
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.merchant-directory-browsebar .merchant-directory-count {
  margin: 0;
}

.merchant-directory-load-more {
  min-height: 42px;
  padding: 0 16px;
  color: #0754d5;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(211, 235, 255, 0.88));
  border: 1px solid #b8d5fb;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(27, 84, 168, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.merchant-directory-load-more:hover { filter: brightness(1.03); transform: translateY(-1px); }

.merchant-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.merchant-directory-card {
  overflow: hidden;
  border-radius: 17px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.merchant-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(27, 84, 168, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.merchant-directory-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.merchant-directory-card-copy {
  padding: 14px;
}

.merchant-directory-card h2 {
  margin: 0;
  color: #071b52;
  font-size: 16px;
  line-height: 1.35;
}

.merchant-directory-card p {
  margin: 8px 0 0;
  color: #52627f;
  font-size: 13px;
  line-height: 1.55;
}

.merchant-directory-card strong {
  display: inline-block;
  margin-top: 12px;
  color: #0a5cff;
  font-size: 13px;
}

.merchant-directory-notice {
  margin: 24px 0 0;
  padding: 15px 17px;
  color: #5a6d8e;
  background: rgba(240, 247, 255, 0.82);
  border: 1px solid #d4e4fb;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
}

/* Merchant-library discovery area: a clear search-first interface rather than a form row. */
.merchant-directory-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 1%, rgba(99, 189, 255, 0.25), transparent 25%),
    radial-gradient(circle at 91% 9%, rgba(13, 92, 210, 0.12), transparent 26%),
    linear-gradient(180deg, #eef7ff 0%, #ffffff 52%);
}

.merchant-directory-page::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 460px;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background-image: linear-gradient(rgba(13, 104, 205, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 104, 205, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.merchant-directory-wrap { position: relative; z-index: 1; }

.merchant-directory-hero {
  min-height: 226px;
  padding: clamp(25px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
  align-items: end;
  gap: 24px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(234, 247, 255, 0.68));
  border-radius: 26px;
}

.merchant-directory-hero::after {
  position: absolute;
  right: -62px;
  top: -72px;
  width: 265px;
  height: 265px;
  content: "";
  border: 38px solid rgba(49, 143, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(49, 143, 255, 0.055);
}

.merchant-directory-hero-copy,
.merchant-directory-assurance { position: relative; z-index: 1; }

.merchant-directory-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #0754c9;
  background: rgba(220, 240, 255, 0.76);
  border: 1px solid rgba(163, 210, 255, 0.9);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.merchant-directory-kicker::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: #0a67e8; box-shadow: 0 0 0 4px rgba(10, 103, 232, 0.12); }

.merchant-directory-hero h1 { margin: 13px 0 8px; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.045em; }

.merchant-directory-lead { margin: 0; color: #1e477b; font-size: clamp(15px, 2vw, 19px); font-weight: 820; line-height: 1.55; }

.merchant-directory-hero p.merchant-directory-description { max-width: 690px; margin: 11px 0 0; color: #60708a; font-size: 14px; line-height: 1.75; }

.merchant-directory-assurance {
  padding: 18px;
  color: #0b3f82;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(176, 214, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(22, 91, 178, 0.1), inset 0 1px 0 rgba(255,255,255,0.95);
}

.merchant-directory-assurance strong { display: block; color: #0b3f82; font-size: 15px; }
.merchant-directory-assurance span { display: block; margin-top: 7px; color: #577294; font-size: 12px; line-height: 1.65; }

.merchant-directory-filter {
  margin-top: 16px;
  padding: clamp(16px, 2.3vw, 22px);
  display: block;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
}

.merchant-directory-search-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #102f5e; font-size: 14px; font-weight: 900; }
.merchant-directory-search-title span { color: #7788a2; font-size: 12px; font-weight: 600; }

.merchant-directory-search-main { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.merchant-directory-search-input { position: relative; }
.merchant-directory-search-input svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; color: #47719f; transform: translateY(-50%); }
.merchant-directory-filter input { width: 100%; min-height: 54px; padding: 0 16px 0 46px; border-color: #b9d7fb; border-radius: 15px; box-sizing: border-box; box-shadow: inset 0 1px 2px rgba(22, 91, 178, 0.05); }
.merchant-directory-filter input:focus { outline: 3px solid rgba(35, 125, 244, 0.14); border-color: #1e79ef; }

.merchant-directory-search-submit { min-width: 106px; min-height: 54px; padding: 0 19px; color: #fff; background: linear-gradient(135deg, #0765e9, #09a4e8); border: 0; border-radius: 15px; box-shadow: 0 12px 22px rgba(8, 96, 220, 0.22), inset 0 1px 0 rgba(255,255,255,0.28); font: inherit; font-weight: 900; cursor: pointer; }
.merchant-directory-search-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }

.merchant-directory-quick { margin-top: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.merchant-directory-quick > span { margin-right: 2px; color: #7386a0; font-size: 12px; font-weight: 750; }
.merchant-directory-quick button { min-height: 29px; padding: 0 10px; color: #30659d; background: #f4f9ff; border: 1px solid #d4e5fa; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.merchant-directory-quick button:hover { color: #075ad5; background: #eaf5ff; border-color: #91c6fa; }

.merchant-directory-filter-row { margin-top: 16px; padding-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; border-top: 1px solid #e2effd; }
.merchant-directory-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 0 11px; background: rgba(246, 251, 255, 0.78); border: 1px solid #d9e9fb; border-radius: 12px; }
.merchant-directory-field span { color: #607b9e; font-size: 12px; font-weight: 750; white-space: nowrap; }
.merchant-directory-filter select { min-width: 0; min-height: 40px; padding: 0 2px; background: transparent; border: 0; outline: none; }
.merchant-directory-reset { min-height: 42px; padding: 0 12px; color: #607795; background: transparent; border: 1px solid #d5e5f8; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.merchant-directory-reset:hover { color: #075ad5; border-color: #a7cdf8; background: #f6fbff; }

@media (max-width: 700px) {
  .merchant-directory-page { padding: 14px 12px 34px; }
  .merchant-directory-hero { min-height: 0; padding: 25px 19px 18px; display: block; border-radius: 21px; }
  .merchant-directory-hero::after { right: -74px; top: -66px; width: 195px; height: 195px; border-width: 28px; }
  .merchant-directory-hero h1 { margin-top: 14px; font-size: 31px; }
  .merchant-directory-lead { font-size: 15px; }
  .merchant-directory-hero p.merchant-directory-description { font-size: 13px; }
  .merchant-directory-assurance { margin-top: 18px; padding: 13px 14px; }
  .merchant-directory-filter { padding: 15px; border-radius: 17px; }
  .merchant-directory-search-title span { display: none; }
  .merchant-directory-search-main { grid-template-columns: 1fr; gap: 8px; }
  .merchant-directory-search-submit { width: 100%; min-height: 48px; }
  .merchant-directory-filter input { min-height: 50px; }
  .merchant-directory-filter-row { grid-template-columns: 1fr; }
  .merchant-directory-field { min-height: 43px; }
  .merchant-directory-reset { width: 100%; }
  .merchant-directory-grid { grid-template-columns: 1fr; gap: 12px; }
  .merchant-directory-card-copy { padding: 11px; }
  .merchant-directory-card h2 { font-size: 14px; }
  .merchant-directory-card p { font-size: 12px; }
  .merchant-directory-browsebar { align-items: stretch; flex-direction: column; }
  .merchant-directory-load-more { width: 100%; }
}
