:root {
  --primary-color: #00f5d4;
  --primary-dark: #00a896;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: rgba(0, 245, 212, 0.2);
  --glow-color: rgba(0, 245, 212, 0.5);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 1.8rem 2rem;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-left {
  display: flex;
  gap: 2.8rem;
}

.nav-left a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-left a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-left a:hover,
.nav-left a.active {
  color: var(--primary-color);
}

.lang-toggle {
  position: absolute;
  right: 0;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.lang-toggle:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(0, 245, 212, 0.1);
  transform: translateY(-1px);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(0, 245, 212, 0.15) 0%, transparent 60%);
}

.hero-content {
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-left: 8rem;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.role-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.name-highlight {
  color: var(--primary-color);
  position: relative;
}

.name-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.hero-highlights {
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-highlights h3 {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--glow-color);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  position: relative;
}

.contact-btn-wrapper {
  position: relative;
}

.contact-card-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
  z-index: 100;
  width: 280px;
}

.contact-card-container.visible {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-card:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: rgba(0, 245, 212, 0.4);
}

.contact-icon {
  font-size: 1.1rem;
  width: 24px;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.75rem;
  color: rgba(0, 245, 212, 0.6);
  width: 42px;
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  white-space: nowrap;
}

.btn-primary {
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px var(--glow-color);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--primary-color);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  height: 100vh;
  padding: 2rem;
}

.image-wrapper {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--bg-dark);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  mask-image:
    radial-gradient(ellipse 92% 92% at 50% 50%, black 55%, rgba(0,0,0,0.35) 75%, transparent 92%);
  -webkit-mask-image:
    radial-gradient(ellipse 92% 92% at 50% 50%, black 55%, rgba(0,0,0,0.35) 75%, transparent 92%);
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 92% 92% at 50% 50%, transparent 55%, rgba(10, 10, 15, 0.4) 75%, rgba(10, 10, 15, 0.9) 92%);
}

.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
  z-index: 100;
}

.scroll-arrow {
  width: 24px;
  height: 36px;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  margin-top: 0.5rem;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scrollDown 1.5s infinite;
}

.section {
  padding: 6rem 4rem;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.experience-list {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  min-height: 900px;
}

.experience-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 连接线：背景暗线 + 随滚动绘制的高亮线 */
.exp-line-active {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  transition: stroke-dashoffset 0.1s linear;
}

.experience-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 260px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.experience-item.in-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.experience-item:hover .experience-icon {
  border-color: var(--primary-color);
  background: rgba(0, 245, 212, 0.1);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.25), 0 0 12px rgba(0, 245, 212, 0.1) inset;
}

.experience-item:hover .experience-institution {
  color: var(--primary-color);
}

/* 三列波浪布局 */
.experience-item-1 { left: 15%; top: 10%; }
.experience-item-2 { left: 50%; top: 30%; }
.experience-item-3 { left: 85%; top: 50%; }
.experience-item-4 { left: 50%; top: 70%; }
.experience-item-5 { left: 15%; top: 90%; }

.experience-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid rgba(0, 245, 212, 0.45);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.12);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.experience-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-meta {
  margin-top: 0.75rem;
  width: 100%;
}

.experience-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.2rem;
}

.experience-institution {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.2rem 0;
  color: var(--text-primary);
  transition: color 0.35s ease;
  line-height: 1.4;
}

.experience-degree {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.experience-degree small {
  font-size: 0.7rem;
  opacity: 0.9;
}

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

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 245, 212, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  transition: transform 0.5s ease;
}

.project-image-1 {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2) 0%, rgba(0, 100, 80, 0.4) 50%, rgba(139, 90, 43, 0.3) 100%);
}

.project-image-2 {
  background: linear-gradient(135deg, rgba(0, 80, 150, 0.4) 0%, rgba(0, 120, 200, 0.3) 50%, rgba(0, 245, 212, 0.2) 100%);
}

.project-image-3 {
  background: linear-gradient(135deg, rgba(255, 100, 150, 0.2) 0%, rgba(255, 150, 50, 0.3) 50%, rgba(0, 245, 212, 0.2) 100%);
}

.project-image-4 {
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.3) 0%, rgba(200, 150, 50, 0.4) 50%, rgba(0, 245, 212, 0.2) 100%);
}

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

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.8rem;
}

.project-tags {
  font-size: 0.8rem;
  color: var(--primary-color);
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 2000px;
  margin: 0 auto;
}

.portfolio-row {
  width: 100%;
}

