/* ============================================================
   贾柯伟 · 个人作品集  样式 v3（浅色高级感 / tophoo 风格）
   设计系统：柔和层次阴影、克制渐变、细腻纹理、统一动效、移动端适配
   ============================================================ */

:root {
  --bg: #f7f7fd;
  --bg-2: #f0effa;
  --surface: #ffffff;
  --surface-2: #f5f4fc;
  --border: #e8e7f3;
  --border-strong: #dcd9f0;
  --text: #1b1b30;
  --muted: #5b5c76;
  --muted-2: #9293ad;
  --accent: #ff6b35;
  --accent-2: #ff8c5a;
  --violet: #7c5cf6;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #7c5cf6 0%, #ec4899 100%);
  --grad-warm: linear-gradient(135deg, #ff6b35 0%, #f43f5e 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,92,246,.10), rgba(236,72,153,.10));

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(64,55,120,.04), 0 2px 8px rgba(64,55,120,.04);
  --shadow-sm: 0 1px 3px rgba(64,55,120,.05), 0 6px 18px rgba(64,55,120,.06);
  --shadow-md: 0 4px 12px rgba(64,55,120,.07), 0 16px 36px rgba(64,55,120,.10);
  --shadow-lg: 0 8px 24px rgba(64,55,120,.10), 0 28px 60px rgba(64,55,120,.14);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(124,92,246,.18); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* 全站背景光晕（固定、细腻） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 38% at 14% 8%, rgba(124,92,246,.07), transparent 70%),
    radial-gradient(42% 36% at 88% 16%, rgba(236,72,153,.05), transparent 70%),
    radial-gradient(50% 42% at 72% 92%, rgba(124,92,246,.06), transparent 72%);
}

