:root {
  --bg: #f6efe5;
  --surface: rgba(255, 251, 247, 0.78);
  --surface-strong: rgba(255, 251, 247, 0.94);
  --text: #18110d;
  --muted: #65584d;
  --line: rgba(30, 20, 10, 0.11);
  --shadow: 0 26px 60px rgba(71, 42, 13, 0.1);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 141, 60, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 35%),
    radial-gradient(circle at 100% 80%, rgba(56, 103, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 30%),
    linear-gradient(180deg, #fcf7f2 0%, #f9f3eb 50%, #f5ede3 100%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.page-shell {
  width: min(1480px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.content-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.page-tabs {
  display: flex;
  gap: 6px;
  margin: 0;
}

.page-tab {
  border: 1px solid rgba(31, 19, 9, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.page-tab:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-tab.is-active {
  background: linear-gradient(135deg, #18110d 0%, #2d221a 100%);
  color: #fff7ef;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(24, 17, 13, 0.25);
}

.tab-page {
  display: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.tab-page.is-active {
  display: block;
  opacity: 1;
}

.hero,
.control-panel,
.map-shell,
.results-panel,
.detail-panel,
.personal-panel {
  backdrop-filter: blur(16px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.9) 0%, rgba(255, 248, 242, 0.95) 100%);
  border: 1px solid rgba(255, 200, 120, 0.3);
  box-shadow:
    0 4px 20px rgba(255, 141, 60, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.brand-slogan {
  color: #3e352d;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.profile-entry {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-entry:hover {
  transform: scale(1.05);
}

.profile-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8c3c 0%, #ff6b35 100%);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-tabs {
  display: flex;
  gap: 8px;
}

.header-ai-box {
  flex: 1;
  min-width: 280px;
}

.header-ai-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-ai-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.header-ai-input-row input:focus {
  outline: none;
  border-color: #19120f;
}

.header-ai-result {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.header-ai-input-row input:focus {
  outline: none;
  border-color: #19120f;
}

.header-ai-result {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.topbar,
.hero-content,
.main-layout,
.section-heading,
.map-header,
.results-header,
.detail-title-row,
.detail-actions,
.topbar-meta,
.profile-stats,
.hero-tag-row,
.filter-summary {
  display: flex;
}

.topbar,
.section-heading,
.map-header,
.results-header,
.detail-title-row {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(255, 141, 60, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.brand-badge,
.eyebrow,
.subheading,
.detail-campus {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-badge,
.eyebrow,
.subheading,
.detail-campus {
  background: linear-gradient(135deg, #ff8c3c 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.65rem;
  font-weight: 700;
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #18110d 0%, #3d2b1f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.topbar-meta {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-stat,
.profile-stats div,
.pill,
.chip {
  border-radius: 999px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.54);
}

.hero-content.compact {
  margin-top: 14px;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.topbar-main {
  align-items: center;
  gap: 18px;
}

.hero-copy {
  display: grid;
  gap: 14px;
  flex: 1.15;
}

.hero-tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.hero-tag.tag-hot {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c3c 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
}

.hero-tag.tag-new {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 180px;
  justify-items: end;
}

.hero-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-left: 2px;
}

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

.hero-ai-box,
.campus-map-tools,
.mini-map-shell,
.results-toolbar,
.results-search,
.toolbar-selects select,
.toolbar-control {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-md);
}

.hero-ai-result,
.mini-map-caption {
  color: var(--muted);
  font-size: 0.9rem;
}

.ai-input-row input,
.results-search input,
.toolbar-selects select,
.toolbar-control input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 16, 8, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.hero-ai-box {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(24, 17, 13, 0.96), rgba(48, 33, 23, 0.92)),
    rgba(255, 255, 255, 0.58);
  color: #fff6ee;
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.hero-ai-result {
  margin-top: 10px;
  color: rgba(255, 244, 235, 0.74);
}

.hero-ai-box .hero-stat-label {
  color: rgba(255, 214, 179, 0.92);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.hero-stat-label,
.section-heading span,
.detail-description,
.detail-empty p,
.review-item small,
.mini-item small,
.summary-item small,
.share-card p,
.share-card small,
.profile-copy,
.review-form label,
.filter-grid label,
.results-header p,
.map-header p,
.detail-stats span {
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button:hover,
.button:focus-visible,
.chip:hover,
.chip:focus-visible,
.restaurant-card:hover,
.restaurant-card:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #19120f;
  color: #fff7ef;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid rgba(31, 19, 9, 0.12);
}

.main-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.tab-page[data-page="recommend"] .experience-panel {
  order: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tab-page[data-page="recommend"] .control-panel {
  order: 2;
  width: 360px;
  flex-shrink: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.tab-page[data-page="recommend"] .sidebar {
  display: none;
}

.tab-page[data-page="recommend"] .results-panel {
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(43, 27, 12, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  height: clamp(520px, calc(100vh - 300px), 760px);
}

.tab-page[data-page="recommend"] .control-panel .panel-block {
  background: transparent;
  border: 0;
  padding: 0;
}

.control-panel {
  width: 280px;
  flex-shrink: 0;
}

.experience-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#recommend-home {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.results-panel {
  flex: 1;
}

.control-panel,
.sidebar {
  display: grid;
  gap: 12px;
}

.control-panel {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sidebar {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar .detail-panel {
  flex: 1;
  overflow-y: auto;
}

.control-panel,
.detail-panel,
.personal-panel,
.map-shell,
.results-panel {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-block,
.subsection,
.recommendation-box,
.reason-box,
.detail-list-block,
.profile-card,
.share-card,
.heat-tip,
.summary-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-md);
}

.panel-block,
.subsection,
.recommendation-box,
.reason-box,
.detail-list-block,
.profile-card,
.share-card,
.heat-tip,
.summary-item {
  padding: 18px;
}

.chip-row,
.tag-row,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(24, 16, 8, 0.18);
  background: #fff;
  color: var(--text);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.chip.is-active {
  background: #e9f6fb;
  color: #0b6f8f;
  border-color: #1180a8;
}

.filter-grid,
.detail-body,
.review-form,
.price-breakdown,
.summary-grid {
  display: grid;
  gap: 12px;
}

.filter-grid label,
.review-form label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.filter-grid input,
.filter-grid select,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 16, 8, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

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

.campus-map-tools {
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-top: 14px;
}

.mini-map-shell {
  margin-top: 12px;
  padding: 10px;
}

.mini-map-stage {
  height: 760px;
  margin-top: 0;
  border-radius: 16px;
  overflow: hidden;
  transition: height var(--transition), opacity var(--transition), margin var(--transition);
}

.map-frame {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  padding: 10px;
}

.mini-map-shell.is-collapsed .mini-map-stage {
  height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.results-toolbar {
  padding: 0 0 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
}

.tab-page[data-page="recommend"] .results-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(248, 241, 233, 0.96) 78%, rgba(248, 241, 233, 0));
}

.toolbar-head {
  display: block;
  margin: 0 0 2px;
  padding: 0;
}

.toolbar-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.toolbar-search-button,
.toolbar-ai-button {
  white-space: nowrap;
  padding-inline: 14px;
  min-height: 38px;
  font-size: 0.95rem;
}

.results-search input {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 1rem;
}

.filter-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.filter-all-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(24, 16, 8, 0.18);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

.filter-icon,
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-count {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0b7ea8;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-all-button.is-active {
  background: #19120f;
  color: #fff7ef;
  border-color: transparent;
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-scroll::-webkit-scrollbar {
  height: 6px;
}

.filter-scroll::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.12);
  border-radius: 999px;
}

.filter-inline-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.filter-select-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(24, 16, 8, 0.18);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 2px 6px 2px 12px;
  font-weight: 700;
  min-height: 38px;
}

.filter-chip-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(24, 16, 8, 0.18);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  font-size: 0.95rem;
}

.filter-chip-toggle.is-active {
  background: #e9f6fb;
  color: #0b6f8f;
  border-color: #1180a8;
}

.filter-select-pill span {
  white-space: nowrap;
}

.filter-select-pill select {
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--text);
  padding-right: 6px;
  font-size: 0.94rem;
}

.filter-drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.filter-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 12, 8, 0.28);
  cursor: pointer;
}

.filter-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: #fffaf6;
  border-right: 1px solid rgba(24, 16, 8, 0.1);
  box-shadow: 0 24px 60px rgba(30, 20, 10, 0.14);
  padding: 22px 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-drawer-body {
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.drawer-chip-row {
  margin-top: 10px;
}

.drawer-selects {
  grid-template-columns: 1fr;
}

.results-toolbar .chip-row {
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.results-toolbar #campus-switcher .chip {
  background: rgba(25, 18, 15, 0.04);
}

.results-toolbar #campus-switcher .chip.is-active {
  background: #19120f;
  color: #fff7ef;
  border-color: transparent;
}

.results-toolbar .chip-row::-webkit-scrollbar {
  height: 6px;
}

.results-toolbar .chip-row::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.12);
  border-radius: 999px;
}

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

.filter-summary .pill {
  background: rgba(25, 18, 15, 0.06);
  border: 1px solid rgba(24, 16, 8, 0.08);
}

.results-toolbar {
  padding: 0;
}

.results-search {
  padding: 0;
}

.toolbar-selects {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.toolbar-control {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.toolbar-control span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.toolbar-control strong {
  font-size: 0.95rem;
}

.toolbar-control-small input {
  min-height: 38px;
}

.toolbar-selects select {
  min-height: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 16, 8, 0.18);
  background: #fff;
}

.hero-ai-box-inline {
  padding: 10px 12px;
}

.hero-ai-box-inline .ai-input-row {
  margin-top: 8px;
}

.recommendation-box-inline {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0 0 1px;
  scrollbar-width: thin;
}

.recommendation-box-inline:empty {
  display: none;
}

.recommendation-box-inline::-webkit-scrollbar {
  height: 6px;
}

.recommendation-box-inline::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.12);
  border-radius: 999px;
}

.recommendation-box-inline .mini-item {
  flex: 0 0 240px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 16, 8, 0.08);
  padding: 7px 9px;
}

.recommendation-box-inline .mini-item small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heat-tip {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

#recommend-home {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.scroll-panel {
  overflow-y: auto;
  max-height: calc(100vh - 250px);
  scrollbar-width: thin;
}

.tab-page[data-page="recommend"] #results-view {
  overflow: hidden;
  max-height: none;
  flex: 1 1 auto;
}

.tab-page[data-page="recommend"] #results-view .card-list {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.tab-page[data-page="recommend"] #results-view .card-list::-webkit-scrollbar {
  width: 8px;
}

.tab-page[data-page="recommend"] #results-view .card-list::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.14);
  border-radius: 999px;
}

.scroll-panel::-webkit-scrollbar {
  width: 8px;
}

.scroll-panel::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.14);
  border-radius: 999px;
}

.map-stage {
  min-height: 580px;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.leaflet-container {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
}

.leaflet-control-attribution {
  font-size: 0.68rem;
}

.custom-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(39, 21, 7, 0.18);
}

.custom-marker.is-hot {
  outline: 3px solid rgba(243, 91, 54, 0.22);
}

.custom-marker.is-crowded {
  box-shadow:
    0 0 0 5px rgba(243, 91, 54, 0.18),
    0 10px 18px rgba(39, 21, 7, 0.18);
}

.custom-marker.is-quiet {
  box-shadow:
    0 0 0 5px rgba(15, 157, 128, 0.16),
    0 10px 18px rgba(39, 21, 7, 0.18);
}

.custom-marker.is-budget {
  box-shadow: 0 0 0 4px rgba(20, 17, 13, 0.1);
}

.custom-marker.is-favorite::after {
  content: "★";
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.55rem;
  width: 100%;
  height: 100%;
}

.ranking-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 榜单类型导航 */
.ranking-type-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-type-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.ranking-type-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.ranking-type-btn.is-active {
  background: #19120f;
  color: #fff7ef;
  border-color: transparent;
}

.ranking-type-btn .type-icon {
  font-size: 1.2rem;
}

/* 榜单刷新设置 */
.ranking-refresh-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-auto-refresh {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}

.ranking-auto-refresh input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.toggle-label {
  font-size: 0.9rem;
}

.refresh-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}

