/* ========== CSS Custom Properties ========== */
:root {
  --bg: #FAFBF8;
  --surface: #FFFFFF;
  --text-primary: #1A2332;
  --text-secondary: #5A6B7B;
  --text-muted: #8E99A4;
  --border: #E8ECF0;
  --border-light: #F0F3F6;

  --green-50: #F0F7F0;
  --green-100: #D4EDDA;
  --green-500: #66BB6A;
  --green-600: #4CAF50;

  --blue-50: #EBF5FB;
  --blue-100: #D6EAF8;
  --blue-500: #5DADE2;

  --coral: #FF7043;
  --coral-light: #FFF3E0;
  --coral-hover: #F4511E;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "PingFang SC", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ========== Layout ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ========== Header / Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--green-50);
  color: var(--green-600);
}

.nav-btn--primary {
  background: var(--coral);
  color: white;
}

.nav-btn--primary:hover {
  background: var(--coral-hover);
  color: white;
}

/* City Selector — B2 dropdown 容器 */
.city-selector {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* B2 · 下拉菜单结构 */
.city-dropdown { position: relative; }

.city-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.city-dropdown-trigger:hover {
  border-color: var(--green-600);
  box-shadow: 0 2px 8px rgba(76,175,80,0.18);
}
.city-dropdown.open .city-dropdown-trigger {
  border-color: var(--green-600);
  box-shadow: 0 2px 10px rgba(76,175,80,0.25);
  background: rgba(76,175,80,0.06);
}
.city-dropdown-trigger .city-dropdown-emoji {
  font-size: 15px;
  line-height: 1;
}
.city-dropdown-trigger .city-dropdown-arrow {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 2px;
  transition: transform 0.2s;
}
.city-dropdown.open .city-dropdown-arrow {
  transform: rotate(180deg);
  opacity: 0.85;
}

.city-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -8px rgba(0,0,0,0.18), 0 4px 12px -4px rgba(0,0,0,0.1);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px,1fr));
  gap: 2px;
  min-width: 320px;
  max-height: 360px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
  /* Hide native arrow when overflow */
  scrollbar-width: thin;
}
.city-dropdown.open .city-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}

.city-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.city-dropdown-item:hover {
  background: rgba(76,175,80,0.08);
  color: var(--green-600);
}
.city-dropdown-item .city-dropdown-emoji { font-size: 16px; flex-shrink: 0; }
.city-dropdown-item .city-dropdown-name { flex: 1; }
.city-dropdown-item .city-dropdown-check {
  font-size: 13px;
  color: var(--green-600);
  font-weight: 800;
  opacity: 0;
}
.city-dropdown-recent {
  font-size: 11px;
  opacity: 0.5;
  flex-shrink: 0;
  margin-right: -2px;
}
.city-dropdown-item:hover .city-dropdown-recent { opacity: 0.85; }
.city-dropdown-item.active {
  background: rgba(76,175,80,0.10);
  color: var(--green-600);
}
.city-dropdown-item.active .city-dropdown-check { opacity: 1; }

/* legacy city-btn — 保留以防外部页面引用，但 nav 内不再渲染 */
.city-btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.city-btn.active {
  background: var(--green-600);
  color: white;
}

@media (max-width: 640px) {
  .city-selector { order: -1; }
  .city-dropdown-trigger { padding: 5px 10px; font-size: 12px; }
  .city-dropdown-menu {
    grid-template-columns: 1fr;
    min-width: 220px;
    max-height: 260px;
  }
}

/* ========== Hero ========== */
.hero {
  padding: 88px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(102, 187, 106, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(93, 173, 226, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 112, 67, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 100px;
  font-size: 13px;
  color: var(--green-600);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero 区入场动画（首屏 stagger fade-up） */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge,
.hero h1,
.hero p,
.hero-search-wrap,
.hero-actions,
.stats-bar {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-badge      { animation-delay: 0.04s; }
.hero h1         { animation-delay: 0.10s; }
.hero p          { animation-delay: 0.18s; }
.hero-search-wrap{ animation-delay: 0.26s; }
.hero-actions    { animation-delay: 0.34s; }
.stats-bar       { animation-delay: 0.42s; }
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero p, .hero-search-wrap, .hero-actions, .stats-bar {
    animation: none;
  }
}

/* B1 · Hero 搜索框（首屏直达） */
.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 28px auto 20px;
}
.hero-search-wrap .hero-search { margin: 0; }
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(76,175,80,0.18);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 28px auto 20px;
  max-width: 560px;
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.12);
}
.hero-search:hover,
.hero-search:focus-within {
  border-color: #4CAF50;
  box-shadow: 0 14px 32px -10px rgba(76,175,80,0.30);
  transform: translateY(-1px);
}
.hero-search-icon {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.65;
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #2c3e50;
  font-family: inherit;
  min-width: 0;
}
.hero-search-input::placeholder { color: #94a3b8; }
.hero-search-input::-webkit-search-cancel-button { display: none; }
.hero-search-kbd {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: inherit;
  color: #64748b;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
@media (max-width: 480px) {
  .hero-search-wrap { margin: 22px 12px 16px; }
  .hero-search { margin: 0; padding: 13px 16px; gap: 10px; }
  .hero-search-input { font-size: 15px; }
  .hero-search-kbd { display: none; }
  .hero-search-icon { font-size: 18px; }
}

/* B4+B1 联动 · Hero search 下挂 Recent searches mini dropdown */
.hero-recent-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(76,175,80,0.18);
  border-radius: 12px;
  padding: 12px 10px 10px;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}
.hero-recent-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s, transform 0.2s, visibility 0s;
}
.hero-recent-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  padding: 0 8px;
}
.hero-recent-clear {
  background: transparent;
  border: none;
  font-size: 11px;
  color: #c0c4ca;
  cursor: pointer;
  padding: 2px 4px;
}
.hero-recent-clear:hover { color: #FF7043; }
.hero-recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #2c3e50;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.hero-recent-item:hover {
  background: rgba(255, 112, 67, 0.08);
  color: #E65100;
}
.hero-recent-item-icon { font-size: 14px; opacity: 0.55; flex-shrink: 0; }
.hero-recent-empty {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  padding: 10px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 112, 67, 0.3);
}

