/* ===========================================================
   不一样的自己 — 站点样式
   配色取自首页背景图（云海彩虹）：深色天穹 + 光谱色点缀
   =========================================================== */

:root {
  --bg: #0a0d14;
  --bg-soft: #111621;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hi: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.18);
  --text: #e9ecf3;
  --text-dim: #98a2b6;
  --text-mute: #6b7688;
  --accent: #8b6cff;
  --accent-2: #2ad4ee;
  --accent-3: #f472b6;
  --grad: linear-gradient(115deg, #8b6cff 0%, #2ad4ee 48%, #f472b6 100%);
  --nav-h: 64px;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 56px);
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
/* 未滚动时：顶部压一层暗渐变，保证站名压在亮云上也读得清 */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 10, 17, .62) 0%, rgba(7, 10, 17, .28) 55%, transparent 100%);
  transition: opacity .35s ease;
}
.nav.scrolled { background: rgba(10, 13, 20, 0.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--border); }
.nav.scrolled::before { opacity: 0; }

.nav-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(4, 6, 12, .75);
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(139, 108, 255, .9);
}

.nav-links { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 10px); }

.nav-links a {
  font-size: 14px;
  color: #c3cbdb;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(4, 6, 12, .75);
}
/* 未滚动时导航飘在照片上，选中态用暗底才看得出 */
.nav-links a:hover { color: #fff; background: rgba(10, 13, 20, .40); }
.nav-links a.active { color: #fff; background: rgba(10, 13, 20, .48); }
/* 滚动后导航自己有暗底了，换回亮色高亮 */
.nav.scrolled .nav-links a { color: var(--text-dim); text-shadow: none; }
.nav.scrolled .nav-links a:hover { color: var(--text); background: var(--surface); }
.nav.scrolled .nav-links a.active { color: var(--text); background: var(--surface-hi); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
  isolation: isolate;
  overflow: hidden;
}

/* 背景图：默认手机版，宽屏换大图 */
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  background-image: url("/assets/img/hero-bg-mobile.webp");
  background-size: cover;
  background-position: center 36%;
  transform: scale(1.02);
  /* 原图偏暗，提一点亮度和饱和度，让云层层次和彩虹光晕出来 */
  filter: brightness(1.18) saturate(1.18) contrast(1.04);
}
@media (min-width: 820px) {
  .hero::before { background-image: url("/assets/img/hero-bg.webp"); }
}

/* 压暗只做在边缘，中心留亮，让背景图能被看见 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(118% 82% at 50% 46%, rgba(7, 10, 17, 0.06) 0%, rgba(7, 10, 17, 0.30) 56%, rgba(10, 13, 20, 0.88) 100%),
    linear-gradient(180deg, rgba(10, 13, 20, .58) 0%, rgba(10, 13, 20, .12) 24%, rgba(10, 13, 20, .16) 60%, rgba(10, 13, 20, .72) 86%, var(--bg) 100%);
}

.hero-inner { max-width: 900px; width: 100%; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .26em;
  color: #dae1ee;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  padding: 7px 18px 7px 14px;
  background: rgba(10, 13, 20, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.75); }
}

.hero h1 {
  font-size: clamp(38px, 10.5vw, 104px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .015em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 16%, #f2f5fb 54%, #c8d0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 用 drop-shadow 而不是 text-shadow：文字是透明色+背景裁剪，
     drop-shadow 跟随文字轮廓，在亮云上也拉得出对比 */
  filter: drop-shadow(0 3px 10px rgba(4, 6, 12, .55)) drop-shadow(0 16px 48px rgba(4, 6, 12, .55));
}

.hero-quote {
  font-size: clamp(15px, 2.6vw, 22px);
  color: #eaeef7;
  letter-spacing: .16em;
  font-weight: 300;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(4, 6, 12, .9), 0 8px 28px rgba(4, 6, 12, .7);
}
/* 彩虹字：渐变要比正文亮一档，否则压在亮云上会发乌。
   同时把继承来的 text-shadow 关掉 —— 透明文字上只剩一圈黑影，会把渐变糊脏。 */
