:root {
  --space-dark: #081327;
  --space-mid: #102746;
  --gold: #f1bd45;
  --gold-soft: rgba(241, 189, 69, 0.22);
  --cyan: #7de4ee;
  --cyan-soft: rgba(125, 228, 238, 0.28);
  --glass-bg: rgba(3, 11, 25, 0.48);
  --glass-border: rgba(255, 255, 255, 0.14);
  --nav-h: 78px;
  --font-pixel: "__pixelOperator_57db42", "Courier New", monospace;
  --font-press: "__Press_Start_2P_e395b0", "Courier New", monospace;
  --font-mono: "__Cousine_884f2e", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(50, 111, 138, 0.18), transparent 34%),
    linear-gradient(180deg, #061330 0%, var(--space-mid) 60%, #0c2340 100%);
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1.6;
  cursor: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;   /* 消除300ms延迟 + 支持双轴滑动 */
}

a {
  color: inherit;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(4, 13, 30, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-press);
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 0 20px var(--gold-soft);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.nav-social a {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-pixel);
  font-size: 17px;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-social a:hover,
.nav-links a.nav-active {
  color: #fff;
  text-shadow: 0 0 18px var(--cyan-soft);
}

.nav-links a.nav-active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.orbit-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

.orbit-stage::before {
  content: "";
  position: absolute;
  inset: 12% -8% -18%;
  background: radial-gradient(ellipse at center, rgba(125, 228, 238, 0.12), transparent 58%);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(66deg) rotate(-6deg);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(125, 228, 238, 0.08), inset 0 0 12px rgba(125, 228, 238, 0.04);
}

.ring-1 {
  width: min(60vw, 860px);
  height: min(23vw, 330px);
  border-width: 2.5px;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 18px rgba(125, 228, 238, 0.1), inset 0 0 18px rgba(125, 228, 238, 0.06);
}

.ring-2 {
  width: min(90vw, 1340px);
  height: min(35vw, 520px);
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.1);
}

.ring-3 {
  width: min(114vw, 1760px);
  height: min(46vw, 700px);
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.07);
}

.center-coin {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: coin-float 4s ease-in-out infinite;
}

.coin-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 24vw, 310px);
  height: clamp(180px, 24vw, 310px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(241, 189, 69, 0.28), rgba(125, 228, 238, 0.12) 48%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: glow-pulse 3s ease-in-out infinite;
}

.coin-img {
  position: relative;
  z-index: 1;
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  image-rendering: pixelated;
}

.coin-label {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: var(--font-press);
  font-size: clamp(10px, 1.4vw, 15px);
  letter-spacing: 2px;
  text-shadow: 0 0 18px var(--gold-soft);
}

@keyframes coin-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes planet-enter {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* center-coin animation merged above */

.orbit-planet {
  opacity: 0;
  animation: planet-enter 0.7s ease-out forwards;
}

.orbit-planet:nth-of-type(1) { animation-delay: 0.15s; }
.orbit-planet:nth-of-type(2) { animation-delay: 0.35s; }
.orbit-planet:nth-of-type(3) { animation-delay: 0.55s; }

.orbit-ring {
  animation: fade-in 1s ease-out both;
}
.ring-1 { animation-delay: 0.05s; }
.ring-2 { animation-delay: 0.15s; }
.ring-3 { animation-delay: 0.25s; }

.scroll-hint {
  animation: fade-in 0.8s ease-out 1s both, hint-fade 2.6s ease-in-out 1.8s infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

.orbit-planet {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 220px;
  text-align: center;
  text-decoration: none;
  cursor: url(../image/drill_pointer.5ca0f6d5.png) 24 48, auto;
  transition: filter 0.2s ease;
  will-change: left, top, transform;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.orbit-planet:hover {
  z-index: 20;
  filter: brightness(1.3) drop-shadow(0 0 18px rgba(241, 189, 69, 0.45));
}

.planet-sprite {
  width: clamp(80px, 11vw, 130px);
  height: clamp(80px, 11vw, 130px);
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.orbit-planet:hover .planet-sprite {
  transform: scale(1.18);
  filter: drop-shadow(0 0 12px rgba(125, 228, 238, 0.5));
}

.planet-tag {
  max-width: 100%;
  padding: 6px 14px;
  color: #fff;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.planet-sub {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
}

.orbit-planet:hover .planet-tag {
  border-color: rgba(241, 189, 69, 0.55);
  background: rgba(241, 189, 69, 0.14);
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-soft);
  transform: translateY(-2px);
}

.deco-roid {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.72;
}

.roid-1 {
  left: 34%;
  top: 50%;
  width: 68px;
  animation: float-roid 9s ease-in-out infinite;
}

.roid-2 {
  right: 36%;
  bottom: 24%;
  width: 60px;
  animation: float-roid 11s ease-in-out infinite reverse;
}

.roid-3 {
  right: 18%;
  top: 58%;
  width: 90px;
  opacity: 0.58;
  animation: float-roid 7s ease-in-out infinite;
}

.roid-4 {
  left: 19%;
  top: 28%;
  width: 32px;
  opacity: 0.85;
  animation: twinkle-cross 2s ease-in-out infinite;
}

@keyframes float-roid {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(16px, -12px, 0) rotate(7deg);
  }
}

@keyframes twinkle-cross {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 9;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  animation: hint-fade 2.6s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  margin: 6px auto 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
}

@keyframes hint-fade {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.8;
  }
}

#shooting-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: rgba(10, 17, 29, 0.86);
  transition: opacity 0.18s ease;
}

