/* ============================================================
   其硕 · 个人网站 · 稳重专业风
   ============================================================ */

:root {
  --ink:        #0f172a;   /* 最深：标题 */
  --ink-soft:   #334155;   /* 正文 */
  --muted:      #64748b;   /* 次要文字 */
  --faint:      #94a3b8;   /* 更弱 */
  --line:       #e8edf3;   /* 分隔线 */
  --bg:         #ffffff;
  --bg-soft:    #f7f9fc;
  --bg-tint:    #f1f5fb;
  --brand:      #2563eb;   /* 主蓝 */
  --brand-deep: #1d4ed8;
  --brand-ink:  #1e3a8a;
  --accent:     #0ea5e9;   /* 点缀青 */
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-md:  0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg:  0 24px 70px rgba(15, 23, 42, .14);
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1140px;
  --ease:       cubic-bezier(.22, .8, .28, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.container { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 200;
}

/* ---------- 导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 76px; display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.brand-name { font-size: 17px; letter-spacing: -.3px; }
.brand-dot { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--muted); position: relative; white-space: nowrap;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--brand);
  padding: 9px 18px; border: 1px solid rgba(37, 99, 235, .3); border-radius: 9px;
  transition: background .2s, color .2s, transform .2s;
}
.nav-cta:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.nav-cta span { font-size: 12px; margin-left: 2px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; width: 40px; height: 40px; }
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- 通用区块 ---------- */
.section { padding: 110px 0; }
.section-head { margin-bottom: 56px; text-align: center; }
.section-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px); color: var(--ink); font-weight: 800;
  letter-spacing: -1px; line-height: 1.2;
}
.section-subtitle { color: var(--muted); font-size: 16px; margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, .10) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 65% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 65% 45%, #000 0%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-glow-1 { width: 520px; height: 520px; top: -80px; right: -40px; background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 68%); }
.hero-glow-2 { width: 440px; height: 440px; bottom: -120px; left: -80px; background: radial-gradient(circle, rgba(14, 165, 233, .12), transparent 68%); }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  color: var(--brand-deep); padding: 7px 14px; border-radius: 100px;
  background: rgba(37, 99, 235, .07); border: 1px solid rgba(37, 99, 235, .14); margin-bottom: 26px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }

