/* =====================================================
   首页样式 index.css
   ===================================================== */

/* ---------- 首屏 Banner 轮播 ---------- */
.hero {
  position: relative; overflow: hidden; height: 480px;
}
.hero-slider { position: relative; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-mask {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(60, 20, 80, .40) 0%, rgba(60, 20, 80, .18) 40%, rgba(60, 20, 80, .55) 100%);
}
.hero-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; text-align: center;
  padding-top: 20px;
}
.hero-sub {
  display: inline-block;
  padding: 6px 20px; border-radius: 20px;
  font-size: 13px; letter-spacing: 2px; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .30);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(20px);
}
.hero-title {
  font-size: 50px; font-weight: 800; letter-spacing: 2px; line-height: 1.35;
  margin: 18px 0 14px;
  opacity: 0; transform: translateY(28px);
}
.hero-title span {
  background: linear-gradient(90deg, #ffe9f5, #ffd166);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-desc {
  font-size: 15px; color: rgba(255, 255, 255, .85); line-height: 2; letter-spacing: 1px;
  opacity: 0; transform: translateY(36px);
}
.hero-actions {
  display: flex; gap: 16px; margin-top: 32px;
  opacity: 0; transform: translateY(44px);
}
.hero-actions .btn-primary { background: var(--grad); }
.hero-actions .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; border-color: #fff; }

/* 激活状态动画：依次淡入上移 */
.hero-slide.active .hero-sub    { animation: heroAnim .7s ease forwards .2s; }
.hero-slide.active .hero-title  { animation: heroAnim .8s ease forwards .4s; }
.hero-slide.active .hero-desc   { animation: heroAnim .8s ease forwards .6s; }
.hero-slide.active .hero-actions{ animation: heroAnim .8s ease forwards .8s; }
@keyframes heroAnim {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 左右箭头 */
.hero-arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px);
  transition: all .3s;
  transform: translateY(-50%);
}
.hero-arrow:hover {
  background: var(--grad); border-color: transparent;
  box-shadow: 0 8px 20px rgba(236, 72, 153, .45);
  transform: translateY(-50%) scale(1.08);
}
.ha-prev { left: 40px; }
.ha-next { right: 40px; }

/* 圆点指示器 */
.hero-dots {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 10;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer; transition: all .3s;
}
.hero-dots .dot:hover { background: rgba(255, 255, 255, .85); }
.hero-dots .dot.active {
  background: #fff; width: 28px; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, .5);
}

