:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #0f172a;
  --text-body: #333333;
  --muted: #334155;
  --muted-2: #475569;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --accent: #db2777;
  --accent-deep: #9d174d;
  --cta-bg: #9d174d;
  --cta-bg-hover: #831843;
  --accent-soft: #fdf2f8;
  --accent-border: #fbcfe8;
  --accent-ink: #ffffff;
  --rose-text: #9f1239;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container: 900px;
  --cta-h: 64px;
  --space-cta: calc(var(--cta-h) + 36px + env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 20px;
  padding-bottom: var(--space-cta);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
.site-cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-header {
  background: var(--surface);
  padding: 28px 20px 18px;
  text-align: center;
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--line-soft);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
}

.site-header .brand-link,
.site-header h1.brand-title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-header .brand-link:hover,
.site-header a.brand-title:hover {
  color: var(--accent);
}

.header-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.top-nav a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--accent);
}

.page-main {
  padding: 0;
}

.prose {
  padding: 28px 28px 8px;
}

.prose h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
}

.prose p {
  margin: 0 0 14px;
  color: #475569;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: #475569;
}

.prose li {
  margin-bottom: 8px;
}

.lead {
  font-size: 17px;
  color: #334155;
}

.filter-section {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 20px 25px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  width: 55px;
  padding-top: 6px;
  flex-shrink: 0;
}

.filter-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  flex: 1;
}

.filter-btn {
  display: block;
  text-align: center;
  padding: 8px 4px;
  min-height: 40px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

.filter-btn:hover,
.filter-btn.active,
.filter-btn[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.25);
  transform: translateY(-1px);
}

.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-item {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s ease;
}

.entry-item:last-child {
  border-bottom: none;
}

.entry-item:hover {
  background: var(--accent-soft);
}

.entry-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 25px;
  text-decoration: none;
  color: #1e293b;
}

.entry-title {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  line-height: 1.45;
  margin: 0;
}

.city-tag {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

.entry-item:hover .entry-title {
  color: var(--accent);
}

.entry-meta {
  font-size: 12px;
  color: var(--muted-2);
  background: var(--bg);
  padding: 4px 10px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.4;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 28px 28px;
  list-style: none;
  margin: 0;
}

.card-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: #334155;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.card-grid a:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.05);
}

.card-grid strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 15px;
}

.card-grid span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.card-grid a:hover strong {
  color: var(--accent);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  padding: 8px 28px 28px;
  list-style: none;
  margin: 0;
}

.region-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  color: #475569;
  border: 1px solid var(--line);
  background: #fff;
}

.region-grid a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.fact-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 8px;
  color: #475569;
}

.fact-list strong {
  color: var(--text);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--accent-soft);
  color: var(--rose-text);
  font-weight: 700;
}

.compare-table td {
  background: #fff;
  color: #475569;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}

.faq {
  padding: 8px 28px 28px;
}

.faq details {
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 10px;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .faq-body {
  padding: 0 16px 16px;
  color: #475569;
}

.panel {
  margin: 0 28px 24px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.panel p {
  margin: 0;
  color: var(--rose-text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-2);
  line-height: 1.7;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-brand a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.footer-brand a:hover {
  color: var(--accent);
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
}

/* 寻芳 CTA：印泥轻压 + 玫瑰洇色 */
.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 38vw);
  min-width: 400px;
  min-height: 56px;
  padding: 14px 28px;
  background: var(--cta-bg);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid #831843;
  box-shadow: 0 8px 24px rgba(157, 23, 77, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.site-cta:hover,
.site-cta:focus-visible {
  background: var(--cta-bg-hover);
  color: #fff !important;
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(131, 24, 67, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: rose-wash 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 1;
  animation: ink-rule-draw 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

@keyframes ink-rule-draw {
  0%,
  12% {
    transform: scaleX(0);
    opacity: 0.2;
  }
  38% {
    transform: scaleX(1);
    opacity: 1;
  }
  62%,
  100% {
    transform: scaleX(1);
    opacity: 0.55;
  }
}

@keyframes rose-wash {
  0%,
  18% {
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.15;
  }

  .site-cta::after {
    transform: scaleX(1);
    opacity: 0.7;
  }

  .filter-btn:hover,
  .filter-btn.active {
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-cta {
    width: auto;
    min-width: 0;
    left: 16px;
    right: 16px;
    transform: none;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
    padding-bottom: var(--space-cta);
  }

  .site-header {
    padding: 22px 14px 14px;
    border-top-width: 4px;
  }

  .site-header .brand-link,
  .site-header h1.brand-title {
    font-size: 20px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .filter-section {
    padding: 15px;
  }

  .filter-items {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 7px 2px;
  }

  .entry-link {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }

  .entry-title {
    font-size: 15px;
  }

  .entry-meta {
    align-self: flex-start;
  }

  .prose,
  .faq,
  .card-grid,
  .region-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prose h1 {
    font-size: 22px;
  }

  .prose h2 {
    font-size: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .filter-label {
    width: auto;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .top-nav {
    gap: 4px 10px;
    font-size: 13px;
  }

  .site-cta {
    font-size: 15px;
    min-height: 52px;
    padding: 12px 16px;
  }
}
