/* 学海无涯 · 陈俊杰个人主页 —— 纯 CSS，无外部依赖 */

:root {
  --accent: #16506e;
  --accent-light: #2a7fa8;
  --ink: #1f2933;
  --muted: #5b6773;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e3e8ec;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */

.hero {
  background: linear-gradient(165deg, #123a52 0%, #16506e 55%, #1d6286 100%);
  color: #eef4f8;
  padding: 52px 0 0;
}

.site-name {
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 2rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-align: center;
  color: #ffffff;
  margin-bottom: 30px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: #dfe7ec;
  flex-shrink: 0;
}

.identity h1 { font-size: 1.7rem; font-weight: 700; color: #ffffff; }
.identity .en { font-size: 1rem; font-weight: 400; color: #b8cdda; }
.identity .role { margin-top: 4px; color: #d3e2ea; }
.identity .contact-line { margin-top: 8px; font-size: 0.95rem; }
.identity .contact-line a { color: #9fd4ee; }
.identity .sep { margin: 0 10px; color: #6f93a8; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}

.nav a {
  color: #dceaf2;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }

/* ---------- 正文 ---------- */

main.container {
  display: grid;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 48px;
}

section { scroll-margin-top: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.card h2 {
  font-size: 1.2rem;
  color: var(--accent);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

.card p { color: var(--ink); }

/* 研究方向标签 */

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }

.tags li {
  background: #e8f2f7;
  color: var(--accent);
  border: 1px solid #cfe2ec;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.95rem;
}

/* 论文列表 */

.pubs { list-style: none; display: grid; gap: 12px; }

.pubs li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
}

.pubs li::before {
  counter-increment: pub;
  content: counter(pub) ".";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.pubs { counter-reset: pub; }

.venue {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 1px 8px;
  margin-right: 8px;
  vertical-align: 2px;
  white-space: nowrap;
}

.more { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* 课题列表 */

.grants { list-style: none; display: grid; gap: 8px; }

.grants li { padding-left: 20px; position: relative; }

.grants li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
}

/* 联系方式 */

#contact p { margin-top: 6px; }

/* ---------- 页脚 ---------- */

.footer {
  background: #123a52;
  color: #b8cdda;
  text-align: center;
  padding: 22px 0;
  font-size: 0.9rem;
}

.footer a { color: #9fd4ee; }
.footer p + p { margin-top: 6px; }
.footer .gap { display: inline-block; width: 18px; }

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
  .site-name { font-size: 1.5rem; letter-spacing: 0.35em; text-indent: 0.35em; }
  .profile { flex-direction: column; text-align: center; padding: 20px 16px; }
  .identity .contact-line .sep { margin: 0 6px; }
  .card { padding: 20px 18px; }
  .nav a { padding: 6px 12px; font-size: 0.9rem; }
}
