/* ==========================================================
   风遇 · 官网样式
   清新骑行主题：页面强调色由 config.js 每页 accent / accentRgb 驱动
   ========================================================== */

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #f2f6ea;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1e2a18;
}

a {
  text-decoration: none;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ========== 页面容器 ========== */
.page-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f2f6ea;
}

/* ========== 滑动容器 ========== */
.swiper-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ========== 每一页 ========== */
.swiper-page {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  cursor: default;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(var(--pg-accent-rgb, 164, 222, 59), 0.24), transparent 60%),
    radial-gradient(130% 80% at 50% 110%, rgba(var(--pg-accent-rgb, 164, 222, 59), 0.18), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #eef4e2 100%);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ========== 环境光：海报模糊放大作为底色氛围 ========== */
.page_ambient {
  position: absolute;
  inset: -6%;
  z-index: 0;
  overflow: hidden;
}

.page_ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(64px) saturate(1.35) brightness(1.12);
  transform: scale(1.18);
  opacity: 0.4;
}

/* 亮角收边，保证前景可读性 */
.page_vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(92% 90% at 50% 45%, transparent 52%, rgba(240, 246, 232, 0.85) 100%);
}

/* 细腻网格纹理，呼应海报的清爽质感 */
.page_grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(46, 74, 26, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 74, 26, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 60% at 50% 45%, #000 0%, transparent 100%);
  pointer-events: none;
}

/* ========== 内容区 ========== */
.content_box {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== 顶部品牌栏 ========== */
.top_bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.top_bar .top_logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(var(--pg-accent-rgb, 164, 222, 59), 0.45);
}

.top_bar .top_name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1f3313;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ========== 海报展示区 ========== */
.poster_wrap {
  position: relative;
  margin: auto;
  width: min(calc(80vh * 0.5625), 92vw);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  animation: posterIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* 海报后的柔和光晕 */
.poster_wrap::before {
  content: '';
  position: absolute;
  inset: -6%;
  border-radius: 32px;
  background: radial-gradient(60% 55% at 50% 45%, rgba(var(--pg-accent-rgb, 164, 222, 59), 0.4), transparent 75%);
  filter: blur(30px);
  z-index: 0;
}

.poster_wrap .poster {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(46, 74, 26, 0.05),
    0 20px 48px rgba(43, 66, 24, 0.18);
  animation: posterFloat 4.2s ease-in-out infinite alternate;
}

/* 页面激活时才播放入场动画 */
.swiper-page .poster_wrap { animation-play-state: paused; opacity: 0; }
.swiper-page.is-active .poster_wrap { animation-play-state: running; opacity: 1; }

@keyframes posterIn {
  from { transform: translateY(36px) scale(0.97); }
  to   { transform: translateY(0) scale(1); }
}

@keyframes posterFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

/* ========== 页面底部说明文字 ========== */
.page_caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(30, 42, 24, 0.72);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  padding-bottom: 8px;
}

.page_caption::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: var(--pg-accent, #a4de3b);
  box-shadow: 0 0 10px rgba(var(--pg-accent-rgb, 164, 222, 59), 0.6);
}

/* ========== 右侧圆点导航 ========== */
.dot_nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dot_nav .dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(46, 74, 26, 0.22);
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dot_nav .dot.active {
  height: 26px;
  background: var(--pg-accent, #a4de3b);
  box-shadow: 0 0 12px rgba(var(--pg-accent-rgb, 164, 222, 59), 0.7);
}

/* ========== ICP 底部信息区 ========== */
.icp_box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 6;
  padding: 10px 12px 12px;
  text-align: center;
  font-size: 11px;
  line-height: 1.75;
  color: rgba(30, 42, 24, 0.55);
  background: linear-gradient(180deg, rgba(242, 246, 234, 0) 0%, rgba(242, 246, 234, 0.94) 34%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.icp_box > p {
  margin: 0;
}

.icp_box > p > a {
  color: rgba(30, 42, 24, 0.66);
  transition: color 0.25s;
}

.icp_box > p > a:hover {
  color: var(--pg-accent, #a4de3b);
}

/* 有 ICP 的页面隐藏底部说明，避免重叠 */
.swiper-page.has-icp .page_caption {
  display: none;
}

/* 有 ICP 的页面海报略缩小，为备案信息让出空间 */
.swiper-page.has-icp .poster_wrap {
  width: min(calc(72vh * 0.5625), 92vw);
}

@media (min-width: 769px) {
  .swiper-page.has-icp .poster_wrap {
    width: min(calc(76vh * 0.5625), 40vw);
  }
}

/* ========== 微信提示遮罩 ========== */
.tip_box {
  width: 100%;
  height: 100%;
  background-color: rgba(242, 246, 234, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}

.tip_box p {
  margin-top: 90px;
  padding: 0 1.4rem;
  color: #1f3313;
  text-align: right;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* ========== 响应式：小屏设备 ========== */
@media (max-width: 768px) {
  .top_bar {
    padding: 14px 18px;
  }

  .top_bar .top_logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .top_bar .top_name {
    font-size: 1.15rem;
  }

  .poster_wrap {
    width: min(calc(76vh * 0.5625), 92vw);
    border-radius: 16px;
  }

  .poster_wrap .poster {
    border-radius: 16px;
  }

  .page_caption {
    bottom: 18px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .dot_nav {
    right: 8px;
    gap: 10px;
  }

  .dot_nav .dot {
    width: 6px;
    height: 6px;
  }

  .dot_nav .dot.active {
    height: 20px;
  }

  .icp_box {
    font-size: 10px;
    line-height: 1.7;
    padding: 8px 10px 10px;
  }

  .tip_box p {
    margin-top: 64px;
    font-size: 0.88rem;
  }
}

/* ========== 桌面端微调 ========== */
@media (min-width: 769px) {
  .top_bar {
    padding: 24px 40px;
  }

  .top_bar .top_logo {
    width: 48px;
    height: 48px;
  }

  .top_bar .top_name {
    font-size: 1.5rem;
  }

  .poster_wrap {
    width: min(calc(82vh * 0.5625), 40vw);
  }

  .page_caption {
    font-size: 1rem;
  }

  .dot_nav {
    right: 22px;
  }
}
