@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("./harmonyos-sans-sc.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --bg: #000;
  --text: #f7f7f7;
  --muted: #929292;
  --muted-light: #b8b8b8;
  --line: #292929;
  --orange: #ef7427;
  --orange-dark: #4b210d;
  --content: 1184px;
  --header-height: 96px;
  color: var(--text);
  background: var(--bg);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
  scrollbar-color: #3a3a3a #000;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #000;
  border-radius: 999px;
  background: #3a3a3a;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  color: #000;
  background: #fff;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1440px);
  height: var(--header-height);
  padding-inline: clamp(28px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .72) 70%, transparent);
  transform: translateX(-50%);
}

.brand {
  justify-self: start;
  color: #f4f4f4;
  font-size: 20px;
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
}

.glass-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(39, 39, 39, .66);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 14px 34px rgba(0, 0, 0, .42);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.glass-nav a {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 240ms ease, background-color 240ms ease;
}

.glass-nav a:hover,
.glass-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.resume-pill {
  justify-self: end;
  display: grid;
  place-items: center;
  min-width: 104px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.resume-pill:hover {
  box-shadow: 0 10px 28px rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 24, 24, .88);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span {
  opacity: 0;
}

.menu-toggle.is-open::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open::after {
  transform: translateY(-5px) rotate(-45deg);
}

.site-main {
  position: relative;
  width: min(100%, 1440px);
  margin-inline: auto;
  overflow: hidden;
  background: #000;
}

.hero {
  --spot-x: 50%;
  --spot-y: 52%;
  position: relative;
  min-height: 910px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 96px 0 auto;
  z-index: -2;
  height: 814px;
  overflow: hidden;
  background: #000;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hero-layer--vivid {
  -webkit-mask-image: radial-gradient(circle 255px at var(--spot-x) var(--spot-y), #000 0%, #000 38%, rgba(0, 0, 0, .78) 58%, rgba(0, 0, 0, .36) 76%, transparent 100%);
  mask-image: radial-gradient(circle 255px at var(--spot-x) var(--spot-y), #000 0%, #000 38%, rgba(0, 0, 0, .78) 58%, rgba(0, 0, 0, .36) 76%, transparent 100%);
}

.hero-ring {
  position: absolute;
  top: 200px;
  left: 50%;
  z-index: -1;
  width: 605px;
  height: 605px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-title {
  position: absolute;
  top: 214px;
  left: clamp(32px, 4.1vw, 59px);
  max-width: 820px;
  margin: 0;
  color: #f4f4f4;
  font-size: clamp(62px, 5.75vw, 83px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.hero-intro {
  position: absolute;
  top: 646px;
  right: clamp(34px, 4vw, 58px);
  width: 300px;
  color: #c6c6c6;
  font-size: 14px;
  line-height: 1.62;
}

.hero-intro p {
  margin: 0 0 34px;
}

.chatbot-pill,
.orange-pill {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-weight: 700;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.chatbot-pill {
  min-width: 196px;
  font-size: 21px;
  cursor: default;
}

.orange-pill:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(239, 116, 39, .22);
  transform: translateY(-2px);
}

.section {
  position: relative;
  padding: 88px 0 118px;
  scroll-margin-top: var(--header-height);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
}

.section-title {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 4.15vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.section-subtitle {
  margin: 20px 0 0;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.6;
}

.about-section {
  min-height: 0;
  padding-top: 62px;
  padding-bottom: 60px;
}

.about-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 78px;
}

.profile-image {
  width: 256px;
  margin-top: 72px;
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .4);
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), filter 500ms ease;
}

.profile-image:hover {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.025);
}

.experience-list {
  padding-top: 50px;
}

.experience-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  column-gap: 16px;
  padding: 22px 18px 30px;
  margin-inline: -18px;
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
  transition: transform 380ms cubic-bezier(.22, 1, .36, 1),
              background 380ms ease;
}

.experience-item + .experience-item {
  padding-top: 30px;
}

.experience-item:last-child {
  border-bottom: 0;
}

.experience-item:hover {
  transform: translateX(12px);
  background: rgba(239, 116, 39, .06);
}

.experience-index,
.experience-title,
.experience-date {
  margin: 0;
  color: #bcbcbc;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 380ms ease, letter-spacing 380ms ease;
}

.experience-item:hover .experience-index,
.experience-item:hover .experience-title {
  color: var(--orange);
}

.experience-item:hover .experience-title {
  letter-spacing: .01em;
}

.experience-date {
  text-align: right;
  white-space: nowrap;
}

.experience-copy {
  grid-column: 2 / -1;
  margin: 18px 0 0;
  color: #8c8c8c;
  font-size: 13px;
  line-height: 1.9;
}

.experience-copy + .experience-copy {
  margin-top: 8px;
}

.software-section {
  padding-top: 78px;
  padding-bottom: 82px;
}

.software-grid {
  display: grid;
  grid-template-columns: 1.14fr .99fr 1.12fr;
  gap: 34px;
  margin-top: 50px;
}

.software-card {
  min-width: 0;
}

.software-card-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 24px;
  align-items: start;
  min-height: 72px;
}

.number-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: #fff;
  background: var(--orange-dark);
  font-size: 15px;
  font-weight: 700;
}

