/* 许益林 Elim Xu · blog.hjfq.club */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1f2e;
  --accent: #0e6e5c;
  --accent-light: #e6f2ef;
  --line: #e3e6ec;
  --muted: #5b6472;
  --bg: #fafbfc;
}
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 14px 6vw; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 17px; color: var(--ink); }
.logo span { color: var(--accent); font-weight: 500; font-size: 13px; margin-left: 6px; letter-spacing: .5px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 15px; text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.lang-switch { border: 1px solid var(--line); border-radius: 5px; padding: 2px 10px !important; font-size: 13px !important; font-weight: 600; color: var(--ink) !important; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent) !important; text-decoration: none; }

/* hero */
.hero { background: linear-gradient(135deg, #10231f 0%, #1c4a40 55%, #0e6e5c 100%); color: #fff; padding: 90px 6vw 70px; }
.hero-inner { max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.35; font-weight: 700; }
.hero h1 .hl { color: #7fe0c8; }
.hero-sub { margin-top: 18px; font-size: 15px; opacity: .85; }
.hero-btns { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); transition: .15s; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.stats { margin-top: 46px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 760px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; color: #7fe0c8; }
.stat span { font-size: 12.5px; opacity: .8; }

/* sections */
.section { max-width: 980px; margin: 0 auto; padding: 54px 6vw 10px; }
.section h2 { font-size: 24px; margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* mini timeline */
.mini-timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 8px; }
.mini-timeline li { padding: 0 0 16px 22px; position: relative; font-size: 14.5px; color: var(--muted); }
.mini-timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.mini-timeline b { color: var(--ink); display: block; font-size: 13px; }
.more-link { display: inline-block; margin-top: 8px; font-weight: 600; }

/* page */
.page { max-width: 900px; margin: 0 auto; padding: 60px 6vw 40px; }
.page.narrow { max-width: 680px; }
.page-title { font-size: 30px; margin-bottom: 8px; }
.page-title span { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.page-lead { color: var(--muted); font-size: 15px; margin-bottom: 30px; max-width: 720px; }

/* timeline full */
.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 0 0 40px; }
.tl-item::before { content: ""; position: absolute; left: 198px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-date { font-weight: 700; color: var(--accent); font-size: 14px; text-align: right; padding-top: 2px; }
.tl-body { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; position: relative; }
.tl-body::before { content: ""; position: absolute; left: -35px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-body h2 { font-size: 18px; margin-bottom: 4px; }
.tl-tag { color: var(--accent); background: var(--accent-light); display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; margin-bottom: 12px; }
.tl-body h4 { font-size: 15px; margin: 14px 0 4px; color: var(--ink); }
.tl-body ul { padding-left: 20px; }
.tl-body li { font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.tl-body b { color: var(--ink); }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; }
.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.proj-head h3 { font-size: 16px; }
.badge { white-space: nowrap; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: #eef0f3; color: var(--muted); }
.badge.live { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.proj-desc { font-size: 14px; color: var(--muted); flex: 1; }
.proj-meta { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.proj-meta span { font-size: 11.5px; background: #f2f4f6; padding: 2px 9px; border-radius: 4px; color: var(--muted); }
.ppt-btn { margin-top: 12px; display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent) !important; border: 1px solid var(--accent); border-radius: 6px; padding: 5px 12px; text-decoration: none !important; }
.ppt-btn:hover { background: var(--accent-light); }

/* strengths */
.strengths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.strengths .card b { color: var(--ink); }
.quote { text-align: center; padding: 40px 0 10px; }
.quote blockquote { font-size: 21px; font-weight: 600; color: var(--accent); }

/* contact */
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 22px; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.ci-label { font-weight: 700; min-width: 110px; font-size: 14px; }
.contact-item a, .contact-item span:last-child { font-size: 15px; }
.note { margin-top: 30px; font-size: 12.5px; color: var(--muted); background: #f2f4f6; border-radius: 8px; padding: 14px 18px; }

/* footer */
.footer { text-align: center; padding: 34px 6vw; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: 30px; }

@media (max-width: 780px) {
  .two-col, .strengths { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .tl-item::before { display: none; }
  .tl-date { text-align: left; }
  .tl-body::before { display: none; }
  .nav { flex-direction: column; gap: 10px; }
  .nav-links { gap: 18px; flex-wrap: wrap; justify-content: center; }
}
