/* ==========================================================================
   Kay Chen · 个人主页样式
   赛博霓虹主题 / 纯手写 CSS，无框架无构建
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg:        #05060a;
  --bg-soft:   #0a0d18;
  --panel:     rgba(16, 21, 38, .55);
  --cyan:      #00f0ff;
  --magenta:   #ff2d95;
  --purple:    #a855f7;
  --lime:      #7dff9b;
  --text:      #e2e8f5;
  --muted:     #7b88a8;
  --line:      rgba(120, 160, 255, .14);

  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-body: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --wrap: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--magenta); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 99px;
  border: 3px solid #05060a;
}

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

/* ==========================================================================
   背景层
   ========================================================================== */
.bg-grid, .bg-glow, .particles, .scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 10%, transparent 75%);
  opacity: .55;
}

@keyframes gridMove { to { background-position: 0 70px, 70px 0; } }

.bg-glow {
  background:
    radial-gradient(700px 520px at 12% 8%,  rgba(0, 240, 255, .16), transparent 62%),
    radial-gradient(680px 560px at 88% 22%, rgba(168, 85, 247, .18), transparent 62%),
    radial-gradient(760px 600px at 50% 105%, rgba(255, 45, 149, .12), transparent 60%);
  animation: glowBreathe 14s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  from { opacity: .75; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}

/* 底部透视地平线（挂在 .bg-glow 上，避免被 .bg-grid 的遮罩裁掉） */
.bg-glow::after {
  content: '';
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -12vh;
  height: 58vh;
  background-image:
    linear-gradient(rgba(0, 240, 255, .26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .26) 1px, transparent 1px);
  background-size: 74px 74px;
  transform: perspective(330px) rotateX(63deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 6%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 6%, transparent 72%);
  animation: gridMove 6s linear infinite;
  opacity: .8;
}

.particles { z-index: 1; }

.scanlines {
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

.scanlines::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 32vh;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, .05), transparent);
  animation: sweep 9s linear infinite;
}

@keyframes sweep {
  from { transform: translateY(-40vh); }
  to   { transform: translateY(140vh); }
}

/* 鼠标跟随光晕 */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, .10), transparent 65%);
  pointer-events: none;
  z-index: 3;
  will-change: transform;
  transition: opacity .4s;
  opacity: 0;
}

/* 滚动进度条 */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(255, 255, 255, .05);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--purple));
  box-shadow: 0 0 12px var(--cyan);
}

/* ==========================================================================
   开场动画
   ========================================================================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .5s var(--ease), visibility .5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }

.boot__inner { text-align: center; font-family: var(--font-mono); }
.boot__logo {
  font-size: 42px;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 240, 255, .7);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.boot__text {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--muted);
}
.boot__bar {
  margin: 18px auto 0;
  width: 200px; height: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.boot__bar i {
  display: block; height: 100%; width: 0;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ==========================================================================
   导航
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background .35s, backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: 15px;
}
.nav__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 22px var(--cyan), 0 0 40px rgba(0, 240, 255, .5); }
}

.nav__links { margin-left: auto; display: flex; gap: 6px; }

.nav__link {
  position: relative;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition: color .25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
  box-shadow: 0 0 8px var(--cyan);
}
.nav__link:hover, .nav__link.is-active { color: var(--cyan); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: 8px 18px; font-size: 13px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary {
  color: #04060d;
  background: linear-gradient(120deg, var(--cyan), #7af7ff 45%, var(--purple));
  box-shadow: 0 0 0 rgba(0, 240, 255, 0);
}
.btn--primary:hover {
  box-shadow: 0 8px 34px rgba(0, 240, 255, .45), 0 0 0 1px rgba(0, 240, 255, .5);
}

/* 扫描光 */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }

.btn--outline {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, .22), inset 0 0 20px rgba(0, 240, 255, .07);
}

.btn--ghost {
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, .35);
  background: rgba(0, 240, 255, .05);
  font-size: 13px;
}
.btn--ghost:hover {
  background: rgba(0, 240, 255, .14);
  box-shadow: 0 0 22px rgba(0, 240, 255, .3);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
}

.hero__inner { width: min(100%, 900px); }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .025);
  backdrop-filter: blur(6px);
}
.hero__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 2s infinite;
}

/* 故障艺术标题 */
.glitch {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 12.5vw, 148px);
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(0, 240, 255, .55),
    0 0 60px rgba(168, 85, 247, .35);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 100% 0);
  mix-blend-mode: screen;
}
.glitch::before {
  left: 3px;
  color: var(--cyan);
  text-shadow: -2px 0 var(--cyan);
  animation: glitch1 3.4s steps(2, end) infinite;
}
.glitch::after {
  left: -3px;
  color: var(--magenta);
  text-shadow: 2px 0 var(--magenta);
  animation: glitch2 2.8s steps(2, end) infinite;
}
@keyframes glitch1 {
  0%, 82%, 100% { clip-path: inset(0 0 100% 0); }
  84% { clip-path: inset(18% 0 62% 0); transform: translate(-4px, 1px); }
  88% { clip-path: inset(54% 0 24% 0); transform: translate(4px, -1px); }
  92% { clip-path: inset(8% 0 78% 0);  transform: translate(-3px, 0); }
}
@keyframes glitch2 {
  0%, 80%, 100% { clip-path: inset(0 0 100% 0); }
  83% { clip-path: inset(66% 0 12% 0); transform: translate(4px, -1px); }
  87% { clip-path: inset(28% 0 52% 0); transform: translate(-4px, 1px); }
  91% { clip-path: inset(78% 0 6% 0);  transform: translate(3px, 0); }
}

