/* 缪毅翔个人作品集 v2 - 全面美化版 */
/* 配色：浅蓝 + 白 + 黑色线条框 */
/* 风格：Sharp & Compact + 渐入动效 */

:root {
  --bg: #ffffff;
  --bg-soft: #f7faff;
  --bg-section: #fafcff;
  --text: #0a0a0a;
  --text-2: #404040;
  --text-3: #737373;
  --text-4: #a3a3a3;
  --border: #0a0a0a;
  --border-soft: #e0e0e0;
  --border-mid: #d4d4d4;
  --accent: #0070F3;
  --accent-2: #005FCC;
  --accent-light: #E0EFFF;
  --accent-bg: #F0F7FF;
  --gold: #D4AF37;
  --gold-light: #FAECB8;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --radius: 4px;
  --shadow-card: 4px 4px 0 0 #0a0a0a;
  --shadow-card-hover: 6px 6px 0 0 #0070F3;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 112, 243, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 2px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
}

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

.nav-logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  transition: all var(--transition);
  display: inline-block;
}

.nav-logo:hover {
  background: var(--accent);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card);
}

.nav-links { display: flex; gap: 6px; list-style: none; }

.nav-links a {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  border-color: var(--border);
  background: var(--accent-light);
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--border-soft); }
.section:last-child { border-bottom: none; }

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 32px;
  background: var(--accent);
  margin-right: 12px;
}

.section-subtitle {
  color: var(--text-3);
  font-size: 16px;
  margin-bottom: 40px;
  margin-left: 20px;
}

/* ===== 头像 ===== */
.avatar-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  margin-bottom: 24px;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border: 3px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  display: block;
  box-shadow: 6px 6px 0 0 var(--accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar:hover {
  transform: translate(-3px, -3px) rotate(-2deg);
  box-shadow: 9px 9px 0 0 var(--accent);
}

.avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--green);
  color: white;
  width: 32px;
  height: 32px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  z-index: 2;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 80px;
  background:
    linear-gradient(0deg, transparent 49%, var(--border-mid) 49%, var(--border-mid) 50%, transparent 50%) 0 0 / 100% 80px,
    var(--bg);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 220px 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left { padding-left: 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-tag::before { content: '●'; color: var(--green); animation: pulse 2s infinite; }

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

.hero-name {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-name span {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-name span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-light);
  z-index: -1;
}

.hero-title {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 32px;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  line-height: 1.5;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-card);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: white;
  box-shadow: 4px 4px 0 0 var(--border);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-mid);
}

/* ===== Sidebar (项目跳转小框) ===== */
.hero-sidebar {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  box-shadow: 6px 6px 0 0 var(--accent);
  transition: all var(--transition);
}

.hero-sidebar:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--accent);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-title::before {
  content: '▸';
  color: var(--accent);
  font-weight: 900;
}

.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.sidebar-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--bg);
}

.sidebar-item a:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(4px);
  color: var(--text);
}

.sidebar-item .arrow {
  color: var(--accent);
  font-weight: 900;
  transition: transform var(--transition);
}

.sidebar-item a:hover .arrow { transform: translateX(4px); }

.sidebar-item.featured a {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.sidebar-item.featured a:hover {
  background: var(--accent-2);
  color: white;
}

.sidebar-item.featured .arrow { color: white; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

.about-text strong { color: var(--text); font-weight: 700; }
.about-text mark {
  background: var(--accent-light);
  color: var(--accent-2);
  padding: 1px 4px;
  border-radius: 2px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--transition);
}

.stat-card:hover {
  background: var(--accent-light);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card);
}

.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ===== Project Cards ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light) 0%, transparent 100%);
  transition: width 0.4s ease;
  z-index: 0;
  opacity: 0.5;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-card-hover);
}

.project-card:hover::before { width: 100%; }

.project-card > * { position: relative; z-index: 1; }

.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.project-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-tag.tag-blue { background: var(--accent); color: white; border-color: var(--accent); }
.project-tag.tag-soft { background: var(--accent-light); color: var(--accent-2); border-color: var(--accent); }
.project-tag.tag-gold { background: var(--gold); color: white; border-color: var(--gold); }
.project-tag.tag-green { background: var(--green); color: white; border-color: var(--green); }

.project-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.project-stack {
  font-size: 12px;
  color: var(--text-4);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

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

.project-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.project-link:hover { gap: 10px; }

.center-btn { text-align: center; }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-group {
  padding: 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--transition);
}

.skill-group:hover {
  background: var(--accent-light);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card);
}

.skill-group h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-group h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }

