/* ============================================================
   MIFE · 个人工作界面  —  style.css
   深色科技风 · 青绿点状网格背景 · HUD 卡片 · 3D 悬浮
   ============================================================ */

:root {
  --bg: #070c0a;
  --cyan: #00e5a8;
  --cyan-dim: #00b386;
  --text: #d7e8e2;
  --text-dim: #7f9a92;
  --text-faint: rgba(127, 154, 146, 0.55);
  --border: rgba(0, 229, 168, 0.18);
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --card-w: 340px;
  --card-h: 440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 229, 168, 0.25); color: #fff; }

/* ============================================================
   背景：青绿点状网格（方案 A · CSS 视差）
   ============================================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(0, 229, 168, 0.16) 1px, transparent 1.2px);
  background-size: 34px 34px;
  will-change: background-position;
}

/* 第二层网格，更大间距 + 更快视差，形成景深 */
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 229, 168, 0.1) 1px, transparent 1.2px);
  background-size: 68px 68px;
  background-position: var(--dx, 0px) var(--dy, 0px);
  will-change: background-position;
}

/* 边缘暗角，聚焦舞台 */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(7, 12, 10, 0.9) 100%);
  pointer-events: none;
}

/* ============================================================
   顶部栏
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 34px;
  pointer-events: none;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: var(--mono);
}
.brand .dot { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 229, 168, 0.6); }

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-dim);
}
.status .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: led 2s ease-in-out infinite;
}
@keyframes led { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ============================================================
   卡片舞台
   ============================================================ */
.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  perspective: 1300px;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: default;
}

/* ---------------- HUD 主卡片（方案 C） ---------------- */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(165deg, #0d1612, #09100d);
  border: 1px solid rgba(0, 229, 168, 0.3);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform-style: preserve-3d;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(0, 229, 168, 0.04);
  will-change: transform;
  animation: card-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes card-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* HUD 四角括号 */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--cyan);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}
.corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.corner.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

/* 扫描线 */
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 168, 0.45), transparent);
  animation: scan 4.2s linear infinite;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}
@keyframes scan {
  0%   { top: -2px; }
  100% { top: calc(100% + 2px); }
}

/* 光标光晕 */
.glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(0, 229, 168, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 1;
}
.card.active:hover .glow { opacity: 1; }

/* 卡片内容 */
.tag {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-faint);
  z-index: 2;
}
.icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 168, 0.4);
  background: rgba(0, 229, 168, 0.08);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 14px rgba(0, 229, 168, 0.15);
}
.title {
  font-size: 21px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 6px;
}
.desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
  flex: 1;
}

/* ---------------- 进入按钮（B · 幽灵描边） ---------------- */
.btn-go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  background: transparent;
  color: var(--cyan);
  font-size: 14px;
  border: 1px solid var(--cyan);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s, color 0.25s;
  z-index: 2;
}
.btn-go:hover {
  background: rgba(0, 229, 168, 0.1);
  box-shadow: 0 0 16px rgba(0, 229, 168, 0.3);
  color: #fff;
}
.btn-go:active { transform: scale(0.98); }

/* ---------------- 占位卡（开发中） ---------------- */
.card-inner.ghost {
  border: 1.5px dashed rgba(0, 229, 168, 0.32);
  background: rgba(0, 229, 168, 0.02);
  box-shadow: none;
}
.wip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
}
.wip-text {
  font-family: var(--mono);
  font-size: 30px;
  letter-spacing: 8px;
  color: rgba(215, 232, 226, 0.6);
  text-shadow: 0 0 20px rgba(0, 229, 168, 0.3);
}
.wip .pulse {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 14px var(--cyan);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* ============================================================
   导航按钮（透明方向键）
   ============================================================ */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0, 229, 168, 0.35);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s,
              background 0.25s, transform 0.15s;
}
.nav-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 168, 0.08);
  box-shadow: 0 0 22px rgba(0, 229, 168, 0.35);
  color: #fff;
}
.nav-btn:active { transform: translateY(-50%) scale(0.9); }
.nav-btn.prev { left: 34px; }
.nav-btn.next { right: 34px; }

/* ============================================================
   指示器 & 页脚
   ============================================================ */
.dots {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 12px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 229, 168, 0.22);
  border: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.dot:hover { background: rgba(0, 229, 168, 0.5); }
.dot.active {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: scale(1.3);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 34px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
  pointer-events: none;
}
.footer .sep { color: rgba(0, 229, 168, 0.4); }
.footer a { color: var(--text-dim); text-decoration: none; pointer-events: auto; transition: color 0.25s; }
.footer a:hover { color: var(--cyan); }
