/* ============================================================
   HOO WORKSPACE — 共享样式
   深色科技风：粒子背景 + 玻璃卡片 + 青紫渐变
   ============================================================ */

:root {
  --bg: #07080c;
  --bg-soft: #0d0f16;
  --text: #ededf2;
  --text-2: #9a9aab;
  --text-3: #6b6b7b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #a78bfa 55%, #f472b6 100%);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景画布：所有页面共用 */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 顶部细光带 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.5;
  z-index: 5;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.nav-spacer { flex: 1; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.back:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* 导航栏「管理模式」按钮（全站统一，替代右下角悬浮锁） */
.nav-login {
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.nav-login:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.nav-login.on {
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
}


/* ---------- 首页 Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 44px;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

/* ---------- HooHub 标识锁定（图标 + 字标） ---------- */
.hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 24px);
  text-decoration: none;
}

.logo-mark {
  width: clamp(54px, 10.5vw, 84px);
  height: auto;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.3));
}

/* 图标内部微动效 */
.logo-orbit {
  transform-box: view-box;
  transform-origin: 36px 36px;
  animation: logoOrbit 7s linear infinite;
}

@keyframes logoOrbit {
  to { transform: rotate(360deg); }
}

.logo-halo {
  transform-box: view-box;
  transform-origin: 36px 36px;
  animation: logoHalo 4.2s ease-in-out infinite;
}

@keyframes logoHalo {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(0.86); }
}

.hero-brand .word {
  font-size: clamp(42px, 9.5vw, 86px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  filter: drop-shadow(0 0 42px rgba(120, 90, 250, 0.26));
}

.hero-brand .word .hub {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-2);
}

.hero-sub .sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--text-3);
}

/* ---------- 入口网格 ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: block;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out, border-color 0.25s, box-shadow 0.3s;
  backdrop-filter: blur(14px);
  will-change: transform;
}

/* 鼠标跟随光晕 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px circle at var(--mx) var(--my),
    rgba(167, 139, 250, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 50px -18px rgba(34, 211, 238, 0.34),
    0 0 0 1px rgba(167, 139, 250, 0.12) inset;
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
  transition: border-color 0.25s, background 0.25s;
}

.card:hover .card-icon {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 16px;
  color: var(--text-3);
  transition: color 0.2s, transform 0.25s;
}

.card:hover .card-arrow {
  color: var(--cyan);
  transform: translateX(4px);
}

/* 卡片错峰淡入 */
.card {
  opacity: 0;
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) perspective(900px); }
  to { opacity: 1; transform: translateY(0) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
}

/* ---------- 子页面 ---------- */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 100px;
}

.stage-inner { max-width: 560px; }

.stage-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 26px;
}

.stage h1 {
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
}

.stage-note {
  margin-top: 34px;
  font-size: 12px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stage-note span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ---------- 页面转场遮罩 ---------- */
#wipe {
  position: fixed;
  z-index: 999;
  border-radius: 50%;
  background: var(--grad);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

#wipe.go {
  animation: wipe 0.52s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes wipe {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.95; }
  70% { opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* 页面载入淡入 */
.page {
  animation: pageIn 0.45s ease-out both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-3);
}

.foot .sp { flex: 1; }

.foot a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.foot a:hover { color: var(--cyan); }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .entries { grid-template-columns: 1fr; gap: 12px; }
  .hero { padding: 34px 0 28px; }
  .card { min-height: 132px; padding: 18px; }
  .card-icon { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