.btn--primary:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 112, 67, 0.4);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero quick filters 时长快筛 */
.hero-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  max-width: 560px;
}
.hero-qf-lbl {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-right: 2px;
}
.hero-qf-chip {
  padding: 5px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(76,175,80,0.18);
  border-radius: 100px;
  font-size: 12.5px;
  color: #4a4f5a;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
  font-family: inherit;
}
.hero-qf-chip:hover {
  background: rgba(76,175,80,0.06);
  border-color: var(--green-600);
  color: var(--green-600);
  transform: translateY(-1px);
}
.hero-qf-chip.active {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
  box-shadow: 0 4px 12px rgba(76,175,80,0.25);
}

/* Hero CTA 按钮 emoji 微动画（hover 时轻微 bounce） */
.hero-actions .btn {
  position: relative;
  overflow: hidden;
}
.hero-actions .btn:hover {
  letter-spacing: 0.02em;
}
.hero-actions .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.hero-actions .btn:hover::before {
  transform: translateX(100%);
}

/* "随便去哪儿" 随机按钮 — ghost 风格 */
.btn--ghost {
  background: rgba(255,255,255,0.6);
  color: #4a4f5a;
  border: 1.5px dashed rgba(76,175,80,0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn--ghost:hover {
  background: rgba(76,175,80,0.08);
  border-color: var(--green-600);
  color: var(--green-600);
  transform: translateY(-1px);
}
.btn--random.spinning .icon-dice { display: inline-block; animation: diceShake 0.4s ease; }
@keyframes diceShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

@media (min-width: 768px) {
  .hero { padding: 112px 0 56px; }
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 18px; }
}

/* ========== Stats Bar ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== Filter Section ========== */
.filter-section {
  padding: 0 0 40px;
  position: sticky;
  top: 60px;
  z-index: 50;
  background: var(--bg);
}

.filter-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}

.filter-inner {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.filter-header:hover {
  background: var(--bg);
}

.filter-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-header-icon {
  font-size: 16px;
}

.filter-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-active-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-active-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--green-600);
  color: white;
}

.filter-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.filter-toggle-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.filter-body {
  padding: 0 24px 20px;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
}

.filter-body.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 48px;
  padding-top: 7px;
  flex-shrink: 0;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
  user-select: none;
}

.filter-tag:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
}

.filter-tag.active {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.filter-count {
  font-size: 14px;
  color: var(--text-muted);
}

.filter-count strong {
  color: var(--text-primary);
  font-weight: 700;
}

.filter-clear {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-clear:hover {
  color: var(--coral);
}

/* ========== Destination Grid ========== */
.destinations-section {
  padding: 20px 0 60px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ========== Destination Card (Redesigned v2) ========== */
.dest-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.dest-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
}

.dest-card:hover .dest-card-img {
  transform: scale(1.08);
}

.dest-card:hover .dest-card-cover-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.02) 100%
  );
}

/* DESIGN-REVIEW B3 (2026-04-19): dest-card 3-layer hover polish — Cover + Meta + Body
   现存结构本身已分 3 层 (.dest-card-cover / .dest-card-meta / .dest-card-body)。
   B3 增强 = hover 时分层视觉强化，不隐藏 desc/tags（避免移动端无 hover 损失信息）。 */
.dest-card:hover .dest-card-meta {
  border-bottom-color: var(--brand);
  transition: border-bottom-color 0.3s ease;
}
.dest-card:hover .dest-card-desc {
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.dest-card:hover .dest-card-tag {
  transform: translateY(-1px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imgShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.dest-card-cover {
  height: 240px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, #e8e8e8 0px, #f5f5f5 40px, #e8e8e8 80px);
  background-size: 200px 100%;
  animation: imgShimmer 1.5s infinite linear;
}

.dest-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.68) 0%,
    rgba(0,0,0,0.18) 45%,
    rgba(0,0,0,0.02) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.dest-card-cover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 18px;
  z-index: 2;
}

.dest-card-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 112, 67, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.dest-card-cover-content .dest-card-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left bottom;
}
.dest-card:hover .dest-card-cover-content .dest-card-name {
  transform: scale(1.04);
}

.dest-card-cover-content .dest-card-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Top-right badges — stacked vertically for better readability */
.dest-card-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  align-items: flex-end;
}

.dest-card-badge {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.badge-rating {
  background: linear-gradient(135deg, #FFD54F, #FFB300);
  color: #5D4037;
  font-weight: 700;
}

.badge-hot {
  background: linear-gradient(135deg, #FF5252, #D32F2F);
  color: white;
  font-weight: 700;
  animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15); }
  50% { box-shadow: 0 2px 12px rgba(229, 57, 53, 0.35); }
}

/* Card body with structured meta info */
.dest-card-body {
  padding: 16px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Meta info strip — key info at a glance */
.dest-card-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.dest-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.dest-card-meta-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.dest-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.dest-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.dest-card-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dest-card-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tag-transport {
  background: var(--blue-50);
  color: #2980B9;
  border: 1px solid rgba(93, 173, 226, 0.2);
}

.tag-theme {
  background: var(--green-50);
  color: #2E7D32;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* XHS heat bar inline on card */
.dest-card-heat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #FFF8F0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 112, 67, 0.12);
}

.dest-card-heat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  white-space: nowrap;
  flex-shrink: 0;
}

.dest-card-heat-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 112, 67, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.dest-card-heat-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-card-heat-fill.heat-high {
  background: linear-gradient(90deg, #FF7043, #E53935);
}

.dest-card-heat-fill.heat-mid {
  background: linear-gradient(90deg, #FFB74D, #FF7043);
}

.dest-card-heat-fill.heat-low {
  background: linear-gradient(90deg, #FFCC80, #FFB74D);
}

.dest-card-heat-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  min-width: 28px;
  text-align: right;
}

/* Rating stars display */
.dest-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dest-card-rating-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 11px;
}

.dest-card-rating-star {
  color: #FFD54F;
}

.dest-card-rating-star.empty {
  color: #E0E0E0;
}

.dest-card-rating-value {
  font-size: 13px;
  font-weight: 700;
  color: #F57F17;
}

.dest-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.dest-card-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dest-card-footer-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dest-card-budget {
  font-size: 15px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.02em;
}

.dest-card-budget-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

.dest-card-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dest-card-compare-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-500);
  transform: translateY(-1px);
}