.portfolio-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .portfolio-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .portfolio-row-4 {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 245, 212, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

.animate-out {
  opacity: 0;
  transform: translateY(30px);
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* 侧边导航栏 */
.side-nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-nav.visible {
  opacity: 1;
}

.progress-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar {
  position: relative;
  width: 6px;
  height: 400px;
  background: rgba(0, 245, 212, 0.1);
  border-radius: 3px;
  overflow: visible;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary-color), rgba(0, 245, 212, 0.3));
  border-radius: 3px;
  transition: height 0.15s ease-out;
  box-shadow: 0 0 10px var(--glow-color);
}

.progress-marks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.progress-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.3);
  border: 2px solid rgba(0, 245, 212, 0.5);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-mark:hover {
  background: var(--primary-color);
  transform: translateX(-50%) translateY(-50%) scale(1.2);
  box-shadow: 0 0 15px var(--glow-color);
}

.progress-mark.active {
  background: var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.nav-items-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
}

.side-nav-item {
  padding: 0.5rem 1rem;
  background: rgba(0, 245, 212, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.side-nav-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.3);
  transition: all 0.3s ease;
}

.side-nav-item:hover,
.side-nav-item.active {
  background: rgba(0, 245, 212, 0.2);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.side-nav-item:hover::before,
.side-nav-item.active::before {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--glow-color);
}

/* 回到顶部按钮 */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 245, 212, 0.2);
  color: var(--primary-color);
  border: 2px solid rgba(0, 245, 212, 0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
}

.scroll-top-btn:hover {
  background: rgba(0, 245, 212, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 245, 212, 0.3);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0.75rem;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-content {
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
  }

  .nav-content::-webkit-scrollbar {
    display: none;
  }

  .nav-left {
    gap: 1.1rem;
    flex-shrink: 0;
  }

  .nav-left a {
    font-size: 0.82rem;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .lang-toggle {
    position: static;
    flex-shrink: 0;
    padding: 0.2rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(0, 245, 212, 0.35);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 500;
  }

  .lang-toggle:hover {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary-color);
    transform: none;
  }

  .hero-section {
    padding: 8rem 1.5rem 3rem;
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-left: 0;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    height: auto;
    justify-content: center;
    order: -1;
    padding: 1.5rem;
  }

  .image-wrapper {
    width: auto;
    max-width: 260px;
    height: auto;
    max-height: 45vh;
    aspect-ratio: 4/5;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
  }

  .hero-actions {
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1;
    min-width: 0;
    max-width: 160px;
  }

  .contact-card-container {
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 280px;
  }

  .contact-card-container.visible {
    max-height: 220px;
    margin-top: 0.75rem;
  }

  .contact-card {
    width: 100%;
    padding: 0.4rem 0.7rem;
    gap: 0.5rem;
    border-radius: 6px;
  }

  .contact-icon {
    font-size: 0.9rem;
    width: 18px;
  }

  .contact-info {
    gap: 0.85rem;
  }

  .contact-label {
    font-size: 0.65rem;
    width: 32px;
    margin-right: 0.1rem;
  }

  .contact-value {
    font-size: 0.8rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .experience-list {
    min-height: auto;
    padding: 0;
  }

  .experience-svg {
    display: none;
  }

  .experience-item {
    position: static;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 2.5rem;
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .experience-item.in-view {
    transform: none;
  }

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

  .experience-meta {
    margin-top: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .experience-institution {
    font-size: 1.1rem;
  }

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

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

  .section-title {
    font-size: 1.6rem;
  }

  .side-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section { padding: 7rem 1rem 2rem; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-description { font-size: 0.9rem; }
  .hero-highlights li { font-size: 0.78rem; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.8rem; margin-bottom: 2.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .image-wrapper { max-width: 170px; }
  .projects-grid { gap: 1rem; }
  .role-tag { font-size: 0.7rem; }
  .btn-primary,
  .btn-secondary { padding: 0.55rem 1.2rem; font-size: 0.8rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { max-width: 140px; }
  .hero-content { gap: 1.5rem; }
  .contact-card {
    padding: 0.35rem 0.6rem;
    gap: 0.4rem;
  }
  .contact-info { gap: 0.7rem; }
  .contact-icon { font-size: 0.85rem; width: 16px; }
  .contact-label { font-size: 0.6rem; width: 30px; margin-right: 0.1rem; }
  .contact-value { font-size: 0.75rem; }
}

/* 鼠标点击特效：波纹 + 粒子扩散 */
#click-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.click-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.35);
  transform: translate(-50%, -50%) scale(1);
  animation: clickRipple 0.6s ease-out forwards;
}

@keyframes clickRipple {
  to {
    width: 80px;
    height: 80px;
    background: rgba(0, 245, 212, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

.click-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.85);
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
  transform: translate(-50%, -50%) scale(1);
  animation: clickParticle 0.5s ease-out forwards;
}

@keyframes clickParticle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2);
  }
}