.software-card h3 {
  margin: 0;
  color: #f1f1f1;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
}

.project-image {
  width: 100%;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 22px 2px rgba(255, 255, 255, .06),
    0 18px 46px rgba(0, 0, 0, .5);
  transition: transform 480ms cubic-bezier(.22, 1, .36, 1), box-shadow 480ms cubic-bezier(.22, 1, .36, 1), filter 480ms ease;
}

.project-image:hover {
  filter: brightness(1.035) saturate(1.035);
  box-shadow: 0 28px 58px rgba(0, 0, 0, .58);
  transform: translateY(-8px) scale(1.015);
}

.hardware-section {
  padding-top: 70px;
  padding-bottom: 58px;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 44px;
}

.hardware-grid .project-image {
  border-radius: 20px;
}

.games-section {
  padding-top: 74px;
  padding-bottom: 66px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 55px;
  align-items: stretch;
}

.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.game-card .project-image {
  width: 100%;
  height: clamp(210px, 15.6vw, 240px);
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 7px;
}

.game-card h3 {
  margin: 28px 14px 0;
  color: var(--orange);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  min-height: 3.1em;
}

.game-card p {
  margin: 14px 14px 0;
  color: #777;
  font-size: 13px;
  line-height: 1.9;
}

.aigc-section {
  padding-top: 76px;
  padding-bottom: 120px;
}

.aigc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  margin-top: 56px;
}

.aigc-card {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 26px;
  align-items: start;
  min-width: 0;
}

.aigc-card .project-image {
  width: 100%;
  border-radius: 6px;
}

.aigc-card h3 {
  margin: 12px 0 0;
  color: var(--orange);
  font-size: 17px;
  line-height: 1.55;
}

.aigc-card p {
  margin: 24px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.9;
}

.contact-section {
  min-height: 700px;
  padding: 64px 0 70px;
  text-align: center;
}

.contact-section .eyebrow {
  margin-bottom: 24px;
}

.contact-kicker {
  margin: 0;
  color: #9c9c9c;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
}

.contact-title {
  max-width: 1100px;
  margin: 16px auto 0;
  color: #f5f5f5;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.contact-actions .orange-pill {
  min-height: 40px;
  padding-inline: 26px;
  font-size: 14px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 30px;
  align-items: center;
  width: min(100%, 430px);
  margin: 30px auto 0;
  padding: 22px 28px;
  border-radius: 18px;
  color: #f2f2f2;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .42),
              inset 0 1px 0 rgba(255, 255, 255, .28);
}

.contact-card .contact-details dt {
  color: rgba(255, 255, 255, .62);
}

.contact-card .contact-details dd,
.contact-card .contact-details a {
  color: #ffffff;
}

.contact-card .contact-qr {
  border: 4px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .9);
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-details div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
}

.contact-details dt,
.contact-details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.contact-details dt {
  font-weight: 800;
}

