/* ============================================
   韩芳 · 个人网站 —— 公共样式表（浅色天蓝版）
   配色：浅天蓝 + 白，整体轻盈明亮
   ============================================ */
:root {
  --ink: #2f4a5e;
  --ink-2: #40627a;
  --accent: #6fc3ef;
  --accent-2: #3d9fd6;
  --accent-soft: #e3f1fb;
  --cream: #f4f9fd;
  --card: #ffffff;
  --text: #33475a;
  --muted: #7e95a6;
  --line: #e2eef6;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(60, 110, 150, .08);
  --shadow-hover: 0 16px 44px rgba(60, 110, 150, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(60, 110, 150, .06);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.nav-brand span { color: var(--accent-2); }
.nav-links { display: flex; gap: 6px; font-size: 14px; }
.nav-links a {
  color: #5a7186; padding: 8px 15px; border-radius: 8px;
  font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--accent-2); background: #eef5fb; }
.nav-links a.active { color: #fff; background: var(--accent); font-weight: 600; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: var(--accent-soft);
  color: var(--text);
  padding: 84px 24px 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,195,239,.28), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; left: -80px; bottom: -160px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.6), transparent 70%);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 46px;
  position: relative; z-index: 1;
}
.avatar {
  flex: 0 0 auto;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 700;
  box-shadow: 0 0 0 5px rgba(255,255,255,.7), 0 12px 30px rgba(60,110,150,.22);
}
.hero-info h1 { font-size: 42px; letter-spacing: 3px; font-weight: 700; color: var(--ink); }
.hero-info .post {
  display: inline-block; margin-top: 12px;
  font-size: 15px; color: var(--accent-2); font-weight: 600;
  background: #fff; padding: 5px 18px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(60,110,150,.1);
}
.hero-info .tagline { margin-top: 14px; color: #5a7186; font-size: 15px; max-width: 560px; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #5a7186; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta a { color: var(--accent-2); border-bottom: 1px dashed rgba(61,159,214,.5); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-2); box-shadow: 0 10px 24px rgba(61,159,214,.3); }
.btn-ghost { color: var(--ink); border: 1px solid #bcd4e6; }
.btn-ghost:hover { background: rgba(111,195,239,.12); }

/* ---------- 子页面横幅 ---------- */
.page-hero {
  background: var(--accent-soft);
  color: var(--text); padding: 56px 24px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: 50%; top: -150px; transform: translateX(-50%);
  width: 460px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,195,239,.26), transparent 70%);
}
.page-hero h1 { font-size: 34px; letter-spacing: 4px; font-weight: 700; color: var(--ink); position: relative; z-index: 1; }
.page-hero p { margin-top: 8px; color: #7e95a6; font-size: 13px; letter-spacing: 2px; position: relative; z-index: 1; }

/* ---------- 主体 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 80px; }
section { margin-bottom: 44px; }
.section-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.section-title .bar {
  width: 4px; height: 24px; border-radius: 2px;
  background: var(--accent);
}
.section-title h2 { font-size: 21px; color: var(--text); letter-spacing: 2px; font-weight: 700; }
.section-title .sub { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: 1px; }

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ---------- 首页入口卡片 ---------- */
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.home-card {
  display: block; background: var(--card); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.home-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.home-card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.home-card h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; font-weight: 700; letter-spacing: 1px; }
.home-card p { font-size: 14px; color: var(--muted); }
.home-card .go { margin-top: 14px; font-size: 13px; color: var(--accent-2); font-weight: 600; }

/* ---------- 时间线条目 ---------- */
.entry { position: relative; padding-left: 26px; margin-bottom: 30px; }
.entry:last-child { margin-bottom: 0; }
.entry::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px;
  width: 2px; background: var(--line);
}
.entry:last-child::before { bottom: 0; }
.entry::after {
  content: ""; position: absolute; left: 1px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px #e9f4fc;
}
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.entry-head h3 { font-size: 17px; color: var(--text); font-weight: 700; }
.entry-head .role { color: var(--accent-2); font-weight: 600; font-size: 15px; }
.entry-head .date { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.entry-sub { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.entry ul { list-style: none; }
.entry li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 14.5px; color: #4a5f70; }
.entry li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* ---------- 荣誉徽章 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge {
  font-size: 13px; padding: 4px 12px; border-radius: 6px;
  background: #eef6fc; color: #4a86b0; font-weight: 500;
}
.badge.gold { background: #e3f1fb; color: #3d9fd6; }

/* ---------- 技能网格 ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.skill-card h4 { font-size: 15px; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.skill-card h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: 0 0 auto; }
.skill-card p { font-size: 14px; color: #4a5f70; }

/* ---------- 基本信息表 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.info-item { padding: 14px 16px; background: #eef6fc; border-radius: 10px; border: 1px solid var(--line); }
.info-item .k { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.info-item .v { font-size: 15px; color: var(--text); font-weight: 600; }

/* ---------- 自我评价 ---------- */
.summary { font-size: 15px; color: #4a5f70; }

/* ---------- 页脚 ---------- */
footer {
  background: #fff; color: #7e95a6; text-align: center;
  padding: 30px 24px; font-size: 13px;
  border-top: 1px solid var(--line);
}
footer a { color: var(--accent-2); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-inner { flex-direction: column; height: auto; padding: 10px 16px; gap: 8px; align-items: stretch; }
  .nav-brand { text-align: center; }
  .nav-links { overflow-x: auto; justify-content: flex-start; gap: 4px; }
  .nav-links a { flex: 0 0 auto; white-space: nowrap; }
  .hero { padding: 52px 20px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 22px; }
  .hero-info h1 { font-size: 32px; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .entry-head .date { margin-left: 0; width: 100%; }
  main { padding: 32px 16px 60px; }
}

/* ---------- 打印 ---------- */
@media print {
  nav, footer, .hero-actions { display: none; }
  .hero, .page-hero { background: #fff !important; color: #000; padding: 20px 0; }
  .hero::after, .hero::before, .page-hero::after { display: none; }
  .hero-info h1, .page-hero h1 { color: #000; }
  .hero-info .tagline, .hero-meta, .page-hero p { color: #333; }
  .card, .home-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .card:hover, .home-card:hover { transform: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
