/* ==========================================================================
   罗名扬 · 个人作品集与工程简历
   设计语言：Linear / Vercel 极简暗黑工程美学 (Monochrome Dark Engineering Aesthetic)
   规范：纯粹黑灰对比、精密 1px 细线、等宽字体技术感、克制单色微光，坚决杜绝蓝紫大渐变
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, Monaco, monospace;

  /* 暗黑核心调色板 */
  --bg-base: #000000;
  --bg-subtle: #08090a;
  --bg-card: #0d0f12;
  --bg-card-hover: #13161a;
  --bg-overlay: rgba(8, 9, 10, 0.92);

  /* 边框体系 */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(255, 255, 255, 0.35);

  /* 文字体系 */
  --text-pure: #ffffff;
  --text-main: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* 核心强调色：克制、精密高亮（无蓝紫渐变） */
  --accent-white: #ffffff;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #38bdf8;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 精密暗黑微网格底纹 */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 字体排印 */
.mono {
  font-family: var(--font-mono);
}

.text-white {
  color: var(--text-pure);
}

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

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  outline: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
  font-weight: 600;
  border-color: #ffffff;
}

.btn-primary:hover {
  background-color: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-mid);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-pure);
  border-color: var(--border-mid);
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-pure);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #18181b;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.logo-text small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px;
}

.mobile-toggle span {
  width: 100%;
  height: 1.5px;
  background: var(--text-pure);
}

/* Hero 区域 */
.hero-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-desc strong {
  color: var(--text-pure);
  font-weight: 600;
}

.hero-metrics-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background-color: #121417;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.metric-pill strong {
  color: var(--text-pure);
  font-family: var(--font-mono);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* 个人开发者身份卡 */
.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: var(--transition);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar-container {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-mid);
}

.profile-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 1.25rem 0;
}

.profile-specs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  width: 75px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.spec-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.spec-value strong {
  color: var(--text-pure);
}

.card-footer {
  margin-top: 1.5rem;
}

/* 分区通用规范 */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 核心技术数据看板 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.25rem;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-mid);
  background-color: var(--bg-card-hover);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* GitHub 开源与 AI Agent 架构展区 */
.github-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.github-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.github-card:hover {
  border-color: var(--border-focus);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.github-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pure);
}

.repo-stars {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: rgba(245, 158, 11, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.repo-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.repo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.repo-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3572A5; /* Python blue */
}

.lang-dot.ts {
  background-color: #3178c6;
}

.lang-dot.cs {
  background-color: #178600;
}

/* 核心代表作卡片 */
.projects-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-controls {
  display: flex;
  background-color: #121417;
  padding: 3px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  gap: 3px;
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: #27272a;
  color: var(--text-pure);
}

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.project-media {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #000;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.95);
}

.project-card:hover .project-media img {
  transform: scale(1.02);
  filter: brightness(1.02);
}

.media-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-mid);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  opacity: 0;
  transition: var(--transition);
}

.project-media:hover .media-zoom-hint {
  opacity: 1;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-mid);
  color: var(--text-pure);
}

.project-badge.highlight {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.project-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-highlights {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-highlights li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.project-highlights li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-highlights strong {
  color: var(--text-pure);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* 视觉设计与 UI/UX 展厅 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.gallery-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #000;
  overflow: hidden;
}

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

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.03);
}

.gallery-info {
  padding: 1rem;
}

.gallery-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-info span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.design-history-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
}

.history-item {
  border-right: 1px solid var(--border-subtle);
  padding-right: 1.5rem;
}

.history-item:last-child {
  border-right: none;
  padding-right: 0;
}

.history-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.history-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 时间线经历了 */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 1px;
  background-color: var(--border-mid);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -2rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #000;
  border: 2px solid #ffffff;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-mid);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
}

.timeline-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.timeline-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-points {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.timeline-points li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.timeline-points li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* 技能与架构矩阵 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: var(--transition);
}

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

.skill-cat-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.skill-name strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-pure);
}

.skill-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: #ffffff;
  border-radius: var(--radius-xs);
}

/* 联系与面试邀约 */
.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 2.25rem 0 2rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #121417;
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-xs);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact-pill:hover {
  border-color: var(--border-focus);
  color: var(--text-pure);
  background-color: #1a1d22;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background-color: var(--bg-base);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-pure);
}

/* 图片 Lightbox 模态框 */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-mono);
}

/* Toast 提示 */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #18181b;
  border: 1px solid var(--border-mid);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* HR 岗位匹配度透视表 (Job Matching Matrix) 全局样式 */
.matrix-section {
  background-color: var(--bg-subtle);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.matrix-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.matrix-card:hover {
  border-color: var(--border-mid);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.matrix-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-pure);
}

.matrix-role-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.matrix-match-rate {
  text-align: right;
  flex-shrink: 0;
}

.match-score {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-emerald);
  line-height: 1;
}

