/* ===================
   星愿会员中心 /vip
   =================== */

.vip-page {
  position: relative;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.vip-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 56%;
  background:
    radial-gradient(circle at 20% 18%,rgba(121,91,255,.52),transparent 34%),
    radial-gradient(circle at 78% 12%,rgba(255,199,91,.24),transparent 30%),
    linear-gradient(145deg,#151a5c,#090d31 72%);
  z-index: 0;
  pointer-events: none;
  filter: blur(5px) brightness(0.55);
  transform: scale(1.04);
}

.vip-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 46, 0.92) 100%);
  pointer-events: none;
}

.vip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at 70% 20%, rgba(91, 80, 180, 0.08) 0%, transparent 55%),
              linear-gradient(180deg, rgba(10, 14, 50, 0.2) 0%, transparent 30%, rgba(10, 14, 50, 0.25) 100%);
  z-index: 0;
  pointer-events: none;
}

.vip-scroll {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 286px;
  gap: 12px;
  padding: 8px 24px 20px 28px;
  min-height: 100%;
}

/* ===== Hero ===== */
.vip-hero {
  grid-column: 1;
  position: relative;
  padding-top: 14px;
  padding-left: 22px;
  margin-bottom: 4px;
}

.vip-hero::before {
  content: '';
  position: absolute;
  top: -90px;
  left: -24px;
  right: -24px;
  bottom: -18px;
  background: linear-gradient(135deg, rgba(20, 26, 80, 1) 0%, rgba(20, 26, 80, 0.95) 40%, rgba(20, 26, 80, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  z-index: -1;
  pointer-events: none;
}

.vip-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: transparent;
  background: linear-gradient(180deg, #FFF5C8 0%, #FFD166 50%, #F4B942 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(244, 197, 66, 0.35);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.vip-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.vip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 22px;
  background: rgba(20, 26, 80, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vip-tag:hover,
.vip-tag.active {
  background: linear-gradient(135deg, rgba(123, 108, 219, 0.75), rgba(91, 80, 180, 0.55));
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 18px rgba(123, 108, 219, 0.45);
  color: #FFE5A0;
}

.vip-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== 按钮 ===== */
.vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.vip-btn-gold {
  background: linear-gradient(180deg, #FFF5C8 0%, #FFD166 50%, #F4B942 100%);
  color: #5C3D05;
  box-shadow: 0 4px 0 #C97D20, 0 8px 20px rgba(244, 197, 66, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.vip-btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #C97D20, 0 14px 28px rgba(244, 197, 66, 0.55);
}

.vip-btn-gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #C97D20, 0 5px 12px rgba(244, 197, 66, 0.38);
}

.vip-btn-outline {
  background: rgba(123, 108, 219, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.vip-btn-outline:hover {
  background: rgba(123, 108, 219, 0.55);
  border-color: rgba(255, 209, 102, 0.45);
  transform: translateY(-2px);
}

.vip-btn-block {
  width: 100%;
  padding: 12px;
}

.vip-btn-small {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 22px;
}

.vip-btn-star {
  font-size: 14px;
}

.vip-btn-arrow {
  font-size: 18px;
  font-weight: 400;
  margin-left: 2px;
}

.vip-btn-claimed {
  opacity: 0.85;
  cursor: default;
}

.vip-btn-claimed:hover {
  transform: none;
  box-shadow: 0 4px 0 #C97D20, 0 8px 20px rgba(244, 197, 66, 0.42);
}

/* ===== 右侧边栏 ===== */
.vip-sidebar {
  grid-column: 2;
  grid-row: 1 / span 5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.vip-sidebar::before {
  content: '';
  position: absolute;
  top: -72px;
  left: -14px;
  right: -14px;
  bottom: -20px;
  background: rgba(16, 20, 60, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  z-index: -1;
  pointer-events: none;
}

.vip-side-card {
  background: rgba(26, 31, 92, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: #FFFFFF;
}

.vip-side-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.vip-side-label {
  color: rgba(255, 255, 255, 0.72);
}

.vip-side-badge {
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.vip-side-badge-muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.vip-side-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 800;
  color: #FFE5A0;
}

.vip-star-icon {
  font-size: 13px;
}

.vip-side-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 4px;
}

.vip-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vip-side-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFE5A0;
}

.vip-side-rule,
.vip-side-more,
.vip-rec-all {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.vip-side-rule:hover,
.vip-side-more:hover,
.vip-rec-all:hover {
  color: #FFE5A0;
}

.vip-gift-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.vip-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.vip-gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-gift-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.vip-gift-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.vip-gift-star { background: linear-gradient(135deg, #FFD166, #F4B942); }
.vip-gift-potion { background: linear-gradient(135deg, #C879FF, #7B6CDB); }
.vip-gift-ticket { background: linear-gradient(135deg, #5B9FE8, #2E6FBD); }
.vip-gift-piece { background: linear-gradient(135deg, #6FD89A, #3AAE6F); }

.vip-gift-count {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.vip-gift-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

/* 专属推荐 */
.vip-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: #FFFFFF;
  transition: background 0.2s ease;
}

.vip-rec-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vip-rec-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vip-rec-info {
  flex: 1;
  min-width: 0;
}

.vip-rec-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.vip-rec-tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3px;
}

.vip-rec-price {
  font-size: 11px;
  font-weight: 700;
  color: #FFE5A0;
}

.vip-rec-free {
  color: #6FD89A;
}

.vip-rec-all {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
}

/* ===== 会员套餐卡片 ===== */
.vip-main {
  grid-column: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: rgba(16, 20, 60, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.vip-main::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 26, 80, 0.75) 0%, rgba(10, 14, 50, 0.65) 100%);
  z-index: -1;
  pointer-events: none;
}

.vip-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.vip-plan-card {
  position: relative;
  border-radius: 22px;
  padding: 12px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.vip-plan-card:hover,
.vip-plan-card.selected {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.vip-plan-moon {
  background: linear-gradient(180deg, #6BA3E8 0%, #7B6CDB 100%);
}

.vip-plan-star {
  background: linear-gradient(180deg, #9B7BFF 0%, #5B4DB8 100%);
  border-color: rgba(255, 209, 102, 0.55);
}

.vip-plan-family {
  background: linear-gradient(180deg, #E879A8 0%, #7B6CDB 100%);
}

.vip-plan-recommended {
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.35), 0 12px 32px rgba(0, 0, 0, 0.28);
}

.vip-plan-recommend-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFD166, #F4B942);
  color: #5C3D05;
  font-size: 11px;
  font-weight: 800;
}

.vip-plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vip-plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.vip-plan-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.vip-plan-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.vip-plan-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.vip-plan-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  min-height: 90px;
}

.vip-plan-benefits li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.vip-plan-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.vip-plan-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.vip-plan-price {
  display: flex;
  align-items: baseline;
  color: #FFFFFF;
}

.vip-plan-unit {
  font-size: 16px;
  font-weight: 700;
}

.vip-plan-num {
  font-size: 30px;
  font-weight: 900;
}
.vip-plan-num-text {
  font-size: 22px;
  letter-spacing: 1px;
}

.vip-plan-cycle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.vip-btn-plan {
  padding: 9px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.vip-btn-plan:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ===== 权益图标行 ===== */
.vip-benefits-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.vip-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(26, 31, 92, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.vip-benefit-item:hover {
  background: rgba(40, 48, 120, 0.92);
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.vip-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.vip-benefit-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
  background: linear-gradient(135deg, rgba(123, 108, 219, 0.7), rgba(91, 80, 180, 0.5));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.vip-benefit-item h4 {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.vip-benefit-item p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

/* ===== 权益对比表格 ===== */
.vip-compare {
}

.vip-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFE5A0;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vip-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(26, 31, 92, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.vip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #FFFFFF;
}

.vip-table th,
.vip-table td {
  padding: 7px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-table th {
  background: rgba(123, 108, 219, 0.35);
  font-weight: 700;
  color: #FFE5A0;
}

.vip-table th:first-child,
.vip-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.vip-table tbody tr {
  transition: background 0.2s ease;
  cursor: pointer;
}

.vip-table tbody tr:hover,
.vip-table tbody tr.selected {
  background: rgba(255, 255, 255, 0.08);
}

.vip-table tbody tr:last-child td {
  border-bottom: none;
}

.vip-table-highlight {
  background: rgba(255, 209, 102, 0.12);
  color: #FFF5C8;
  font-weight: 700;
}

.vip-table-icon {
  margin-right: 4px;
}

/* ===== 底部横幅 ===== */
.vip-bottom-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(91, 80, 180, 0.92) 0%, rgba(123, 108, 219, 0.85) 60%, rgba(91, 80, 180, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  padding: 12px 20px;
  min-height: 82px;
  display: flex;
  align-items: center;
}

.vip-banner-content {
  position: relative;
  z-index: 1;
  max-width: 60%;
}

.vip-banner-text {
  font-size: 15px;
  line-height: 1.7;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.vip-banner-star {
  color: #FFD166;
  font-size: 18px;
  margin-right: 4px;
}

.vip-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== 滚动条美化 ===== */
.vip-scroll::-webkit-scrollbar {
  width: 6px;
}

.vip-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.vip-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.vip-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
  .vip-scroll {
    grid-template-columns: 1fr 260px;
  }
  .vip-plans {
    grid-template-columns: 1fr;
  }
  .vip-benefits-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .vip-plan-benefits {
    min-height: auto;
  }
}

@media (max-width: 1100px) {
  .vip-scroll {
    grid-template-columns: 1fr;
  }
  .vip-sidebar {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .vip-side-rec {
    grid-column: 1 / -1;
  }
  .vip-benefits-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vip-title {
    font-size: 34px;
  }
  .vip-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .vip-tags {
    gap: 8px;
  }
  .vip-tag {
    font-size: 12px;
    padding: 7px 12px;
  }
  .vip-sidebar {
    grid-template-columns: 1fr;
  }
  .vip-benefits-row {
    grid-template-columns: 1fr 1fr;
  }
  .vip-table th,
  .vip-table td {
    padding: 8px 6px;
    font-size: 10px;
  }
}