/* 滚动条（Webkit） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8d6ee; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c3c0e4; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用区段 ---------- */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-title {
  font-size: 46px; font-weight: 800; margin: 14px 0 16px; letter-spacing: -0.8px; line-height: 1.15;
}
.section-title .grad, h1 .grad, h2 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 640px; line-height: 1.8; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.68); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  border-color: var(--border); background: rgba(255,255,255,.86);
  box-shadow: 0 1px 16px rgba(64,55,120,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(124,92,246,.32);
}
.brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links > li { flex-shrink: 0; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .18s var(--ease); padding: 4px 2px; }
.nav-links a:hover { color: var(--violet); }
.nav-links a.active { color: var(--violet); font-weight: 700; }
.nav-cta {
  position: relative; background: #fff; color: transparent;
  padding: 12px 26px; border: none; border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; flex-shrink: 0; min-width: 132px; text-align: center;
  transition: color .22s var(--ease), transform .18s var(--ease), box-shadow .22s var(--ease);
  box-shadow: 0 0 0 1.5px #e7e6f2;
}
/* 紫粉渐变细描边（::before mask 技巧） */
.nav-cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, #7c5cf6 0%, #ec4899 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
/* 文字渐变（紫→粉） */
.nav-cta-text {
  display: inline-block;
  color: #7c5cf6;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .22s var(--ease), letter-spacing .22s var(--ease);
}
.nav-cta:hover .nav-cta-text { color: #fff; letter-spacing: .6px; }
/* hover：填充实心紫粉渐变 + 白字（描边融入背景） */
.nav-cta:hover { background: linear-gradient(135deg, #7c5cf6 0%, #ec4899 100%); box-shadow: 0 8px 22px rgba(124,92,246,.32); }
.nav-cta:hover::before { opacity: 0; }
.nav-cta:hover .nav-cta-text { -webkit-text-fill-color: #fff; color: #fff; }
.nav-cta:active { transform: translateY(0) scale(.98); }
/* 覆盖 .nav-links a 的 color 优先级 */
.nav-links .nav-cta, .nav-links .nav-cta:hover, .nav-links .nav-cta:active { color: transparent; }
.nav-cta:hover { transform: translateY(-1px); }
.lang-switch { white-space: nowrap; flex-shrink: 0; }
.lang-switch {
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-xs);
  transition: color .18s, border-color .18s, transform .18s var(--ease); white-space: nowrap;
}
.lang-switch:hover { color: var(--violet); border-color: rgba(124,92,246,.45); transform: translateY(-1px); }
.menu-btn { display: none; font-size: 24px; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247,247,253,.55) 0%, rgba(247,247,253,.9) 62%, var(--bg) 100%),
    url('/static/images/work-scene.png') center/cover no-repeat;
}
/* 细腻网格纹理（渐变遮罩） */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,92,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,246,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 38%, #000, transparent);
          mask-image: radial-gradient(72% 64% at 50% 38%, #000, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 46% at 26% 36%, rgba(124,92,246,.16), transparent 70%),
              radial-gradient(42% 42% at 80% 62%, rgba(236,72,153,.11), transparent 72%);
}
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.72); color: var(--accent);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,107,53,.28); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}
.badge .pulse { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,107,53,.7); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,53,.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}
.hero h1 {
  margin: 22px 0 16px; font-size: 88px; line-height: 1.0;
  font-weight: 900; letter-spacing: -2.5px;
}
.hero .tagline { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 0 34px; line-height: 1.8; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.btn-primary {
  background: var(--grad-warm); color: #fff;
  box-shadow: 0 10px 28px rgba(255,107,53,.32), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(244,63,94,.40), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: #fff; box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  color: var(--muted-2); font-size: 12px; letter-spacing: 2px;
  animation: bob 2.4s infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- 卡片通用：渐变描边 hover ---------- */
.hover-card { position: relative; }
.hover-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(124,92,246,.55), rgba(236,72,153,.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.hover-card:hover::before { opacity: 1; }

/* ---------- Why / 特性卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 54px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 34px 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature .icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--violet); font-size: 22px; margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.feature h3 { margin: 0 0 10px; font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.75; }

/* ---------- Selected Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 54px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.work-cover {
  height: 220px; position: relative; overflow: hidden;
  background: var(--grad);
  display: flex; align-items: flex-end; justify-content: center;
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-cover img { transform: scale(1.05); }
.work-cover.alt-1 { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.work-cover.alt-2 { background: linear-gradient(135deg, #f97316, #ec4899); }
.work-cover.alt-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.work-cover.alt-4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.work-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px),
    radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,.20), transparent 60%);
}
.work-cover .big {
  position: relative; color: rgba(255,255,255,.97); font-weight: 800; font-size: 26px;
  letter-spacing: -.5px; text-align: center; padding: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.work-body { padding: 24px 26px 26px; }
.work-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
}
.work-card h3 { margin: 14px 0 8px; font-size: 19px; }
.work-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 54px; }
.step {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step .num {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(124,92,246,.3);
}
.step h4 { margin: 0 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.75; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 54px; }
.svc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 34px 30px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc .icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--grad-soft); color: var(--pink);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  margin-bottom: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.svc h3 { margin: 0 0 10px; font-size: 20px; }
.svc p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; line-height: 1.7; }
.svc ul { list-style: none; padding: 0; margin: 0; }
.svc li {
  color: var(--muted); font-size: 14px; padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  display: flex; align-items: center; gap: 8px;
}
.svc li:last-child { border-bottom: none; }
.svc li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; margin-top: 54px;
}
.about-img {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4/5; background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img .tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,.86); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--text);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-xs);
}
.about-text h2 { font-size: 38px; margin: 0 0 16px; line-height: 1.18; }
.about-text p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.stat { padding: 18px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat .num {
  font-size: 44px; font-weight: 900; letter-spacing: -1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .num .plus { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- Contact CTA ---------- */
.cta {
  background:
    radial-gradient(40% 70% at 82% 18%, rgba(236,72,153,.12), transparent 70%),
    radial-gradient(40% 70% at 18% 82%, rgba(124,92,246,.12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta .section-title { margin-bottom: 24px; }
.cta .email-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  padding: 14px 26px; border-radius: 999px; color: var(--text); font-weight: 600;
  box-shadow: var(--shadow-sm); transition: background .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.cta .email-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding: 64px 0 32px; border-top: 1px solid var(--border); }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 0; line-height: 1.8; }
.foot-col h5 { font-size: 14px; margin: 0 0 18px; color: var(--text); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: var(--muted); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: 13px; text-align: center;
}

/* ---------- Resume page ---------- */
.resume-wrap { max-width: 860px; margin: 0 auto; padding: 124px 24px 64px; }
.resume-head { text-align: center; margin-bottom: 32px; }
.resume-head h1 { font-size: 44px; margin: 0 0 10px; letter-spacing: -1px; }
.resume-head .r-role {
  color: var(--accent); font-weight: 600; font-size: 17px; margin-bottom: 16px;
  display: inline-block; background: rgba(255,107,53,.08); border: 1px solid rgba(255,107,53,.24);
  padding: 6px 20px; border-radius: 999px;
}
.r-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.r-contact span { white-space: nowrap; }
.resume-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 32px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.resume-block h2 { font-size: 19px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.resume-block h2::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--grad); }
.resume-summary { color: var(--muted); line-height: 1.9; margin: 0; }
.skill-cat-title { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.skill-cat-title:first-child { margin-top: 0; }
.resume-block h3 { font-size: 16px; margin: 0; }
.resume-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.resume-item:last-child { border-bottom: none; }
.resume-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.resume-item-date { color: var(--muted-2); font-size: 13px; white-space: nowrap; background: var(--surface-2); padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); }
.resume-block .meta { color: var(--muted); font-size: 13.5px; margin: 4px 0 10px; }
.resume-list { padding-left: 18px; margin: 8px 0 6px; }
.resume-list li { margin-bottom: 5px; color: var(--muted); line-height: 1.75; }
.achievements { margin-top: 10px; background: var(--grad-soft); border-radius: 12px; padding: 12px 16px; }
.achievements-title { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); padding: 5px 13px; border-radius: 999px; font-size: 12.5px; transition: border-color .15s, color .15s, transform .15s var(--ease); }
.chip:hover { border-color: rgba(124,92,246,.4); color: var(--violet); transform: translateY(-1px); }
.chip-level { font-style: normal; color: var(--accent); font-weight: 600; }

/* ---------- Articles ---------- */
.article-list { display: grid; gap: 16px; margin-top: 30px; }
.article-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card h3 { margin: 0 0 8px; font-size: 19px; }
.article-card p { color: var(--muted); margin: 0; }
.article-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 30px; box-shadow: var(--shadow-sm); }
.article-body p { color: var(--muted); margin: 0 0 16px; font-size: 16px; line-height: 1.85; }

/* ---------- 404 ---------- */
.center-box { text-align: center; padding: 150px 20px 80px; }
.center-box h1 { font-size: 96px; color: var(--accent); margin: 0; }
.center-box p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- 博客 / 文章布局 ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; margin-top: 40px; align-items: start; }
.blog-main { min-width: 0; }
.blog-side { position: sticky; top: 98px; display: flex; flex-direction: column; gap: 18px; }