.match-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.matrix-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.compare-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compare-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compare-heading.jd {
  color: #f87171;
}

.compare-heading.my {
  color: var(--accent-emerald);
}

.compare-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.compare-text strong {
  color: var(--text-pure);
}

.matrix-evidence {
  background-color: #08090a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
}

.evidence-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.evidence-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background-color: #121417;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-pure);
  text-decoration: none;
  transition: var(--transition);
}

.evidence-tag:hover {
  border-color: var(--border-mid);
  background-color: #1a1d22;
}

/* 响应式断点规范 */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .github-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.15rem;
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .github-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .design-history-box {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .history-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }
  
  .history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-actions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 履历折叠样式 */
.timeline-toggle-bar {
  text-align: center;
  margin: 1.5rem 0 2rem 0;
  position: relative;
  z-index: 2;
}

.toggle-exp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-mid);
  padding: 0.65rem 1.4rem;
  font-size: 0.86rem;
  font-family: var(--font-mono);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-exp-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-pure);
  background-color: #1a1d22;
  border-style: solid;
}

.toggle-exp-btn .chevron-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-exp-btn.is-open .chevron-icon {
  transform: rotate(180deg);
}

.timeline-collapse-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.timeline-collapse-wrap.is-open {
  max-height: 2500px;
  opacity: 1;
}

/* 品牌 SVG 图标通用样式 */
.brand-svg-icon {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

/* 强化底部联系模块 */
.contact-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-card-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.contact-card-box:hover {
  border-color: var(--border-mid);
}

.contact-card-box.highlight-phone {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.05) 0%, rgba(18, 20, 23, 0.8) 100%);
}

.contact-card-box.highlight-phone:hover {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.card-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-box-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
}

.card-box-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-box-badge.badge-gray {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.card-box-badge.badge-bili {
  background-color: rgba(0, 174, 236, 0.12);
  color: #23ade5;
  border-color: rgba(0, 174, 236, 0.3);
}

.card-box-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-box-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.direct-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
}

.direct-call-btn:hover {
  background-color: #22c55e;
  transform: translateY(-1px);
}

/* 站酷 (ZCOOL) 商业设计专栏样式 */
.zcool-showcase-card {
  margin-top: 2rem;
  background-color: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.03) 0%, rgba(18, 20, 23, 0.95) 100%);
}

.zcool-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, transparent 100%);
}

.zcool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.zcool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fbbf24;
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.6rem;
}

.zcool-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.zcool-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.zcool-main-btn {
  background-color: #f59e0b;
  color: #000000;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.zcool-main-btn:hover {
  background-color: #fbbf24;
  color: #000000;
  transform: translateY(-1px);
}

.zcool-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.zcool-work-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1rem 1.15rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.zcool-work-item:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background-color: rgba(245, 158, 11, 0.04);
  transform: translateY(-2px);
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fbbf24;
  margin-bottom: 0.4rem;
}

.work-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-pure);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.work-link-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.zcool-work-item:hover .work-link-hint {
  color: #fbbf24;
}

.card-box-badge.badge-zcool {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

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

@media (max-width: 640px) {
  .zcool-works-grid {
    grid-template-columns: 1fr;
  }
}

/* Quicker 动作生态专栏样式 */
.quicker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.quicker-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.quicker-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.quicker-card.featured {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.04) 0%, rgba(18, 20, 23, 0.95) 100%);
}

.quicker-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, transparent 100%);
}

.quicker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.quicker-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.35;
}

.quicker-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  background-color: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
}

.quicker-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.quicker-features {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.quicker-features li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.quicker-features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.quicker-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: #38bdf8;
  text-decoration: none;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.quicker-action-link:hover {
  color: #7dd3fc;
  gap: 0.6rem;
}

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

@media (max-width: 640px) {
  .quicker-grid {
    grid-template-columns: 1fr;
  }
}

/* AI Agent 闭环架构流程图 (Pipeline Flowchart) */
.pipeline-flow-wrapper {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}

.pipeline-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pipeline-flow-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.pipeline-step-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1rem;
  position: relative;
  transition: var(--transition);
}

.pipeline-step-card:hover {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.04);
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.pipeline-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.35rem;
}

.pipeline-step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Agent 能力可视化图表卡片 */
.agent-skills-chart-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.chart-bar-item {
  margin-bottom: 1rem;
}

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

.chart-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.chart-bar-label {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-bar-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-pure);
  font-weight: 700;
}

.chart-progress-bg {
  width: 100%;
  height: 6px;
  background-color: #27272a;
  border-radius: 999px;
  overflow: hidden;
}

.chart-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-progress-fill.green {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.chart-progress-fill.amber {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.chart-progress-fill.cyan {
  background: linear-gradient(90deg, #06b6d4 0%, #38bdf8 100%);
}

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

@media (max-width: 540px) {
  .pipeline-flow-grid {
    grid-template-columns: 1fr;
  }
}





