/* ===== 吞噬天帝 · 游戏首页 Landing ===== */
.landing {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #ECE6D8;
}

/* ---- 英雄 banner ---- */
.landing-hero {
  position: relative;
  margin: 0 -16px 28px;
  padding: 64px 24px 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 380px at 50% -10%, rgba(214,178,92,0.22), transparent 60%),
    linear-gradient(160deg, #1a1530 0%, #241a3e 45%, #2c1d3a 100%);
  border-bottom: 1px solid rgba(214,178,92,0.25);
}
.landing-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1.5px 1.5px at 45% 70%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 85% 60%, rgba(255,255,255,0.3), transparent);
  opacity: .6; pointer-events: none;
}
.landing-badge {
  display: inline-block;
  font-size: 13px; letter-spacing: 2px;
  color: #D6B25C; border: 1px solid rgba(214,178,92,0.5);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.landing-title {
  font-size: 52px; font-weight: 800; letter-spacing: 6px;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #F4E4B0, #D6B25C 60%, #B07C2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 18px rgba(214,178,92,0.25);
  position: relative; z-index: 1;
}
.landing-sub {
  font-size: 16px; color: #C9BEA8; margin: 0 auto 26px; max-width: 560px;
  position: relative; z-index: 1; line-height: 1.7;
}
.landing-actions {
  position: relative; z-index: 1;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.landing-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 13px 30px; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease;
}
.landing-btn-primary {
  background: linear-gradient(135deg, #E2BE5E, #B07C2E);
  color: #2b1d08; box-shadow: 0 6px 20px rgba(176,124,46,0.4);
}
.landing-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(176,124,46,0.5); }
.landing-btn-ghost {
  background: transparent; color: #D6B25C; border: 1px solid rgba(214,178,92,0.5);
}
.landing-btn-ghost:hover { background: rgba(214,178,92,0.1); }