.dest-card-compare-btn.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: white;
  box-shadow: 0 2px 8px rgba(93, 173, 226, 0.3);
}

.compare-icon {
  font-size: 13px;
  font-weight: 700;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Detail Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }

  .modal {
    border-radius: var(--radius-xl);
    max-height: 85dvh;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
  }

  .modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-cover {
  height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.modal-cover-bg {
  position: absolute;
  inset: 0;
}

.modal-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.modal-cover-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: white;
  width: 100%;
}

.modal-cover-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-cover-content p {
  font-size: 15px;
  opacity: 0.85;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255,255,255,0.3);
}

.modal-meta {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-meta-item .icon {
  font-size: 16px;
  color: var(--green-600);
}

.modal-body {
  padding: 24px;
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section h3 .section-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.modal-section p,
.modal-section .content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  background: var(--green-50);
  color: var(--green-600);
  font-weight: 500;
}

.modal-cta {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
}

.modal-cta .btn {
  flex: 1;
  justify-content: center;
}

/* ========== New Modal Design ========== */
.modal-hero {
  height: 280px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
}

.modal-hero-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: white;
  width: 100%;
}

.modal-hero-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.modal-hero-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: white;
}

.modal-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.modal-hero-subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.modal-hero-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  opacity: 0.85;
  flex-wrap: wrap;
}

.modal-hero-stats span {
  white-space: nowrap;
}

.modal-body-new {
  padding: 20px 24px;
}

.modal-heat {
  background: linear-gradient(135deg, #FFF5F5, #FFF0F0);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.modal-heat-label {
  font-size: 13px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 8px;
}

.modal-heat-bar {
  height: 6px;
  background: #FFCDD2;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.modal-heat-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF8A65, #E53935);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.modal-heat-info {
  font-size: 12px;
  color: #C62828;
}

.modal-intro {
  margin-bottom: 20px;
}

.modal-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.modal-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .modal-cards-row { grid-template-columns: 1fr; }
}

.modal-info-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-info-card-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-info-card-icon {
  font-size: 20px;
}

.modal-info-card-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-info-card-body {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-info-card-body .content-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}

.modal-info-card-body .content-item:last-child {
  border-bottom: none;
}

.content-item-num {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral-hover);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content-item--bullet::before {
  content: '•';
  color: var(--coral);
  font-weight: 700;
  margin-top: 1px;
}

.content-item-text {
  flex: 1;
  min-width: 0;
}

/* 板块空态：模块恒定存在，内容缺失时的统一占位 */
.content-empty {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 0;
}

/* 没有完整笔记数据的城市：单条小红书语录兜底 */
.xhs-quote-single {
  background: var(--coral-light);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.xhs-quote-single .xhs-quote-src {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-detail-sections {
  margin-bottom: 20px;
}

.modal-details {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.modal-details summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.modal-details summary::after {
  content: '\25BC';
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.modal-details[open] summary::after {
  transform: rotate(180deg);
}

.modal-details-body {
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-details-body p {
  margin-bottom: 6px;
}

.modal-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--green-50), #E8F5E9);
  border-radius: 12px;
  margin-bottom: 8px;
}

.modal-highlight-icon {
  font-size: 24px;
}

.modal-highlight strong {
  font-size: 14px;
  color: var(--green-700);
  display: block;
}

.modal-highlight-season {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-cta-new {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
}

.modal-cta-new .btn {
  flex: 1;
  justify-content: center;
}

/* ========== Sort Controls ========== */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}

.sort-btn {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
  cursor: pointer;
}

.sort-btn:hover {
  border-color: var(--green-500);
  color: var(--green-600);
}

.sort-btn.active {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header .section-title {
  margin-right: auto;
}

/* ========== Compare Panel ========== */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.compare-bar.active {
  transform: translateY(0);
}

.compare-bar.active ~ .chat-fab {
  bottom: 80px;
}

.compare-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--blue-500);
  font-weight: 500;
}

.compare-bar-item .remove {
  cursor: pointer;
  opacity: 0.6;
}

.compare-bar-item .remove:hover {
  opacity: 1;
}

.compare-bar-actions {
  display: flex;
  gap: 8px;
}

/* Compare Modal */
.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.compare-modal.active {
  opacity: 1;
  visibility: visible;
}

.compare-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: var(--transition);
}

.compare-modal.active .compare-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.compare-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.compare-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.compare-close:hover {
  background: var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
}

.compare-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.6;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .row-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
  background: var(--bg);
}

.compare-table .dest-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 16px;
}

.compare-winner {
  background: var(--green-50);
  font-weight: 600;
  color: var(--green-600);
}

