/* ========================================
   变量定义
   ======================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f59e0b;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: #555;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ========================================
   英雄区
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.avatar-placeholder.large {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--primary);
}

.tagline {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: #555;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========================================
   统计区
   ======================================== */
.stats {
  padding: 40px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.stats-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: #555;
}

/* ========================================
   通用区块
   ======================================== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

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

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

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ========================================
   文章卡片
   ======================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.post-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.post-category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eff6ff;
  color: var(--primary);
}

.post-category.design { background: #fdf4ff; color: #a855f7; }
.post-category.essay { background: #fef3c7; color: #f59e0b; }
.post-category.note { background: #dcfce7; color: #10b981; }

.post-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-card .post-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card .post-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.read-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.read-more {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.read-more:hover {
  text-decoration: underline;
}

/* ========================================
   作品卡片
   ======================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.work-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card.large .work-image {
  height: 100%;
  min-height: 300px;
}

.work-placeholder {
  color: var(--text-muted);
}

.work-info {
  padding: 20px;
}

.work-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 6px 0;
}

.work-info p {
  font-size: 0.875rem;
  color: #555;
}

.work-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: #555;
  font-size: 0.875rem;
}

.footer-links {
  margin-top: 8px;
}

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

/* ========================================
   博客页
   ======================================== */
.blog-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #555;
  font-size: 1.125rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* 侧边栏 */
.sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  padding-right: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-box svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.category-list li:hover,
.category-list li.active {
  background: #eff6ff;
  color: var(--primary);
}

.category-list .count {
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #555;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  background: var(--border-light);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #555;
  cursor: pointer;
  transition: var(--transition);
}

.tag:hover,
.tag.active {
  background: var(--primary);
  color: white;
}

.popular-posts li {
  margin-bottom: 12px;
}

.popular-posts a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  transition: var(--transition);
}

.popular-posts a:hover {
  color: var(--primary);
}

.popular-posts .rank {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.popular-posts .title {
  line-height: 1.4;
}

/* 文章列表 */
.posts-container {
  min-height: 600px;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results-count {
  color: #555;
  font-size: 0.875rem;
}

.sort-options select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--surface);
  cursor: pointer;
}

.post-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.post-item:hover {
  padding-left: 8px;
}

.post-date-badge {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 16px;
  background: var(--border-light);
  border-radius: var(--radius);
}

.post-date-badge .month {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}

.post-date-badge .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.post-content {
  flex: 1;
}

.post-content .post-meta {
  margin-bottom: 8px;
}

.post-content .post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-content .post-title a:hover {
  color: var(--primary);
}

.post-content .post-excerpt {
  margin-bottom: 12px;
  -webkit-line-clamp: 2;
}

.post-stats {
  display: flex;
  gap: 20px;
}

.post-stats .stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tag-small {
  display: inline-block;
  padding: 2px 8px;
  background: var(--border-light);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 6px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

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

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

/* ========================================
   作品集页
   ======================================== */
.portfolio-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #555;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

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

.portfolio-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  color: var(--text-muted);
}

.image-placeholder.large {
  width: 100%;
  height: 300px;
}

.image-placeholder.has-video {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  gap: 16px;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.project-link:hover {
  background: var(--primary);
  color: white;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 6px 0;
}

.portfolio-info p {
  font-size: 0.875rem;
  color: #555;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.portfolio-tags span {
  padding: 4px 10px;
  background: var(--border-light);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #555;
}

/* 模态框 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-image .image-placeholder {
  height: 300px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-info {
  padding: 32px;
}

.modal-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.modal-info h2 {
  font-size: 1.5rem;
  margin: 8px 0 16px;
}

.modal-description {
  color: #555;
  margin-bottom: 24px;
  line-height: 1.7;
}

.modal-tech h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tags span {
  padding: 6px 12px;
  background: var(--border-light);
  border-radius: 20px;
  font-size: 0.8125rem;
}

.modal-links {
  display: flex;
  gap: 12px;
}

/* ========================================
   简历页
   ======================================== */
.resume-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.resume-header {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.resume-avatar {
  flex-shrink: 0;
}

.resume-intro {
  flex: 1;
}

.resume-intro h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.resume-title {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.resume-summary {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.resume-actions {
  display: flex;
  gap: 12px;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

/* 简历主内容 */
.resume-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.resume-section {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.section-heading svg {
  color: var(--primary);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

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

.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.timeline-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.timeline-description {
  padding-left: 0;
  list-style: disc;
}

.timeline-description li {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* 项目列表 */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-item {
  padding: 20px;
  background: var(--border-light);
  border-radius: var(--radius);
}

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

.project-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.project-role {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tech span {
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #555;
}

.project-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

/* 教育背景 */
.education-item {
  padding: 20px;
  background: var(--border-light);
  border-radius: var(--radius);
}

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

.education-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.education-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.education-degree {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 4px;
}

.education-gpa {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

/* 侧边栏 */
.resume-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-section {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
}

.info-list svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* 技能条 */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

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

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
  border-radius: 3px;
  transition: width 1s ease;
}

.skill-bar.small {
  height: 4px;
}

/* 技术标签 */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  padding: 6px 12px;
  background: var(--border-light);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #555;
  transition: var(--transition);
}

.tech-tag:hover {
  background: var(--primary);
  color: white;
}

/* 语言能力 */
.language-item {
  margin-bottom: 12px;
}

.language-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

/* 荣誉奖项 */
.awards-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #555;
}

.awards-list li::before {
  content: '🏆';
  position: absolute;
  left: 0;
}

/* 联系方式 */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--border-light);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: var(--transition);
}

.contact-link:hover {
  background: #eff6ff;
  color: var(--primary);
}

.contact-link svg {
  flex-shrink: 0;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 240px 1fr;
  }
  
  .resume-grid {
    grid-template-columns: 1fr 320px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-image .image-placeholder {
    height: 200px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .posts-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .work-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .blog-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sidebar .widget:first-child {
    grid-column: span 2;
  }
  
  .resume-grid {
    grid-template-columns: 1fr;
  }
  
  .resume-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .resume-actions {
    justify-content: center;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
  
  .post-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .post-date-badge {
    width: fit-content;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .blog-page,
  .portfolio-page,
  .resume-page {
    padding-top: 88px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar .widget:first-child {
    grid-column: span 1;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .post-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .resume-actions {
    flex-direction: column;
  }
  
  .resume-actions .btn-primary,
  .resume-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

.logo-slogan {
  font-size: 12px;
  font-weight: 400;
  color: #555;
  margin-left: 8px;
  letter-spacing: 0.03em;
}

/* Single Article Page */
.single-article {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}
.post-header {
  text-align: center;
  margin-bottom: 40px;
}
.post-header .post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.post-header .post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.post-tags {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}
.post-tags .tag {
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
