:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.64);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 18%, #f2f2f5 100%);
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
}

.brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  padding: 18px 0 22px;
}

.cards-first {
  margin-top: 14px;
}

.cards-heading {
  margin-bottom: 14px;
}

.cards-heading p {
  max-width: 920px;
  margin: 0;
  font-size: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__content,
.hero-card,
.content-panel,
.ai-panel,
.claimed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__content {
  padding: clamp(30px, 5vw, 64px);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
}

.hero-card strong {
  display: block;
  margin: 16px 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-card__tag,
.eyebrow,
.filter-label,
.tab {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.22);
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-heading p:not(.eyebrow),
.section-note {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading--inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.claimed {
  margin: 10px 0 24px;
  padding: 22px;
  overflow: hidden;
}

.claimed-ticker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.claimed-item {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.72;
  transition: opacity 180ms ease, transform 180ms ease;
}

.claimed-item.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.claimed-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.content-panel,
.ai-panel {
  padding: 28px;
}

.ai-panel {
  position: sticky;
  top: 18px;
}

.filter-board {
  display: grid;
  gap: 14px;
  margin: 4px 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.chip {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.filter-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.filter-label {
  color: var(--muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.chip {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.chip.is-active {
  color: white;
  background: var(--accent);
}

.filter-row--city {
  grid-template-columns: 110px minmax(0, 520px);
  justify-content: start;
}

.filter-row--search {
  grid-template-columns: 110px minmax(0, 520px);
}

.advanced-filters {
  display: grid;
  gap: 14px;
}

.filter-actions {
  display: none;
  gap: 12px;
  justify-content: flex-end;
}

.mobile-filter-open {
  display: none;
}

.mobile-filter-apply {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #a1a1a6;
}

.custom-select {
  position: relative;
  width: min(520px, 100%);
}

.custom-select__trigger {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 46px 0 18px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  color: #1d1d1f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 247, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(15, 23, 42, 0.05);
  font: 500 17px/1.2 "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.custom-select__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 1.8px solid #6e6e73;
  border-bottom: 1.8px solid #6e6e73;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 160ms ease;
}

.custom-select.is-open .custom-select__trigger::after {
  transform: translateY(-20%) rotate(225deg);
}

.custom-select__trigger:focus-visible,
.custom-select.is-open .custom-select__trigger {
  outline: none;
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 14;
  display: none;
  width: 100%;
  max-height: 280px;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(20px);
}

.custom-select.is-open .custom-select__menu {
  display: grid;
  gap: 4px;
}

.custom-select__menu:focus {
  outline: none;
}

.custom-select__option {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #1d1d1f;
  background: transparent;
  font: 500 15px/1.4 "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.custom-select__option:hover {
  background: rgba(0, 113, 227, 0.08);
}

.custom-select__option.is-selected {
  color: #0a66d9;
  background: rgba(0, 113, 227, 0.12);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  min-height: 52px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 247, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.search-box__icon {
  display: inline-flex;
  flex: 0 0 auto;
  order: 2;
  color: #8e8e93;
}

.search-box__icon svg {
  width: 18px;
  height: 18px;
}

.search-box input {
  order: 1;
  flex: 1 1 auto;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1d1d1f;
  font: 500 17px/1.2 "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.search-box input:focus,
.custom-select__trigger:focus {
  outline: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pagination__total,
.page-jump {
  color: var(--muted);
  font-size: 14px;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size {
  width: auto;
  min-height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-jump input {
  width: 56px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  text-align: center;
}

.page-btn {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.page-btn--icon {
  font-size: 20px;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.page-btn.is-active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.page-btn:disabled {
  color: #b4b4b8;
  cursor: not-allowed;
}

.load-more {
  display: none;
  width: 100%;
  margin-top: 18px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.plan-card:hover {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.badge--calm {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

.plan-card h3 {
  margin: 0;
  color: #111;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.plan-card__head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.plan-card__head:not(:has(.plan-card__image)) {
  grid-template-columns: 1fr;
}

.plan-card__image {
  width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  background: #f5f5f7;
  border: 1px solid var(--line);
}

.plan-card__image--empty {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.plan-card__body {
  display: grid;
  grid-template-rows: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-self: stretch;
  min-height: 92px;
  min-width: 0;
}

.plan-card__subline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  align-content: center;
}

.plan-tags span {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 5px;
  color: #3051c8;
  background: #d9ddff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-tags span:nth-child(2) {
  color: #5d35b8;
  background: #e2d5ff;
}

.plan-tags span:nth-child(3) {
  color: #5b7418;
  background: #d7ef88;
}

.plan-tags span:nth-child(4) {
  color: #8a5d12;
  background: #f4d89a;
}

.plan-tags span:nth-child(5) {
  color: #0e8a7a;
  background: #cdeee8;
}

.plan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.plan-stats strong {
  color: #111;
  font-size: 17px;
  line-height: 1;
}

.plan-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-meta__item {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.plan-meta__item::before {
  display: inline-block;
  width: 14px;
  margin-right: 2px;
  font-weight: 800;
  text-align: center;
}

.plan-meta__item--cyan::before {
  content: "◈";
  color: #10a7c7;
}

.plan-meta__item--orange::before {
  content: "▣";
  color: #d28a16;
}

.plan-meta__item--green::before {
  content: "◆";
  color: #20b05a;
}

.plan-meta__item--red::before {
  content: "●";
  color: #e04b27;
}

.plan-meta__item--purple::before {
  content: "▲";
  color: #6d4ce3;
}

.plan-meta__item span {
  color: #2f3a4a;
  font-weight: 700;
}

.claim-link {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
}

.plan-meta__item,
.plan-card__subline,
.plan-tags span,
.plan-card h3 {
  cursor: help;
}

.ai-form {
  display: grid;
  gap: 12px;
}

.ai-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.ai-result article {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}

.site-footer {
  padding: 36px 0 92px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.beian {
  display: inline-flex;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.mobile-cta {
  display: none;
}

.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.24);
  font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 31;
  background: rgba(0, 0, 0, 0.24);
}

.ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  width: min(440px, 100vw);
  padding: 28px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.ai-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 1199px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .ai-panel {
    position: static;
  }

  .cards-heading {
    display: grid;
  }
}

@media (max-width: 767px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 20px, 1180px);
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding-top: 10px;
  }

  .hero__content,
  .content-panel,
  .ai-panel,
  .claimed {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-card {
    min-height: 210px;
  }

  .claimed-item {
    grid-template-columns: auto auto minmax(120px, 1fr);
    min-width: 100%;
  }

  .claimed-ticker {
    grid-template-columns: 1fr;
  }

  .filters,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .plan-card__head {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .plan-card__image {
    width: 88px;
  }

  .filter-board {
    padding: 14px;
  }

  .search-box {
    width: 100%;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row--search {
    grid-template-columns: 1fr;
  }

  .filter-row[data-filter-row="category_id"] .filter-label {
    display: none;
  }

  .filter-row[data-filter-row="category_id"] .chip-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .chip-group {
    gap: 10px;
  }

  .advanced-filters {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 32;
    max-height: 78vh;
    overflow: auto;
    padding: 24px 18px 96px;
    border-radius: 28px 28px 0 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 180ms ease;
  }

  .advanced-filters.is-open {
    transform: translateY(0);
  }

  .filter-row--city {
    grid-template-columns: 1fr;
  }

  .custom-select {
    width: 100%;
  }

  .filter-actions {
    display: flex;
    justify-content: stretch;
  }

  .filter-actions .button {
    flex: 1;
  }

  .mobile-filter-open {
    display: inline-flex;
  }

  .mobile-filter-apply {
    display: inline-flex;
  }

  .ai-fab {
    right: 16px;
    bottom: 16px;
    width: 64px;
    height: 64px;
  }

  .mobile-cta {
    display: none;
  }

  .ai-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 86vh;
    border-radius: 28px 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    transform: translateY(100%);
  }

  .ai-drawer.is-open {
    transform: translateY(0);
  }

  .pagination {
    display: none;
  }

  .load-more:not([hidden]) {
    display: inline-flex;
  }
}