.hero-quote .spectrum {
  background: linear-gradient(115deg, #c4a8ff 0%, #8df3ff 48%, #ffb3dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-shadow: none;
  filter: drop-shadow(0 1px 3px rgba(4, 6, 12, .95)) drop-shadow(0 0 14px rgba(4, 6, 12, .85));
}

.hero-rule {
  width: 64px; height: 2px;
  margin: 30px auto 0;
  border-radius: 2px;
  background: var(--grad);
  opacity: .8;
}

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, transparent, var(--text-mute));
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(.2); opacity: 0; transform-origin: top; }
  45%  { transform: scaleY(1);  opacity: 1; transform-origin: top; }
  100% { transform: scaleY(.2); opacity: 0; transform-origin: bottom; }
}

/* ---------- 通用区块 ---------- */
.section { padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 56px); }
.wrap { max-width: 1140px; margin: 0 auto; }

.section-head { margin-bottom: 44px; }
.section-head .kicker {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}
.section-head p {
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 15px;
  max-width: 620px;
}

/* ---------- 板块卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.062), rgba(255,255,255,.018));
  overflow: hidden;
  transition: transform .38s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .38s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-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: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(139, 108, 255, .13);
  border: 1px solid rgba(139, 108, 255, .22);
  margin-bottom: 20px;
  color: var(--accent);
}
.card:nth-child(2) .card-icon { background: rgba(42,212,238,.13); border-color: rgba(42,212,238,.22); color: var(--accent-2); }
.card:nth-child(3) .card-icon { background: rgba(244,114,182,.13); border-color: rgba(244,114,182,.22); color: var(--accent-3); }
.card:nth-child(4) .card-icon { background: rgba(255,255,255,.07); border-color: var(--border-hi); color: var(--text); }

.card h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; letter-spacing: .01em; }
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-mute);
  transition: color .3s, gap .3s;
}
.card:hover .arrow { color: var(--text); gap: 11px; }

/* ---------- 照片墙 ---------- */
.masonry {
  columns: 3 260px;
  column-gap: 16px;
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: zoom-in;
  transition: transform .4s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .4s;
}
.masonry figure:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow);
}
.masonry img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.masonry figure:hover img { transform: scale(1.045); }

.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 16, .92));
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  transform: translateY(6px);
  opacity: .93;
  transition: transform .35s, opacity .35s;
}
.masonry figcaption small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0;
}
.masonry figure:hover figcaption { transform: translateY(0); opacity: 1; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 12, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.8);
}
.lightbox figcaption {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s;
}
.lightbox-close:hover { background: rgba(255,255,255,.14); }

/* ---------- 文章列表 ---------- */
.post-list { display: flex; flex-direction: column; gap: 14px; }

.post {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  transition: transform .32s, border-color .3s, background .3s;
}
.post:hover {
  transform: translateX(5px);
  border-color: var(--border-hi);
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}
.post-date {
  flex: 0 0 82px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: .06em;
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 640;
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.post-body p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.tag {
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  letter-spacing: .04em;
}

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.prose { font-size: 15.5px; color: #cbd3e1; line-height: 1.9; }
.prose p { margin-bottom: 20px; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(42,212,238,.35); transition: border-color .25s; }
.prose a:hover { border-bottom-color: var(--accent-2); }

.panel {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.016));
}
.panel h4 {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
  font-weight: 600;
}
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact span:first-child { color: var(--text-mute); flex: 0 0 auto; }
.fact span:last-child { color: var(--text); text-align: right; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 38px clamp(20px, 5vw, 56px) 34px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}
.footer p { font-size: 13px; color: var(--text-mute); }
.footer .spectrum-bar {
  flex: 0 0 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: .45;
  margin-bottom: 6px;
}

