/* 个人主页 - 样式 */
:root {
  --brand: #2563eb;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .07);
  --maxw: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 导航 */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 17px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.menu { display: flex; gap: 24px; }
.menu a { font-size: 15px; color: var(--text); }
.menu a.active { color: var(--brand); font-weight: 600; }
.menu a:hover { text-decoration: none; color: var(--brand); }
.burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* 区块 */
section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }

h1 { font-size: 32px; color: var(--ink); margin: 0 0 14px; line-height: 1.4; }
h2 { font-size: 24px; color: var(--ink); margin: 0 0 20px; line-height: 1.4; }
h3 { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 16px; color: var(--muted); }

/* 首屏 */
.hero {
  padding: 76px 0 56px;
  background:
    radial-gradient(800px 360px at 15% -20%, #e0e7ff 0%, transparent 60%),
    radial-gradient(700px 340px at 90% 0%, #ede9fe 0%, transparent 62%);
}
.hero .name { font-size: 15px; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.hero p { max-width: 680px; }
.avatar {
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
}

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 13.5px; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}

/* 卡片 / 列表 */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .meta { font-size: 13px; color: #94a3b8; margin-bottom: 6px; }

.list li {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
}
.list li:last-child { border-bottom: 0; }
.list .date { font-size: 13.5px; color: #94a3b8; min-width: 88px; }
.list .t { color: var(--ink); font-size: 16px; }

.ticks li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15.5px; }
.ticks li::before { content: "·"; position: absolute; left: 6px; font-weight: 700; color: var(--brand); }

/* 联系 */
.contact { text-align: center; }
.contact a.mail { font-size: 17px; font-weight: 600; }

/* 页脚 */
.footer { background: #0f172a; color: #94a3b8; padding: 34px 0; font-size: 14px; }
.footer a { color: #cbd5e1; }
.footer .f-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* 备案行：保持在最下方 */
.beian {
  background: #0b1220; padding: 14px 0; text-align: center;
  font-size: 13.5px; color: #94a3b8; border-top: 1px solid #16213a;
}
.beian a { color: #cbd5e1; }
.beian .sep { margin: 0 8px; color: #475569; }

/* 代码块 */
code {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 13.5px; background: var(--brand-soft); color: var(--brand);
  padding: 1px 6px; border-radius: 5px;
}
pre {
  margin: 14px 0 0; padding: 16px 18px; background: #0f172a; color: #e2e8f0;
  border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.85;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
}
pre code { background: none; color: inherit; padding: 0; font-size: 13px; }
pre .c { color: #94a3b8; }
pre .k { color: #93c5fd; }
pre .s { color: #86efac; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
.table th, .table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.table code { font-size: 13px; }

/* 流程链路 */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.flow .node {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 14.5px; color: var(--ink);
}
.flow .node.accent { border-color: #c7d7fb; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.flow .arrow { color: #94a3b8; }

/* 功能卡 */
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .dot {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; background: var(--brand-soft);
}
.feat .t { color: var(--ink); font-size: 16px; font-weight: 600; }
.feat .d { font-size: 15px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 6px 24px 14px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .menu a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .g-2 { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  section { padding: 40px 0; }
}