.post-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-cover { border-radius: 14px; overflow: hidden; height: 130px; position: relative; background: var(--grad); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 800; color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
}
.post-cover.alt-0 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.post-cover.alt-1 { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.post-cover.alt-2 { background: linear-gradient(135deg, #f97316, #ec4899); }
.post-cover.alt-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.post-body { min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13px; margin-bottom: 8px; }
.post-cat { color: var(--accent); background: rgba(255,107,53,.10); border: 1px solid rgba(255,107,53,.28); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.post-title { margin: 0 0 8px; font-size: 20px; line-height: 1.35; transition: color .15s; }
.post-card:hover .post-title { color: var(--violet); }
.post-excerpt { color: var(--muted); margin: 0 0 12px; font-size: 14.5px; line-height: 1.75; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card h4 { margin: 0 0 14px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.side-recent { list-style: none; padding: 0; margin: 0; }
.side-recent li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.side-recent li:last-child { border-bottom: none; }
.side-recent a { color: var(--muted); transition: color .15s; }
.side-recent a:hover { color: var(--violet); }
.cta-mini { background: linear-gradient(135deg, rgba(124,92,246,.08), rgba(236,72,153,.08)); border-color: rgba(124,92,246,.25); }
.cta-mini p { margin: 0 0 14px; color: var(--text); font-size: 14px; }

/* ---------- 文章详情 ---------- */
.article-hero { padding-top: 124px; padding-bottom: 0; }
.article-hero-inner { max-width: 760px; }
.article-back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 18px; transition: color .15s; }
.article-back:hover { color: var(--violet); }
.article-h1 { font-size: 42px; line-height: 1.22; margin: 14px 0 14px; letter-spacing: -.8px; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 14px; }
.article-cover-img { max-width: var(--maxw); margin: 28px auto 0; padding: 0 24px; }
.article-cover-img img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.article-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.article-content h2 { font-size: 26px; margin: 32px 0 12px; padding-top: 8px; }
.article-content h3 { font-size: 20px; margin: 24px 0 10px; }
.article-content p { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 0 0 16px; }
.article-content ul, .article-content ol { color: var(--muted); font-size: 16px; line-height: 1.9; padding-left: 22px; margin: 0 0 16px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 12px 0; border: 1px solid var(--border); }
.article-content blockquote { border-left: 3px solid var(--accent); margin: 16px 0; padding: 10px 20px; color: var(--muted); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.article-content code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 14px; color: #be185d; }
.article-content pre { background: #f7f6fd; border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; margin: 0 0 18px; }
.article-content pre code { background: none; padding: 0; color: #374151; }
.article-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-content th { background: var(--surface-2); }

/* ---------- 联系页 ---------- */
.contact-wechat {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg, rgba(124,92,246,.10), rgba(236,72,153,.10));
  border: 1px solid rgba(124,92,246,.28);
  border-radius: var(--r-lg); padding: 30px 32px; margin-top: 48px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.wechat-avatar {
  width: 66px; height: 66px; border-radius: 20px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(124,92,246,.34);
}
.wechat-label { color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.wechat-id { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.contact-wechat .btn { margin-left: auto; flex-shrink: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 28px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: block;
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card .icon { font-size: 24px; margin-bottom: 14px; }
.contact-card h3 { margin: 0 0 8px; font-size: 17px; }
.contact-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; word-break: break-all; }
.contact-go { color: var(--accent); font-size: 13px; font-weight: 600; }
.contact-go.muted { color: var(--muted-2); }
.contact-cta {
  margin-top: 42px; padding: 32px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.contact-cta h3 { margin: 0 0 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .section-title { font-size: 38px; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: 58px; }
  .section { padding: 76px 0; }
  .section-title { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .lang-switch { order: -1; }
  .nav-links.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 14px;
    box-shadow: var(--shadow-lg); animation: menuIn .25s var(--ease);
  }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; }
  .post-card { grid-template-columns: 1fr; }
  .post-cover { height: 180px; }
  .article-h1 { font-size: 30px; }
  .article-content { padding: 24px; }
  .work-grid { gap: 18px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 46px; letter-spacing: -1.5px; }
  .hero .tagline { font-size: 17px; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 28px; }
  .contact-wechat { flex-direction: column; align-items: flex-start; }
  .contact-wechat .btn { margin-left: 0; width: 100%; justify-content: center; }
  .wechat-id { font-size: 24px; }
  .resume-head h1 { font-size: 32px; }
  .resume-item-head { flex-direction: column; }
  .resume-block { padding: 24px 20px; }
  .article-content { padding: 20px; }
  .container { padding: 0 18px; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .hero, .btn { display: none; }
  body { background: #fff; color: #000; }
  .resume-block, .article-body { background: #fff; border-color: #ddd; color: #000; box-shadow: none; }
}