/* ---------- 入场动画 ----------
   渐进增强：默认全部可见。只有 <html> 带 .js（由内联脚本同步打上）时
   才先隐藏再滚入。这样禁用 JS 或脚本报错时，内容不会整页消失。 */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.2,.8,.3,1), transform .8s cubic-bezier(.2,.8,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

@media (max-width: 620px) {
  :root { --nav-h: 58px; }
  .masonry { columns: 2 140px; column-gap: 12px; }
  .masonry figure { margin-bottom: 12px; }
  .post { flex-direction: column; gap: 10px; padding: 20px; }
  .post-date { flex: none; padding-top: 0; }
  .section-head { margin-bottom: 30px; }
}

/* 窄屏：站名 + 四个导航项要塞进一行，必须缩 */
@media (max-width: 480px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 14px; }
  .nav-brand { font-size: 14px; gap: 7px; letter-spacing: .02em; }
  .nav-brand .dot { width: 7px; height: 7px; }
  .nav-links { gap: 0; }
  .nav-links a { font-size: 13px; padding: 6px 8px; }
}

/* 极窄（iPhone SE 一类 320px）再收一档 */
@media (max-width: 360px) {
  .nav-brand { font-size: 13px; gap: 5px; }
  .nav-links a { font-size: 12px; padding: 6px 5px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .18em; padding: 6px 13px 6px 11px; }
}

/* ===========================================================
   内容页浅色主题 —— 作品 / 博客 / 靶场 / 关于
   用法：在 <body class="theme-light"> 上启用。
   首页保持深色（Hero 是照片，白字必须压暗底），
   内容页换成蓝白亮色，读长文不累眼。
   =========================================================== */
