/* ================= 入口页(全屏 · 菜单可展开可收缩) ================= */
.entry {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; /* 默认穿透,站点永远可点 */
  display: flex; align-items: center; justify-content: center;
  background: #000; overflow: hidden; transition: opacity .45s ease, visibility .45s ease;
}
.entry.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.entry-bg {
  position: absolute; inset: -4%; background: #000 url('/blackhole.jpg') center / cover no-repeat;
  filter: brightness(.62) saturate(.9); transform: scale(1.04); animation: entryBreath 26s ease-in-out infinite alternate;
}
@keyframes entryBreath { from { transform: scale(1.04); } to { transform: scale(1.1) translateY(-1.5%); } }
.entry::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 46%, rgba(0,0,0,.15), rgba(0,0,0,.72) 68%, #000 100%);
}

/* 左侧朱可夫:contain 铺在左下 + 径向遮罩,四边渐隐成暗角 */
.entry-zhukov-wrap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: min(38vw, 560px); height: min(92vh, 860px);
  background: url('/zhukov-portrait.png') left bottom / contain no-repeat;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 105% at 20% 82%, #000 45%, rgba(0, 0, 0, .65) 66%, transparent 90%);
  mask-image: radial-gradient(120% 105% at 20% 82%, #000 45%, rgba(0, 0, 0, .65) 66%, transparent 90%);
}
.entry-zhukov { display: none; }