.hero-hello { font-size: 17px; color: var(--muted); font-weight: 500; }
.hero-title { margin: 4px 0 10px; }
.hero-name {
  font-size: clamp(56px, 8vw, 92px); font-weight: 800; color: var(--ink);
  letter-spacing: -3px; line-height: 1.05;
  background: linear-gradient(120deg, var(--ink) 20%, var(--brand) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-role { font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 2px; }
.typing { color: var(--brand); }
.cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { font-size: 16px; color: var(--muted); max-width: 540px; margin-top: 20px; line-height: 1.95; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 13px 24px; border-radius: 10px; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 8px 24px rgba(37, 99, 235, .25); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(37, 99, 235, .35); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.hero-social { display: flex; gap: 12px; margin-top: 36px; }
.hero-social a, .hero-social .copy-wechat {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px; background: transparent;
  cursor: pointer; transition: all .2s var(--ease);
}
.hero-social a svg, .hero-social .copy-wechat svg { width: 18px; height: 18px; }
.hero-social a:hover, .hero-social .copy-wechat:hover { color: var(--brand); border-color: rgba(37, 99, 235, .4); background: var(--bg-soft); transform: translateY(-3px); }

/* 身份卡 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.id-card {
  width: min(380px, 100%); border-radius: 22px; padding: 26px;
  background: linear-gradient(155deg, #1e3a8a 0%, #172554 55%, #0f172a 100%);
  box-shadow: var(--shadow-lg); color: #fff; position: relative; overflow: hidden;
}
.id-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  top: -120px; right: -80px; background: radial-gradient(circle, rgba(96, 165, 250, .35), transparent 70%);
}
.id-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; position: relative; z-index: 1; }
.id-card-label { color: rgba(255, 255, 255, .5); }
.id-card-status { display: flex; align-items: center; gap: 6px; color: #86efac; }
.id-card-status span { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.avatar { position: relative; width: 124px; height: 124px; margin: 26px auto 20px; display: grid; place-items: center; z-index: 1; }
.avatar-inner {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .4);
}
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(147, 197, 253, .4); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.id-card-info { text-align: center; position: relative; z-index: 1; }
.id-card-name { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.id-card-role { font-size: 10px; letter-spacing: 2px; color: #93c5fd; margin-top: 2px; font-weight: 600; }
.id-card-line { height: 1px; background: rgba(255, 255, 255, .12); margin: 20px 0 16px; }
.id-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.id-card-meta div { display: flex; flex-direction: column; gap: 2px; }
.id-card-meta span { font-size: 9px; letter-spacing: 1.2px; color: rgba(255, 255, 255, .4); font-weight: 700; }
.id-card-meta strong { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.id-card-motto {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11.5px; letter-spacing: .5px; color: rgba(219, 234, 254, .82); line-height: 1.6;
}
.id-card-motto::before { content: "“"; color: #93c5fd; margin-right: -2px; }
.id-card-motto::after { content: "”"; color: #93c5fd; margin-left: -2px; }
.id-card-barcode {
  height: 30px; margin-top: 24px; opacity: .45;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px, #fff 9px 12px, transparent 12px 14px);
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  z-index: 2;
}
.float-chip strong { display: block; font-size: 12px; color: var(--ink); }
.float-chip small { font-size: 10px; color: var(--muted); }
.chip-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; }
.chip-1 { top: 12%; left: -6%; animation: float 6s ease-in-out infinite; }
.chip-1 .chip-icon { background: #eff6ff; color: var(--brand); }
.chip-2 { bottom: 12%; right: -5%; animation: float 6s ease-in-out 1.5s infinite; }
.chip-2 .chip-icon { background: #ecfeff; color: #0891b2; }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint-line { width: 1px; height: 40px; background: linear-gradient(var(--brand), transparent); position: relative; overflow: hidden; }
.scroll-hint-line::after { content: ""; position: absolute; top: -40px; left: 0; width: 1px; height: 40px; background: var(--brand); animation: scrollline 2s infinite; }
@keyframes scrollline { to { top: 40px; } }
.scroll-hint-text { font-size: 9px; letter-spacing: 2px; color: var(--faint); font-weight: 700; }

/* ---------- 数据条 ---------- */
.stats { background: var(--bg-soft); border-block: 1px solid var(--line); padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: var(--line); }
.stat-number { font-size: clamp(34px, 4vw, 50px); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -1.5px; }
.stat-suffix { color: var(--brand); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-lead { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.7; margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; font-size: 15px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.skill-tags span {
  font-size: 12.5px; font-weight: 500; color: var(--brand-deep);
  padding: 6px 13px; border-radius: 7px; background: var(--bg-tint); border: 1px solid transparent;
  transition: border-color .2s, transform .2s;
}
.skill-tags span:hover { border-color: rgba(37, 99, 235, .3); transform: translateY(-2px); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--brand); margin-bottom: 14px;
}
.value-icon svg { width: 21px; height: 21px; }
.value-card h3 { font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 工作成果 ---------- */
.projects { background: var(--bg-soft); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card {
  display: block; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .35); }
.project-visit {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  padding: 5px 11px; border-radius: 100px; backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.project-card:hover .project-visit { opacity: 1; transform: none; }
.project-cover { height: 172px; position: relative; display: grid; place-items: center; overflow: hidden; }
.project-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cover-1 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.cover-2 { background: linear-gradient(135deg, #0f766e, #0891b2); }
.cover-3 { background: linear-gradient(135deg, #4338ca, #6d28d9); }
.cover-4 { background: linear-gradient(135deg, #1e293b, #334155); }
.project-index { position: absolute; top: 16px; left: 20px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); letter-spacing: 1px; z-index: 1; }
.project-glyph {
  font-size: 84px; font-weight: 800; color: rgba(255, 255, 255, .16); line-height: 1;
  transition: transform .4s var(--ease), color .4s; z-index: 1;
}
.project-card:hover .project-glyph { transform: scale(1.08) rotate(-4deg); color: rgba(255, 255, 255, .24); }
.project-body { padding: 24px; }
.project-tags { display: flex; gap: 7px; margin-bottom: 10px; }
.project-tags span { font-size: 11px; font-weight: 600; color: var(--brand); background: #eff6ff; padding: 3px 9px; border-radius: 5px; }
.project-body h3 { font-size: 19px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.project-body p { font-size: 13.5px; color: var(--muted); line-height: 1.75; min-height: 71px; }
.project-stack { font-size: 12px; color: var(--faint); margin-top: 14px; font-family: "Inter", monospace; }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 16px; }
.project-link span { transition: transform .2s; }
.project-link:hover span { transform: translateX(4px); }

/* ---------- 履历 ---------- */
.timeline { max-width: 820px; margin-inline: auto; position: relative; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-left: 44px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.timeline-date { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .5px; margin-bottom: 5px; }
.timeline-content h3 { font-size: 18px; color: var(--ink); font-weight: 700; }
.timeline-org { display: inline-block; font-size: 13px; color: var(--faint); margin: 3px 0 8px; }
.timeline-content p { font-size: 14px; color: var(--muted); max-width: 640px; }

/* ---------- 联系 ---------- */
.contact { padding-bottom: 120px; }
.contact-card {
  position: relative; overflow: hidden; text-align: center; padding: 84px 24px;
  border-radius: 24px; background: linear-gradient(150deg, #f8faff, #eff4fc);
  border: 1px solid var(--line);
}
.contact-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; top: -300px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 65%); }
.contact-card > * { position: relative; z-index: 1; }
.contact-title { font-size: clamp(30px, 4.5vw, 48px); color: var(--ink); font-weight: 800; letter-spacing: -1.2px; line-height: 1.3; margin-bottom: 16px; }
.contact-desc { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.btn-large { padding: 16px 32px; font-size: 15px; }
.contact-links { margin-top: 30px; display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 13px; color: var(--faint); }
.contact-links a { color: var(--muted); transition: color .2s; }
.contact-links a:hover { color: var(--brand); }
.link-btn { border: 0; background: none; padding: 0; font-size: inherit; color: var(--muted); cursor: pointer; transition: color .2s; font-family: inherit; }
.link-btn:hover { color: var(--brand); }
.contact-hint { margin-top: 16px; font-size: 12px; color: var(--faint); }
.contact-qr { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-qr img.proof-img { width: 112px; height: 112px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-qr img.proof-img:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-qr span { font-size: 12px; color: var(--faint); }

/* 轻提示 toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 12px 22px; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 400;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
.site-footer p { font-size: 12px; color: var(--faint); }
.back-to-top { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; transition: color .2s; }
.back-to-top:hover { color: var(--brand); }

/* ---------- 01 个人信息 ---------- */
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.profile-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: 18px; box-shadow: var(--shadow-md); display: block; }
.photo-placeholder {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 18px;
  background: linear-gradient(150deg, var(--bg-tint), #e6eefb);
  border: 1px dashed #c3d4ee;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  color: #93a9c9; font-size: 14px; font-weight: 600;
}
.photo-placeholder svg { width: 64px; height: 64px; opacity: .8; }
.profile-info .profile-lead { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.7; margin-bottom: 16px; }
.profile-info p { font-size: 15px; margin-bottom: 14px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 24px; border-top: 1px solid var(--line); }
.info-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.info-item span { color: var(--faint); }
.info-item strong { color: var(--ink); font-weight: 600; text-align: right; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }

/* ---------- 02 技术栈 ---------- */
.skills { background: var(--bg-soft); }
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.skill-group:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.skill-group-icon { color: var(--brand); font-size: 13px; }
.skill-group-head h3 { font-size: 16px; color: var(--ink); font-weight: 700; }
.skill-items { display: flex; flex-direction: column; gap: 15px; }
.skill-item { font-size: 13px; }
.skill-item > span { display: block; color: var(--ink-soft); font-weight: 500; margin-bottom: 7px; }
.bar { height: 6px; border-radius: 6px; background: var(--bg-tint); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); width: 0; transition: width 1.2s var(--ease); }

/* ---------- 证明类通用 ---------- */
.proof-section.alt { background: var(--bg-soft); }
.shot-placeholder {
  width: 100%; height: 100%; min-height: 150px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #f4f7fb, #f4f7fb 12px, #eef3fa 12px, #eef3fa 24px);
  border: 1px dashed #c8d7ec;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  color: #94a9c8; font-size: 13px; font-weight: 600; text-align: center; padding: 14px;
}
.shot-placeholder svg { width: 40px; height: 40px; opacity: .75; }
img.proof-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }

/* 沟通 */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proof-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.proof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proof-shot { height: 220px; padding: 16px 16px 0; }
.proof-shot .shot-placeholder, .proof-shot img.proof-img { border-radius: 10px; }
/* 沟通记录截图：完整显示聊天内容，不裁切 */
.proof-section#communication .proof-shot { height: auto; padding: 14px; background: var(--bg-tint); }
.proof-section#communication .proof-img { height: auto; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.proof-note { margin-top: 20px; font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.7; }
.proof-body { padding: 18px 22px 22px; }
.proof-body h3 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.proof-body p { font-size: 13.5px; color: var(--muted); }

/* 技术圈子卡片 */
.circle-card {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: center;
  padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8 60%, #2563eb);
  color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.circle-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  top: -110px; right: 120px; background: radial-gradient(circle, rgba(147, 197, 253, .35), transparent 70%);
}
.circle-main, .circle-side { position: relative; z-index: 1; }
.circle-main { display: flex; gap: 18px; align-items: flex-start; }
.circle-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #bfdbfe; font-size: 24px;
}
.circle-text h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.circle-text p { font-size: 13.5px; color: #dbeafe; line-height: 1.8; }
.circle-text p strong { color: #fff; }
.circle-side { display: flex; flex-direction: column; gap: 16px; }
.circle-num { display: flex; align-items: baseline; gap: 8px; }
.circle-num strong { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.circle-num span { font-size: 13px; color: #bfdbfe; }
.circle-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.circle-tags span { font-size: 11px; font-weight: 600; color: #e0e7ff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 6px; }

/* 证书 */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-shot { height: 220px; padding: 14px 14px 0; }
.cert-shot img.proof-img { object-fit: contain; border-radius: 8px; background: var(--bg-soft); }
.cert-body { padding: 16px 18px 20px; }
.cert-body h3 { font-size: 15px; color: var(--ink); font-weight: 700; }
.cert-body p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* 学历 */
.edu-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; max-width: 940px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-sm); }
.edu-badge { font-size: 40px; margin-bottom: 12px; }
.edu-info h3 { font-size: 24px; color: var(--ink); font-weight: 800; letter-spacing: -.5px; }
.edu-school { font-size: 16px; color: var(--brand); font-weight: 600; margin-top: 4px; }
.edu-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.edu-meta span { font-size: 12px; color: var(--brand-deep); background: var(--bg-tint); padding: 5px 12px; border-radius: 6px; }
.edu-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; line-height: 1.75; }
.edu-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.edu-shots .shot-placeholder { aspect-ratio: 3 / 4; }
.edu-shots img.proof-img { height: auto; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }

/* 日报 */
.daily-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.daily-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.daily-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.daily-shot { height: 240px; padding: 16px 16px 0; }
.daily-body { padding: 18px 20px 22px; }
.daily-body h3 { font-size: 16px; color: var(--ink); font-weight: 700; }
.daily-body p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 日报真实记录版式 */
.daily-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.daily-summary-item { text-align: center; padding: 22px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.daily-summary-item strong { display: block; font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -1px; }
.daily-summary-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.daily-intro { max-width: 820px; margin: 0 auto 32px; text-align: center; font-size: 14px; color: var(--muted); }
.daily-log { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.daily-log:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.daily-log-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.daily-log-date { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.daily-log-tag { font-size: 11px; font-weight: 600; color: var(--brand); background: #eff6ff; padding: 4px 11px; border-radius: 6px; }
.daily-log-tag.weekly { color: #0f766e; background: #ecfdf5; }
.daily-log-sec { margin-bottom: 16px; }
.daily-log-sec:last-child { margin-bottom: 0; }
.daily-log-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .5px; margin-bottom: 8px; }
.daily-log-label.done { color: var(--brand); }
.daily-log-sec ol { list-style: none; counter-reset: dlog; display: flex; flex-direction: column; gap: 7px; }
.daily-log-sec li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; counter-increment: dlog; }
.daily-log-sec li::before { content: counter(dlog); position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 5px; background: var(--bg-tint); color: var(--brand); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.daily-note { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 24px; }

/* ---------- 图片灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .9); display: none; align-items: center; justify-content: center; padding: 40px; opacity: 0; transition: opacity .25s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 24px; right: 32px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .8; transition: opacity .2s; }
.lightbox-close:hover { opacity: 1; }

/* ---------- 滚动渐显 ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-social { justify-content: center; }
  .hero-role { justify-content: center; }
  .hero-visual { order: -1; }
  .float-chip { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skill-groups { grid-template-columns: 1fr 1fr; }
  .cert-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 12px 24px; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .container { width: min(var(--maxw), calc(100% - 36px)); }
  .section { padding: 76px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat:nth-child(2)::after { display: none; }
  .project-grid, .about-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 56px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero { padding-top: 120px; }
  .scroll-hint { display: none; }
  .value-grid, .skill-groups, .cert-grid, .daily-grid, .proof-grid { grid-template-columns: 1fr 1fr; }
  .daily-summary { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo { max-width: 320px; }
  .circle-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
}
@media (max-width: 480px) {
  .value-grid, .skill-groups, .cert-grid, .daily-grid, .proof-grid, .edu-shots, .info-list { grid-template-columns: 1fr; }
  .edu-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .nav-links { gap: 0; }
}

/* ============================================================
   授权码门禁
   ============================================================ */
body.auth-locked { overflow: hidden; }
.auth-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(37, 99, 235, .16), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(14, 165, 233, .12), transparent 60%),
    #f7f9fc;
  backdrop-filter: blur(6px);
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.auth-gate.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.auth-card {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: authIn .6s var(--ease) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-mark {
  width: 58px; height: 58px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
}
.auth-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; letter-spacing: -.3px; }
.auth-desc { font-size: 13px; color: var(--muted); margin-bottom: 26px; line-height: 1.7; }
.auth-input-wrap { display: flex; gap: 10px; }
.auth-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  font-size: 15px; color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input::placeholder { color: var(--faint); }
.auth-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.auth-submit {
  height: 48px; padding: 0 20px; flex-shrink: 0;
  font-size: 14px; font-weight: 700; color: #fff;
  background: var(--brand); border: 0; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .2s, transform .2s;
}
.auth-submit:hover { background: var(--brand-deep); transform: translateY(-1px); }
.auth-submit span { margin-left: 4px; }
.auth-error { min-height: 20px; margin-top: 12px; font-size: 12px; color: #dc2626; text-align: left; }
.auth-gate.shake .auth-card { animation: authShake .4s ease; }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.auth-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.auth-contact {
  background: none; border: 0; padding: 0; margin-left: 4px;
  font-size: 12px; font-weight: 700; color: var(--brand);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
@media (max-width: 480px) {
  .auth-card { padding: 36px 22px 28px; }
  .auth-input-wrap { flex-direction: column; }
  .auth-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