/* ---------- 数据统计 ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -46px; }
.stats {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex; padding: 26px 10px;
}
.stat-item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px;
  border-right: 1px dashed var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item i {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, #fde8f3, #f3e8fd);
  color: var(--pink); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.stat-item strong { display: block; font-size: 26px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-item span { font-size: 13px; color: var(--muted); }

/* ---------- 活动分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.cat-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 10px 24px; text-align: center;
  transition: all .35s ease;
}
.cat-item:hover {
  transform: translateY(-8px);
  border-color: rgba(236, 72, 153, .45);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, .25), 0 16px 34px rgba(168, 85, 247, .20);
}
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fde8f3, #f3e8fd);
  color: var(--pink); font-size: 25px;
  transition: all .35s ease;
}
.cat-item:hover .cat-icon { background: var(--grad); color: #fff; box-shadow: 0 10px 20px rgba(236, 72, 153, .35); transform: rotate(-6deg) scale(1.06); }
.cat-item strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.cat-num { font-size: 12px; color: var(--muted); }

/* ---------- 热门推荐 ---------- */
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 24px 14px 14px;
  transition: all .3s ease;
}
.rank-row:hover {
  transform: translateX(8px);
  border-color: rgba(236, 72, 153, .45);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(236, 72, 153, .22), 0 14px 30px rgba(168, 85, 247, .18);
}
.rank-no {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; font-style: italic; color: #fff;
  background: #d9c7e6;
}
.rank-row.top1 .rank-no { background: var(--grad); box-shadow: 0 6px 14px rgba(236, 72, 153, .4); }
.rank-row.top2 .rank-no { background: linear-gradient(135deg, #f472b6, #c084fc); }
.rank-row.top3 .rank-no { background: linear-gradient(135deg, #c084fc, #a78bfa); }
.rank-row img { width: 168px; height: 96px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-info h3 {
  font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .25s;
}
.rank-row:hover .rank-info h3 { color: var(--pink); }
.rank-info p { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 22px; }
.rank-info p i { margin-right: 6px; color: var(--purple); }
.rank-hot { font-size: 13px; color: var(--orange); flex-shrink: 0; }
.rank-hot i { margin-right: 5px; }
.rank-price { font-size: 22px; font-weight: 800; color: var(--pink); flex-shrink: 0; width: 110px; text-align: right; }
.rank-price em { font-style: normal; font-size: 13px; font-weight: normal; }

/* ---------- 发布流程 ---------- */
.sec-head.center { justify-content: center; }
.sec-head.center .sec-title { flex-direction: column; gap: 0; text-align: center; }
.sec-head.center .sec-title .icon { margin-bottom: 14px; }
.step-flow { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 0 0; }
.step { width: 240px; text-align: center; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 86px; height: 86px; border-radius: 50%;
  background: linear-gradient(135deg, #fde8f3, #f3e8fd);
  color: var(--pink); font-size: 30px; margin-bottom: 18px;
  position: relative;
  transition: all .35s ease;
}
.step-no::after {
  content: ""; position: absolute; top: -6px; right: -6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 28px; text-align: center;
  content: counter(step-c); counter-increment: step-c;
}
.step-flow { counter-reset: step-c; }
.step-no::after { content: counter(step-c); }
.step:hover .step-no {
  background: var(--grad); color: #fff; transform: translateY(-6px) scale(1.04);
  box-shadow: 0 14px 28px rgba(236, 72, 153, .35);
}
.step h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.step-line { color: #e3c8f0; font-size: 22px; margin-top: 32px; }

/* ---------- 会员权益 ---------- */
.vip-sec { background: #fff; }
.vip-banner {
  border-radius: 20px; padding: 50px 56px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .14) 0 140px, transparent 141px),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, .10) 0 110px, transparent 111px),
    linear-gradient(120deg, #4c1d95 0%, #7c3aed 45%, #c026d3 78%, #ec4899 100%);
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.vip-left { width: 620px; }
.vip-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 18px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
  font-size: 12px; letter-spacing: 2px;
}
.vip-left h2 { font-size: 32px; letter-spacing: 1px; margin-bottom: 14px; }
.vip-left h2 span { color: #ffd166; }
.vip-desc { font-size: 14px; color: rgba(255, 255, 255, .82); margin-bottom: 22px; }
.vip-list { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-bottom: 30px; }
.vip-list li { font-size: 14px; color: rgba(255, 255, 255, .92); }
.vip-list i { margin-right: 8px; color: #ffd166; }
.vip-btns { display: flex; align-items: center; gap: 22px; }
.vip-price { font-size: 13px; color: rgba(255, 255, 255, .8); }
.vip-price strong { font-size: 30px; color: #ffd166; margin-left: 8px; }
.vip-price strong i { font-style: normal; font-size: 14px; }
.vip-right { display: flex; gap: 18px; }
.vip-card {
  width: 200px; padding: 26px 22px;
  background: rgba(255, 255, 255, .96); border-radius: 16px; color: var(--ink);
  transition: all .3s ease;
}
.vip-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(59, 10, 89, .4); }
.vip-card.hot {
  background: linear-gradient(160deg, #fff7fb, #fdeef9);
  border: 1px solid rgba(236, 72, 153, .35);
}
.vc-title { font-size: 14px; color: var(--purple-deep); margin-bottom: 12px; }
.vc-title i { margin-right: 6px; color: var(--pink); }
.vc-price { font-size: 36px; font-weight: 800; color: var(--pink); }
.vc-price em, .vc-price-year em { font-style: normal; font-size: 15px; }
.vc-price em { margin-right: 2px; }
.vc-note { font-size: 12px; color: var(--muted); margin: 8px 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.vc-price-year { font-size: 17px; font-weight: 700; color: var(--purple-deep); }
.vc-price-year em { color: var(--muted); font-weight: normal; margin-left: 2px; }

/* ---------- 温馨提示 ---------- */
.tips-bar {
  display: flex; align-items: center;
  background: linear-gradient(90deg, #fdf0f8, #f6edfd);
  border: 1px solid #f3dcf0; border-radius: var(--radius);
  padding: 22px 30px;
}
.tips-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; border-right: 1px dashed #ecd6ec; }
.tips-head i {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px rgba(236, 72, 153, .3);
}
.tips-head strong { display: block; font-size: 17px; color: var(--ink); }
.tips-head span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.tips-items { flex: 1; display: flex; justify-content: space-around; padding-left: 20px; }
.tips-items p { font-size: 13px; color: var(--text); }
.tips-items i { margin-right: 8px; color: var(--pink); }
