/* Membership plans */
.membership-plans {
  display: grid;
  grid-template-columns: repeat(2, 240px);
  gap: 16px;
  margin-top: 14px;
}

.plan-card {
  position: relative;
  border: 2px solid var(--line-dark);
  background: var(--white);
  padding: 20px 16px;
  text-align: center;
  overflow: hidden;
}

.plan-card h3 {
  margin-bottom: 14px;
  font-size: 28px;
  font-family: var(--font-display, "Microsoft YaHei", sans-serif);
  font-weight: 900;
}

.plan-ribbon {
  position: absolute;
  right: -6px;
  top: -6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: ribbon-sway 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes ribbon-sway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-12deg); }
}

.plan-card.genesis .plan-ribbon {
  animation: ribbon-sway 3s ease-in-out infinite;
}

.plan-card.genesis:hover .plan-ribbon {
  animation-duration: 1.5s;
  filter: drop-shadow(0 2px 8px rgba(197,160,40,0.6));
}

.plan-card .price {
  margin: 18px 0 14px;
  font-family: var(--font-display, "Microsoft YaHei", sans-serif);
  font-weight: 900;
}

/* ===== MiSans 展示字体：Heavy 主标题 / DemiBold 次级 ===== */

.intro-panel h1,
.plain-box h2,
.section-heading h2 {
  font-family: var(--font-display, "Microsoft YaHei", sans-serif);
}

.intro-panel h1 {
  font-weight: 900;
}

.plain-box h2,
.section-heading h2 {
  font-family: var(--font-display, "Microsoft YaHei", sans-serif);
  font-weight: 600;
}

.plan-card form {
  margin-top: 128px;
}

/* ===== 创世会员 — 暗黑破坏神2 全特效 ===== */

.plan-card.genesis {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139,105,20,0.12), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139,105,20,0.08), transparent 50%),
    linear-gradient(160deg, #1a1410 0%, #0d0a08 100%);
  border: 2px solid #8b6914;
  box-shadow:
    0 0 0 1px #c5a028 inset,
    0 0 12px rgba(197,160,40,0.4),
    0 0 30px rgba(139,105,20,0.2);
  animation: genesis-breathe 3s ease-in-out infinite;
}

@keyframes genesis-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px #c5a028 inset,
      0 0 12px rgba(197,160,40,0.4),
      0 0 30px rgba(139,105,20,0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px #e8c44a inset,
      0 0 20px rgba(197,160,40,0.6),
      0 0 45px rgba(139,105,20,0.35);
  }
}

/* 石质纹理叠加 */
.plan-card.genesis::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.015) 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.01) 1px, transparent 2px),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.012) 1px, transparent 2px);
  background-size: 80px 80px, 60px 60px, 100px 100px;
  pointer-events: none;
}

/* 粒子画布 */
.genesis-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 标题 — 金色渐变发光 */
.plan-card.genesis h3 {
  background: linear-gradient(180deg, #f5d76e 0%, #c5a028 50%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 12px rgba(197,160,40,0.5),
    0 0 24px rgba(139,105,20,0.3);
  letter-spacing: 2px;
}

/* 价格 — 暗金 */
.plan-card.genesis .price {
  color: #c5a028;
  text-shadow: 0 0 8px rgba(197,160,40,0.3);
}

/* 有效期文字 */
.plan-card.genesis .muted {
  color: #6b5d3e;
}

/* 开通按钮 — SVG 暗黑风格 */
.genesis-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: filter 0.3s ease;
}

.genesis-btn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(139,105,20,0.4));
  transition: filter 0.3s ease;
}

.genesis-btn-text {
  position: relative;
  z-index: 1;
  color: #c5a028;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(197,160,40,0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.genesis-btn:hover .genesis-btn-bg {
  filter: drop-shadow(0 0 12px rgba(197,160,40,0.7));
}

.genesis-btn:hover .genesis-btn-text {
  color: #f5d76e;
  text-shadow: 0 0 12px rgba(245,215,110,0.7);
}

.genesis-btn:active .genesis-btn-bg {
  filter: drop-shadow(0 0 4px rgba(139,105,20,0.3)) brightness(0.8);
}

/* hover — 整体发光强化 */
.plan-card.genesis:hover {
  animation: genesis-breathe 1.5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px #e8c44a inset,
    0 0 25px rgba(197,160,40,0.6),
    0 0 60px rgba(139,105,20,0.4);
}
