:root {
  --blue-deep: #0c2879;
  --blue-primary: #1f68ce;
  --blue-cobalt: #2693f0;
  --blue-sky: #8ab5ff;
  --sunset-gold: #ffb84d;
  --sunset-orange: #ff801f;
  --sunset-soft: #f4a729;
  --sunset-light: #f9eb83;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-light: #e9ecef;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --black: #111111;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(12, 40, 121, 0.08);
  --shadow-md: 0 8px 24px rgba(12, 40, 121, 0.14);
  --shadow-lg: 0 16px 36px rgba(12, 40, 121, 0.2);
  --text-light: #f5f7ff;
  --text-soft: #cfd8f7;
  --bg-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: var(--text-light);
  background: #070b1d;
  line-height: 1.65;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/c__Users_X1582_AppData_Roaming_Cursor_User_workspaceStorage_cedeb7a71a7c784170c073e663350a73_images_21C3C39A1FFC03A7FCEB68EC3363170D-8af91ff7-8d9a-4a2d-a2f9-65c1f2c4d30a.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(0.92) contrast(0.96) brightness(0.62);
  transform: translate3d(0, var(--bg-shift), 0) scale(1.06);
  transform-origin: center center;
  transition: transform 0.18s linear;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 28, 0.62) 0%,
    rgba(8, 15, 36, 0.72) 42%,
    rgba(10, 18, 42, 0.8) 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 16, 36, 0.46);
  border-bottom: 1px solid rgba(180, 198, 255, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-primary), var(--sunset-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: var(--space-4);
}

.nav-link {
  font-weight: 500;
  color: rgba(245, 247, 255, 0.9);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--sunset-orange));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--blue-deep);
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(
      180deg,
      rgba(4, 12, 40, 0.62) 0%,
      rgba(22, 67, 154, 0.4) 42%,
      rgba(124, 70, 146, 0.34) 68%,
      rgba(196, 108, 98, 0.3) 100%
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.2), transparent 72%);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: var(--space-5) 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text-light);
}

.hero h1 {
  color: var(--white);
  margin: var(--space-3) 0 var(--space-2);
  font-size: clamp(1.55rem, 3.6vw, 2.45rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 12px 36px rgba(4, 12, 40, 0.5);
}

.hero-title {
  font-weight: 500;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-line {
  display: block;
  background: linear-gradient(120deg, #f7d7ff 0%, #ffd1a9 48%, #9ac6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 28px rgba(109, 151, 255, 0.24);
  animation: lineFloat 5.4s ease-in-out infinite, lineGlow 5.4s ease-in-out infinite;
}

.hero-line:nth-child(2) {
  animation-delay: 0.45s;
}

.hero-name {
  display: inline-block;
  font-family: "Segoe Script", "Palace Script MT", "Comic Sans MS", cursive;
  font-size: 1.18em;
  letter-spacing: 0.03em;
  color: #fff5ff;
  -webkit-text-fill-color: #fff5ff;
  text-shadow: 0 12px 30px rgba(172, 149, 255, 0.38);
  animation: nameFloat 4.8s ease-in-out infinite;
}

@keyframes lineFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes lineGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

@keyframes nameFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes nameGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(242, 246, 255, 0.9);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  text-shadow: 0 6px 24px rgba(4, 12, 40, 0.42);
}

.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 0;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #2a77e3, #ff8c33);
  box-shadow: 0 8px 22px rgba(38, 147, 240, 0.38);
}

.btn-secondary {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

main {
  padding: 80px 0;
}

.section {
  margin-bottom: 92px;
  background: linear-gradient(
    140deg,
    rgba(20, 28, 56, 0.58),
    rgba(16, 23, 48, 0.46)
  );
  border: 1px solid rgba(188, 205, 255, 0.24);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.22);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(232, 240, 255, 0.65),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  color: var(--text-soft);
  max-width: 760px;
  margin-bottom: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: linear-gradient(
    160deg,
    rgba(28, 38, 74, 0.62),
    rgba(21, 29, 56, 0.52)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(188, 205, 255, 0.2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  backdrop-filter: blur(12px);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(238, 245, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-primary), var(--sunset-orange));
  position: relative;
  overflow: hidden;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(7, 11, 29, 0.05) 0%,
      rgba(7, 11, 29, 0.45) 58%,
      rgba(7, 11, 29, 0.78) 100%
    ),
    radial-gradient(circle at 25% 15%, rgba(38, 147, 240, 0.22), transparent 55%);
  pointer-events: none;
}

.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 封面视觉：不拉伸，必要时裁剪 */
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.02) brightness(0.86);
  transition: transform 0.45s ease;
}

