html { background: #121826; }
@font-face {
  font-family: "HeJuTi";
  src: url("/assets/fonts/heju-0.2.ttf?v=5") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #121826; color: #c8d6e5;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 100dvh; margin: 0; font-family: "HeJuTi", system-ui, sans-serif;
  gap: 2.5rem; user-select: none; overflow: hidden;
  position: relative;
}

#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.hero, .nav { position: relative; z-index: 1; }
.content-wrap { transform: scale(1); text-align: center; }

.hero {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

.title-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.title-group h1 {
  font-size: 6rem; font-weight: 200; letter-spacing: 0.4rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #c8d6e5 0%, #4a9eff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
}

.about-btn {
  background: transparent;
  border: 1px solid rgba(80,120,180,0.2);
  color: #556688;
  font-size: 0.75rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  margin-top: -0.5rem;
}

.about-btn:hover {
  border-color: rgba(74,158,255,0.4);
  color: #7aaeff;
  background: rgba(74,158,255,0.08);
  transform: scale(1.15);
}

.hero .sub {
  color: #556688; margin-top: 0.3rem; font-size: 0.8rem;
  letter-spacing: 0.25rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav {
  display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center;
  margin-top: 0.2rem;
}

.nav a {
  display: block; background: rgba(20,25,45,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(80,120,180,0.15); border-radius: 12px;
  padding: 1rem 2rem; color: #8899bb; text-decoration: none; font-size: 1.15rem;
  min-width: 140px; text-align: center;
  transition: all 0.35s ease;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.8s ease-out forwards;
}

.nav a:nth-child(1) { animation-delay: 0.5s; }
.nav a:nth-child(2) { animation-delay: 0.65s; }
.nav a:nth-child(3) { animation-delay: 0.8s; }
.nav a:nth-child(4) { animation-delay: 0.95s; }
.nav a:nth-child(5) { animation-delay: 1.1s; }

.nav a:hover {
  border-color: rgba(74,158,255,0.25); color: #c8d6e5;
  background: rgba(30,35,55,0.7);
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(74,158,255,0.12);
}

.nav a .hint {
  display: block; color: #444; font-size: 1rem; margin-top: 0.45rem;
  font-weight: 300; letter-spacing: 0.05rem;
  transition: color 0.3s;
}
.nav a:hover .hint { color: #4a9eff; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* 侧边面板 */
.side-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,8,15,0.6); backdrop-filter: blur(3px);
}
.side-overlay.show { display: block; }

.side-panel {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100%;
  z-index: 1001;
  background: #0f1420;
  border-left: 1px solid rgba(80,120,180,0.1);
  padding: 0; overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.3);
}
.side-panel.open { right: 0; }

.side-close {
  position: sticky; top: 0.8rem; float: right; margin-right: 0.8rem;
  background: rgba(20,25,45,0.3); border: 1px solid rgba(80,120,180,0.1);
  color: #667799; font-size: 1.4rem; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; transition: all 0.2s; z-index: 2;
}
.side-close:hover { background: rgba(200,60,60,0.15); border-color: rgba(200,60,60,0.2); color: #ff7788; }

.side-content { padding: 2rem 1.8rem 3rem; }

.side-card {
  background: rgba(15,20,35,0.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(80,120,180,0.08);
  border-radius: 12px; padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}
.side-card:hover { border-color: rgba(74,158,255,0.15); }

.side-card .icon-wrap { font-size: 1.8rem; margin-bottom: 0.2rem; }

.side-card h2 {
  font-size: 1.4rem; font-weight: 200; letter-spacing: 0.3rem;
  margin-bottom: 0.1rem;
  background: linear-gradient(135deg, #e0e0e0, #4a9eff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.side-card h3 {
  font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; color: #b8c6e0;
}
.side-card .tagline {
  color: #445577; font-size: 0.75rem; letter-spacing: 0.1rem;
  margin-bottom: 0.8rem;
}
.side-card .desc,
.side-card p {
  color: #7788aa; font-size: 0.82rem; line-height: 1.8;
}

.side-footer {
  text-align: center; color: #334466; font-size: 1rem;
  padding: 0.5rem 0;
}

.side-panel::-webkit-scrollbar { width: 4px; }
.side-panel::-webkit-scrollbar-thumb { background: #2d3548; border-radius: 2px; }

.footer-note {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center; font-size: 0.78rem; color: #3a5a8a;
  letter-spacing: 0.12rem;
  pointer-events: none;
}

.time-status {
  display: inline-block; margin-top: 0.8rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(80,120,180,0.12);
  border-radius: 20px;
  font-size: 1rem; color: #556688;
  background: rgba(20,25,45,0.3);
  letter-spacing: 0.05rem;
  opacity: 0; animation: fadeUp 0.8s ease-out 0.9s forwards;
}


/* ── 移动端适配 ── */
@media (max-width: 720px) {
  body { gap: 1.8rem; overflow-y: auto; min-height: 100dvh; height: auto; padding: 1rem 0; }

  .title-group h1 { font-size: 3.2rem; letter-spacing: 0.25rem; }

  .about-btn { width: 1.2rem; height: 1.2rem; font-size: 0.65rem; margin-top: -0.3rem; }

  .hero .sub { font-size: 0.7rem; letter-spacing: 0.15rem; }

  .nav { gap: 0.7rem; flex-direction: column; align-items: center; padding: 0 1rem; width: 100%; max-width: 320px; }
  .nav a { min-width: 0; width: 100%; padding: 0.8rem 1.2rem; font-size: 1rem; }
  .nav a .hint { font-size: 0.85rem; }

  .time-status { font-size: 0.85rem; padding: 0.3rem 1rem; }

  .footer-note { font-size: 0.7rem; position: static; padding-top: 1rem; }

  .side-panel { width: 100%; right: -105%; max-width: 400px; }
  .side-content { padding: 1.2rem 1rem 2rem; }
  .side-card { padding: 1rem 1.2rem; }
  .side-card h2 { font-size: 1.2rem; }
  .side-card .desc,
  .side-card p { font-size: 0.78rem; }

  #userBar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  #userName { font-size: 12px; }
  #loginBtn, #logoutBtn { font-size: 11px; padding: 4px 10px; }

  .content-wrap { margin-top: 44px !important; }

  #particles { height: 100dvh; }
}

@media (max-width: 400px) {
  .title-group h1 { font-size: 2.5rem; letter-spacing: 0.15rem; }
  .nav { max-width: 280px; }
  .nav a { padding: 0.7rem 1rem; font-size: 0.95rem; }
}

/* ===== User Bar ===== */
#userBar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
}
#userInfo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ab4f8;
  font-size: 14px;
}
#userName {
  color: #b0d0ff;
  font-weight: 500;
}
#userRole {
  background: rgba(100, 200, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #64c8ff;
}
#userRole.role-admin {
  background: rgba(255, 200, 100, 0.12);
  color: #ffc864;
}
#logoutBtn {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff7a7a;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
#logoutBtn:hover {
  background: rgba(255, 80, 80, 0.25);
  border-color: rgba(255, 80, 80, 0.5);
}
#loginBtn {
  background: rgba(100, 160, 255, 0.15);
  border: 1px solid rgba(100, 160, 255, 0.3);
  color: #8ab4f8;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
#loginBtn:hover {
  background: rgba(100, 160, 255, 0.25);
  border-color: rgba(100, 160, 255, 0.5);
}