.refresh-timer.hidden {
  display: none;
}
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}

.refresh-timer #countdown {
  color: #ff7a18;
  font-weight: 700;
}

.ranking-refresh-settings .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.refresh-icon {
  font-size: 1.1rem;
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.last-refresh {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* 榜单头部 */
.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.06), rgba(15, 157, 128, 0.06));
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.ranking-title-section h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.ranking-title-section p {
  font-size: 0.9rem;
  color: var(--muted);
}

.ranking-stats {
  display: flex;
  gap: 16px;
}

.ranking-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff7a18;
}

/* 榜单列表面板 */
.ranking-list-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 16px 34px rgba(43, 27, 12, 0.08);
}

/* 榜单页面布局 - 两栏 */
.tab-page[data-page="ranking"] .main-layout {
  gap: 16px;
}

.tab-page[data-page="ranking"] .control-panel {
  width: 280px;
  flex-shrink: 0;
}

.tab-page[data-page="ranking"] .experience-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 榜单页面右侧边栏固定 */
.tab-page[data-page="ranking"] .sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tab-page[data-page="ranking"] .sidebar .detail-panel {
  flex: 1;
  overflow-y: auto;
  height: 100%;
}

/* 榜单页面中间列表区域可滚动 */
.tab-page[data-page="ranking"] .experience-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tab-page[data-page="ranking"] .ranking-header {
  flex-shrink: 0;
}

