:root {
  --primary: #635bff;
  --primary-dark: #4f46e5;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --row: #f3f5fd;
  --row-border: #dadff4;
  --text: #525252;
  --text-strong: #262626;
  --muted: #5c6370;
  --radius: 6px;
  --container: 1024px;
  --cta-wash: rgba(99, 91, 255, 0.22);
  --cta-line: rgba(99, 91, 255, 0.55);
  --cta-pad: 88px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-bottom: var(--cta-pad);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: var(--cta-pad);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10001;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-accent {
  height: 2px;
  background: var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.menu-icon {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-desktop {
  display: none;
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 5rem;
  padding: 0 1.25rem;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-strong);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .nav-desktop {
    display: block;
  }
}

.drawer[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.35);
}

.drawer-panel {
  width: min(220px, 85vw);
  height: 100%;
  background: var(--surface);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
  padding: 1rem;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.drawer-close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav .nav-link {
  height: auto;
  padding: 0.75rem 0;
  border: none;
}

.site-main.has-cta-pad {
  padding-bottom: var(--cta-pad);
}

.hero-band {
  background: var(--surface);
  border-bottom: 1px solid var(--row-border);
  padding: 1.5rem 0 1.25rem;
}

.hero-band h1,
.prose h1,
.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  line-height: 1.35;
  color: var(--text-strong);
}

@media (min-width: 768px) {
  .hero-band h1,
  .prose h1,
  .page-head h1 {
    font-size: 1.875rem;
  }
}

.lead {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 52rem;
}

.section {
  padding: 1.25rem 0 1.75rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.1875rem;
  color: var(--text-strong);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--row);
  color: var(--primary);
  border: 1px solid var(--row-border);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.35rem;
  font-size: 0.875rem;
}

@media (min-width: 576px) {
  .city-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .city-grid {
    grid-template-columns: repeat(11, minmax(0, 1fr));
  }
}

.city-area {
  grid-column: 1 / -1;
  margin: 0.75rem 0 0.25rem;
  font-weight: 700;
  color: var(--text);
}

.city-area:first-child {
  margin-top: 0;
}

.city-link {
  color: var(--text);
  padding: 0.15rem 0;
  overflow-wrap: anywhere;
}

.city-link:hover {
  color: var(--primary);
}

.section-note,
.static-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-card {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--row-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 5.5rem;
}

.card-body {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.85rem;
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-strong);
}

.card-excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.card-loc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.loc-icon {
  width: 0.65rem;
  height: 0.65rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  flex-shrink: 0;
}

.card-views {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.card-thumb {
  width: 5.5rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--row) 0%, #e8ebfa 100%);
  border-left: 1px solid var(--row-border);
}

@media (min-width: 768px) {
  .card-thumb {
    width: 6.5rem;
  }
}

.panel-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .panel-row {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--row-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--text-strong);
}

.panel p {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
}

.text-link {
  font-weight: 500;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--row-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
}

.faq p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.page-head {
  padding-top: 1.25rem;
}


.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.filter-chip {
  border: 1px solid var(--row-border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.filter-chip.is-on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.merchant-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .merchant-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.merchant-card {
  background: var(--surface);
  border: 1px solid var(--row-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.merchant-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-strong);
}

.tier-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--row-border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.tier-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--primary);
}

.help-list article {
  background: var(--surface);
  border: 1px solid var(--row-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.help-list h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.prose {
  padding: 1.25rem 1rem 2rem;
  max-width: 42rem;
}

.prose h1 {
  margin: 0 0 1rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.65;
}

.field-list {
  padding-left: 1.25rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--row-border);
  padding: 1.5rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner {
  text-align: center;
}

.footer-tag {
  margin: 0 0 0.75rem;
}

.footer-nav a {
  color: var(--muted);
  margin: 0 0.25rem;
}

.footer-brand {
  margin: 1rem 0 0;
}

.footer-brand a {
  color: var(--text-strong);
  font-weight: 600;
}

.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: min(480px, calc(100vw - 24px));
  padding: 0 1.25rem;
  background: var(--primary);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(99, 91, 255, 0.35);
  overflow: hidden;
}

.site-cta:hover,
.site-cta:focus-visible {
  color: #fff !important;
  text-decoration: none;
  background: var(--primary-dark);
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 160% at 28% 50%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0;
  animation: cta-wash 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: var(--cta-line);
  transform: scaleX(0);
  transform-origin: left;
  animation: cta-line 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes cta-wash {
  0%,
  55% {
    opacity: 0;
    transform: scale(0.96);
  }
  68% {
    opacity: 0.28;
    transform: scale(1);
  }
  85%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes cta-line {
  0%,
  60% {
    transform: scaleX(0);
    opacity: 1;
  }
  74% {
    transform: scaleX(1);
  }
  88%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before {
    animation: none;
    opacity: 0.12;
    transform: scale(1);
  }

  .site-cta::after {
    animation: none;
    transform: scaleX(1);
    opacity: 0.35;
  }
}

@media (min-width: 768px) {
  .site-cta {
    width: min(520px, 38vw);
  }
}
