:root {
  --frame-bg: #ececec;
  --hero-bg: linear-gradient(135deg, #6b75e9 0%, #8666df 100%);
  --hero-dot: rgba(255, 255, 255, 0.14);
  --card-shadow: 0 10px 24px rgba(45, 34, 78, 0.12);
  --text: #2e2f3d;
  --muted: #6f7288;
  --white: #ffffff;
  --line: #dedee8;
  --primary: #6a63da;
  --primary-deep: #5b49d6;
  --footer: #293c54;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ececec;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-frame {
  width: 100%;
  margin: 0 auto;
  background: var(--frame-bg);
  box-shadow: none;
}

.site-header {
  background: #f8f8fb;
  border-bottom: 1px solid #e4e4ee;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px;
}

.brand-link {
  font-size: 20px;
  font-weight: 700;
  color: #e0582a;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 16px;
  font-weight: 700;
}

.hero-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-carousel,
.detail-carousel {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1200ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay,
.detail-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95, 108, 235, 0.76), rgba(136, 95, 217, 0.7));
  z-index: 0;
}

.hero-dot {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

.hero-inner h1,
.detail-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: 1px;
}

.hero-inner p,
.detail-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta,
.ghost-cta,
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.hero-cta {
  margin-top: 22px;
  background: #fff0f0;
  color: #d24d57;
}

.ghost-cta {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.section-block {
  padding: 44px 28px;
}

.section-title {
  margin-bottom: 24px;
  text-align: center;
}

.section-title.left-align {
  text-align: left;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.section-title p,
.counter-note,
.spot-summary,
.mini-card p,
.culture-item p,
.tip-card p,
.site-footer p,
.site-footer a,
.info-item p,
.detail-section-card p,
.related-card p,
.empty-state p,
.not-found p {
  color: var(--muted);
}

.search-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.search-row input {
  width: min(360px, 100%);
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.search-button {
  background: var(--primary);
  color: var(--white);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.compact-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 12px;
  color: var(--muted);
}

.field select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.counter-note {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
}

.spot-grid,
.mini-grid,
.tips-grid,
.related-grid {
  display: grid;
  gap: 12px;
}

.spot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spot-card,
.mini-card,
.tip-card,
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.spot-card:hover,
.mini-card:hover,
.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(45, 34, 78, 0.18);
}

.spot-card {
  overflow: hidden;
}

.card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(42, 38, 59, 0.78);
  color: var(--white);
  font-size: 10px;
}

.card-emoji {
  font-size: 42px;
}

.card-body {
  padding: 12px;
}

.spot-title,
.mini-card strong,
.culture-item strong,
.tip-card h3,
.related-card strong {
  display: block;
  margin: 0 0 8px;
}

.spot-title {
  font-size: 15px;
}

.spot-summary {
  min-height: 52px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.65;
}

.card-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-chip,
.detail-tag-row span,
.detail-highlight {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0edff;
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 700;
}

.card-footer {
  margin-top: 12px;
}

.detail-entry {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.tone-1 .card-visual { background: linear-gradient(135deg, #6d76e9, #8d63e6); }
.tone-2 .card-visual { background: linear-gradient(135deg, #6dc3f1, #22d4d9); }
.tone-3 .card-visual { background: linear-gradient(135deg, #f77da6, #f3c44e); }
.tone-4 .card-visual { background: linear-gradient(135deg, #9fd9dc, #dbeef0); }
.tone-5 .card-visual { background: linear-gradient(135deg, #f4b7d1, #f0d7ea); }
.tone-6 .card-visual { background: linear-gradient(135deg, #726ce9, #5bb8f4); }

.mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
  padding: 18px 14px;
  text-align: center;
}

.mini-card span,
.culture-item span,
.related-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
}

.culture-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.culture-item {
  padding: 8px 10px;
  text-align: center;
}

.tips-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tip-card {
  padding: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  padding: 34px 32px;
  background: var(--footer);
}

.site-footer h4,
.footer-brand,
.site-footer p,
.site-footer a {
  color: #f6f8ff;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 20px;
}

.site-footer p {
  font-size: 16px;
  line-height: 1.8;
}

.detail-page {
  padding: 0 28px 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.detail-top {
  max-width: 920px;
  margin: 0 auto;
}

.detail-hero-card,
.detail-section-card,
.detail-side-card,
.not-found {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.detail-hero-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 34px;
  background: linear-gradient(135deg, #6871e7 0%, #875fd9 100%);
  border-radius: 16px;
  margin: 0;
}

.back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin: 0 0 18px 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.detail-hero-copy {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 980px;
  margin: 0 auto;
}

.detail-dots {
  bottom: 18px;
}

.detail-hero-centered {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.detail-icon {
  margin-bottom: 12px;
  font-size: 64px;
}

.detail-tag-row,
.detail-action-row,
.detail-highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-action-row {
  margin-top: 18px;
}

.center-actions {
  justify-content: center;
}

.detail-hero-card .hero-cta,
.detail-hero-card .ghost-cta {
  width: 160px;
  min-width: 160px;
  height: 52px;
  min-height: 52px;
  padding: 0 20px;
  font-size: 15px;
  box-sizing: border-box;
}

.detail-side-card {
  padding: 18px;
}

.detail-side-card h2,
.detail-section-card h3 {
  margin: 0 0 14px;
}

.info-item + .info-item {
  margin-top: 12px;
}

.info-item strong,
.transport-card strong {
  display: block;
  margin-bottom: 6px;
}

.detail-main {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.detail-section-card {
  padding: 20px;
  border-radius: 16px;
}

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

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

.transport-card {
  padding: 16px;
  border-radius: 12px;
  background: #f7f7fb;
  border-left: 4px solid #5f72f5;
}

.practical-card {
  min-height: 120px;
}

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

.related-card {
  padding: 16px;
}

.empty-state,
.not-found {
  padding: 28px;
  text-align: center;
}

.detail-section-card h3 {
  color: #5f72f5;
  font-size: 22px;
}

.detail-section-card h3::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 12px;
  background: #6b78f1;
  opacity: 0.9;
}

.tips-note {
  padding: 8px 0 0;
}

.detail-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.9;
}

.route-box {
  padding: 18px;
  border-radius: 12px;
  background: #f7f7fb;
  color: var(--text);
}

.no-margin {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .spot-grid,
  .mini-grid,
  .tips-grid,
  .culture-row,
  .related-grid,
  .transport-grid,
  .practical-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-frame {
    width: 100%;
  }

  .brand-row,
  .compact-toolbar,
  .spot-grid,
  .mini-grid,
  .tips-grid,
  .culture-row,
  .related-grid,
  .transport-grid,
  .practical-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .brand-row,
  .main-nav,
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    gap: 10px;
  }

  .hero-banner {
    min-height: 420px;
  }
}
