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: linear-gradient(160deg, #121826 0%, #141a2e 40%, #1a1a3a 70%, #121826 100%);
  color: #b8c6e0; font-family: "HeJuTi", system-ui, sans-serif
  min-height: 100vh;
}

.header {
  max-width: 1000px; margin: 0 auto; padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 12px;
}
.header h1 {
  font-size: 1.4rem; font-weight: 300; letter-spacing: 0.3rem;
  background: linear-gradient(135deg, #e0e0e0, #4a9eff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header .back-home {
  color: #556688; font-size: 0.92rem; text-decoration: none; transition: color 0.2s;
}
.header .back-home:hover { color: #6aaeff; }

.desc {
  text-align: center; color: #556688; font-size: 0.92rem;
  margin-bottom: 2rem; letter-spacing: 0.05rem;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem 3rem; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.card {
  background: rgba(10,8,22,0.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(100,130,200,0.12);
  border-radius: 14px; padding: 1.5rem;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(74,158,255,0.3);
  background: rgba(14,12,30,0.6);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(74,158,255,0.06);
}
.card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.4rem; color: #c8d8f0; }
.card h3 span { color: #6aaeff; }
.card .tag {
  display: inline-block; font-size: 0.85rem;
  background: rgba(74,158,255,0.1); color: #6aaeff;
  padding: 0.15rem 0.6rem; border-radius: 8px;
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.92rem; line-height: 1.6; color: #445577; margin-bottom: 0.8rem; }
.card .links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.card .links a {
  font-size: 0.85rem; color: #5577aa; text-decoration: none;
  transition: color 0.2s;
}
.card .links a:hover { color: #6aaeff; }

.empty {
  text-align: center; padding: 4rem 0; color: #445577;
}
.empty .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }


/* ── 项目页用户信息栏 ── */
.proj-userbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: system-ui;
}
.proj-username { color: #b0d0ff; font-weight: 500; }
.proj-userrole {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(100,200,255,0.12);
  color: #64c8ff;
}
.proj-logout {
  color: #8892b0;
  text-decoration: none;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #2a2f45;
  transition: all 0.2s;
}
.proj-logout:hover {
  border-color: #e17055;
  color: #e17055;
}

@media (max-width: 720px) {
  .proj-userbar { margin-left: 0; width: 100%; justify-content: center; gap: 6px; font-size: 11px; }
  .proj-username { font-size: 11px; }
  .proj-userrole { font-size: 10px; }
  .proj-logout { font-size: 10px; padding: 1px 6px; }
}

.footer { text-align: center; color: #223344; font-size: 0.85rem; padding: 2rem 0; }

@media (max-width: 720px) {
  .header { padding: 0.8rem; flex-wrap: wrap; gap: 0.4rem; }
  .header h1 { font-size: 1.1rem; width: 100%; text-align: center; }
  .header .back-home { font-size: 0.8rem; }
  .header div[style*="margin-left"] { margin-left: auto !important; font-size: 11px !important; gap: 4px !important; }
  .container { padding: 0 0.8rem 2rem; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 1rem; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: 0.85rem; }
  .desc { font-size: 0.8rem; margin-bottom: 1.2rem; padding: 0 0.5rem; }
  
/* ── 项目页用户信息栏 ── */
.proj-userbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: system-ui;
}
.proj-username { color: #b0d0ff; font-weight: 500; }
.proj-userrole {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(100,200,255,0.12);
  color: #64c8ff;
}
.proj-logout {
  color: #8892b0;
  text-decoration: none;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #2a2f45;
  transition: all 0.2s;
}
.proj-logout:hover {
  border-color: #e17055;
  color: #e17055;
}

@media (max-width: 720px) {
  .proj-userbar { margin-left: 0; width: 100%; justify-content: center; gap: 6px; font-size: 11px; }
  .proj-username { font-size: 11px; }
  .proj-userrole { font-size: 10px; }
  .proj-logout { font-size: 10px; padding: 1px 6px; }
}

.footer { font-size: 0.75rem; }
}


/* ════ 淡色系主题覆盖（对齐主页配色 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;
}
.header h1 {
  background: linear-gradient(135deg, #5b7db8, #e58fa8) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.header .back-home { color: #7a8aa5 !important; }
.header .back-home:hover { color: #5b8fd0 !important; }
.desc { color: #7a8aa5 !important; }
.card {
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(150,170,210,0.25) !important;
  box-shadow: 0 2px 12px rgba(140,160,200,0.08);
}
.card:hover {
  border-color: rgba(140,170,230,0.5) !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 6px 24px rgba(140,160,200,0.18) !important;
}
.card h3 { color: #5b6a85 !important; }
.card h3 span { color: #5b8fd0 !important; }
.card .tag { background: rgba(110,170,255,0.12) !important; color: #4a8fd0 !important; }
.card p { color: #7a8aa5 !important; }
.card .links a { color: #5b8fd0 !important; }
.card .links a:hover { color: #2f74c0 !important; }
.empty { color: #8a96ad !important; }
.proj-username { color: #5b7db8 !important; }
.proj-userrole { background: rgba(90,150,230,0.15) !important; color: #4a8fd0 !important; }
.proj-logout { color: #8a96ad !important; border-color: #d8dff0 !important; }
.proj-logout:hover { border-color: #e17055 !important; color: #e17055 !important; }
.footer { color: #a8b4cc !important; }

/* ════ 卡片淡入（对齐微言斋 2026-08-19） ════ */
.grid .card {
  animation: fadeUp 0.4s ease backwards;
}
.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.15s; }
.grid .card:nth-child(3) { animation-delay: 0.25s; }
.grid .card:nth-child(4) { animation-delay: 0.35s; }
.grid .card:nth-child(5) { animation-delay: 0.45s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
