/* ============================================================
   秦若森 | 个人主页样式表
   Theme: Dark Sci-Fi / Neon Gradient
   ============================================================ */

/* ==================== CSS 变量（设计系统） ==================== */
:root {
  /* 主色调 */
  --bg-primary: #06060e;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(15, 15, 35, 0.7);
  --bg-card-hover: rgba(20, 20, 50, 0.85);

  /* 文字 */
  --text-primary: #e4e4f0;
  --text-secondary: #8888a8;
  --text-muted: #555577;

  /* 强调色 - 霓虹渐变 */
  --accent-blue: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #22d3ee;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-accent: linear-gradient(135deg, #a855f7, #ec4899);
  --gradient-subtle: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(6, 182, 212, 0.15)
  );

  /* 边框 */
  --border-color: rgba(99, 102, 241, 0.15);
  --border-glow: rgba(99, 102, 241, 0.4);

  /* 阴影 */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

  /* 字体 */
  --font-sans:
    "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* 间距 */
  --section-padding: 60px;

  /* 过渡 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Reset & 基础 ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ==================== 加载动画 ==================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-code {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 3px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: loading 2s ease-in-out forwards;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  30% {
    width: 40%;
  }
  60% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* ==================== 鼠标跟随光效 ==================== */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ==================== 全屏容器 ==================== */
.fullpage-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.section {
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.section.exit-up {
  opacity: 0;
  transform: translateY(-40px);
}

.section.exit-down {
  opacity: 0;
  transform: translateY(40px);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding) 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==================== Section 通用标题 ==================== */
.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== 右侧圆点导航 ==================== */
.dot-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dot-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  justify-content: flex-end;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: all var(--transition-normal);
  position: relative;
}

.dot-nav-item.active .dot {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  transform: scale(1.3);
}

.dot-nav-item:hover .dot {
  border-color: var(--accent-cyan);
  transform: scale(1.2);
}

.dot-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  white-space: nowrap;
  order: -1;
  pointer-events: none;
}

.dot-nav-item:hover .dot-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-primary);
}

/* ==================== 第1屏 - Hero ==================== */
.section-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
}

.hero-greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.greeting-line {
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
}

.greeting-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

.hero-name {
  margin-bottom: 20px;
  line-height: 1.1;
}

.name-cn {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e4e4f0 0%, #a5a5c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
}

.name-en {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 8px;
}

.hero-titles {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  min-height: 32px;
}

.title-prefix {
  color: var(--accent-green);
  font-weight: 700;
}