.contact-details a {
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-qr {
  width: 126px;
  height: 126px;
  border-radius: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .glass-nav a {
    padding-inline: 10px;
    font-size: 11px;
  }

  .brand {
    font-size: 16px;
  }

  .resume-pill {
    min-width: 82px;
    min-height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .about-layout {
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 54px;
  }

  .profile-image {
    width: 230px;
  }

  .experience-index,
  .experience-title,
  .experience-date {
    font-size: 17px;
  }

  .software-grid,
  .hardware-grid,
  .games-grid {
    gap: 22px;
  }

  .software-card-head {
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }

  .number-badge {
    width: 36px;
    height: 36px;
  }

  .software-card h3 {
    font-size: 17px;
  }

  .aigc-grid {
    gap: 38px;
  }

  .aigc-card {
    grid-template-columns: 1.35fr .9fr;
    gap: 18px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

  .page-width {
    width: min(calc(100% - 40px), var(--content));
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    height: var(--header-height);
    padding-inline: 20px;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .brand {
    font-size: 15px;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
    margin-left: 10px;
  }

  .resume-pill {
    grid-column: 2;
    justify-self: end;
    min-width: 76px;
    min-height: 36px;
  }

  .glass-nav {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border-color: rgba(255, 255, 255, .26);
    border-radius: 20px;
    background: rgba(16, 16, 16, .96);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
  }

  .glass-nav.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .glass-nav a {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-art {
    top: 92px;
    height: 515px;
  }

  .hero-layer {
    object-position: 52% center;
  }

  .hero-ring {
    top: 160px;
    width: 390px;
    height: 390px;
  }

  .hero-title {
    top: 146px;
    left: 20px;
    max-width: calc(100% - 40px);
    font-size: clamp(43px, 10.6vw, 70px);
    line-height: 1.08;
  }

  .hero-intro {
    top: auto;
    right: 20px;
    bottom: 42px;
    width: min(78%, 320px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-intro p {
    margin-bottom: 18px;
  }

  .chatbot-pill {
    min-width: 154px;
    min-height: 42px;
    font-size: 16px;
  }

  .section {
    padding: 86px 0;
  }

  .about-layout,
  .software-grid,
  .hardware-grid,
  .games-grid,
  .aigc-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 24px;
  }

  .profile-image {
    width: min(72vw, 300px);
    margin-top: 40px;
  }

  .experience-list {
    padding-top: 28px;
  }

  .experience-item {
    grid-template-columns: 38px minmax(0, 1fr);
    row-gap: 8px;
  }

  .experience-date {
    grid-column: 2;
    text-align: left;
  }

  .experience-copy {
    grid-column: 2;
  }

  .software-grid,
  .hardware-grid,
  .games-grid,
  .aigc-grid {
    gap: 52px;
    margin-top: 44px;
  }

  .software-card-head {
    min-height: 64px;
  }

  .software-card h3 {
    font-size: 19px;
  }

  .hardware-grid {
    width: min(100%, 500px);
  }

  .game-card .project-image {
    aspect-ratio: auto;
  }

  .game-card h3,
  .game-card p {
    margin-inline: 0;
  }

  .aigc-card {
    grid-template-columns: minmax(0, 1.45fr) minmax(150px, .8fr);
    gap: 24px;
  }

  .aigc-section {
    padding-bottom: 118px;
  }

  .contact-section {
    min-height: 650px;
    padding-top: 100px;
  }
}

@media (max-width: 560px) {
  .page-width {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    font-size: 13px;
  }

  .resume-pill {
    min-width: 70px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .hero-title {
    left: 16px;
    max-width: calc(100% - 32px);
    font-size: clamp(38px, 11.4vw, 55px);
  }

  .hero-intro {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .section-title {
    font-size: 40px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .experience-item {
    column-gap: 10px;
  }

  .experience-index,
  .experience-title,
  .experience-date {
    font-size: 16px;
  }

  .experience-copy {
    font-size: 12px;
  }

  .aigc-card {
    grid-template-columns: 1fr;
  }

  .aigc-card h3 {
    margin-top: 0;
  }

  .aigc-card p {
    margin-top: 14px;
  }

  .contact-title {
    font-size: 38px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    justify-items: center;
    width: min(100%, 360px);
    padding: 24px;
  }

  .contact-details {
    width: 100%;
  }

  .contact-actions {
    gap: 10px;
  }

  .contact-actions .orange-pill {
    padding-inline: 18px;
    font-size: 12px;
  }
}

@media (hover: none) {
  .project-image:hover,
  .profile-image:hover {
    filter: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== AI 研究笔记（AIGC 区下方补充版块） ===== */
.notes-block {
  margin-top: 96px;
}

.notes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.notes-head .section-title {
  font-size: clamp(38px, 3.6vw, 52px);
}

.notes-subtitle {
  margin: 16px 0 0;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.6;
}

.notes-pagination {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
}

.notes-pagination a {
  color: inherit;
  text-decoration: none;
  transition: color 260ms ease;
}

.notes-pagination a:hover,
.notes-pagination a.is-active {
  color: var(--text);
}

.notes-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.note-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  align-items: start;
  padding: 30px 20px 30px 22px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: border-left-color 380ms ease,
              background 380ms ease,
              transform 380ms cubic-bezier(.22, 1, .36, 1);
}

.note-item:last-child {
  border-bottom: 1px solid var(--line);
}

.note-item:hover {
  border-left-color: var(--orange);
  background: rgba(239, 116, 39, .05);
  transform: translateX(8px);
}

.note-title {
  margin: 0;
  color: #eaeaea;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 380ms ease;
}

.note-item:hover .note-title {
  color: var(--orange);
}

.note-views {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  text-align: right;
  padding-top: 4px;
}

.note-desc {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  max-width: 940px;
  color: #808080;
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 820px) {
  .notes-block {
    margin-top: 68px;
  }
  .note-item {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .note-views {
    grid-row: 1;
    text-align: left;
    padding-top: 0;
  }
  .note-title {
    font-size: 19px;
  }
}

/* ===== 卡片链接化：去链接默认样式 + 可点击反馈 ===== */
.software-card,
.game-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

.game-card {
  display: flex;
  flex-direction: column;
}

.software-card {
  transition: transform 380ms cubic-bezier(.22, 1, .36, 1);
}

.software-card:hover {
  transform: translateY(-6px);
}

.software-card .project-image,
.game-card .project-image {
  transition: filter 380ms ease, transform 380ms cubic-bezier(.22, 1, .36, 1);
}

.software-card:hover .project-image,
.game-card:hover .project-image {
  filter: brightness(1.06) saturate(1.05);
}

.game-card:hover .project-image {
  transform: scale(1.015);
}

.game-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* AIGC 仅图片可点 */
.aigc-thumb {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
}

.aigc-thumb .project-image {
  display: block;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 420ms ease;
}

.aigc-thumb:hover .project-image {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ===== 硬件区图片链接化（仅红/蓝两张可点） ===== */
.hardware-thumb {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
}

.hardware-thumb .project-image {
  display: block;
  width: 100%;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 420ms ease;
}

.hardware-thumb:hover .project-image {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ===== 研究笔记链接化 ===== */
a.note-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

/* ===== Connect 个人信息卡：展开/收起动画 ===== */
#info-toggle {
  cursor: pointer;
  border: none;
  font: inherit;
}

.contact-card {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.22, 1, .36, 1);
}

.contact-card.is-open {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   卡片组氛围底光 + 悬停微交互（克制、高级）
   作用于 Work / 硬件 / Fun / AIGC 四个卡片组
   ============================================================ */
.software-grid,
.hardware-grid,
.games-grid,
.aigc-grid {
  position: relative;
  isolation: isolate;
}

/* 底部氛围光：一团极淡的暖光垫在卡片下方，默认若隐若现 */
.software-grid::before,
.hardware-grid::before,
.games-grid::before,
.aigc-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  transform: translateX(-50%);
  width: 82%;
  height: 62%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    60% 100% at 50% 100%,
    rgba(239, 116, 39, 0.16) 0%,
    rgba(239, 116, 39, 0.07) 38%,
    rgba(239, 116, 39, 0) 72%
  );
  filter: blur(28px);
  opacity: 0.55;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 鼠标进入卡片区：底光柔和提亮并微微上浮，营造"聚焦"呼吸感 */
.software-grid:hover::before,
.hardware-grid:hover::before,
.games-grid:hover::before,
.aigc-grid:hover::before {
  opacity: 0.9;
  transform: translateX(-50%) translateY(-6px);
}

/* 让底光在减少动态偏好时保持静态 */
@media (prefers-reduced-motion: reduce) {
  .software-grid::before,
  .hardware-grid::before,
  .games-grid::before,
  .aigc-grid::before {
    transition: none;
  }
}

/* ============================================================
   组内聚焦：悬停某张卡时，同组其他卡片轻微退隐，突出当前卡
   强度克制，仅作氛围引导
   ============================================================ */
.software-grid > *,
.hardware-grid > *,
.games-grid > *,
.aigc-grid > * {
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}

/* 当组内有卡片被悬停时，未被悬停的兄弟卡片轻微退隐 */
.software-grid:hover > *:not(:hover),
.hardware-grid:hover > *:not(:hover),
.games-grid:hover > *:not(:hover),
.aigc-grid:hover > *:not(:hover) {
  opacity: 0.72;
  filter: saturate(0.95);
}

/* 硬件区与 AIGC 区补一个与 Work 一致的轻微抬起（这两区原本 hover 偏弱） */
.hardware-thumb,
.aigc-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hardware-grid:hover .hardware-thumb:hover {
  transform: translateY(-6px);
}

.aigc-grid:hover .aigc-card:hover {
  transform: translateY(-4px);
}