#shooting-overlay.active {
  opacity: 1;
}

#shooting-flash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(125, 228, 238, 0.06) 34%, transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#shooting-flash.active {
  opacity: 1;
  transition-duration: 0.08s;
}

.warp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 110px 28px;
  gap: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-press);
  font-size: clamp(20px, 4vw, 34px);
  letter-spacing: 2px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 22px var(--gold-soft);
}

.glass,
.glass-card {
  width: min(820px, 100%);
  padding: clamp(28px, 5vw, 42px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card h2,
.glass-card h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 26px;
  letter-spacing: 1px;
}

.glass-card p,
.glass-card li {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.tags,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(900px, 100%);
}

.tag,
.skill-tag {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-pixel);
  font-size: 15px;
  letter-spacing: 1px;
}

.project-showcase-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.project-showcase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(241, 189, 69, 0.38);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.project-showcase-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.ps-icon {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.ps-arrow {
  margin-left: auto;
  color: var(--gold);
  font-size: 22px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-showcase-card:hover .ps-arrow {
  opacity: 1;
  transform: translateX(0);
}

.ps-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 0 0 14px;
}

.ps-desc {
  margin: 0 0 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-tags span {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, background 0.2s;
}

.project-showcase-card:hover .ps-tags span {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Contact CTA ===== */

.cta-section .glass {
  max-width: 600px;
}

.wechat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.wechat-label {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-pixel);
  font-size: 15px;
}

.wechat-id {
  padding: 8px 14px;
  color: var(--cyan);
  background: rgba(125, 228, 238, 0.08);
  border: 1px solid rgba(125, 228, 238, 0.2);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 15px;
}

.copy-btn {
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  font-family: var(--font-pixel);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  background: rgba(241, 189, 69, 0.15);
  border-color: rgba(241, 189, 69, 0.4);
}

.copy-btn.copied {
  background: rgba(125, 228, 238, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}

.wechat-note {
  margin: 8px 0 4px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.nav-wechat {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-pixel);
  font-size: 17px;
  letter-spacing: 1px;
  cursor: default;
}

.contact-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.qrcode-img {
  width: min(360px, 90%);
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.qrcode-label {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1px;
}

.project-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 20%, rgba(125, 228, 238, 0.08), transparent 30%),
    linear-gradient(180deg, #081327, #102746 70%, #081327);
}

/* 吸底页脚：主内容区撑满剩余高度，页脚始终贴底（内容短时也不会悬在中间）*/
.project-page > main {
  flex: 1 0 auto;
  width: 100%;
}
.project-page > .site-footer {
  flex-shrink: 0;
}

.back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  background: rgba(3, 11, 25, 0.58);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  font-family: var(--font-pixel);
  font-size: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-btn:hover {
  color: #fff;
  border-color: rgba(125, 228, 238, 0.34);
}

.project-hero {
  position: relative;
  z-index: 1;
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
  overflow: hidden;
  text-align: center;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.project-hero-bg img {
  position: absolute;
  image-rendering: pixelated;
}

.bg-planet {
  top: 42%;
  left: 50%;
  width: clamp(150px, 19vw, 230px);
  transform: translate(-50%, -50%);
  opacity: 0.16;
  animation: glow-pulse 4s ease-in-out infinite;
}

.bg-star-1 {
  top: 18%;
  right: 22%;
  width: 30px;
}

.bg-star-2 {
  bottom: 20%;
  left: 18%;
  width: 24px;
}

.hero-badge {
  margin-bottom: 20px;
  padding: 6px 16px;
  color: var(--gold);
  background: rgba(241, 189, 69, 0.06);
  border: 1px solid rgba(241, 189, 69, 0.28);
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 2px;
}

.project-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-press);
  font-size: clamp(22px, 5vw, 42px);
  letter-spacing: 2px;
  line-height: 1.35;
  text-shadow: 0 0 30px rgba(3, 11, 25, 0.72), 0 0 30px var(--gold-soft);
}

.hero-sub {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
}

.project-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px 86px;
}

.glass-center {
  text-align: center;
}

.glass-card ul {
  margin: 0;
  padding-left: 18px;
}

.glass-card li + li {
  margin-top: 10px;
}

.meta-line {
  margin: -6px 0 18px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-pixel);
  font-size: 13px;
}