.typed-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.typed-cursor {
  color: var(--accent-cyan);
  animation: cursor-blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

/* Hero 统计数据 */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scroll-down {
  0% {
    opacity: 1;
    top: 6px;
  }
  100% {
    opacity: 0;
    top: 22px;
  }
}

/* ==================== 第2屏 - 关于我 ==================== */
.section-about {
  background:
    radial-gradient(
      ellipse at 70% 30%,
      rgba(168, 85, 247, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}

.avatar-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  position: relative;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: var(--gradient-subtle);
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.avatar-placeholder svg {
  opacity: 0.3;
}

.avatar-initials {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

.avatar-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    transparent 60%
  );
  z-index: 1;
  animation: glow-rotate 8s linear infinite;
}

.avatar-orbit {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px dashed var(--border-color);
  border-radius: 50%;
  z-index: 3;
  animation: orbit-spin 12s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

@keyframes glow-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.avatar-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.tag-primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-accent {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-secondary {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* 代码块样式 */
.code-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red {
  background: #ff5f57;
}
.code-dot.yellow {
  background: #febc2e;
}
.code-dot.green {
  background: #28c840;
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-block-body {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--border-color);
  border-top: none;
  overflow-x: auto;
}

.code-block-body pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.code-keyword {
  color: #c678dd;
}
.code-class {
  color: #e5c07b;
}
.code-func {
  color: #61afef;
}
.code-param {
  color: #e06c75;
}
.code-string {
  color: #98c379;
}

/* 亮点卡片 */
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.highlight-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-subtle);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.highlight-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.highlight-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==================== 第3屏 - 技能 ==================== */
.section-skills {
  background:
    radial-gradient(
      ellipse at 30% 70%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-category {
  padding: 24px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.skill-category:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.category-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  font-size: 1.2rem;
}

/* 技能进度条 */
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
}

/* 技能标签 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  cursor: default;
}

.skill-tag[data-level="expert"] {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.skill-tag[data-level="advanced"] {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan);
}

.skill-tag[data-level="intermediate"] {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: #c084fc;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* 能力环 */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capability-card {
  text-align: center;
  padding: 12px 8px;
}

.capability-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  position: relative;
}

.capability-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(99, 102, 241, 0.1);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: calc(339.292 * (1 - var(--percent) / 100));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.capability-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== 第4屏 - 项目 ==================== */
.section-projects {
  background:
    radial-gradient(
      ellipse at 60% 40%,
      rgba(99, 102, 241, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.15),
    var(--shadow-glow);
  background: var(--bg-card-hover);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gradient-subtle);
  color: var(--accent-blue);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-brief {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* 查看详情提示 */
.project-view-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.project-view-more svg {
  transition: transform 0.3s ease;
}

.project-card:hover .project-view-more {
  color: var(--accent-cyan);
}

.project-card:hover .project-view-more svg {
  transform: translateX(4px);
}

/* 项目访问链接 */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-link:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.project-link svg {
  flex-shrink: 0;
}

/* 弹框内访问按钮 */
.modal-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-visit-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* ==================== 项目详情弹框 ==================== */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: linear-gradient(
    145deg,
    rgba(15, 15, 35, 0.95),
    rgba(20, 20, 50, 0.98)
  );
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 36px;
  max-width: 520px;
  width: 90%;
  position: relative;
  transform: scale(0.85) translateY(30px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(99, 102, 241, 0.1);
}

.project-modal-overlay.active .project-modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-glow);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient-subtle);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-brief {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-tags span {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.modal-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-glow),
    transparent
  );
  margin-bottom: 24px;
}

.modal-details-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-details-title svg {
  flex-shrink: 0;
}

.modal-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-details-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-10px);
  animation: modalItemIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-details-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.modal-details-list li:nth-child(2) {
  animation-delay: 0.2s;
}
.modal-details-list li:nth-child(3) {
  animation-delay: 0.3s;
}
.modal-details-list li:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes modalItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.modal-details-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==================== 第5屏 - 工作经历 ==================== */
.section-experience {
  background:
    radial-gradient(
      ellipse at 40% 60%,
      rgba(168, 85, 247, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-blue),
    var(--accent-purple),
    transparent
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-primary);
  z-index: 2;
}

.timeline-dot-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  animation: dot-pulse 2s ease-in-out infinite;
  opacity: 0;
}

.timeline-item:first-child .timeline-dot-pulse {
  opacity: 1;
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-glow);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-tags span {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ==================== 第6屏 - 联系 ==================== */
.section-contact {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-subtle);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.contact-card:hover .contact-arrow {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* 联系表单 */
.message-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.contact-form {
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-family: var(--font-mono);
  margin-top: 8px;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  text-align: center;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-code {
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

.footer-heart {
  color: var(--accent-pink);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.footer-divider {
  color: var(--border-color);
}

.footer-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.6;
}

/* ==================== 动画入场类 ==================== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 二维码弹框 ==================== */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,240,255,0.95));
    border-radius: 20px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.qr-modal-overlay.active .qr-modal {
    transform: scale(1) translateY(0);
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.qr-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.qr-modal-img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.qr-modal-hint {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #888;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .dot-nav {
    right: 16px;
  }

  .dot-label {
    display: none;
  }

  .name-cn {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  .name-en {
    font-size: 0.9rem;
  }

  .hero-titles {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-inner {
    padding: var(--section-padding) 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -23px;
  }
}

@media (max-width: 480px) {
  .name-cn {
    font-size: 2.4rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 16px;
  }
}

/* ==================== 滚动条美化 ==================== */
.section::-webkit-scrollbar {
  width: 4px;
}

.section::-webkit-scrollbar-track {
  background: transparent;
}

.section::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.section::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* ==================== 选中文字 ==================== */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: white;
}