/* 全屏居中:标志、站名、进入 / 展开按钮(不再是"小小的展示不出来") */
.entry-center {
  position: relative; z-index: 3; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 0 clamp(16px, 5vw, 40px);
  transition: opacity .22s ease, transform .22s ease;
}
.entry-center.behind { opacity: 0; transform: scale(.96); pointer-events: none; }
.entry-logo {
  width: clamp(96px, 13vw, 148px); height: clamp(96px, 13vw, 148px); border-radius: 26px;
  box-shadow: 0 22px 60px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
  animation: entryFloat 6s ease-in-out infinite alternate;
}
@keyframes entryFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.entry-name {
  font-size: clamp(28px, 4.4vw, 54px); font-weight: 800; letter-spacing: .04em; color: #f3e9dc;
  text-shadow: 0 4px 28px rgba(0,0,0,.85); line-height: 1.15;
}
.entry-sub { font-size: clamp(12.5px, 1.6vw, 16px); color: #b9a894; letter-spacing: .16em; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.entry-acts { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.entry-go {
  padding: 14px 52px; font-size: 16.5px; font-weight: 800; letter-spacing: .12em;
  border-radius: 14px;
}
.entry-expand {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 700;
  color: #efe3d2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); transition: background .15s ease, border-color .15s ease;
}
.entry-expand:hover { background: rgba(255,255,255,.12); border-color: var(--brand); color: #fff3e2; }
.entry-hint { margin-top: 6px; font-size: 12px; color: #a8998a; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0, 0, 0, .95); }

@media (prefers-reduced-motion: reduce) { .entry-bg, .entry-logo { animation: none; } }

/* ==================== 页面底色设置(纯黑 / 黑洞图片) ==================== */
body.bg-black { background: #000 !important; }
body.bg-black .netbg, body.bg-black #netbg-bg { display: none !important; }
body.bg-hole { background: #060504 url('/blackhole.jpg') center / cover fixed no-repeat !important; }

/* ==================== 右上角:三条杠 + 我的(并列固定) ==================== */
.entry-topright {
  position: absolute; top: 12px; right: 14px; z-index: 40;
  display: flex; align-items: center; gap: 8px;
}
.entry-bars {
  position: static; z-index: 6;
  width: 40px; height: 40px; padding: 10px 9px; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(18,16,14,.72); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); backdrop-filter: blur(8px); cursor: pointer;
}
.entry-bars span {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: #efe3d2; transition: transform .22s ease, opacity .22s ease;
}
.entry-bars:hover { border-color: var(--brand); }
.entry-bars:hover span { background: #fff3e2; }
.entry-bars[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.entry-bars[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.entry-bars[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.entry-me {
  width: 40px; height: 40px; padding: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: rgba(18,16,14,.72); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); backdrop-filter: blur(8px);
}
.entry-me img { border-radius: 8px; }
.entry-me:hover { border-color: var(--brand); }

/* ==================== 全屏菜单(展开铺满视口 / 收缩回到入口页) ==================== */
.entry-menu {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(6, 5, 4, .96);
  backdrop-filter: blur(10px);
  display: flex; justify-content: center;
  animation: emIn .22s ease;
  overflow: hidden;
}
@keyframes emIn { from { opacity: 0; } to { opacity: 1; } }
.entry-menu[hidden] { display: none; }
.entry-menu-inner {
  width: min(1120px, 100%); height: 100%;
  padding: clamp(18px, 4vh, 40px) clamp(18px, 5vw, 56px) 32px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(to bottom, rgba(16,14,12,.98), rgba(9,8,7,.96));
  animation: emSlide .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes emSlide { from { transform: translateY(14px); } to { transform: none; } }
.em-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 clamp(14px, 3vh, 26px);
  padding: 6px 0 12px 0; padding-right: 92px;
  background: linear-gradient(to bottom, rgba(14,12,10,.98) 70%, rgba(14,12,10,0));
}
.em-brand { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, 2vw, 19px); font-weight: 800; letter-spacing: .06em; color: #f0e6d8; }
.em-brand img { border-radius: 8px; }
.em-close {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.2); color: #d9cbba;
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
}
.em-close:hover { border-color: var(--brand); color: #fff3e2; }
.em-sub { margin: clamp(16px, 3vh, 26px) 0 10px; font-size: 12px; letter-spacing: .16em; color: #8e8073; }
.em-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.em-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-card {
  display: flex; flex-direction: column; gap: 5px; padding: clamp(14px, 2vh, 22px) clamp(14px, 1.6vw, 20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  background: rgba(255,255,255,.03); text-decoration: none; color: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.em-card:hover { border-color: var(--brand); background: rgba(201,133,90,.1); transform: translateY(-2px); }
.em-card b { font-size: clamp(15px, 1.6vw, 18px); color: #f2e8da; }
.em-card span { font-size: 12.5px; color: #a8998a; line-height: 1.55; }
.em-forum { display: flex; flex-wrap: wrap; gap: 8px; }
.em-forum a {
  padding: 9px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.12); color: #e6d8c6; font-size: 13.5px;
}
.em-forum a:hover { border-color: var(--brand); color: #fff3e2; }
.em-foot { margin-top: clamp(22px, 4vh, 36px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.em-start { padding: 12px 32px; border-radius: 12px; background: var(--brand); color: #1a1208; font-weight: 800; text-decoration: none; }
.em-hint { font-size: 12px; color: #8e8073; }

@media (max-width: 900px) { .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .em-grid, .em-grid-2 { grid-template-columns: 1fr; }
  .entry-menu-inner { padding: 16px 14px 28px; }
  .em-card { padding: 13px 15px; }
  .entry-zhukov-wrap { width: 52vw; opacity: .42; }
  .entry-topright { top: 10px; right: 10px; gap: 6px; }
  .entry-bars, .entry-me { width: 38px; height: 38px; border-radius: 11px; }
  .entry-bars { padding: 9px 8px; }
  .entry-bars[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .entry-bars[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .entry-acts { flex-direction: column; width: 100%; max-width: 320px; }
  .entry-go, .entry-expand { width: 100%; justify-content: center; }
}

/* 入口页:只有这些区域吃点击,其余穿透 */
.entry-center, .entry-topright, .entry-menu, .entry-zhukov-wrap { pointer-events: auto; }
.entry.hidden { pointer-events: none !important; }
/* 全屏菜单展开时锁住背景滚动 */
body.entry-menu-open { overflow: hidden; }