.tab-page[data-page="ranking"] .ranking-list-panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* 榜单卡片样式优化 */
.ranking-card {
  display: grid;
  grid-template-columns: 44px 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(30, 20, 10, 0.08);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranking-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 122, 24, 0.3);
  box-shadow: 0 8px 24px rgba(43, 27, 12, 0.12);
  transform: translateY(-2px);
}

.ranking-card.is-selected {
  background: rgba(255, 248, 240, 0.95);
  border-color: #ff7a18;
  box-shadow: 0 4px 16px rgba(255, 122, 24, 0.15);
}

/* 排名徽章 */
.ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  color: #666;
}

.ranking-number.is-top-1 {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ranking-number.is-top-2 {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.ranking-number.is-top-3 {
  background: linear-gradient(135deg, #cd7f32, #b87333);
  color: #fff;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.ranking-card-image {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #d8c0ac, #b19070);
}

.ranking-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ranking-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.ranking-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ranking-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ranking-card-tags .pill {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255, 122, 24, 0.08);
  border-color: rgba(255, 122, 24, 0.2);
  color: #cc6000;
}

.ranking-card-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 70px;
}

.ranking-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff7a18;
}

.ranking-card-distance {
  font-size: 0.75rem;
  color: var(--muted);
}

.ranking-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff9500;
}

/* 榜单列表滚动条样式 */
.tab-page[data-page="ranking"] .ranking-list-panel::-webkit-scrollbar {
  width: 6px;
}

.tab-page[data-page="ranking"] .ranking-list-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.tab-page[data-page="ranking"] .ranking-list-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 24, 0.3);
  border-radius: 3px;
}

.tab-page[data-page="ranking"] .ranking-list-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 122, 24, 0.5);
}

/* 右侧详情面板滚动条 */
.tab-page[data-page="ranking"] .sidebar .detail-panel::-webkit-scrollbar {
  width: 6px;
}

.tab-page[data-page="ranking"] .sidebar .detail-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.tab-page[data-page="ranking"] .sidebar .detail-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 24, 0.3);
  border-radius: 3px;
}

.tab-page[data-page="ranking"] .sidebar .detail-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 122, 24, 0.5);
}

.ranking-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.auto-refresh-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auto-refresh-toggle input:checked + span {
  color: #0f9d80;
  font-weight: 600;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.is-hot {
  background: #f35836;
}

.is-budget {
  background: #19120f;
}

.is-favorite {
  background: #3867ff;
}

.card-list,
.review-list,
.mini-list {
  display: grid;
  gap: 0;
}

.restaurant-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  border: 0;
  border-bottom: 1px solid rgba(30, 20, 10, 0.1);
  background: transparent;
  border-radius: 0;
  padding: 14px 0;
  overflow: visible;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.restaurant-card.is-selected {
  background: rgba(255, 255, 255, 0.34);
}

.restaurant-card:hover {
  box-shadow: none;
}

.card-image {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #d8c0ac, #b19070);
}

.card-body {
  padding: 0;
  display: grid;
  gap: 7px;
}

.price-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.price-final {
  font-weight: 800;
  font-size: 1rem;
}

.queue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.queue-badge.is-quiet {
  background: rgba(15, 157, 128, 0.12);
  color: #0b6f5a;
}

.queue-badge.is-mid {
  background: rgba(234, 180, 60, 0.15);
  color: #925f00;
}

.queue-badge.is-crowded {
  background: rgba(243, 91, 54, 0.14);
  color: #ae3417;
}

.restaurant-card-header,
.restaurant-card-meta,
.card-actions,
.review-item,
.mini-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.restaurant-card-header strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.03;
}