/* ========== Chat Widget ========== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
  z-index: 100;
  transition: var(--transition);
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(76, 175, 80, 0.5);
}

.chat-fab.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100dvh - 100px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  z-index: 160;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.chat-panel.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.chat-header-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.chat-header-info .status {
  font-size: 12px;
  color: var(--green-500);
}

.chat-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.chat-close-btn:hover {
  background: var(--bg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 85%;
  animation: msgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message--ai {
  align-self: flex-start;
}

.chat-message--user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.chat-message--ai .chat-bubble {
  background: var(--bg);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-message--user .chat-bubble {
  background: var(--green-600);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble strong {
  font-weight: 600;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
}

.chat-suggestion {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.chat-suggestion:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
  background: var(--bg);
}

.chat-input:focus {
  border-color: var(--green-500);
  background: var(--surface);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--green-500);
}

/* ========== Scroll Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== Loading Skeleton ========== */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== Mobile Overrides ========== */
@media (max-width: 639px) {
  .filter-section {
    position: relative;
    top: 0;
  }

  .filter-row {
    flex-direction: column;
    gap: 6px;
  }

  .filter-label {
    padding-top: 0;
  }

  .modal-cover { height: 200px; }

  .compare-bar {
    bottom: 0;
    padding: 10px 16px;
  }

  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .chat-fab {
    bottom: 16px;
    right: 16px;
  }

  .stats-bar {
    gap: 20px;
  }

  .dest-card-cover {
    height: 200px;
  }

  .dest-card-cover-content .dest-card-name {
    font-size: 20px;
  }

  .dest-card-meta {
    gap: 10px;
    flex-wrap: wrap;
  }

  .dest-card-badges {
    flex-direction: column;
    gap: 4px;
  }

  .dest-card-body {
    padding: 14px 16px 16px;
  }
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== Stamp Collection System ========== */

/* Collection progress bar in section header */
.collection-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.collection-progress-bar {
  width: 120px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.collection-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--coral));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Visited card styling - prominent green border + glow */
.dest-card.visited {
  border: 3px solid var(--green-500);
  box-shadow: 0 0 0 2px var(--green-100), 0 0 12px rgba(76, 175, 80, 0.2), var(--shadow-sm);
}

.dest-card.visited:hover {
  box-shadow: 0 0 0 2px var(--green-100), 0 0 20px rgba(76, 175, 80, 0.3), var(--shadow-xl);
}

/* Stamp overlay on visited card cover - multiply blend + bright filter */
.dest-card-stamp-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 110px;
  height: auto;
  z-index: 3;
  opacity: 0.88;
  pointer-events: none;
  transform: rotate(-12deg);
  animation: stampAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  mix-blend-mode: multiply;
  filter: brightness(0.85) contrast(2.2) saturate(1.8) drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

