/* 官网 V2 首页：Hero 轮播、走进我们、魅力榜与礼物跑马灯、套餐、陪玩墙、
   快捷入口、嘉礼榜、业绩榜。所有规则限定在 .public-v2 命名空间。 */

/* 本文件的图片统一使用相对路径 url('../img/...')：
   绝对路径 '/static/...' 会同时绕过 url_for 的 ?v= 静态版本化与 immutable 缓存，
   并在应用部署于 URL 前缀（如 /peiwan/）下时直接 404。
   位图统一使用 WebP——CSS 背景无法提供格式回退，而 WebP 已被当前所有目标浏览器支持。 */

/* ── Hero 双图轮播 ── */
.public-v2 .pv2-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  height: calc(100svh - 70px);
  overflow: hidden;
  background: linear-gradient(120deg, #121212 0%, #1a1a1a 100%);
  transition: background 600ms ease;
}

.public-v2 .pv2-hero.is-slide-alt {
  background: linear-gradient(120deg, #2d2630 0%, #3a323e 100%);
}

.public-v2 .pv2-hero-track {
  display: flex;
  height: 100%;
  transition: transform 800ms ease;
}

.public-v2 .pv2-hero-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-v2 .pv2-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* 首屏信息卡：桌面端固定在 Hero 左下角，移动端贴底全宽（见下方媒体查询）。
   纯图片 Hero 没有品牌信息与主操作，审计要求首屏可见标题与主 CTA。 */
.public-v2 .pv2-hero-content {
  position: absolute;
  bottom: 56px;
  left: max(24px, calc((100% - var(--public-shell)) / 2));
  z-index: 4;
  max-width: 480px;
  padding: 22px 26px 24px;
  border-left: 4px solid var(--public-brand);
  border-radius: 0 12px 12px 0;
  background: rgba(30, 26, 30, 0.86);
  color: #ffffff;
}

.public-v2 .pv2-hero-kicker {
  margin: 0;
  color: #ffb8ca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.public-v2 .pv2-hero-content h1 {
  margin: 6px 0 6px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.3;
}

.public-v2 .pv2-hero-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.public-v2 .pv2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.public-v2 .pv2-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.public-v2 .pv2-hero-action-primary {
  background: var(--public-brand);
  color: #ffffff;
}

.public-v2 .pv2-hero-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

@media (max-width: 1200px) {
  .public-v2 .pv2-hero {
    height: calc(100vh - 60px);
    height: calc(100svh - 60px);
  }
}

@media (max-width: 767px) {
  .public-v2 .pv2-hero {
    height: min(560px, calc(100svh - 150px));
    min-height: 440px;
  }

  .public-v2 .pv2-hero-slide img {
    object-position: 64% center;
  }

  .public-v2 .pv2-hero-content {
    right: 16px;
    bottom: 20px;
    left: 16px;
    max-width: none;
    padding: 16px 16px 15px;
    border-radius: 0;
    background: rgba(30, 26, 30, 0.92);
  }

  .public-v2 .pv2-hero-content h1 {
    margin: 4px 0 3px;
    font-size: 22px;
  }

  .public-v2 .pv2-hero-summary {
    font-size: 13px;
    line-height: 1.5;
  }

  .public-v2 .pv2-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
  }

  .public-v2 .pv2-hero-actions a {
    min-height: 38px;
    padding: 0;
  }

  .public-v2 .pv2-hero-dots {
    top: 14px;
    bottom: auto;
  }

  .public-v2 .pv2-hero-pause {
    top: 8px;
    right: 14px;
    bottom: auto;
  }
}

.public-v2 .pv2-hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.public-v2 .pv2-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.public-v2 .pv2-hero-dot.is-active {
  background: var(--public-brand);
}

.public-v2 .pv2-hero-pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
}

.public-v2 .pv2-hero-pause:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* ── 走进我们 ── */
.public-v2 .pv2-about {
  background: url('../img/public/v2/aboutus.webp') center / cover no-repeat;
}

.public-v2 .pv2-about-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

@media (max-width: 767px) {
  .public-v2 .pv2-about-inner {
    min-height: 0;
  }
}

.public-v2 .pv2-about-body {
  margin-top: 20px;
  font-size: 18px;
  line-height: 40px;
  color: var(--public-ink);
}

.public-v2 .pv2-about-body p {
  margin: 0;
  text-indent: 2em;
}

