:root {
  --bg: #0d1117;
  --card: #161b22;
  --accent: #7aa2f7;
  --accent-glow: rgba(122,162,247,.25);
  --text: #e6edf3;
  --sub: #8b949e;
  --border: #30363d;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "PingFang SC","Microsoft YaHei",sans-serif; }

body {
  background: radial-gradient(circle at top,#1f2937 0%,var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

.container { max-width: 1100px; width: 90%; margin: auto; padding-top: 5rem; }

/* ===== Header ===== */
header { text-align: center; margin-bottom: 4rem; }
.avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%; margin: auto;
  background: linear-gradient(135deg,#2b3137,#161b22);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  position: relative;
}
.avatar-placeholder::after { content: "H"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; font-weight: bold; color: var(--accent); }
h1 { font-size: 2.2rem; margin-top: 1rem; }
.subtitle { color: var(--sub); font-size: 0.9rem; margin-top: .3rem; }
.status-badge { display: inline-block; margin-top: .8rem; padding: 4px 12px; border-radius: 20px; font-size: .75rem; color: var(--accent); border: 1px solid rgba(122,162,247,.4); background: rgba(122,162,247,.1); }

/* ===== 项目网格：实现 PC 端 2-3 列 ===== */
#project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* 关键：自动填充 */
  gap: 2rem;
}

@media (max-width: 650px) {
  #project-list { grid-template-columns: 1fr; } /* 手机端单列 */
}

.section-label { font-size: .75rem; color: var(--sub); margin-bottom: 1.5rem; padding-left: 8px; border-left: 3px solid var(--accent); text-transform: uppercase; }

/* ===== Card: 固定高度方块 + 悬停流光 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column; 
  height: 380px; /* 固定高度 [cite: 2026-01-17] */
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* 鼠标悬停动效：升起、变色、外发光 */
.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--accent-glow);
}

.card-banner {
  height: 150px; width: 100%; flex-shrink: 0;
  background: linear-gradient(135deg,#1f2428,#161b22);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; border-bottom: 1px solid var(--border);
  color: var(--sub); font-size: 1.5rem; letter-spacing: 4px;
  transition: 0.4s;
}

.card:hover .card-banner {
  color: var(--accent);
  background: linear-gradient(135deg, #1c2126, #252d3d);
}

.card-content {
  padding: 1.5rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card h2 { font-size: 1.25rem; margin-bottom: 0.8rem; color: var(--text); }
.card p {
  color: var(--sub); font-size: 0.9rem; line-height: 1.6;
  /* 文字截断：固定 4 行 [cite: 2026-01-17] */
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }
.tag { font-size: .65rem; padding: 3px 10px; border-radius: 6px; background: rgba(122,162,247,0.08); border: 1px solid rgba(122,162,247,0.15); color: var(--accent); }

/* ===== Footer ===== */
footer { text-align: center; margin: 6rem 0 3rem; }
.hitokoto-box { max-width: 600px; margin: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--sub); font-size: .85rem; }
#hitokoto_from { display: block; text-align: right; opacity: .6; margin-top: .4rem; }
.footer-note { font-size: 11px; opacity: .2; margin-top: 1rem; }