/* ---- 特色异兽展示 ---- */
.landing-beasts {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; position: relative; z-index: 1;
}
.landing-beast {
  width: 104px; text-align: center;
}
.landing-beast img {
  width: 104px; height: 104px; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(214,178,92,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  background: #15101f;
}
.landing-beast span {
  display: block; margin-top: 7px; font-size: 13px; color: #C9BEA8;
}

/* ---- 玩法简介 ---- */
.landing-section { margin-top: 40px; }
.landing-section h2 {
  font-size: 22px; color: #F4E4B0; margin-bottom: 6px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.landing-section h2::before {
  content: ''; width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(#E2BE5E, #B07C2E);
}
.landing-section .sec-sub { color: #9C917C; font-size: 14px; margin-bottom: 18px; }
.landing-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.landing-card {
  background: linear-gradient(160deg, #221a36, #1b1430);
  border: 1px solid rgba(214,178,92,0.18);
  border-radius: 14px; padding: 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.landing-card:hover { border-color: rgba(214,178,92,0.5); transform: translateY(-2px); }
.landing-card .lc-icon { font-size: 26px; margin-bottom: 8px; }
.landing-card .lc-title { font-size: 16px; font-weight: 700; color: #F4E4B0; margin-bottom: 6px; }
.landing-card .lc-desc { font-size: 13px; color: #B4A991; line-height: 1.65; }

/* ---- 底部 CTA ---- */
.landing-cta {
  margin-top: 40px; text-align: center;
  background: linear-gradient(160deg, #241a3e, #2c1d3a);
  border: 1px solid rgba(214,178,92,0.25);
  border-radius: 16px; padding: 30px 20px;
}
.landing-cta p { color: #C9BEA8; margin-bottom: 18px; font-size: 15px; }

.landing-foot {
  margin-top: 36px; text-align: center; font-size: 12px; color: #6f6757;
}

@media (max-width: 560px) {
  .landing-title { font-size: 40px; letter-spacing: 3px; }
  .landing-cards { grid-template-columns: 1fr; }
  .landing-beast { width: 84px; }
  .landing-beast img { width: 84px; height: 84px; }
}

/* ===== 二级页入口卡片（山海游戏门户 4 入口） ===== */
.landing-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.landing-card-link:hover {
  border-color: rgba(214, 178, 92, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(176, 124, 46, 0.28);
}
.landing-card-link .lc-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: #D9C77A;
  letter-spacing: 1px;
  text-align: right;
  opacity: .85;
  transition: opacity .15s ease, transform .15s ease;
}
.landing-card-link:hover .lc-cta {
  opacity: 1;
  transform: translateX(2px);
}
.landing-card-primary {
  border-color: rgba(214, 178, 92, 0.65);
  background: linear-gradient(180deg, rgba(214, 178, 92, 0.12), rgba(28, 22, 16, 0.85));
}
.landing-card-primary .lc-title::after {
  content: " · 推荐";
  color: #D9C77A;
  font-size: 12px;
  margin-left: 4px;
}
.landing-card-link code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  background: rgba(0,0,0,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  color: #D9C77A;
}

/* ---- 玩法简介网格（6 卡自适应列数） ---- */
.landing-cards-gameplay {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .landing-cards-gameplay { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .landing-cards-gameplay { grid-template-columns: 1fr; }
}

/* ===== 玩法详情弹窗 Modal ===== */
.gp-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.gp-modal.is-open { display: flex; }
.gp-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 6, 14, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.gp-modal-content {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: 86vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #241a3e 0%, #1a1330 100%);
  border: 1px solid rgba(214,178,92,0.45);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  animation: gpPop .18s ease-out;
}
@keyframes gpPop {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.gp-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; line-height: 1;
  border: 1px solid rgba(214,178,92,0.4);
  background: rgba(0,0,0,0.25); color: #D6B25C;
  font-size: 22px; border-radius: 50%; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  z-index: 2;
}
.gp-modal-close:hover { background: rgba(214,178,92,0.18); transform: rotate(90deg); }
.gp-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(214,178,92,0.22);
}
.gp-modal-icon {
  font-size: 34px; line-height: 1;
  filter: drop-shadow(0 2px 10px rgba(214,178,92,0.35));
}
.gp-modal-title {
  font-size: 21px; font-weight: 800; color: #F4E4B0;
  letter-spacing: 1px;
}
.gp-modal-body {
  padding: 8px 24px 4px;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}
.gp-modal-body::-webkit-scrollbar { width: 8px; }
.gp-modal-body::-webkit-scrollbar-thumb {
  background: rgba(214,178,92,0.35); border-radius: 4px;
}
.gp-section { padding: 14px 0; border-bottom: 1px dashed rgba(214,178,92,0.16); }
.gp-section:last-child { border-bottom: none; }
.gp-section-title {
  font-size: 14px; font-weight: 700; color: #D6B25C;
  margin-bottom: 7px; display: flex; align-items: center; gap: 8px;
}
.gp-section-title::before {
  content: ''; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(#E2BE5E, #B07C2E);
}
.gp-section-body {
  font-size: 14px; color: #C9BEA8; line-height: 1.75;
}
.gp-synergy-list {
  list-style: none; margin: 10px 0 2px; padding: 0;
  display: grid; gap: 8px;
}
.gp-synergy-list li {
  position: relative;
  font-size: 13px; color: #B4A991; line-height: 1.6;
  padding: 9px 12px 9px 32px;
  background: rgba(214,178,92,0.07);
  border: 1px solid rgba(214,178,92,0.18);
  border-radius: 10px;
}
.gp-synergy-list li::before {
  content: '⚔'; position: absolute; left: 11px; top: 9px;
  color: #D6B25C; font-size: 13px;
}
.gp-modal-foot {
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(214,178,92,0.22);
  text-align: center;
}
.gp-modal-foot .landing-btn { width: 100%; justify-content: center; }