.restaurant-card-meta,
.card-actions {
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.restaurant-card-meta {
  gap: 14px;
}

.card-description {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row .pill {
  background: #fff;
  border: 1px solid rgba(24, 16, 8, 0.14);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rating-stars {
  display: inline-flex;
  gap: 4px;
}

.rating-block {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e7e3df;
  position: relative;
  overflow: hidden;
}

.rating-block::before {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: #fff;
}

.rating-block.is-full {
  background: #ff8f3d;
}

.rating-block.is-half {
  background: linear-gradient(90deg, #ff8f3d 50%, #e7e3df 50%);
}

.latest-review {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.latest-review p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-review-icon {
  font-size: 1rem;
  line-height: 1.3;
}

.results-reset {
  width: 100%;
  margin-top: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.page-jump {
  border: 1px solid rgba(24, 16, 8, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.page-jump.is-active {
  background: #19120f;
  color: #fff7ef;
  border-color: transparent;
}

.page-jump.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pill {
  padding: 6px 10px;
  background: rgba(28, 18, 11, 0.08);
  color: var(--text);
  font-size: 0.84rem;
}

.detail-panel {
  min-height: 100%;
  opacity: 1;
  transition: opacity 200ms ease, transform 200ms ease;
  transform: translateX(0);
  height: 100%;
}

.detail-panel.hidden {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  position: absolute;
  width: 100%;
}

#recommend-home {
  opacity: 1;
  transition: opacity 200ms ease;
}

#recommend-home.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.tab-page[data-page="recommend"] #recommend-home {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}

.detail-back-row {
  display: flex;
  justify-content: flex-start;
}

.detail-empty {
  display: grid;
  gap: 10px;
  padding: 18px 6px;
}

.hidden {
  display: none;
}

.detail-cover {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #d8c0ac, #b19070);
  box-shadow: 0 8px 24px rgba(43, 27, 12, 0.15);
}

/* 详情面板优化样式 */
.detail-content {
  padding: 4px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 16px;
  gap: 12px;
}

.detail-title-row h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
}

.detail-score {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9500, #ff7a18);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
  white-space: nowrap;
}

.detail-description {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.detail-stats div {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 240, 0.8));
  border: 1px solid rgba(255, 122, 24, 0.15);
  text-align: center;
}

.detail-stats span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ff7a18;
}

.reason-box {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.9), rgba(255, 244, 230, 0.8));
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 24, 0.2);
}

.reason-box span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #cc6000;
  font-size: 0.9rem;
}

.reason-box p {
  color: var(--text);
  line-height: 1.5;
  font-size: 0.95rem;
  margin: 0;
}

.detail-body {
  margin-top: 14px;
}

.detail-score {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9500, #ff7a18);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
  white-space: nowrap;
}

.price-breakdown,
.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-breakdown div,
.summary-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.price-breakdown strong,
.summary-item strong {
  display: block;
  margin-top: 6px;
}

.detail-actions {
  justify-content: space-between;
  gap: 8px;
}

.detail-actions .button {
  flex: 1 1 auto;
  min-width: 80px;
  text-align: center;
}

