﻿/* ============================================================
   个人作品�?- 样式�?   深色极简风格 | 响应�?| CSS 自定义属�?   ============================================================ */

/* ----- CSS 变量 (主题) ----- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --border-color: #1a1a1a;
  --border-light: #252525;
  --text-primary: #e0e0e0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.1);
  --accent-mid: rgba(100, 255, 218, 0.3);
  --white: #ffffff;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --content-width: 1100px;
  --section-gap: 140px;
  --card-radius: 12px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- 基础重置 ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* 选中文本样式 */
::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* 滚动�?*/
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ----- 通用组件 ----- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

.section-title .accent {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  margin-right: 8px;
}

.accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(100, 255, 218, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.05);
}

/* ============================================================
   导航�?   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 32px;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  z-index: 1001;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 0;
  position: relative;
  overflow: hidden;
}

/* 背景几何图案 */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 30%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, var(--accent) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.hero-name {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-role {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 28px;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 向下滚动指示�?*/
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================================
   关于�?   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
}

.about-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* MBTI / 星座 / 学历 小卡�?*/
.about-info-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  min-width: 80px;
  transition: border-color var(--transition-smooth);
}

.info-card:hover {
  border-color: var(--accent-mid);
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-value.accent {
  color: var(--accent);
}

.about-avatar,
.about-avatar-img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}


.about-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-dim), transparent 70%);
}

.avatar-initials {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.about-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  gap: 48px;
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-mono);
}

.highlight-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   技�?   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.skill-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: border-color var(--transition-smooth);
}

.skill-category:hover {
  border-color: var(--border-light);
}

.skill-category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.skill-info span:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.skill-info span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  opacity: 0.8;
}

.skill-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.skill-fill.animate {
  width: var(--width);
}

/* ============================================================
   Game List
   ============================================================ */
.games-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: -44px;
  margin-bottom: 48px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition-smooth);
 cursor: default;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}



.game-cover {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.game-cover-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--game-gradient, linear-gradient(135deg, var(--accent-dim), rgba(100, 255, 218, 0.1)));
  transition: transform var(--transition-slow);
}

.game-card:hover .game-cover-bg {
  transform: scale(1.05);
}

.game-icon {
  font-size: 48px;
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-icon {
  transform: scale(1.15);
}

.game-body {
  padding: 20px 24px 24px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.game-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.game-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.game-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-tags span {
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

/* ============================================================
   折腾项目 (Projects)
   ============================================================ */
.projects-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: -44px;
  margin-bottom: 48px;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: default;
}

 

 





.project-card:hover 

.project-body {
  padding: 24px;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

.project-link:hover::after {
   width: 100%;
 }

/* ============================================================
   经历时间�?   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

/* 时间线竖�?*/
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-light);
}





/* 时间线圆�?*/
.timeline-marker {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: background var(--transition-smooth);
  z-index: 1;
}



.timeline-content {
  padding: 24px 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  transition: all var(--transition-smooth);
}



.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.timeline-role {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.timeline-org {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   联系�?   ============================================================ */
.contact {
  text-align: center;
}

.contact-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: all var(--transition-smooth);
  min-width: 160px;
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(100, 255, 218, 0.08);
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform var(--transition-smooth);
}

.contact-link:hover .contact-icon-wrapper {
  transform: scale(1.1);
}

.contact-link span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  padding: 0 0 48px;
}

.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   滚动动画
   ============================================================ */
.reveal,
.about-avatar-wrapper,
.about-text,
.skill-category,
.contact-link {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible,
.about-avatar-wrapper.visible,
.about-text.visible,
.skill-category.visible.visible.visible.visible,
.contact-link.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   响应式设�?   ============================================================ */

/* 平板�?(768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-gap: 100px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .about-highlights {
    justify-content: center;
  }

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

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

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

  .contact-links {
    gap: 24px;
  }
}

/* 手机�?(<768px) */
@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  /* ---- 导航 ---- */
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 20px;
  }

  .hamburger {
    display: flex;
  }

  /* ---- Hero ---- */
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  /* ---- 关于 ---- */
  .about-avatar-wrapper {
    gap: 20px;
  }

  .about-avatar,
.about-avatar-img {
    width: 180px;
    height: 180px;
  }

  .avatar-initials {
    font-size: 48px;
  }

  .about-highlights {
    gap: 32px;
  }

  .highlight-number {
    font-size: 28px;
  }

  /* ---- 技�?---- */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ---- Game List ---- */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-cover {
    height: 120px;
  }

  /* ---- 项目 ---- */
  .project-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 13px;
  }

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

  /* ---- 时间�?---- */
  .timeline {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -29px;
  }

  .timeline-content {
    padding: 20px;
  }

  /* ---- 联系 ---- */
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-link {
    flex-direction: row;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    gap: 16px;
  }

  .contact-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  /* ---- 页脚 ---- */
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* 小手�?(<400px) */
@media (max-width: 400px) {
  .about-highlights {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .project-filters {
    justify-content: center;
  }
}


/* Avatar hover effect */
.about-avatar-img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