.highlight-box {
  width: min(760px, 100%);
  padding: 26px;
  border: 1px solid rgba(241, 189, 69, 0.22);
  border-radius: 8px;
  background: rgba(241, 189, 69, 0.07);
  text-align: center;
}

.highlight-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 17px;
  letter-spacing: 1px;
}

.highlight-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

@media (max-width: 800px) {
  .nav {
    min-height: 66px;
  }

  .nav-social {
    display: none;
  }

  .nav-brand span {
    display: none;
  }

  .nav-links a {
    font-size: 15px;
  }

  .orbit-stage {
    min-height: 640px;
  }

  .ring-1 {
    width: 420px;
    height: 156px;
    border-width: 2.5px;
    border-color: rgba(255, 255, 255, 0.15);
  }

  .ring-2 {
    width: 640px;
    height: 240px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .ring-3 {
    width: 860px;
    height: 326px;
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, 0.07);
  }

  .orbit-planet {
    width: 110px;
    gap: 4px;
  }

  .planet-tag {
    font-size: 12px;
    padding: 3px 8px;
    pointer-events: none;        /* 文字标签不拦截触摸 */
  }

  .planet-sub {
    display: none;
  }

  .deco-roid {
    opacity: 0.44;
  }

  .back-btn {
    top: 12px;
    left: 12px;
    padding: 10px 18px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 0 12px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .orbit-stage {
    min-height: 600px;
  }

  .orbit-planet {
    width: 100px;
    gap: 2px;
  }

  .planet-sprite {
    width: 56px;
    height: 56px;
  }

  .planet-tag {
    padding: 2px 6px;
    font-size: 10px;
    pointer-events: none;        /* 文字标签不拦截触摸 */
  }
}

/* ========== Tech Articles ========== */

.articles-section {
  min-height: auto;
  padding-bottom: 60px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(820px, 100%);
}

.article-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: baseline;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, padding 0.2s ease;
}

.article-card:first-child {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 12px;
  padding-right: 0;
}

.ac-title {
  grid-column: 1;
  grid-row: 1;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.article-card:hover .ac-title {
  color: var(--cyan);
}

.ac-date {
  grid-column: 2;
  grid-row: 1;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  padding-left: 20px;
  text-align: right;
}

.ac-views {
  grid-column: 2;
  grid-row: 2;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  white-space: nowrap;
  padding-left: 20px;
  text-align: right;
}

.ac-desc {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.6;
}

.ac-tags {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ac-tags span {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 800px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .ac-date {
    grid-column: 1;
    grid-row: 2;
    padding-left: 0;
    text-align: left;
  }

  .ac-views {
    grid-column: 1;
    grid-row: 2;
    padding-left: 0;
    text-align: left;
    margin-left: 130px;
  }

  .ac-desc {
    grid-row: 3;
  }

  .ac-tags {
    grid-row: 4;
  }
}

.rocket-follower {
  position: fixed;
  z-index: 99999;
  width: 80px;
  height: 43px;
  pointer-events: none;
  image-rendering: pixelated;
  transition: transform 0.15s ease;
  will-change: left, top, transform;
}

/* ========== Footer ========== */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 56px 24px 28px;
  background: rgba(3, 11, 25, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.footer-name {
  color: #fff;
  font-family: var(--font-press);
  font-size: 12px;
  letter-spacing: 1px;
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-copy {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.footer-head {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-location,
.footer-feedback,
.footer-wechat-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-feedback {
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-feedback:hover {
  color: var(--gold) !important;
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  letter-spacing: 1px;
}

.footer-icp {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp:hover {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    text-align: left;
  }
}

/* ============================================================
   移动端性能优化
   ============================================================ */
@media (max-width: 768px) {
  /* 降低 backdrop-filter 模糊强度，移动端非常吃性能 */
  .nav,
  .glass,
  .glass-card,
  .article-card,
  .project-showcase-card,
  .stat-card,
  .fb-dialog {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  /* 星空 canvas 降低复杂度 */
  #starfield {
    opacity: 0.5;
  }

  /* 静止装饰元素的动画 */
  .deco-roid {
    animation-duration: 18s !important;
  }
}

/* 滚动容器优化 —— 使用更加安全的 will-change: scroll-position，
   避免 translateZ(0) 创建合成层与子元素 .reveal 的重绘冲突 */
.articles-section,
.about-section,
.cta-section,
#article-main,
.project-content,
.fb-dialog {
  -webkit-overflow-scrolling: touch;
}

/* 减轻滚动时的重绘 */
.orbit-planet {
  will-change: left, top, transform;
}

/* .reveal 不再使用 will-change —— 与父级 translateZ(0) 合成层叠加时，
   部分浏览器（尤其是 iOS Safari）会出现重绘失效，元素永久停留在 opacity:0 */
