/* ============================================================
   GMC · 全台统一入口面板（三套入口共用，独立于各自视觉系统）
   ============================================================ */
.gem-btn,
.entry-btn {
  display:inline-grid; place-items:center; flex:none;
  width:26px; height:22px; padding:0; border-radius:7px; cursor:pointer;
  border:1px solid rgba(216,180,92,.34); background:rgba(216,180,92,.08);
  color:var(--gold-bright,#f3d793); font-size:12px; line-height:1; letter-spacing:.08em;
}
.entry-btn:hover { background:rgba(216,180,92,.18); }
.entry-btn:active { transform:scale(.94); }
/* 第二十九轮 · 入口按钮图标：1em 继承，居中不挤压 */
.entry-btn iconify-icon,.entry-btn .ic-fb{font-size:14px;width:14px;height:14px;display:block}
@media (max-width:360px){.entry-btn iconify-icon,.entry-btn .ic-fb{font-size:12px;width:12px;height:12px}}

.gem-mask {
  position:fixed; inset:0; z-index:200; display:none;
  background:rgba(2,2,4,.66); backdrop-filter:blur(3px);
}
.gem-mask.show { display:block; }
.gem-panel {
  position:fixed; z-index:201; right:16px; top:56px;
  width:330px; max-width:calc(100vw - 24px);
  max-height:min(78dvh,760px); overflow-y:auto; overscroll-behavior:contain;
  padding:16px; border-radius:16px;
  border:1px solid rgba(216,180,92,.34);
  background:linear-gradient(160deg,#17161b,#0c0c10 70%);
  box-shadow:0 30px 80px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.03) inset;
  color:var(--text,#f2ede2);
  font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  opacity:0; transform:translateY(-8px); pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.gem-panel.show { opacity:1; transform:none; pointer-events:auto; }
.gem-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:12px; }
.gem-kicker { font-size:9.5px; letter-spacing:.2em; color:var(--gold-deep,#8e6f2a); text-transform:uppercase; }
.gem-head h3 { margin:4px 0 0; font-size:15px; font-weight:600; letter-spacing:.03em; }
.gem-x { width:26px; height:26px; border-radius:8px; border:1px solid rgba(255,255,255,.1); color:var(--muted,#9c968a); font-size:12px; cursor:pointer; display:inline-flex;align-items:center;justify-content:center; }
.gem-x iconify-icon,.gem-x .ic-fb{font-size:15px;width:15px;height:15px}
.gem-x:hover { color:var(--text,#f2ede2); background:rgba(255,255,255,.06); }
.gem-status { background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.07); border-radius:11px; padding:8px 11px; margin-bottom:14px; }
.gem-kv { display:flex; justify-content:space-between; gap:10px; padding:5px 0; font-size:11.5px; border-bottom:1px solid rgba(255,255,255,.045); }
.gem-kv:last-child { border-bottom:0; }
.gem-kv span { color:var(--dim,#6e695f); flex:none; }
.gem-kv b { font-weight:600; text-align:right; word-break:break-all; }
.gem-kv b.ok { color:#6fdc8c; } .gem-kv b.bad { color:#e0685c; }
.gem-loading { padding:10px 0; font-size:11.5px; color:var(--dim,#6e695f); }
.gem-sec-title { font-size:10px; letter-spacing:.16em; color:var(--gold-deep,#8e6f2a); text-transform:uppercase; margin:14px 2px 8px; }
.gem-entries { display:grid; gap:7px; }
.gem-entry { position:relative; display:block; padding:10px 34px 10px 12px; border-radius:10px; text-decoration:none; color:var(--text,#f2ede2); border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); }
.gem-entry:hover { border-color:rgba(216,180,92,.42); background:rgba(216,180,92,.07); }
.gem-entry.on { border-color:rgba(216,180,92,.5); background:linear-gradient(90deg,rgba(216,180,92,.16),rgba(216,180,92,.03)); }
.gem-ent-t { display:block; font-size:12.5px; font-weight:600; }
.gem-ent-t i { font-style:normal; font-size:9.5px; margin-left:7px; padding:1px 6px; border-radius:7px; background:rgba(216,180,92,.2); color:var(--gold-bright,#f3d793); }
.gem-ent-d { display:block; font-size:10.5px; color:var(--dim,#6e695f); margin-top:3px; }
.gem-entry > b { position:absolute; right:10px; top:50%; transform:translateY(-50%); font-size:9.5px; font-weight:500; color:var(--gold,#d8b45c); }
.gem-flow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.gem-flow a { display:flex; align-items:center; gap:6px; min-width:0; padding:7px 8px; border-radius:9px; text-decoration:none; color:var(--muted,#9c968a); border:1px solid rgba(255,255,255,.07); font-size:11px; }
.gem-flow a:hover { color:var(--gold-bright,#f3d793); border-color:rgba(216,180,92,.35); }
.gem-flow a > span { flex:none; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; background:rgba(216,180,92,.14); color:var(--gold,#d8b45c); font-size:9px; }
.gem-flow a > code { display:none; }
.gem-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; padding-top:11px; border-top:1px solid rgba(255,255,255,.07); font-size:10.5px; color:var(--dim,#6e695f); }
.gem-foot button { padding:5px 10px; border-radius:8px; border:1px solid rgba(224,104,92,.4); color:#e9a49c; font-size:10.5px; cursor:pointer; display:inline-flex;align-items:center;gap:6px; }
.gem-foot button iconify-icon,.gem-foot button .ic-fb{font-size:12px;width:12px;height:12px}
.gem-foot button:hover { background:rgba(224,104,92,.1); }

/* 手机：底部抽屉全宽，避开 WAP 右下角目录按钮 */
@media (max-width:719px) {
  .gem-panel {
    right:0; left:0; top:auto; bottom:0; width:100%; max-width:none;
    max-height:84dvh; border-radius:18px 18px 0 0;
    padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));
    transform:translateY(16px);
  }
  .gem-panel.show { transform:none; }
  .gem-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:360px) {
  .gem-panel { padding-left:12px; padding-right:12px; }
  .gem-flow { grid-template-columns:1fr; }
  .gem-flow a > code { display:inline; margin-left:auto; font-size:9px; opacity:.6; }
}
/* 矮屏横屏：控制高度，保证可滚动 */
@media (max-height:520px) and (orientation:landscape) {
  .gem-panel { top:8px; bottom:auto; max-height:92dvh; }
}
@media (prefers-reduced-motion:reduce) {
  .gem-panel { transition:none; }
  .entry-btn:active { transform:none; }
}

/* ============================================================
   第三十轮 · 入口面板视觉精修（黑曜 × 香槟金）
   ============================================================ */
.gem-btn,
.entry-btn{
  background:linear-gradient(160deg,rgba(216,180,92,.20),rgba(216,180,92,.06));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px -10px rgba(0,0,0,.9);
  transition:background .2s, border-color .2s, transform .16s var(--spring,cubic-bezier(.22,1,.36,1)), box-shadow .22s;
}
.entry-btn:hover{
  background:linear-gradient(160deg,rgba(216,180,92,.30),rgba(216,180,92,.10));
  border-color:rgba(216,180,92,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 8px 20px -10px rgba(216,180,92,.45);
}
.gem-mask{ backdrop-filter:blur(5px) saturate(1.1); }
.gem-panel{
  background:
    radial-gradient(120% 70% at 100% -6%,rgba(216,180,92,.16),transparent 58%),
    linear-gradient(165deg,rgba(30,29,35,.98),rgba(11,11,15,.99) 72%);
  border-color:rgba(216,180,92,.40);
  box-shadow:0 34px 90px -22px rgba(0,0,0,.82), 0 0 50px -20px rgba(216,180,92,.26), inset 0 1px 0 rgba(255,255,255,.08);
}
.gem-panel.show{ animation:gemIn .26s var(--spring,cubic-bezier(.22,1,.36,1)) both; }
@keyframes gemIn{ from{opacity:0;transform:translateY(-10px) scale(.985)} to{opacity:1;transform:none} }
.gem-head h3{ letter-spacing:.04em; }
.gem-status{
  background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
  border-color:var(--hair, rgba(255,255,255,.07));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.gem-kv b{ font-variant-numeric:tabular-nums; }
.gem-entry{
  transition:background .2s, border-color .2s, transform .18s var(--spring,cubic-bezier(.22,1,.36,1));
}
.gem-entry:hover{
  transform:translateX(2px);
  box-shadow:0 10px 24px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.gem-entry.on{
  background:linear-gradient(90deg,rgba(216,180,92,.22),rgba(216,180,92,.04));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px -16px rgba(216,180,92,.9);
}
.gem-flow a{ transition:color .18s, border-color .18s, background .2s; }
.gem-flow a:hover{ background:rgba(216,180,92,.07); }
.gem-foot button{ transition:background .2s, border-color .18s, transform .16s; }
.gem-foot button:active{ transform:scale(.96); }
@media (max-width:719px){
  @keyframes gemIn{ from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
}
@media (prefers-reduced-motion:reduce){
  .gem-panel{ animation:none !important; }
  .gem-entry:hover{ transform:none; }
}
