:root {
  --theme-primary: #f97316;
  --theme-secondary: #0ea5e9;
  --theme-bg: #fff7ed;
}

body {
  margin: 0;
  color: #FFFFFFDD;
}

[x-cloak] {
  display: none !important;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  background-position: center;
  background-size: cover;
  box-shadow: 6px 6px 10px 2px rgba(0, 0, 0, 0.6);
}

.card-content {
  position: absolute;
  left: 0;
  top: 0;
  color: #FFFFFFDD;
  padding-left: 16px;
}

.content-place {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
}

.content-title-1,
.content-title-2 {
  font-weight: 600;
  font-size: 20px;
  font-family: "Oswald", sans-serif;
}

.content-start {
  width: 30px;
  height: 5px;
  border-radius: 99px;
  background-color: #FFFFFFDD;
}

.details {
  z-index: 22;
  position: absolute;
  top: 240px;
  left: 60px;
}

.details .place-box {
  height: 46px;
  overflow: hidden;
}

.details .place-box .text {
  padding-top: 16px;
  font-size: 20px;
  position: relative;
}

.details .place-box .text:before {
  top: 0;
  left: 0;
  position: absolute;
  content: "";
  width: 30px;
  height: 4px;
  border-radius: 99px;
  background-color: white;
}

.details .title-1,
.details .title-2 {
  font-weight: 600;
  font-size: 72px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
}

.details .title-box-1,
.details .title-box-2 {
  margin-top: 2px;
  height: 100px;
  overflow: hidden;
}

.details > .desc {
  margin-top: 16px;
  width: 500px;
}

.details > .cta {
  width: 500px;
  margin-top: 24px;
  display: flex;
  align-items: center;
}

.details > .cta > .bookmark {
  border: none;
  background-color: #ecad29;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  color: white;
  display: grid;
  place-items: center;
}

.details > .cta > .bookmark svg {
  width: 20px;
  height: 20px;
}

.indicator {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  z-index: 60;
  background-color: #ecad29;
}

.pagination {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
}

.pagination > .arrow {
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 2px solid #ffffff55;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pagination > .arrow:hover {
  border-color: #ffffffaa;
}

.pagination > .arrow:nth-child(2) {
  margin-left: 20px;
}

.pagination > .arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: #ffffff99;
}

.pagination .progress-sub-container {
  margin-left: 24px;
  z-index: 60;
  width: 500px;
  height: 50px;
  display: flex;
  align-items: center;
}

.pagination .progress-sub-container .progress-sub-background {
  width: 500px;
  height: 3px;
  background-color: #ffffff33;
}

.pagination .progress-sub-container .progress-sub-background .progress-sub-foreground {
  height: 3px;
  background-color: #ecad29;
}

.pagination .slide-numbers {
  width: 50px;
  height: 50px;
  overflow: hidden;
  z-index: 60;
  position: relative;
}

.pagination .slide-numbers .item {
  width: 50px;
  height: 50px;
  position: absolute;
  color: white;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: bold;
}

/* ==================== 加载遮罩 ==================== */
.cover {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #0f0f0f;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ecad29;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

/* 可选：加载完成后的轻微缩放退场 */
.cover.exit {
  animation: coverExit 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes coverExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  #hero-slider-section {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
  }

  /* 详情区：固定在底部上方 */
  .details {
    top: auto !important;
    bottom: 300px !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
  }

  .details .title-1,
  .details .title-2 {
    font-size: 2.1rem !important;
    line-height: 1.15 !important;
  }

  .details .title-box-1,
  .details .title-box-2 {
    height: 46px !important;
  }

  .details .place-box {
    height: 36px !important;
  }

  .details .place-box .text {
    font-size: 14px !important;
    padding-top: 12px !important;
  }

  .details > .desc {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px !important;
  }

  .details > .cta {
    width: 100% !important;
    margin-top: 14px !important;
  }

  /* 缩略图上的文字在手机上隐藏 */
  .card-content {
    display: none !important;
  }

  /* 分页条居中底部 */
  .pagination {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 28px !important;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 320px;
    justify-content: center;
  }

  .pagination .progress-sub-container {
    width: 120px !important;
    margin-left: 12px !important;
  }

  .pagination .progress-sub-container .progress-sub-background {
    width: 120px !important;
  }

  .pagination > .arrow {
    width: 42px;
    height: 42px;
  }

  .pagination > .arrow:nth-child(2) {
    margin-left: 12px;
  }

  .pagination .slide-numbers {
    width: 42px;
    height: 42px;
  }

  .pagination .slide-numbers .item {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .indicator {
    height: 3px;
  }

  /* 降低手机上的阴影强度，提升性能 */
  .card {
    box-shadow: 3px 3px 8px 1px rgba(0, 0, 0, 0.45);
  }
}

/* 更小屏幕再压缩一点 */
@media (max-width: 480px) {
  .details {
    bottom: 300px !important;
  }

  .details .title-1,
  .details .title-2 {
    font-size: 1.75rem !important;
  }

  .details > .desc {
    -webkit-line-clamp: 2;
    font-size: 0.8rem !important;
  }

  .pagination {
    bottom: 22px !important;
  }
}