.reason-box span,
.detail-list-block span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.review-item,
.mini-item,
.summary-item {
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.review-item strong,
.mini-item strong {
  display: block;
  margin-bottom: 4px;
}

.review-stars {
  font-weight: 700;
  color: #ab5d07;
}

.profile-card {
  display: grid;
  gap: 14px;
}

.profile-name {
  font-weight: 700;
  font-size: 1.02rem;
}

.profile-stats {
  gap: 10px;
}

.profile-stats div {
  flex: 1 1 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.profile-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
}

.share-card {
  display: grid;
  gap: 10px;
}

.personal-content {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.personal-content.is-collapsed {
  display: none;
}

.share-card h3 {
  font-size: 1.06rem;
}

.share-copy {
  margin-top: 10px;
  width: 100%;
}

.results-empty {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(24, 16, 8, 0.16);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1260px) {
  .sidebar {
    display: none;
  }

  .tab-page[data-page="recommend"] .main-layout {
    flex-direction: row;
  }

  .main-layout {
    flex-direction: column;
  }

  .control-panel {
    width: 100%;
  }

  .experience-panel {
    width: 100%;
  }

  .tab-page[data-page="recommend"] .control-panel {
    width: 320px;
  }

  .toolbar-selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recommendation-box-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100vw - 18px, 920px);
    padding-top: 10px;
  }

  .hero-content.compact,
  .topbar,
  .map-header,
  .results-header,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .main-layout {
    flex-direction: column;
  }

  .tab-page[data-page="recommend"] .control-panel {
    order: 2;
    width: 100%;
    position: static;
  }

  .control-panel,
  .sidebar {
    position: static;
    width: 100%;
  }

  .experience-panel {
    width: 100%;
  }

  .content-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-main {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    align-items: start;
  }

  .brand-slogan {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    font-size: 1rem;
    white-space: normal;
  }

  .toolbar-selects {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-note {
    display: grid;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .price-breakdown,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .page-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .activity-summary-grid {
    grid-template-columns: 1fr;
  }

  .activity-filter-bar {
    padding: 8px;
  }

  .activity-filter-selects {
    flex-wrap: nowrap;
  }

  .activity-list-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .activity-list {
    overflow: visible;
    max-height: none;
  }

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

  .activity-actions-row {
    flex-direction: column;
  }

  .mini-map-stage {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .hero,
  .control-panel,
  .map-shell,
  .results-panel,
  .detail-panel,
  .personal-panel {
    border-radius: 22px;
    padding: 14px;
  }

  .map-stage {
    min-height: 400px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .profile-stats {
    flex-direction: column;
  }
}

/* 个人空间新样式 */
.profile-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  transition: all var(--transition);
  text-align: left;
}

.profile-nav-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.profile-nav-item.is-active {
  background: #19120f;
  color: #fff7ef;
}

.profile-nav-item .nav-icon {
  font-size: 1.1rem;
}

/* 个人空间页面布局 - 两栏 */
.tab-page[data-page="profile"] .main-layout {
  gap: 16px;
}

.tab-page[data-page="profile"] .control-panel {
  width: 260px;
  flex-shrink: 0;
}

.tab-page[data-page="profile"] .experience-panel {
  flex: 1;
  min-height: 0;
}

/* 个人主页头部 */
.profile-header-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.08), rgba(15, 157, 128, 0.08));
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ff7a18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.profile-info {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-name-row h2 {
  font-size: 1.5rem;
}

.profile-level-badge {
  padding: 4px 12px;
  background: linear-gradient(135deg, #ff7a18, #ffb36b);
  color: white;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-joined {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.profile-exp-bar {
  max-width: 300px;
}

.exp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.exp-progress {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7a18, #ffb36b);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* 统计卡片网格 */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-content strong {
  font-size: 1.3rem;
  color: var(--text);
}

.stat-content span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 徽章区域 */
.profile-badges-section h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  width: 90px;
}

.achievement-badge.locked {
  opacity: 0.5;
}

.achievement-badge .badge-icon {
  font-size: 1.8rem;
}

.achievement-badge .badge-name {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
}

/* 设置页面 */
.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.field-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.field-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.field-input-row input:focus {
  outline: none;
  border-color: #19120f;
}

.avatar-row {
  align-items: flex-start;
}

.avatar-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff7a18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.avatar-options {
  flex: 1;
}

.avatar-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.avatar-colors {
  display: flex;
  gap: 8px;
}

.avatar-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition);
}

.avatar-color-btn:hover {
  transform: scale(1.1);
}

.avatar-color-btn.is-active {
  border-color: #19120f;
}

.settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.settings-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* 分享卡片区域 */
.share-card-section h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.tag-row .pill.pill-tag {
  border: 1px solid transparent;
  font-weight: 700;
}

.pill.pill-tag.tone-discount {
  background: rgba(255, 125, 38, 0.2);
  color: #9a4300;
  border-color: rgba(154, 67, 0, 0.24);
}

.pill.pill-tag.tone-night {
  background: rgba(45, 97, 255, 0.16);
  color: #2149ad;
  border-color: rgba(33, 73, 173, 0.22);
}

.pill.pill-tag.tone-health {
  background: rgba(19, 155, 120, 0.18);
  color: #0d6d54;
  border-color: rgba(13, 109, 84, 0.22);
}

.pill.pill-tag.tone-social {
  background: rgba(255, 63, 123, 0.14);
  color: #9d2f59;
  border-color: rgba(157, 47, 89, 0.2);
}

.pill.pill-tag.tone-mode {
  background: rgba(56, 103, 255, 0.12);
  color: #2b4fb2;
  border-color: rgba(43, 79, 178, 0.2);
}

.pill.pill-tag.tone-trust {
  background: rgba(90, 74, 60, 0.16);
  color: #5a4a3c;
  border-color: rgba(90, 74, 60, 0.24);
}

.pill.pill-tag.tone-default {
  background: rgba(27, 17, 10, 0.08);
  color: #3f332b;
  border-color: rgba(63, 51, 43, 0.16);
}

/* 最新活动页 */
.tab-page[data-page="activity"].is-active {
  display: block;
  padding-top: 10px;
}

.tab-page[data-page="activity"] .main-layout {
  gap: 16px;
  align-items: flex-start;
}

.tab-page[data-page="activity"] .experience-panel {
  flex: 1;
  min-width: 0;
}

.activity-filter-bar {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.activity-filter-label {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px 2px;
}

.activity-status-wrap .chip-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.activity-status-wrap .chip-row::-webkit-scrollbar {
  height: 6px;
}

.activity-status-wrap .chip-row::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.14);
  border-radius: 999px;
}

.activity-status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(24, 16, 8, 0.16);
  background: #fff;
  color: #3f332b;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.activity-status-chip:hover {
  transform: translateY(-1px);
}

.activity-status-chip-label {
  white-space: nowrap;
  font-size: 0.9rem;
}

.activity-status-chip-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(24, 16, 8, 0.1);
  color: #3f332b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 6px;
}

.activity-status-chip.is-active {
  background: #19120f;
  color: #fff7ef;
  border-color: transparent;
}

.activity-status-chip.is-active .activity-status-chip-count {
  background: #ff7a18;
  color: #fff;
}

.activity-status-wrap .chip {
  white-space: nowrap;
}

.activity-filter-selects {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.activity-filter-selects::-webkit-scrollbar {
  height: 6px;
}

.activity-filter-selects::-webkit-scrollbar-thumb {
  background: rgba(31, 19, 9, 0.14);
  border-radius: 999px;
}

.activity-filter-selects .filter-select-pill {
  flex: 0 0 auto;
  min-height: 40px;
}

.activity-filter-selects .filter-select-pill span {
  font-size: 0.82rem;
}

.activity-filter-selects .filter-select-pill select {
  min-width: 130px;
}

#activity-reset-filters {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 14px;
}

.activity-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.activity-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.activity-summary-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.activity-summary-grid .summary-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.84);
}

.activity-summary-grid .summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.activity-summary-grid .summary-item strong {
  margin-top: 6px;
  display: inline-block;
  font-size: 1.26rem;
  color: #9a4300;
}