/* ════ 淡色系主题覆盖（2026-08-14 全站淡色） ════ */
html { background: #eef3fb !important; }
body {
  background: linear-gradient(165deg, #eaf1fb 0%, #f2ecf5 52%, #fdeef2 100%) !important;
  background-attachment: fixed; color: #46536b !important;
}
.title-group h1 {
  background: linear-gradient(135deg, #5b7db8 0%, #e58fa8 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.hero .sub { color: #7a8aa5 !important; }
.about-btn { border-color: rgba(120,150,200,0.35) !important; color: #8a96ad !important; }
.about-btn:hover { border-color: rgba(110,170,255,0.5) !important; color: #5b8fd0 !important; background: rgba(110,170,255,0.12) !important; }
.nav a {
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(150,170,210,0.25) !important;
  color: #5b6a85 !important; backdrop-filter: blur(8px);
}
.nav a:hover {
  border-color: rgba(140,170,230,0.5) !important; color: #46536b !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 6px 24px rgba(140,160,200,0.18) !important;
}
.nav a .hint { color: #93a1bc !important; }
.nav a:hover .hint { color: #5b8fd0 !important; }
.time-status {
  border-color: rgba(120,150,200,0.3) !important; color: #5b6a85 !important;
  background: rgba(255,255,255,0.6) !important;
}
.side-overlay { background: rgba(120,135,165,0.35) !important; }
.side-panel {
  background: #fbfcff !important;
  border-left: 1px solid rgba(150,170,210,0.2) !important;
  box-shadow: -8px 0 30px rgba(120,140,180,0.2) !important;
}
.side-close { background: rgba(240,244,252,0.8) !important; border-color: rgba(150,170,210,0.25) !important; color: #8a96ad !important; }
.side-close:hover { background: rgba(230,120,150,0.12) !important; border-color: rgba(230,120,150,0.3) !important; color: #e06088 !important; }
.side-card { background: rgba(255,255,255,0.7) !important; border: 1px solid rgba(150,170,210,0.2) !important; }
.side-card:hover { border-color: rgba(110,170,255,0.4) !important; }
.side-card h2 {
  background: linear-gradient(135deg, #5b7db8, #e58fa8) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.side-card h3 { color: #5b6a85 !important; }
.side-card .tagline { color: #93a1bc !important; }
.side-card .desc, .side-card p { color: #7a8aa5 !important; }
.side-footer { color: #93a1bc !important; }
.side-panel::-webkit-scrollbar-thumb { background: #ccd6e8 !important; }
.footer-note { color: #93a1bc !important; }
#userInfo { color: #5b8fd0 !important; }
#userName { color: #5b7db8 !important; }
#userRole { background: rgba(90,150,230,0.15) !important; color: #4a8fd0 !important; }
#userRole.role-admin { background: rgba(240,160,180,0.2) !important; color: #d8709a !important; }
#logoutBtn { background: rgba(230,120,150,0.12) !important; border-color: rgba(230,120,150,0.3) !important; color: #e06088 !important; }
#logoutBtn:hover { background: rgba(230,120,150,0.22) !important; border-color: rgba(230,120,150,0.5) !important; }
#loginBtn { background: rgba(110,170,255,0.15) !important; border-color: rgba(110,170,255,0.35) !important; color: #4a8fd0 !important; }
#loginBtn:hover { background: rgba(110,170,255,0.25) !important; border-color: rgba(110,170,255,0.55) !important; }