.hero__typing {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.4vw, 20px);
  color: var(--cyan);
  min-height: 1.6em;
}
.hero__terminal { color: var(--magenta); }

.caret {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink .9s steps(2) infinite;
  box-shadow: 0 0 10px var(--cyan);
}

.hero__desc {
  margin: 22px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16.5px);
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero__socials {
  margin-top: 42px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .02);
  transition: all .28s var(--ease);
}
.social-pill svg { width: 15px; height: 15px; }
.social-pill:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, .45);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, .2);
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  animation: float 2.4s ease-in-out infinite;
}
.scroll-hint__mouse {
  width: 22px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  justify-items: center;
  padding-top: 6px;
}
.scroll-hint__mouse i {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 50% { transform: translateY(9px); opacity: .3; } }
@keyframes float { 50% { transform: translate(-50%, 8px); } }

/* ==========================================================================
   区块通用
   ========================================================================== */
.section {
  position: relative;
  z-index: 5;
  padding: clamp(80px, 12vw, 140px) 0;
}

.section__head { margin-bottom: 54px; }
.section__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--magenta);
  letter-spacing: .2em;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 6px;
}
.section__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--muted);
  margin-top: 8px;
}
.section__sub::before { content: '// '; color: var(--cyan); }

/* 滚动进场 */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: start;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .035);
  border-bottom: 1px solid var(--line);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__path {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.terminal__body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  min-height: 300px;
}
.tline { display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; }
.tline.show { animation: tlineIn .35s forwards; }
@keyframes tlineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.tline__p { color: var(--magenta); }
.tline__c { color: var(--lime); }
.tline__k { color: var(--cyan); }
.tline__v { color: var(--text); }

.about__text { padding-top: 8px; }
.about__intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  white-space: pre-line;
}
.about__facts { margin-top: 26px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.about__facts li {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(10, 13, 24, .8);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: background .25s;
}
.about__facts li:hover { background: rgba(0, 240, 255, .06); }
.about__facts b { color: var(--cyan); font-weight: 600; min-width: 74px; }
.about__facts span { color: var(--muted); }

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.skill {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 21, 38, .4);
  transition: border-color .3s, transform .3s var(--ease);
}
.skill:hover { border-color: rgba(0, 240, 255, .4); transform: translateY(-3px); }

.skill__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.skill__name { color: var(--text); }
.skill__num { color: var(--cyan); }

.skill__track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.skill__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(0, 240, 255, .6);
  transition: width 1.3s var(--ease);
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 21, 38, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(130deg, var(--cyan), transparent 40%, transparent 60%, var(--magenta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, .55); }
.card:hover::before { opacity: 1; }

/* 鼠标光晕跟随 */
.card__spot {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, .16), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  transform: translate(-50%, -50%);
}
.card:hover .card__spot { opacity: 1; }

.card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 240, 255, .07);
  color: var(--cyan);
}
.card__icon svg { width: 19px; height: 19px; }
.card__stars {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card__stars svg { width: 13px; height: 13px; fill: var(--magenta); }

.card__name {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  transition: color .25s;
}
.card:hover .card__name { color: var(--cyan); }

.card__desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, .25);
  background: rgba(0, 240, 255, .07);
  border-radius: 6px;
}

.card__link {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card__link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .card__link { color: var(--cyan); }
.card:hover .card__link svg { transform: translate(3px, -3px); }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-cta {
  position: relative;
  display: block;
  padding: 1px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--cyan), var(--purple) 45%, var(--magenta));
  transition: transform .35s var(--ease), box-shadow .35s;
}
.blog-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0, 240, 255, .28);
}
.blog-cta__bg {
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(168, 85, 247, .3), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(0, 240, 255, .22), transparent 60%),
    #070a14;
}
.blog-cta__content { position: relative; padding: clamp(30px, 5vw, 52px); }

.blog-cta__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--magenta);
}
.blog-cta__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 42px);
  font-weight: 700;
}
.blog-cta__desc { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 620px; }
.blog-cta__url {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  opacity: .85;
}
.blog-cta__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #04060d;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
}
.blog-cta__go svg { width: 16px; height: 16px; }

.posts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.post {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 21, 38, .4);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.post:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, .4);
  background: rgba(0, 240, 255, .05);
}
.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.post__tag {
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--magenta);
  background: rgba(255, 45, 149, .12);
}
.post__title {
  margin-top: 12px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: color .25s;
}
.post:hover .post__title { color: var(--cyan); }
.post__arrow { margin-top: 14px; color: var(--cyan); font-family: var(--font-mono); font-size: 12.5px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section--contact { text-align: center; }
.section--contact .section__head { text-align: center; }
.contact { display: flex; flex-direction: column; align-items: center; }
.contact__big { font-size: clamp(38px, 9vw, 96px); }
.contact__desc { margin-top: 22px; color: var(--muted); max-width: 520px; }
.contact__mail {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 26px);
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 240, 255, .3);
  transition: all .3s;
}
.contact__mail:hover { color: var(--magenta); border-color: var(--magenta); text-shadow: 0 0 20px rgba(255, 45, 149, .6); }

.contact__links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: rgba(5, 6, 10, .6);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.footer__meta { display: flex; align-items: center; gap: 9px; letter-spacing: .16em; }
.footer__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 2s infinite;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(5, 6, 10, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
    margin: 0;
  }
  .nav__links.is-open { transform: none; }
  .nav__link { font-size: 22px; padding: 12px 24px; }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; z-index: 2; }
  .nav__cta { display: none; }
  .cursor-glow { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding-top: 100px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .card, .terminal__body { padding: 22px; }
  .footer__inner { justify-content: center; text-align: center; }
}

/* 尊重系统的减少动效设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