body.theme-light {
  --bg: #ffffff;
  --bg-soft: #f0f6ff;
  --surface: rgba(255, 255, 255, .78);
  --surface-hi: rgba(255, 255, 255, .96);
  --border: rgba(28, 66, 132, .12);
  --border-hi: rgba(28, 66, 132, .26);
  --text: #16233d;
  --text-dim: #4d5f80;
  --text-mute: #7b8aa6;
  --accent: #3564d8;
  --accent-2: #0a7fa3;
  --accent-3: #cf4f8c;
  --grad: linear-gradient(115deg, #3f6fe4 0%, #1fb6da 50%, #e8629f 100%);
  --shadow: 0 22px 46px -24px rgba(28, 66, 132, .48);
  /* 底：一层白纱（保证文字始终可读）+ 一张极淡的浅蓝天空图（给页面质感）。
     两层都是背景图，白纱在上、照片在下，白纱的透明度决定照片露多少。 */
  background-image:
    linear-gradient(180deg,
      rgba(255, 255, 255, .50) 0%,
      rgba(255, 255, 255, .34) 26%,
      rgba(238, 246, 255, .56) 70%,
      rgba(226, 238, 252, .72) 100%),
    url("/assets/img/page-bg.webp");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
@media (max-width: 860px) {
  /* 移动端 fixed 背景会掉帧，退回滚动背景。
     第一层白纱铺满全高兜底，第二层照片只铺顶部，往下接渐变不露白。 */
  body.theme-light {
    background-attachment: scroll, scroll;
    background-size: 100% 100%, auto 1000px;
  }
}

/* 导航：浅色版。顶端不再压暗渐变，改成上白下透明的柔光 */
body.theme-light .nav::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .62) 62%, rgba(255, 255, 255, 0) 100%);
}
body.theme-light .nav.scrolled {
  background: rgba(255, 255, 255, .84);
  border-bottom-color: var(--border);
}
body.theme-light .nav-brand { color: var(--text); text-shadow: none; }
body.theme-light .nav-brand .dot { box-shadow: 0 0 10px rgba(63, 111, 228, .55); }
body.theme-light .nav-links a { color: var(--text-dim); text-shadow: none; }
body.theme-light .nav-links a:hover { color: var(--text); background: rgba(53, 100, 216, .09); }
body.theme-light .nav-links a.active { color: #2b53bb; background: rgba(53, 100, 216, .14); }
body.theme-light .nav.scrolled .nav-links a.active { color: #2b53bb; background: rgba(53, 100, 216, .14); }

/* 卡片 / 面板：白底 + 淡蓝描边，阴影收浅 */
body.theme-light .card {
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 14px 34px -28px rgba(28, 66, 132, .55);
}
body.theme-light .card p { color: var(--text-dim); }
body.theme-light .card-icon { background: rgba(53, 100, 216, .09); border-color: rgba(53, 100, 216, .2); }
body.theme-light .card:nth-child(2) .card-icon { background: rgba(31, 182, 218, .1); border-color: rgba(31, 182, 218, .24); }
body.theme-light .card:nth-child(3) .card-icon { background: rgba(232, 98, 159, .1); border-color: rgba(232, 98, 159, .24); }
body.theme-light .card:nth-child(4) .card-icon { background: rgba(255, 168, 63, .12); border-color: rgba(255, 168, 63, .28); color: #c2782a; }

body.theme-light .post {
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 14px 34px -28px rgba(28, 66, 132, .5);
}
body.theme-light .post:hover { background: #ffffff; }
body.theme-light .panel {
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 14px 34px -28px rgba(28, 66, 132, .5);
}
body.theme-light .prose { color: #33445f; }
body.theme-light .prose a { color: var(--accent); border-bottom-color: rgba(53, 100, 216, .35); }
body.theme-light .prose a:hover { border-bottom-color: var(--accent); }
body.theme-light .fact span:last-child { color: var(--text); }

body.theme-light .masonry figure {
  background: #fff;
  box-shadow: 0 14px 34px -28px rgba(28, 66, 132, .6);
}
/* 照片上的文字仍压深色渐变 —— 那层是盖在图片上的，跟主题无关 */
body.theme-light .tag { background: rgba(255, 255, 255, .7); }

/* ---------- 作品页：分类筛选 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 36px;
}
.chip {
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text-dim);
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.chip:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.chip.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(53, 100, 216, .85);
}
.chip b { font-size: 11px; font-weight: 700; opacity: .7; }
.chip.is-active b { opacity: .85; }

.gallery-group + .gallery-group { margin-top: 52px; }
.gallery-group[hidden] { display: none; }
.group-title {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.group-title::before {
  content: "";
  align-self: center;
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: var(--grad);
  flex: 0 0 auto;
}
.group-title em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-mute);
}
.masonry figure[hidden] { display: none; }

/* ---------- 靶场页 ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.lab {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 14px 34px -28px rgba(28, 66, 132, .55);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .3s;
}
.lab:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow); }
.lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lab h3 { font-size: 16.5px; font-weight: 650; letter-spacing: .01em; }
.lab .status {
  flex: 0 0 auto;
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status.local { color: #0a6e8e; border-color: rgba(10, 127, 163, .32); background: rgba(10, 127, 163, .09); }
.status.online { color: #2b53bb; border-color: rgba(53, 100, 216, .32); background: rgba(53, 100, 216, .09); }
.status.plan { color: #a2621c; border-color: rgba(200, 140, 40, .34); background: rgba(226, 165, 55, .12); }
.lab p { font-size: 14px; color: var(--text-dim); line-height: 1.72; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.lab-tag {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(53, 100, 216, .05);
  color: var(--text-dim);
  letter-spacing: .03em;
}

/* 说明条（浅蓝提示块） */
.note {
  margin-top: 30px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(53, 100, 216, .2);
  background: rgba(53, 100, 216, .055);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}
.note strong { color: var(--text); }
.note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(28, 66, 132, .08);
  color: #2b53bb;
}

/* 关于页：联系方式卡 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 14px 34px -28px rgba(28, 66, 132, .55);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .3s;
}
.contact:hover { transform: translateY(-3px); border-color: var(--border-hi); box-shadow: var(--shadow); }
.contact-icon {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(53, 100, 216, .09);
  border: 1px solid rgba(53, 100, 216, .2);
  color: var(--accent);
}
.contact-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 3px; }
.contact-value { font-size: 14.5px; font-weight: 600; word-break: break-all; }