.public-v2 .pv2-about-body p + p {
  margin-top: 4px;
}

.public-v2 .pv2-about-actions {
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .public-v2 .pv2-about-body {
    font-size: 14px;
    line-height: 26px;
  }
}

/* ── 魅力值排行榜 + 礼物跑马灯 ── */
.public-v2 .pv2-charm-note {
  text-align: center;
  font-size: 16px;
  line-height: 25px;
  color: rgba(0, 0, 0, 0.6);
}

.public-v2 .pv2-charm-note p {
  margin: 0;
}

.public-v2 .pv2-card-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .public-v2 .pv2-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .public-v2 .pv2-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .public-v2 .pv2-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.public-v2 .pv2-photo-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.public-v2 .pv2-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.public-v2 .pv2-photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.public-v2 .pv2-photo-card-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  height: 30px;
  line-height: 30px;
  border-radius: 30px;
  padding: 0 15px;
  font-size: 13px;
}

.public-v2 .pv2-photo-card-badge strong {
  color: var(--public-heart);
  font-weight: 600;
}

.public-v2 .pv2-photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% - 30px);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-radius: 0 0 10px 10px;
  padding: 8px 15px;
}

.public-v2 .pv2-photo-card-caption p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-v2 .pv2-photo-card-metrics {
  margin-top: 5px;
}

.public-v2 .pv2-photo-card-metric {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 13px;
}

.public-v2 .pv2-photo-card-metric img {
  position: static;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 0;
}

/* ── 快捷入口 ── */
.public-v2 .pv2-quicklinks {
  background: url('../img/public/v2/record.webp') center / cover no-repeat;
}

.public-v2 .pv2-quicklinks-inner {
  text-align: center;
}

/* ── 嘉礼荣耀榜单 ── */
.public-v2 .pv2-giftboard {
  margin-top: 40px;
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.public-v2 .pv2-giftboard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.public-v2 .pv2-giftboard-inner {
  padding: 20px;
}

.public-v2 .pv2-giftboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .public-v2 .pv2-giftboard-list {
    grid-template-columns: 1fr;
  }
}

.public-v2 .pv2-giftboard-item {
  display: flex;
  align-items: center;
  background: var(--public-pill);
  border-radius: 40px;
  padding-right: 20px;
}

.public-v2 .pv2-giftboard-label {
  background: var(--public-magenta);
  border-radius: 40px;
  min-width: 100px;
  text-align: center;
  color: #ffffff;
  padding: 10px;
  margin: 10px;
}

.public-v2 .pv2-giftboard-text {
  padding: 10px 0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 业绩荣誉榜单 ── */
.public-v2 .pv2-performance {
  background: url('../img/public/v2/price.jpg') center / cover no-repeat;
}

.public-v2 .pv2-performance-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .public-v2 .pv2-performance-grid {
    grid-template-columns: 1fr;
  }
}

.public-v2 .pv2-performance-tab {
  background: var(--public-magenta);
  height: 40px;
  border-radius: 10px;
  width: 80px;
  line-height: 40px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 10px;
}

.public-v2 .pv2-performance-row {
  display: flex;
  align-items: center;
  border-radius: 12px;
  height: 70px;
  padding: 0 20px;
  margin-top: 10px;
  background: rgba(255, 129, 129, 0.5);
  transition: transform 0.3s ease;
}

.public-v2 .pv2-performance-row:hover {
  transform: translateX(5px);
}

.public-v2 .pv2-performance-rank {
  width: 32px;
  height: 32px;
  margin-right: 15px;
  object-fit: contain;
}

.public-v2 .pv2-performance-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.public-v2 .pv2-performance-name {
  font-size: 16px;
  color: var(--public-ink);
}

/* ── 精选活动 ── */
.public-v2 .pv2-campaign-feature-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.public-v2 .pv2-campaign-feature-copy {
  flex: 1;
  min-width: 0;
}

.public-v2 .pv2-campaign-feature-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--public-brand);
  font-weight: 600;
}

.public-v2 .pv2-campaign-feature-summary {
  margin: 12px 0 18px;
  color: var(--public-muted);
}

.public-v2 .pv2-campaign-feature-image {
  width: 380px;
  max-width: 40%;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .public-v2 .pv2-campaign-feature-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .public-v2 .pv2-campaign-feature-image {
    width: 100%;
    max-width: 100%;
  }
}
