:root {
  --page-bg: #f4faff;
  --primary: #294291;
  --secondary: #4c60ae;
  --blue: #5679d0;
  --light-blue: #dbe8ff;
  --text: #171717;
  --muted: #5f6470;
  --display-font:
    "Changsha Huiwen", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --body-font:
    Arial,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--body-font);
}
button,
input {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
.page-shell {
  width: min(1780px, calc(100% - clamp(36px, 7vw, 140px)));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}
/* ==================== 顶部导航 ==================== */
.site-header {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 80px);
  padding-block: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 1.4vw, 28px);
  font-weight: 700;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 70px);
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  font-size: clamp(15px, 1.05vw, 20px);
  white-space: nowrap;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.main-nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.main-nav a.active {
  min-width: 112px;
  padding-inline: 28px;
  color: #ffffff;
  background: var(--blue);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.search-box {
  width: clamp(155px, 11vw, 220px);
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: transparent;
  border: 1.5px solid #1e1e1e;
  border-radius: 999px;
}
.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.search-box input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.search-box input::placeholder {
  color: #222222;
  opacity: 1;
}
.search-box input::-webkit-search-cancel-button {
  display: none;
}
.login-button {
  width: clamp(96px, 8vw, 132px);
  height: 54px;
  color: #ffffff;
  background: #151412;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.login-button:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
/* ==================== 通用标题 ==================== */
.section-heading {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: var(--primary);
}
.section-heading__icon {
  flex: 0 0 auto;
  width: clamp(56px, 5vw, 92px);
  height: clamp(56px, 5vw, 92px);
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(44px, 4.4vw, 82px);
  font-weight: var(--weight-display, 400);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
/* ==================== 地图区域 ==================== */
.map-section {
  padding-top: clamp(20px, 2vw, 40px);
}
.map-display {
  position: relative;
  width: min(1640px, 100%);
  margin: clamp(40px, 4vw, 75px) auto 0;
}
.map-display > .changsha-map-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(41, 66, 145, 0.05));
}
/* ==================== 三日计划 ==================== */
.plan-section {
  padding-top: clamp(90px, 9vw, 170px);
}
.travel-days {
  display: flex;
  flex-direction: column;
  gap: clamp(100px, 10vw, 190px);
  margin-top: clamp(70px, 7vw, 130px);
  padding-bottom: clamp(90px, 9vw, 170px);
}
.day-row {
  display: grid;
  grid-template-columns:
    minmax(280px, 0.75fr)
    minmax(0, 2.65fr);
  align-items: center;
  gap: clamp(45px, 5vw, 105px);
}
.day-row--reverse {
  grid-template-columns:
    minmax(0, 2.65fr)
    minmax(280px, 0.75fr);
}
.day-title {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-align: center;
}
.day-title::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: 22%;
  left: 2%;
  height: 35px;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  transform: rotate(4deg);
}
.day-title--right::after {
  transform: rotate(-4deg);
}
.day-title__circle {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 3%;
  width: clamp(100px, 9vw, 165px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    var(--blue),
    rgba(86, 121, 208, 0.04)
  );
}
.day-title--right .day-title__circle {
  right: 3%;
  left: auto;
}
.day-title__pin {
  position: absolute;
  z-index: 2;
  top: 50px;
  left: 22px;
  width: 48px;
  height: 48px;
}
.day-title__pin svg {
  width: 100%;
  height: 100%;
  fill: var(--primary);
}
.day-title__arrow {
  position: absolute;
  z-index: 2;
  top: 46px;
  right: 36px;
  font-size: 46px;
}
.day-title > div {
  position: relative;
  z-index: 3;
}
.day-title p {
  margin: 0 0 4px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 3vw, 58px);
  font-weight: var(--weight-display, 400);
}
.day-title h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(36px, 3.2vw, 62px);
  line-height: 1.1;
  white-space: nowrap;
}
/* ==================== 时间轴 ==================== */
.route-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 38px);
}
.route-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 82px;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--blue);
}
.route-grid::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 73px;
  right: -2px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--blue);
}
.route-card {
  position: relative;
  z-index: 2;
  min-width: 0;
  text-align: center;
}
.route-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 74px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--page-bg);
  border: 4px solid var(--blue);
  border-radius: 50%;
  transform: translateX(-50%);
}
.route-card__heading {
  height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10px;
}
.route-card__heading span {
  margin-bottom: 4px;
  color: #222222;
  font-size: clamp(13px, 0.9vw, 17px);
}
.route-card__heading h4 {
  margin: 0;
  color: #181818;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  line-height: 1.25;
}
.route-card > img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  margin-top: 36px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(41, 66, 145, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.route-card:hover > img {
  transform: translateY(-7px);
  box-shadow: 0 18px 32px rgba(41, 66, 145, 0.18);
}
.route-description {
  min-height: 40px;
  margin: 12px 0 14px;
  color: #333333;
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.4;
}
.transport {
  min-height: 72px;
  margin: 0;
  padding: 12px 8px;
  color: #222222;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--blue);
  border-radius: 12px;
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.45;
}
.transport span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  background: var(--blue);
  border-radius: 50%;
}
/* ==================== 美食推荐 ==================== */
.food-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  align-items: center;
  gap: clamp(50px, 6vw, 115px);
  padding-bottom: clamp(110px, 10vw, 190px);
}
.food-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  align-items: center;
  gap: clamp(16px, 2vw, 38px);
}
.food-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
}
.food-card {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
}
.food-card:nth-child(even) {
  transform: translateY(35px);
}
.food-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--page-bg);
  border: 4px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(41, 66, 145, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.food-card:hover img {
  transform: scale(1.06);
  box-shadow: 0 18px 32px rgba(41, 66, 145, 0.2);
}
.food-card figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.food-heading {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.food-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 35px;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  transform: rotate(3deg);
}
.food-heading__circle {
  position: absolute;
  top: 0;
  right: 4%;
  width: clamp(100px, 8vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    var(--blue),
    rgba(86, 121, 208, 0.03)
  );
}
.food-heading__circle svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
}
.food-heading h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(42px, 3.8vw, 72px);
  white-space: nowrap;
}
/* ==================== 窄屏电脑和平板 ==================== */
@media (max-width: 1200px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .header-actions {
    justify-self: end;
  }
  .day-row,
  .day-row--reverse {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .day-row--reverse .day-title {
    grid-column: 1;
    grid-row: 1;
  }
  .day-row--reverse .route-grid {
    grid-column: 1;
    grid-row: 2;
  }
  .day-title {
    width: min(460px, 100%);
    min-height: 180px;
  }
  .route-grid {
    grid-template-columns: repeat(5, minmax(155px, 1fr));
    overflow-x: auto;
    padding: 0 5px 20px;
    scrollbar-color: var(--blue) transparent;
  }
  .route-grid::after {
    right: 5px;
  }
  .food-section {
    grid-template-columns: 1fr;
  }
  .food-heading {
    grid-row: 1;
    width: min(420px, 100%);
    justify-self: end;
  }
}
/* ==================== 手机与小屏幕 ==================== */
@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 30px, 1780px);
  }
  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 20px;
  }
  .brand {
    justify-self: start;
  }
  .header-actions {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }
  .search-box {
    flex: 1;
    width: auto;
  }
  .login-button {
    flex: 0 0 88px;
  }
  .main-nav {
    grid-row: 3;
    gap: 8px;
  }
  .main-nav a {
    min-height: 44px;
    padding-inline: 16px;
  }
  .main-nav a.active {
    min-width: auto;
    padding-inline: 20px;
  }
  .section-heading {
    gap: 14px;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(38px, 11vw, 58px);
  }
  .map-display {
    margin-top: 35px;
  }
  .footprints {
    display: none;
  }
  .plan-section {
    padding-top: 80px;
  }
  .travel-days {
    margin-top: 55px;
    gap: 95px;
  }
  .day-title {
    justify-content: flex-start;
    padding-left: 55px;
    text-align: left;
  }
  .day-title h3 {
    font-size: clamp(32px, 9vw, 46px);
  }
  .day-title__circle {
    width: 105px;
  }
  .day-title__pin {
    top: 38px;
    left: 15px;
  }
  .day-title--right .day-title__circle {
    right: auto;
    left: 3%;
  }
  .day-title__arrow {
    top: 38px;
    right: auto;
    left: 24px;
  }
  .route-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    overflow: visible;
    padding-bottom: 0;
  }
  .route-grid::before,
  .route-grid::after,
  .route-card::before {
    display: none;
  }
  .route-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(86, 121, 208, 0.25);
    border-radius: 18px;
  }
  .route-card__heading {
    height: auto;
    padding-bottom: 14px;
  }
  .route-card > img {
    margin-top: 0;
  }
  .route-description {
    min-height: 0;
  }
  .food-section {
    gap: 35px;
  }
  .food-heading {
    min-height: 150px;
    justify-self: start;
  }
  .food-heading h2 {
    font-size: 46px;
  }
  .food-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .food-list::before {
    display: none;
  }
  .food-card:nth-child(even) {
    transform: none;
  }
}
/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
/* ==================== 地图标题 ==================== */
.map-section {
  padding-top: clamp(20px, 2vw, 40px);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: #294291;
}
.start-title-icon {
  flex: 0 0 auto;
  width: clamp(58px, 5vw, 92px);
  height: auto;
  display: block;
  object-fit: contain;
}
.section-heading h1 {
  margin: 0;
  color: #294291;
  font-family:
    "Changsha Huiwen", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  font-size: clamp(44px, 4.4vw, 82px);
  font-weight: var(--weight-display, 400);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
/* ==================== 地图和脚印图片 ==================== */
.map-display {
  position: relative;
  width: min(1640px, 100%);
  margin: clamp(40px, 4vw, 75px) auto 0;
}
.changsha-map-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(
    0 20px 35px rgba(41, 66, 145, 0.05)
  );
}
.footprints-image {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 1%;
  width: clamp(80px, 9vw, 165px);
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
/* ==================== 平板响应式 ==================== */
@media (max-width: 1000px) {
  .start-title-icon {
    width: clamp(55px, 8vw, 82px);
  }
  .footprints-image {
    top: 2%;
    left: 0;
    width: clamp(70px, 12vw, 120px);
  }
}
/* ==================== 手机响应式 ==================== */
@media (max-width: 700px) {
  .section-heading {
    gap: 14px;
  }
  .start-title-icon {
    width: clamp(52px, 16vw, 76px);
  }
  .section-heading h1 {
    font-size: clamp(38px, 11vw, 58px);
  }
  .map-display {
    margin-top: 35px;
  }
  .footprints-image {
    top: 0;
    left: 0;
    width: clamp(58px, 17vw, 90px);
  }
}

/* ==================== 新增：建筑点击弹出动效 ==================== */
/* 仅控制地图和建筑；不会修改页面的其他图片或文字。 */
.map-display {
  position: relative;
  isolation: isolate;
}

.map-display > .changsha-map-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.cs-buildings {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* 外层负责位置；内层图片负责动画，两种 transform 不互相覆盖。 */
.cs-building {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate(-50%, -100%);
}

.cs-building > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  opacity: 0;
  transform: translateY(26px) scale(0.04);
  transform-origin: var(--origin, 50% 100%);
  user-select: none;
  -webkit-user-drag: none;
}

/* 无障碍状态文本，不占用地图位置。 */
.cs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 地图下方的提示按钮也支持键盘 Enter / Space 触发。 */
.map-effect-actions { display: flex; justify-content: center; margin-top: 16px; }
.map-effect-trigger {
  min-height: 44px; padding: 10px 20px;
  color: var(--primary); background: transparent;
  border: 1px solid rgba(86, 121, 208, .35); border-radius: 24px;
  font: inherit; font-size: 13px; cursor: pointer;
}
.map-effect-trigger:hover { background: rgba(86, 121, 208, .08); }
.icon-start-plan { flex: 0 0 auto; width: clamp(56px, 5vw, 92px); height: auto; }