.skill-list li {
  font-size: 12px;
  padding: 4px 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  font-weight: 500;
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
  background: var(--accent-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin: 80px auto;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, var(--accent-light) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.5;
}

.contact-section > * { position: relative; z-index: 1; }

.contact-section h2 { justify-content: center; }
.contact-section h2::before { display: none; }

.contact-subtitle {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
  font-size: 13px;
}

.footer-inner > div:first-child { text-align: left; }
.footer-inner > div:last-child { text-align: right; }
.footer a { color: var(--bg); }
.footer a:hover { color: var(--accent); }

/* ========== Project Detail Page ========== */
.detail-hero {
  padding: 60px 0 40px;
  background: var(--bg-section);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 16px, transparent 16px, transparent 32px);
}

.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.detail-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.detail-subtitle {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 0;
  font-weight: 500;
  max-width: 800px;
}

.detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-3);
}

.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta strong { color: var(--text); font-weight: 600; }

.detail-content {
  padding: 60px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-section {
  margin-bottom: 48px;
}

.detail-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section h3 .emoji { font-size: 22px; }

.detail-section p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: 15.5px;
}

.detail-section ul {
  list-style: none;
  margin: 0;
}

.detail-section ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-2);
  line-height: 1.7;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 15px;
}

.detail-section ul li:last-child { border-bottom: none; }

.detail-section ul li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  top: 10px;
  color: var(--accent);
  font-weight: 900;
}

.detail-section ul li strong { color: var(--text); font-weight: 700; }

/* 数据卡片 */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.metric {
  padding: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: left;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.metric:hover::after { transform: scaleY(1); }

.metric:hover {
  background: var(--accent-light);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card);
}

.metric-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.4;
}

/* 数据对比表 */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  font-size: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.compare-table thead th {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare-table tbody tr:hover { background: var(--accent-light); }

.compare-table td:first-child { font-weight: 600; color: var(--text); }
.compare-table td:nth-child(2) { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }

/* Callout box */
.callout {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
}

.callout.callout-warn {
  border-left-color: var(--orange);
  background: var(--orange-light);
}

.callout.callout-success {
  border-left-color: var(--green);
  background: var(--green-light);
}

.callout strong { color: var(--text); font-weight: 700; }
.callout-title {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 14px;
}

/* Sidebar (in detail page) */
.detail-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.sidebar-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card);
}

.sidebar-card.featured-card {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.sidebar-card.featured-card h3 { color: white; }
.sidebar-card.featured-card .sidebar-data { color: white; }
.sidebar-card.featured-card .sidebar-data-label { color: rgba(255,255,255,0.85); }

.sidebar-card h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-card.featured-card h3 { border-bottom-color: rgba(255,255,255,0.3); }

.sidebar-card h3::before {
  content: '▸';
  color: var(--accent);
  font-weight: 900;
}

.sidebar-card.featured-card h3::before { color: white; }

.sidebar-data {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14px;
}

.sidebar-data:last-child { border-bottom: none; }

.sidebar-data-label { color: var(--text-3); }
.sidebar-data-value { font-weight: 700; color: var(--text); font-family: var(--font-mono); }

.sidebar-card.featured-card .sidebar-data-value { color: white; }

.sidebar-data-value.accent { color: var(--accent); }
.sidebar-card.featured-card .sidebar-data-value.accent { color: white; }

.tag-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-stack span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  color: var(--text-2);
}

.sidebar-card.featured-card .tag-stack span {
  background: rgba(255,255,255,0.18);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

/* 行动按钮 */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px dashed var(--border-mid);
}

/* ===== 通用动效 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero > * { animation: fadeUp 0.6s ease backwards; }
.hero-tag { animation-delay: 0.1s; }
.hero-name { animation-delay: 0.15s; }
.hero-title { animation-delay: 0.2s; }
.hero-tagline { animation-delay: 0.25s; }
.hero-cta { animation-delay: 0.3s; }
.hero-sidebar { animation: slideIn 0.7s ease 0.4s backwards; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-title { font-size: 36px; }
  .hero-inner { grid-template-columns: 200px 1fr; gap: 32px; }
  .hero-sidebar { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: 44px; }
  .detail-title { font-size: 30px; }
  .section-title { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner > div { text-align: center !important; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
  .avatar-wrap { margin: 0 auto 24px; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 16px; }
  .container { padding: 0 16px; }
  .nav-links a { padding: 5px 10px; font-size: 12px; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 36px; letter-spacing: -1.5px; }
  .detail-title { font-size: 26px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
}