.activity-list-panel {
  margin-top: 10px;
  height: clamp(540px, calc(100vh - 280px), 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.activity-list::-webkit-scrollbar {
  width: 8px;
}

.activity-list::-webkit-scrollbar-thumb {
  background: rgba(24, 16, 8, 0.14);
  border-radius: 999px;
}

.activity-card {
  border: 1px solid rgba(24, 16, 8, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.activity-card:hover {
  border-color: rgba(255, 122, 24, 0.42);
  box-shadow: 0 10px 22px rgba(71, 42, 13, 0.12);
}

.activity-card.is-selected {
  border-color: rgba(255, 122, 24, 0.58);
  box-shadow: 0 12px 24px rgba(255, 122, 24, 0.14);
}

.activity-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid transparent;
}

.activity-status.status-live {
  color: #0d6d54;
  background: rgba(19, 155, 120, 0.16);
  border-color: rgba(13, 109, 84, 0.22);
}

.activity-status.status-ending {
  color: #9a4300;
  background: rgba(255, 125, 38, 0.18);
  border-color: rgba(154, 67, 0, 0.22);
}

.activity-status.status-upcoming {
  color: #2b4fb2;
  background: rgba(56, 103, 255, 0.13);
  border-color: rgba(43, 79, 178, 0.2);
}

.activity-countdown {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.activity-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.activity-card-title-row h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.activity-shop-name {
  margin: 0;
  font-size: clamp(1.2rem, 1.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.activity-save-pill {
  white-space: nowrap;
  color: #fff7ef;
  background: #19120f;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 5px 10px;
}

.activity-shop-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-highlight {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 125, 38, 0.16);
  color: #9a4300;
  border: 1px solid rgba(154, 67, 0, 0.24);
  font-weight: 800;
  font-size: 0.92rem;
}

.activity-desc {
  margin: 0;
  color: #3f332b;
  line-height: 1.45;
}

.activity-tag-row {
  gap: 8px;
}

.activity-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.activity-meta-row span {
  border-radius: 999px;
  border: 1px solid rgba(24, 16, 8, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  font-size: 0.84rem;
  color: #534740;
  text-align: center;
}

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

.activity-actions-row .button {
  flex: 1;
  padding-block: 8px;
}

.tab-page[data-page="activity"] .sidebar {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 180px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tab-page[data-page="activity"] .activity-detail-panel {
  flex: 1;
  overflow-y: auto;
}

.activity-detail-content .detail-cover {
  border-radius: 14px;
}

.activity-detail-highlight {
  margin: 8px 0 2px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 125, 38, 0.18);
  color: #9a4300;
  border: 1px solid rgba(154, 67, 0, 0.22);
  font-weight: 800;
  font-size: 0.95rem;
}

.activity-rule-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4f433b;
  display: grid;
  gap: 6px;
  line-height: 1.45;
}

/* AI 推荐页面样式 - 新布局 */
.tab-page[data-page="ai"].is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 顶部输入区域 */
.ai-page-top {
  flex-shrink: 0;
}

.ai-input-section {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.04), rgba(15, 157, 128, 0.04));
  margin-top: 16px;
}

.ai-input-section .section-heading {
  margin-bottom: 12px;
}

.ai-input-section .section-heading h2 {
  font-size: 1.4rem;
}

.ai-input-section .section-heading p {
  color: var(--muted);
  margin-top: 4px;
}

/* AI 加载状态 */
.ai-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.ai-loading.hidden {
  display: none;
}

.ai-loading-content {
  text-align: center;
}

.ai-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 122, 24, 0.2);
  border-top-color: #ff7a18;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-loading-content p {
  color: var(--muted);
  font-size: 1rem;
}

/* AI 结果标题 */
.ai-results-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-results-title-row h2 {
  font-size: 1.3rem;
}

.button-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.tab-page[data-page="ai"] .main-layout {
  display: flex;
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.tab-page[data-page="ai"] #ai-results-layout.hidden {
  display: none !important;
}

.tab-page[data-page="ai"] .experience-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tab-page[data-page="ai"] .sidebar {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 280px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tab-page[data-page="ai"] .sidebar .detail-panel {
  flex: 1;
  overflow-y: auto;
  height: 100%;
}

/* AI 快捷场景标签 */
.ai-quick-tags {
  margin: 14px 0;
}

.ai-quick-label {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

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

.ai-tag-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(24, 16, 8, 0.12);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-tag-btn:hover {
  background: rgba(255, 122, 24, 0.1);
  border-color: rgba(255, 122, 24, 0.3);
  color: #cc6000;
}

/* AI 结果面板 */
.ai-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.ai-results-header h2 {
  font-size: 1.3rem;
}

.ai-results-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.ai-results-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  position: relative;
}

/* AI 加载状态 */
.ai-loading-state {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
  gap: 16px;
}

.ai-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 122, 24, 0.2);
  border-top-color: #ff7a18;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-loading-state p {
  color: var(--muted);
  font-size: 1rem;
}

/* AI 结果卡片 */
.ai-result-list {
  display: grid;
  gap: 12px;
}

.ai-result-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  border: 1px solid rgba(24, 16, 8, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-result-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 122, 24, 0.3);
  box-shadow: 0 6px 20px rgba(43, 27, 12, 0.1);
  transform: translateY(-2px);
}

.ai-result-card.is-selected {
  background: rgba(255, 248, 240, 0.95);
  border-color: #ff7a18;
}

.ai-result-image {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #d8c0ac, #b19070);
}

.ai-result-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ai-result-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.ai-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.ai-result-reason {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(15, 157, 128, 0.1);
  border-radius: 12px;
  font-size: 0.8rem;
  color: #0b6f5a;
}

.ai-result-stats {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.ai-result-price {
  font-weight: 700;
  color: #ff7a18;
}

.ai-result-rating {
  color: #ff9500;
  font-weight: 600;
}

/* AI 推荐历史 */
.ai-history-block {
  margin-top: 16px;
}

.ai-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.ai-history-empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}

.ai-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-history-item:hover {
  background: rgba(255, 122, 24, 0.08);
}

.ai-history-prompt {
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-history-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 8px;
}

/* AI 页面输入框优化 */
.ai-page-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.ai-page-input-row input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(24, 16, 8, 0.14);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.ai-page-input-row input:focus {
  outline: none;
  border-color: #ff7a18;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

.ai-page-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* API 配置区域 */
.ai-api-config {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(24, 16, 8, 0.12);
}

.ai-api-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 8px 0;
  list-style: none;
}

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

.ai-api-details[open] summary {
  color: var(--text);
}

.ai-api-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.ai-api-form input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid rgba(24, 16, 8, 0.14);
  border-radius: 8px;
  font-size: 0.85rem;
}