/* SVG fallback stamps */
.dest-card-stamp-overlay[src^="data:"] {
  width: 64px;
  filter: brightness(0.9) contrast(2) saturate(1.5) drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes stampAppear {
  from { transform: scale(2.5) rotate(20deg); opacity: 0; }
  to { transform: rotate(-12deg); opacity: 0.95; }
}

/* Stamp button on card */
.stamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.stamp-btn:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.stamp-btn.stamped {
  background: linear-gradient(135deg, #66BB6A, #4CAF50);
  color: white;
  border-color: var(--green-600);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.stamp-btn.stamped:hover {
  background: linear-gradient(135deg, #81C784, #66BB6A);
  transform: translateY(-1px);
}

.stamp-btn-icon {
  font-size: 14px;
}

/* ========== Stamp Confirm Modal ========== */
.stamp-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.stamp-confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.stamp-confirm-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stamp-confirm-overlay.active .stamp-confirm-modal {
  transform: translateY(0) scale(1);
}

.stamp-confirm-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.stamp-preview {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.stamp-preview img {
  max-width: 240px;
  height: auto;
  transform: rotate(-5deg);
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  mix-blend-mode: multiply;
}

.stamp-preview svg {
  transform: rotate(-5deg);
  opacity: 0.85;
}

.stamp-confirm-modal h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.stamp-confirm-modal p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stamp-confirm-hint {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin-bottom: 20px !important;
}

.stamp-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.stamp-confirm-actions .btn {
  min-width: 120px;
}

/* ========== Stamp Animation ========== */
.stamp-animation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.stamp-animation-overlay.active {
  opacity: 1;
}

.stamp-animation-overlay.fade-out {
  opacity: 0;
}

.stamp-animation-content {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-seal {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(4) rotate(30deg);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stamp-seal.stamped {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Confetti particles */
.stamp-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stamp-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: particleBurst 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s) forwards;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.3);
  }
}

/* ========== Filter: "还没玩过" tag ========== */
.filter-tag[data-category="visited"] {
  /* same style, distinguished by icon */
}

.filter-tag[data-category="visited"].active {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}

/* ========== Modal stamp button ========== */
/* Stamp overlay in modal hero */
.modal-stamp-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 140px;
  height: auto;
  z-index: 5;
  opacity: 0.88;
  pointer-events: none;
  transform: rotate(-12deg);
  animation: stampAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  mix-blend-mode: multiply;
  filter: brightness(0.85) contrast(2.2) saturate(1.8) drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.modal-stamp-overlay[src^="data:"] {
  width: 80px;
}

.modal-stamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--green-500);
  background: white;
  color: var(--green-600);
}

.modal-stamp-btn:hover {
  background: var(--green-50);
  transform: translateY(-1px);
}

.modal-stamp-btn.stamped {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

.modal-stamp-btn.stamped:hover {
  background: var(--green-500);
  border-color: var(--green-500);
}

/* ===== World Flip Button (in nav) ===== */
.world-flip-btn {
  background: linear-gradient(135deg, #1C1040, #2d1b4e);
  color: #E0CFFF;
  border: 1px solid rgba(180, 120, 255, 0.4);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.world-flip-btn:hover {
  background: linear-gradient(135deg, #2d1b4e, #1C1040);
  border-color: rgba(180, 120, 255, 0.7);
  box-shadow: 0 0 16px rgba(99, 60, 180, 0.4);
}

/* C1 · 翻牌动画（按下瞬间 spin + 全屏快闪 flash） */
.world-flip-btn:active {
  transform: scale(0.94);
}
.world-flip-btn.spinning {
  animation: flipBtnSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes flipBtnSpin {
  0%   { transform: rotateY(0) scale(1); }
  50%  { transform: rotateY(180deg) scale(1.08); box-shadow: 0 0 24px rgba(180,120,255,0.65); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* C1 · Night world 进场加 perspective scale-up */
.night-world {
  transform: perspective(1200px) rotateX(8deg) scale(0.96);
  transform-origin: center top;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.night-world.is-active {
  transform: perspective(1200px) rotateX(0) scale(1);
}

/* C1 · 全屏 flash 快闪覆盖（翻牌一瞬间） */
.world-flip-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.85) 0%, rgba(180,120,255,0.4) 40%, rgba(8,14,24,0) 70%);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  animation: flipFlash 0.5s ease-out forwards;
}
@keyframes flipFlash {
  0%   { opacity: 0; }
  30%  { opacity: 0.9; }
  100% { opacity: 0; }
}

body.night-mode .world-flip-btn {
  background: rgba(240, 230, 214, 0.12);
  color: #E8D5C4;
  border-color: rgba(232, 213, 196, 0.3);
}

/* ===== Night World Full-Page Overlay ===== */
.night-world {
  display: none;
  position: fixed;
  inset: 0;
  background: #080E18;
  z-index: 50;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.night-world.is-visible {
  display: block;
}

.night-world.is-active {
  opacity: 1;
}

/* Dark nav when night mode */
body.night-mode .nav {
  background: rgba(8, 14, 24, 0.97) !important;
  border-bottom: 1px solid rgba(99, 60, 180, 0.2);
}

body.night-mode .nav-logo {
  color: #E8D5C4 !important;
}

.night-world-inner {
  padding-top: 70px; /* nav height */
  min-height: 100vh;
}

/* Night hero */
.night-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 60, 180, 0.3) 0%, transparent 70%);
}

.night-hero-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(99, 60, 180, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.night-hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.night-hero-moon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
  animation: moonPulse 3s ease-in-out infinite;
}

@keyframes moonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.night-hero-title {
  font-size: 56px;
  font-weight: 900;
  color: #E8D5C4;
  letter-spacing: 8px;
  margin: 0 0 12px;
}

.night-hero-sub {
  font-size: 16px;
  color: rgba(180, 120, 255, 0.8);
  margin: 0 0 20px;
  letter-spacing: 2px;
}

.night-hero-desc {
  font-size: 15px;
  color: rgba(232, 213, 196, 0.5);
  line-height: 1.8;
  margin: 0;
}

.night-hero-random {
  margin-top: 24px;
  padding: 12px 32px;
  background: rgba(99, 60, 180, 0.4);
  border: 1px solid rgba(180, 120, 255, 0.4);
  border-radius: 999px;
  color: #E0CFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.night-hero-random:hover {
  background: rgba(99, 60, 180, 0.65);
  border-color: rgba(180, 120, 255, 0.7);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(99, 60, 180, 0.4);
}

.night-grid-header {
  padding: 40px 0 24px;
  border-top: 1px solid rgba(99, 60, 180, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.night-grid-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(180, 120, 255, 0.6);
  margin: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ===== Legend Filter Bar ===== */

.legend-filter-bar {
  padding: 20px 0 16px;
}

.legend-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legend-search-box {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  position: relative;
}

.legend-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
}

.legend-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: rgba(99, 60, 180, 0.12);
  border: 1px solid rgba(99, 60, 180, 0.25);
  border-radius: 10px;
  color: #e0d0ff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.legend-search-input::placeholder {
  color: rgba(180, 120, 255, 0.4);
}

.legend-search-input:focus {
  border-color: rgba(180, 120, 255, 0.5);
  background: rgba(99, 60, 180, 0.18);
}

.legend-result-counter {
  font-size: 13px;
  font-weight: 600;
  color: rgba(180, 120, 255, 0.6);
  white-space: nowrap;
}

.legend-vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.legend-vibe-chip {
  padding: 6px 14px;
  background: rgba(99, 60, 180, 0.1);
  border: 1px solid rgba(99, 60, 180, 0.2);
  border-radius: 20px;
  color: rgba(200, 160, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.legend-vibe-chip:hover {
  background: rgba(99, 60, 180, 0.2);
  border-color: rgba(180, 120, 255, 0.4);
  color: #d4b8ff;
}

.legend-vibe-chip.active {
  background: rgba(140, 80, 220, 0.3);
  border-color: rgba(180, 120, 255, 0.6);
  color: #e0d0ff;
  box-shadow: 0 0 12px rgba(140, 80, 220, 0.2);
}

.legend-sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(180, 120, 255, 0.5);
  margin-right: 4px;
}

.legend-sort-btn {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(99, 60, 180, 0.15);
  border-radius: 6px;
  color: rgba(200, 160, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.legend-sort-btn:hover {
  border-color: rgba(180, 120, 255, 0.35);
  color: #d4b8ff;
}

.legend-sort-btn.active {
  background: rgba(140, 80, 220, 0.2);
  border-color: rgba(180, 120, 255, 0.5);
  color: #e0d0ff;
}

.legend-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: rgba(180, 120, 255, 0.5);
}

/* Mobile adjustments for legend filters */
@media (max-width: 640px) {
  .legend-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .legend-search-box {
    max-width: none;
  }
  .legend-result-counter {
    text-align: center;
  }
  .legend-vibe-chips {
    gap: 6px;
  }
  .legend-vibe-chip {
    padding: 5px 10px;
    font-size: 12px;
  }
}

.night-dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}

/* ===== lc-* : Legend Cards — fully independent, zero dest-card dependency ===== */

.lc-card {
  background: #111828;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(99, 60, 180, 0.3);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), 0 0 28px rgba(99, 60, 180, 0.22);
  border-color: rgba(180, 120, 255, 0.5);
}

/* Cover */
.lc-cover {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #1C1040, #0F1D2F);
  overflow: hidden;
}

.lc-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s, opacity 0.4s ease;
  opacity: 0;
  background: #1a1a2e;
}
.lc-cover-img[complete] { opacity: 1; }

.lc-card:hover .lc-cover-img { transform: scale(1.04); }

.lc-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,5,30,0.15) 0%, rgba(10,5,30,0.75) 100%);
  z-index: 1;
}

.lc-cover-content {
  position: absolute;
  bottom: 48px;
  left: 0; right: 0;
  padding: 0 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lc-vibe-badge {
  display: inline-block;
  background: rgba(99, 60, 180, 0.8);
  border: 1px solid rgba(180, 120, 255, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #E0CFFF;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.lc-name {
  font-size: 22px;
  font-weight: 800;
  color: #F0E6D6;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.lc-subtitle {
  font-size: 13px;
  color: rgba(240, 230, 214, 0.65);
  margin: 0;
  line-height: 1.4;
}

.lc-badges {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lc-badge {
  font-size: 11px;
  color: rgba(232, 213, 196, 0.85);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
}

.lc-badge--rating { color: #F5C842; }

.lc-badge--easter {
  background: rgba(76, 175, 80, 0.2);
  color: #A5D6A7;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.lc-badge--difficulty {
  background: rgba(100, 181, 246, 0.15);
  color: #90CAF9;
  border: 1px solid rgba(100, 181, 246, 0.3);
}

.lc-badge--heat {
  font-weight: 700;
  border: 1px solid rgba(255, 87, 34, 0.4);
}
.lc-heat-s { background: rgba(255, 23, 68, 0.25); color: #FF5252; border-color: rgba(255, 23, 68, 0.5); }
.lc-heat-a { background: rgba(255, 152, 0, 0.2); color: #FFB74D; border-color: rgba(255, 152, 0, 0.4); }
.lc-heat-b { background: rgba(255, 235, 59, 0.15); color: #FFF176; border-color: rgba(255, 235, 59, 0.3); }
.lc-heat-c { background: rgba(158, 158, 158, 0.15); color: #BDBDBD; border-color: rgba(158, 158, 158, 0.3); }
.lc-heat-d { background: rgba(120, 120, 120, 0.1); color: #9E9E9E; border-color: rgba(120, 120, 120, 0.25); }

.lc-best-time {
  font-size: 12px;
  color: rgba(180, 120, 255, 0.7);
  padding: 4px 0;
}

/* Body */
.lc-body {
  background: #111828;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lc-story-block { display: flex; flex-direction: column; gap: 5px; }

.lc-story-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(180, 120, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lc-story-text {
  font-size: 13px;
  color: rgba(232, 213, 196, 0.82);
  line-height: 1.75;
  margin: 0;
}

.lc-themes { display: flex; flex-wrap: wrap; gap: 6px; }

.lc-theme {
  font-size: 11px;
  color: rgba(180, 120, 255, 0.85);
  background: rgba(99, 60, 180, 0.15);
  border: 1px solid rgba(99, 60, 180, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}

.lc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(99, 60, 180, 0.15);
}

.lc-rating {
  font-size: 12px;
  color: rgba(232, 213, 196, 0.45);
}

.lc-actions { display: flex; gap: 8px; }

.lc-read-btn, .lc-day-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.lc-read-btn {
  background: rgba(99, 60, 180, 0.5);
  border: 1px solid rgba(180, 120, 255, 0.35);
  color: #E0CFFF;
}

.lc-read-btn:hover { background: rgba(99, 60, 180, 0.75); }

.lc-day-btn {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #A5D6A7;
}

.lc-day-btn:hover { background: rgba(76, 175, 80, 0.35); }

.legend-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.legend-modal-overlay.is-open { display: flex; }

.legend-modal {
  background: #111A28; border-radius: 24px;
  max-width: 600px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative;
}

#legend-modal-content { padding: 32px; }

.legend-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  width: 36px; height: 36px; color: rgba(232,213,196,0.5); font-size: 16px; cursor: pointer;
}

.legend-modal-vibe { font-size: 13px; color: rgba(180,120,255,0.8); margin-bottom: 8px; }
.legend-modal-name { font-size: 28px; font-weight: 800; color: #E8D5C4; margin: 0 0 8px; }
.legend-modal-addr { font-size: 13px; color: rgba(232,213,196,0.4); margin-bottom: 20px; }
.legend-modal-img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; display: block; }
.legend-modal-text { font-size: 16px; color: rgba(232,213,196,0.82); line-height: 2; margin-bottom: 20px; }
.legend-modal-themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* Legend modal enriched sections */
.legend-modal-meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
  padding: 16px; background: rgba(255,255,255,0.03); border-radius: 12px;
  border: 1px solid rgba(180,120,255,0.12);
}
.legend-meta-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  flex: 1 1 auto; min-width: 180px;
}
.legend-meta-icon { font-size: 16px; flex-shrink: 0; }
.legend-meta-label { color: rgba(232,213,196,0.45); white-space: nowrap; }
.legend-meta-value { color: rgba(232,213,196,0.82); }

.legend-heat-badge {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-right: 4px;
}
.legend-heat-s { background: rgba(255,23,68,0.25); color: #FF5252; }
.legend-heat-a { background: rgba(255,152,0,0.2); color: #FFB74D; }
.legend-heat-b { background: rgba(255,235,59,0.15); color: #FFF176; }
.legend-heat-c { background: rgba(158,158,158,0.15); color: #BDBDBD; }
.legend-heat-d { background: rgba(120,120,120,0.1); color: #9E9E9E; }

.legend-modal-section {
  margin-bottom: 20px; padding: 16px;
  background: rgba(255,255,255,0.03); border-radius: 12px;
  border: 1px solid rgba(180,120,255,0.1);
}
.legend-section-title {
  font-size: 14px; font-weight: 700; color: #E0CFFF;
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.legend-tips-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.legend-tips-list li {
  font-size: 13px; color: rgba(232,213,196,0.72); line-height: 1.6;
  padding-left: 16px; position: relative;
}
.legend-tips-list li::before {
  content: '▸'; position: absolute; left: 0;
  color: rgba(180,120,255,0.6);
}

.legend-food-list {
  display: flex; flex-direction: column; gap: 8px;
}
.legend-food-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: rgba(255,255,255,0.03);
  border-radius: 8px; border: 1px solid rgba(180,120,255,0.08);
}
.legend-food-name { font-size: 13px; color: rgba(232,213,196,0.82); }
.legend-food-price {
  font-size: 12px; color: rgba(180,120,255,0.7); font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .legend-modal-meta { flex-direction: column; gap: 8px; }
  .legend-meta-item { min-width: unset; }
}

.legend-easter-egg {
  background: rgba(76,175,80,0.08); border: 1px solid rgba(76,175,80,0.25);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.easter-hint { font-size: 14px; color: rgba(165,214,167,0.8); }
.easter-btn {
  background: rgba(76,175,80,0.2); border: 1px solid rgba(76,175,80,0.4);
  border-radius: 10px; padding: 12px 20px; font-size: 15px; color: #A5D6A7; font-weight: 600; cursor: pointer;
}

@media (max-width: 640px) {
  .otherside-grid { grid-template-columns: 1fr; }
  .legend-card { height: 320px; }
  .otherside-title { font-size: 24px; }
}

/* Mobile adjustments for stamp */
@media (max-width: 640px) {
  .collection-progress-bar {
    width: 80px;
  }

  .collection-progress-text {
    font-size: 11px;
  }

  .stamp-seal {
    width: 150px;
    height: 150px;
  }

  .stamp-seal-name {
    font-size: 16px;
    max-width: 110px;
  }
}

/* ===== Legend Stamp System ===== */

.legend-stamp-counter {
  font-size: 13px;
  font-weight: 600;
  color: rgba(180, 120, 255, 0.7);
  background: rgba(99, 60, 180, 0.15);
  border: 1px solid rgba(99, 60, 180, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Stamp badge on card cover */
.lc-stamp-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 60, 180, 0.7);
  border: 2px solid rgba(180, 120, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 3;
  box-shadow: 0 0 12px rgba(120, 60, 200, 0.4);
  animation: legendStampPulse 3s ease-in-out infinite;
}

@keyframes legendStampPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(120, 60, 200, 0.4); }
  50% { box-shadow: 0 0 20px rgba(120, 60, 200, 0.7); }
}

/* Stamped card subtle border glow */
.lc-card.lc-stamped {
  border: 1px solid rgba(99, 60, 180, 0.4);
  box-shadow: 0 0 16px rgba(99, 60, 180, 0.15);
}

/* Card stamp button */
.lc-stamp-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(180, 120, 255, 0.3);
  cursor: pointer;
  transition: all 0.15s;
  background: rgba(99, 60, 180, 0.2);
  color: rgba(180, 120, 255, 0.8);
}

.lc-stamp-btn:hover {
  background: rgba(99, 60, 180, 0.4);
  color: #E0CFFF;
}

.lc-stamp-btn--done {
  background: rgba(99, 60, 180, 0.5);
  color: #E0CFFF;
  border-color: rgba(180, 120, 255, 0.5);
}

.lc-stamp-btn--done:hover {
  background: rgba(99, 60, 180, 0.3);
}

/* Modal stamp area */
.legend-modal-stamp-area {
  margin-bottom: 20px;
}

.legend-modal-stamp-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(180, 120, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(99, 60, 180, 0.2);
  color: rgba(180, 120, 255, 0.8);
  letter-spacing: 1px;
}

.legend-modal-stamp-btn:hover {
  background: rgba(99, 60, 180, 0.4);
  color: #E0CFFF;
  border-color: rgba(180, 120, 255, 0.5);
}

.legend-modal-stamp-btn--done {
  background: rgba(99, 60, 180, 0.45);
  color: #E0CFFF;
  border-color: rgba(180, 120, 255, 0.5);
  box-shadow: 0 0 16px rgba(99, 60, 180, 0.2);
}

.legend-modal-stamp-btn--done:hover {
  background: rgba(99, 60, 180, 0.3);
  color: rgba(180, 120, 255, 0.7);
}

/* ==================== XHS Voices Section ==================== */
.modal-xhs-voices {
  margin-top: 24px;
  padding: 18px 20px 20px;
  background: linear-gradient(135deg, #FFF0F3 0%, #FFE4E8 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 45, 85, 0.12);
}
.modal-xhs-voices-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.modal-xhs-voices-icon { font-size: 20px; }
.modal-xhs-voices-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #FF2D55;
  flex: 1;
}
.modal-xhs-voices-count {
  font-size: 11px;
  color: #FF2D55;
  background: rgba(255, 45, 85, 0.12);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.modal-xhs-voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.xhs-voice-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.xhs-voice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 45, 85, 0.18);
}
.xhs-voice-cover {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}
.xhs-voice-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.xhs-voice-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xhs-voice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8e8e93;
  margin-top: auto;
}
.xhs-voice-author {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xhs-voice-likes { color: #FF2D55; font-weight: 600; }
@media (max-width: 680px) {
  .modal-xhs-voices-grid { grid-template-columns: 1fr; }
  .xhs-voice-cover { aspect-ratio: 16/9; }
}

/* text-only xhs card variant */
.xhs-voice-card--text {
  background: linear-gradient(135deg, #FFE4E8 0%, #FFF0F3 100%);
  min-height: 140px;
}
.xhs-voice-excerpt {
  font-size: 12px;
  line-height: 1.45;
  color: #6b6b70;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 0;
}

/* ============================================
   SEARCH OVERLAY (⌘K / 顶部搜索)
   ============================================ */
.nav-btn--icon {
  width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 24, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1050;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 32px;
  animation: searchFade 0.18s ease-out;
}
.search-overlay.active { display: flex; }
@keyframes searchFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(10, 14, 20, 0.32), 0 8px 24px rgba(10, 14, 20, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: searchSlide 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes searchSlide {
  from { transform: translateY(-8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
}
.search-icon { font-size: 18px; color: #8a8e97; }
.search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  color: #1a1d21;
  font-weight: 500;
}
.search-input::placeholder { color: #a9adb4; font-weight: 400; }
.search-close {
  border: 0;
  background: #f2f3f5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #6a6e76;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-close:hover { background: #e5e7eb; color: #1a1d21; }

.search-meta {
  padding: 10px 20px;
  font-size: 12px;
  color: #8a8e97;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  max-height: 420px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}
.search-result-item:hover,
.search-result-item.highlighted {
  background: #f7f9fb;
  border-left-color: #4CAF50;
}
.search-result-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f2f5;
}
.search-result-body {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1d21;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-title mark {
  background: #fff3a8;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.search-result-sub {
  font-size: 12px;
  color: #6a6e76;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #eef4ff;
  color: #3867d6;
  margin-right: 6px;
  font-weight: 600;
}
.search-result-tag--legend {
  background: #2a2333;
  color: #fbc531;
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.search-result-meta-chip {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #5e6470;
  font-weight: 500;
  white-space: nowrap;
}
.search-result-meta-chip.search-result-meta-hot {
  background: #FFF3E0;
  color: #E65100;
}
.search-result-tag--city {
  background: #f0fdf4;
  color: #2f855a;
}

.search-empty {
  padding: 40px 20px;
  text-align: center;
  color: #8a8e97;
}
.search-empty-title { font-size: 14px; margin-bottom: 4px; }

.search-advanced { background: #fafbfc; }
.search-adv-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; }
.search-adv-lbl { color: #667085; min-width: 48px; flex-shrink: 0; }
.search-adv-val { color: #FF7043; font-weight: 700; min-width: 52px; text-align: right; }
.search-adv-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.search-adv-chip { padding: 3px 10px; background: #fff; border: 1px solid #E5E7EB; border-radius: 11px; font-size: 11px; cursor: pointer; user-select: none; transition: all 0.12s; }
.search-adv-chip:hover { background: #f3f5f7; }
.search-adv-chip.active { background: #FF7043; color: #fff; border-color: #F4511E; }
.search-adv-sel { flex: 1; padding: 5px 8px; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 12px; background: #fff; }
#search-adv-toggle:hover { color: #FF7043; }

.search-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px 4px;
  border-bottom: 1px solid #f0f2f5;
}
.search-facets:empty { padding: 0; border: none; }
.search-facet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f3f5f7;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  color: #344054;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}
.search-facet-chip:hover { background: #e8ecf0; }
.search-facet-chip.active {
  background: #FF7043;
  color: #fff;
  border-color: #F4511E;
}
.search-facet-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 4px;
  background: rgba(0,0,0,.08);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.search-facet-chip.active .search-facet-count { background: rgba(255,255,255,.25); }

.search-hot {
  padding: 14px 20px;
  border-top: 1px solid #eef0f3;
  background: #fafbfc;
}
.search-hot-title {
  font-size: 11px;
  color: #8a8e97;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.search-hot-chip {
  display: inline-block;
  padding: 5px 12px;
  margin: 3px 6px 3px 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-size: 12px;
  color: #1a1d21;
  cursor: pointer;
  transition: all 0.12s;
}
.search-hot-chip:hover {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}

/* B4 · Recent searches */
.search-recent-row {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.search-recent-title {
  font-size: 11px;
  color: #8a8e97;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-recent-clear {
  background: transparent;
  border: none;
  color: #c0c4ca;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  letter-spacing: 0;
}
.search-recent-clear:hover { color: #FF7043; }
.search-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 10px;
  margin: 3px 6px 3px 0;
  background: #f5f7fa;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 12px;
  color: #4a4f5a;
  cursor: pointer;
  transition: all 0.12s;
}
.search-recent-chip:hover {
  background: #FFF3E0;
  border-color: #FFB74D;
  color: #E65100;
}

.search-hints {
  padding: 8px 20px;
  border-top: 1px solid #eef0f3;
  background: #ffffff;
  font-size: 11px;
  color: #8a8e97;
  display: flex;
  gap: 14px;
}
.search-hints kbd {
  background: #f2f3f5;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  color: #4a4d53;
  margin-right: 2px;
  border: 1px solid #e0e2e5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

@media (max-width: 640px) {
  .search-overlay { padding: 0; }
  .search-panel {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .search-input { font-size: 16px; }
  .search-results { max-height: none; }
}

/* ===== 本周末 Top 3（首屏答案模块，js/top3.js 渲染） ===== */
.top3-section {
  max-width: 920px;
  margin: 26px auto 4px;
  text-align: left;
}
.top3-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.top3-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.top3-note,
.hero p.top3-note { /* 提高权重，盖过 .hero p 的居中 */
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  text-align: left;
  max-width: none;
}
.top3-shuffle {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.top3-shuffle:hover {
  color: var(--coral);
  border-color: var(--coral);
}
.top3-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.top3-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}
.top3-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.top3-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.top3-card-cover {
  height: 118px;
  position: relative;
}
.top3-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 35, 50, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
}
.top3-card-body {
  padding: 12px 14px 14px;
}
.top3-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.top3-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top3-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.top3-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.top3-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--coral-hover);
  background: var(--coral-light);
  padding: 2px 8px;
  border-radius: 999px;
}
@media (max-width: 768px) {
  .top3-cards { grid-template-columns: 1fr; }
  .top3-card-cover { height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .top3-card { transition: none; }
  .top3-card:hover { transform: none; }
}

/* ===== 聊天里的 Agent 推荐卡（js/app.js renderChatCards） ===== */
.chat-dest-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 4px 8px;
  max-width: 86%;
}
.chat-dest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.chat-dest-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-sm);
}
.chat-dest-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.chat-dest-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}
.chat-dest-card-go {
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  white-space: nowrap;
}