.card:hover .card-cover img {
  transform: scale(1.06);
}

.card-body {
  padding: var(--space-3);
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card-meta {
  font-size: 0.88rem;
  color: #b5c2eb;
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(125, 153, 232, 0.18);
  color: #d8e3ff;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 11px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.photo-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 180px;
  justify-self: center;
  background: rgba(16, 23, 48, 0.54);
  border: 1px solid rgba(188, 205, 255, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: zoom-in;
  animation: photoReveal 0.7s ease both;
}

.photo-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.photo-card:nth-child(2) {
  animation-delay: 0.08s;
}

.photo-card:nth-child(3) {
  animation-delay: 0.16s;
}

.photo-card:nth-child(4) {
  animation-delay: 0.24s;
}

.photo-card:nth-child(5) {
  animation-delay: 0.32s;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  border-color: rgba(210, 225, 255, 0.34);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(255, 184, 77, 0.22),
      transparent 60%
    ),
    linear-gradient(
      120deg,
      rgba(38, 147, 240, 0.18),
      rgba(255, 128, 31, 0.14)
    );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.photo-card.is-active {
  border-color: rgba(210, 225, 255, 0.55);
}

.photo-card.is-active::before {
  opacity: 1;
  animation: glowPulse 2.8s ease-in-out infinite;
}

.photo-caption {
  z-index: 1;
}

@keyframes glowPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 24, 54, 0.72), transparent);
}

@keyframes photoReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(3, 8, 24, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: min(86vw, 860px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(224, 235, 255, 0.34);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: #dce7ff;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(224, 235, 255, 0.26);
  background: rgba(19, 27, 56, 0.7);
  color: #eff4ff;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.timeline {
  border-left: 2px solid #d8e6ff;
  padding-left: var(--space-3);
}

.timeline-item {
  margin-bottom: var(--space-4);
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), var(--sunset-orange));
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  border: 1px solid rgba(164, 188, 255, 0.28);
  color: #d8e3ff;
  background: rgba(90, 120, 208, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.contact-box {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(29, 42, 82, 0.6),
    rgba(57, 41, 83, 0.52)
  );
  border: 1px solid rgba(188, 205, 255, 0.24);
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(238, 245, 255, 0.58),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid rgba(188, 205, 255, 0.2);
  padding: 30px 0;
  color: #c7d2f4;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-card {
    max-width: 170px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 80px;
    border: 1px solid rgba(188, 205, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(10, 16, 36, 0.92);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    flex-direction: column;
    gap: 14px;
  }

  .nav-menu.open {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card {
    max-width: 160px;
  }

  .section {
    padding: 18px;
    border-radius: 14px;
  }

  .hero {
    min-height: 72vh;
  }

  .lightbox {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .lightbox-nav {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: none;
    transition: none;
  }

  .hero-line {
    animation: none;
  }

  .hero-name {
    animation: none;
  }

  .photo-card {
    animation: none;
  }

  .photo-card.is-active::before {
    animation: none;
  }

  .card-cover img {
    transition: none;
  }
} 
.hero-title .title-main {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    animation: fadeInUp 1s ease forwards !important;
    animation-delay: 0.2s !important;
}

.hero-title .title-sub {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    animation: fadeInUp 1s ease forwards !important;
    animation-delay: 0.6s !important;
}

@keyframes fadeInUp {
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
} 
.hero-title {
    text-align: center;
    margin: 40px 0;
} 
.hero-title {
    text-align: center;
    margin: 40px 0;
} hero-title .title-sub {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #f0f0f0;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.6s;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 
.hero-title {
    text-align: center;
    line-height: 1.6;
}

h1.hero-title {
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #ffffff);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.2s;
}

span.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

span.hero-line:nth-child(1) {
    animation-delay: 0.2s;
}

span.hero-line:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}