.ai-api-hint {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.ai-api-hint a {
  color: #3867ff;
  text-decoration: none;
}

.ai-api-hint a:hover {
  text-decoration: underline;
}

.ai-page-copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

#detail-panel .detail-content {
  padding: 6px;
  display: grid;
  gap: 14px;
}

#detail-panel .detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(24, 16, 8, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

#detail-panel .detail-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 248px;
  border-radius: 14px;
  object-fit: cover;
}

#detail-panel .detail-hero-info {
  display: grid;
  gap: 8px;
  align-content: start;
}

#detail-panel .detail-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#detail-panel .detail-meta-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(25, 18, 15, 0.08);
  border: 1px solid rgba(25, 18, 15, 0.12);
  color: #3f332b;
  font-size: 0.82rem;
  font-weight: 600;
}

#detail-panel .detail-review-block {
  padding: 14px;
}

#detail-panel .detail-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#detail-panel .detail-review-head small {
  color: var(--muted);
  font-size: 0.85rem;
}

#detail-panel .detail-review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

#detail-panel .review-filter-chip {
  border: 1px solid rgba(24, 16, 8, 0.16);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

#detail-panel .review-filter-chip.is-active {
  background: #19120f;
  color: #fff7ef;
  border-color: transparent;
}

#detail-panel .detail-review-list {
  display: grid;
  gap: 10px;
}

#detail-panel .review-real-card {
  border: 1px solid rgba(24, 16, 8, 0.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
}

#detail-panel .review-real-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#detail-panel .review-real-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

#detail-panel .review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 18, 15, 0.12);
  color: #2e241e;
  font-weight: 700;
}

#detail-panel .review-real-user small {
  color: var(--muted);
  font-size: 0.82rem;
}

#detail-panel .review-real-score {
  font-weight: 800;
  color: #19120f;
}

#detail-panel .review-real-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#detail-panel .review-star-line {
  color: #ff8f3d;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  font-weight: 700;
}

#detail-panel .review-tone {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

#detail-panel .review-tone.positive {
  background: rgba(21, 155, 120, 0.14);
  color: #0f6f56;
}

#detail-panel .review-tone.neutral {
  background: rgba(255, 158, 25, 0.16);
  color: #9b5f00;
}

#detail-panel .review-tone.negative {
  background: rgba(226, 64, 46, 0.14);
  color: #a73422;
}

#detail-panel .review-helpful {
  color: var(--muted);
  font-size: 0.82rem;
}

#detail-panel .review-real-text {
  margin: 9px 0 0;
  color: #2e241e;
  line-height: 1.45;
}

/* 响应式 */
@media (max-width: 1100px) {
  .tab-page[data-page="ai"] .sidebar {
    display: none;
  }
}

/* 响应式 */
@media (max-width: 920px) {
  .profile-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-name-row {
    flex-direction: column;
  }

  .ai-page-input-row {
    grid-template-columns: 1fr;
  }

  .ai-result-card {
    grid-template-columns: 1fr;
  }

  #detail-panel .detail-hero {
    grid-template-columns: 1fr;
  }

  #detail-panel .detail-cover {
    max-height: 220px;
  }

  #detail-panel .detail-review-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 推荐页 UI 优化 */
.tab-page[data-page="recommend"] .main-layout {
  gap: 18px;
}

.tab-page[data-page="recommend"] .results-toolbar {
  gap: 8px;
  padding-bottom: 10px;
}

.tab-page[data-page="recommend"] .toolbar-search-row {
  gap: 10px;
}

.tab-page[data-page="recommend"] .filter-rail {
  gap: 10px;
  flex-wrap: nowrap;
}

.tab-page[data-page="recommend"] .filter-scroll {
  flex: 1 1 auto;
  padding-bottom: 0;
}

.tab-page[data-page="recommend"] #results-view {
  padding: 16px 18px;
  gap: 12px;
}

.tab-page[data-page="recommend"] #results-view .results-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(25, 18, 15, 0.1);
}

.tab-page[data-page="recommend"] #results-view .restaurant-card {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.tab-page[data-page="recommend"] #results-view .card-image {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-header strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tab-page[data-page="recommend"] #results-view .result-price-pill {
  background: #19120f;
  color: #fff7ef;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 7px 12px;
}

.tab-page[data-page="recommend"] #results-view .nav-map-btn {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 75, 175, 0.24);
  color: #2b4fb2;
  background: rgba(56, 103, 255, 0.1);
  font-weight: 700;
}

.tab-page[data-page="recommend"] #results-view .nav-map-btn:hover {
  background: rgba(56, 103, 255, 0.18);
}

.tab-page[data-page="recommend"] #results-view .name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tab-page[data-page="recommend"] #results-view .name-line strong {
  display: inline;
  margin-right: 2px;
}

.tab-page[data-page="recommend"] #results-view .name-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-page[data-page="recommend"] #results-view .name-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 19, 9, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: #5a4a3c;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25, 18, 15, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: #3f332b;
  line-height: 1.2;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta .meta-chip small {
  color: #7f6e62;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta .meta-open.is-open {
  background: rgba(21, 155, 120, 0.12);
  border-color: rgba(21, 155, 120, 0.22);
  color: #0f6f56;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta .meta-open.is-closed {
  background: rgba(226, 64, 46, 0.12);
  border-color: rgba(226, 64, 46, 0.2);
  color: #a73422;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta .meta-distance {
  background: rgba(56, 103, 255, 0.1);
  border-color: rgba(56, 103, 255, 0.2);
  color: #3056bd;
}

.tab-page[data-page="recommend"] #results-view .restaurant-card-meta .meta-price {
  background: rgba(255, 150, 35, 0.14);
  border-color: rgba(168, 94, 3, 0.2);
  color: #8a4b00;
}

.tab-page[data-page="recommend"] #results-view .tag-row {
  gap: 7px;
}

.tab-page[data-page="recommend"] #results-view .tag-row .pill {
  font-size: 0.78rem;
  padding: 4px 8px;
}

