:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #525252;
  --ink: #171717;
  --link: #9d174d;
  --muted: #404040;
  --accent: #ec4899;
  --accent-deep: #db2777;
  --accent-ink: #1c1917;
  --line: #e5e5e5;
  --wind: rgba(255, 255, 255, 0.55);
  --shadow: rgba(0, 0, 0, 0.08);
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  padding-bottom: 120px;
}

h1 { font-size: 32px; line-height: 1.25; font-weight: 700; margin: 0 0 16px; color: var(--ink); }
h2 { font-size: 24px; line-height: 1.3; font-weight: 700; margin: 28px 0 12px; color: var(--ink); }
h3 { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 18px 0 8px; color: var(--ink); }
p { margin: 0 0 14px; }
a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 8px; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  box-shadow: 0 1px 2px var(--shadow);
}
.site-top::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
}

.top-inner,
.wrap,
.foot-inner {
  width: min(1152px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.top-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}
.brand-num { font-size: 22px; line-height: 1; color: var(--accent); }
.brand-word {
  font-size: 14px;
  line-height: 1;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 4px;
  padding: 4px 6px;
}

.nav-toggle {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 8px 16px 16px;
  box-shadow: 0 8px 16px var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  font-size: 16px;
}
.site-nav a[aria-current="page"] { color: var(--accent); }

.wrap { padding-top: 16px; padding-bottom: 8px; }

.trade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  background: var(--surface);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 12px;
}
.trade-row a { color: var(--text); text-decoration: none; font-size: 16px; }
.trade-row a:hover,
.trade-row a[aria-current="page"] { color: var(--accent); }

.panel {
  background: var(--surface);
  border-radius: 4px;
  padding: 16px;
  margin: 0 0 12px;
}
.panel h2:first-child { margin-top: 0; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
}
.city-grid a {
  display: block;
  margin: 0;
  padding: 8px 4px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  background: var(--bg);
  border-radius: 4px;
}
.city-grid a span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.city-grid a:hover { color: var(--accent); }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.filter-row input {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 44px;
  width: min(100%, 240px);
}

.facts, .rank { margin: 0 0 14px; padding-left: 1.2em; }
.facts li, .rank li { margin: 0 0 8px; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
caption { text-align: left; font-weight: 700; margin: 0 0 8px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--bg); color: var(--ink); font-weight: 700; }
.more { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.more a { margin: 0; }

.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.foot-inner { padding: 28px 0 22px; }
.foot-brand { font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: none; }
.foot-line { color: var(--muted); margin: 8px 0 16px; }
.foot-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(7em, 1fr)); gap: 10px 16px; }
.foot-links a { color: var(--text); text-decoration: none; }

a[data-site-cta="xunfang"] {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 480px;
  max-width: calc(100% - 32px);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--shadow);
}
a[data-site-cta="xunfang"]:hover,
a[data-site-cta="xunfang"]:focus-visible,
a[data-site-cta="xunfang"]:active {
  color: var(--accent-ink);
  background: var(--accent);
}
a[data-site-cta="xunfang"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--wind), transparent 72%);
  opacity: 0.2;
  transform: translateX(0);
  pointer-events: none;
  animation: wind-blush 2.8s cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes wind-blush {
  0% { opacity: 0.12; transform: translateX(0); }
  40% { opacity: 0.95; transform: translateX(2px); }
  100% { opacity: 0.18; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  a[data-site-cta="xunfang"]::before {
    animation: none;
    opacity: 0.28;
    transform: none;
  }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-left: auto;
    gap: 18px;
  }
  .site-nav a { display: inline-block; padding: 8px 0; }
  .city-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .city-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .city-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  a[data-site-cta="xunfang"] {
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 52px;
  }
}