.tab-page[data-page="recommend"] #results-view .card-actions {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(25, 18, 15, 0.12);
  font-size: 0.85rem;
}

.tab-page[data-page="recommend"] #results-view .card-actions span:last-child {
  color: #865015;
  font-weight: 700;
}

@media (max-width: 920px) {
  .tab-page[data-page="recommend"] .filter-rail {
    flex-wrap: wrap;
  }

  .tab-page[data-page="recommend"] #results-view .restaurant-card {
    grid-template-columns: 1fr;
  }

  .tab-page[data-page="recommend"] #results-view .result-price-pill {
    align-self: flex-start;
  }
}

/* 筛选抽屉与推荐页布局收口 */
.filter-drawer-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.drawer-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-filter-grid .toolbar-control {
  padding: 10px 12px;
  border: 1px solid rgba(24, 16, 8, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.drawer-filter-grid .toolbar-control:nth-child(3) {
  grid-column: 1 / -1;
}

.filter-drawer-actions {
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0), rgba(255, 250, 246, 0.96) 38%);
}

.drawer-apply-button {
  width: 100%;
  min-height: 44px;
}

.tab-page[data-page="recommend"] .results-panel {
  height: auto;
  min-height: 0;
}

.tab-page[data-page="recommend"] #recommend-home {
  gap: 0;
}

.tab-page[data-page="recommend"] #results-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  max-height: calc(100vh - 250px);
}

.tab-page[data-page="recommend"] #results-view .card-list {
  min-height: 0;
  overflow-y: auto;
}

#detail-panel .detail-back-row {
  margin: 0 0 2px;
}

#detail-panel .detail-hero {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

#detail-panel .detail-hero-info {
  gap: 6px;
}

#detail-panel .detail-title-row {
  margin-top: 0;
}

#detail-panel .detail-description {
  margin: 4px 0 6px;
}

#detail-panel .detail-body {
  margin-top: 8px;
  gap: 10px;
}

#detail-panel .detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

#detail-panel .detail-stats div {
  padding: 10px 8px;
}

#detail-panel .detail-stats strong {
  margin-top: 4px;
  font-size: 1rem;
}

#detail-panel .tag-row .pill {
  padding: 5px 10px;
}

@media (max-width: 1280px) {
  #detail-panel .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .drawer-filter-grid {
    grid-template-columns: 1fr;
  }

  .drawer-filter-grid .toolbar-control:nth-child(3) {
    grid-column: auto;
  }
}

/* 顶部与 Tab 区间距微调 */
.hero {
  padding: 8px 14px;
}

.topbar-main {
  min-height: 56px;
  column-gap: 18px;
}

.brand-title {
  font-size: 1.68rem;
}

.brand-slogan {
  margin-left: 2px;
  font-size: clamp(1.12rem, 1.95vw, 1.74rem);
}

.content-tabs {
  margin-top: 10px;
}

.tab-page[data-page="ranking"].is-active,
.tab-page[data-page="profile"].is-active,
.tab-page[data-page="activity"].is-active,
.tab-page[data-page="ai"].is-active {
  padding-top: 10px;
}

.tab-page[data-page="ranking"] .main-layout,
.tab-page[data-page="profile"] .main-layout,
.tab-page[data-page="activity"] .main-layout,
.tab-page[data-page="ai"] .main-layout {
  margin-top: 2px;
}

/* 推荐页改为自然页面滚动，不再与地图同高锁定 */
body.recommend-locked {
  overflow: auto;
}

.tab-page[data-page="recommend"].is-active {
  min-height: calc(100vh - 130px);
  height: auto;
  overflow: visible;
  padding-top: 10px;
  padding-bottom: 14px;
}

.tab-page[data-page="recommend"] .main-layout {
  height: auto;
  margin-top: 2px;
  align-items: flex-start;
}

.tab-page[data-page="recommend"] .experience-panel,
.tab-page[data-page="recommend"] #recommend-home,
.tab-page[data-page="recommend"] #results-view,
.tab-page[data-page="recommend"] #detail-panel,
.tab-page[data-page="recommend"] #detail-panel .detail-content {
  height: auto;
  max-height: none;
  overflow: visible;
}

.tab-page[data-page="recommend"] #results-view {
  display: block;
}

.tab-page[data-page="recommend"] #results-view .card-list {
  overflow: visible;
  padding-bottom: 0;
}

.tab-page[data-page="recommend"] #detail-panel {
  padding: 10px 12px;
}

.tab-page[data-page="recommend"] #detail-panel .detail-page-top {
  position: static;
  background: transparent;
  margin-bottom: 10px;
}

.tab-page[data-page="recommend"] .map-frame {
  padding: 8px;
}

.tab-page[data-page="recommend"] .mini-map-stage,
.tab-page[data-page="recommend"] #map-stage {
  height: 680px;
  min-height: 680px;
}

@media (max-width: 1120px) {
  .tab-page[data-page="recommend"].is-active {
    min-height: calc(100vh - 120px);
    padding-top: 8px;
  }

  .tab-page[data-page="recommend"] .mini-map-stage,
  .tab-page[data-page="recommend"] #map-stage {
    height: 520px;
    min-height: 520px;
  }

  .tab-page[data-page="activity"] .main-layout {
    flex-direction: column;
  }

  .tab-page[data-page="activity"] .sidebar {
    width: 100%;
    position: static;
    height: auto;
  }

  .activity-filter-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    gap: 8px;
  }

  .activity-filter-selects .filter-select-pill {
    width: 100%;
  }

  .activity-filter-selects .filter-select-pill select {
    min-width: 0;
    width: 100%;
  }

  #activity-reset-filters {
    width: 100%;
  }

  .activity-summary-grid {
    grid-template-columns: 1fr;
  }

  .activity-list-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .activity-list {
    overflow: visible;
    max-height: none;
  }

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

  .activity-actions-row {
    flex-direction: column;
  }
}
