/* 简约大气的求职个人网站样式 */

:root {
  --primary-color: #5B7FFF;
  --primary-dark: #4A6AE8;
  --secondary-color: #8B5CF6;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition-normal: 250ms ease;
}

.dark {
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --bg-primary: #111827;
  --bg-secondary: #1F2937;
  --bg-tertiary: #374151;
  --border-color: #4B5563;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: all var(--transition-normal);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 导航栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.dark .site-header {
  background-color: rgba(17, 24, 39, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
  position: relative;
  font-size: 0.9375rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Hero区域 */
/* Hero区域 - 使用背景图片 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
  /* 渐变背景配合图片 */
  background: linear-gradient(180deg, 
    rgba(91, 127, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
}

/* 背景图片层 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('profile.jpg');
  background-size: cover;/* * 确保图片填满界面宽度 */
  background-position: center;  /* 照片显示在正中间 */
  background-repeat: no-repeat;
  opacity: 0.3;  /* 提高透明度，让照片更清晰 */
  z-index: 0;
}

/* Hero区域背景渐变调整 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(91, 127, 255, 0.05) 100%);
}

/* 装饰性渐变层 */
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

.hero .container {
  text-align: left;       /* 左对齐 */
  position: relative;
  z-index: 1;
  max-width: 600px;       /* 限制最大宽度 */
  margin-left: 150px;      /* 左边留出空间 */
}

/* about区域 - 自然过渡效果 */
.about {
  position: relative;
  background: var(--bg-primary);
  padding-top: 4rem;
}

/* 从Hero到About的平滑过渡渐变 */
.about::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0) 0%, 
    var(--bg-primary) 70%);
  pointer-events: none;
}

.eyebrow {
  font-size: 1.975rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.title {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 通用区块样式 */
.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-inner {
  display: grid;
  gap: 4rem;
}

.section-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* 关于我统计数据 */
.about-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  min-width: 100px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* 时间线 */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.dark .timeline-dot {
  border-color: var(--bg-primary);
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* 技能网格 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
}

.card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* 实习经历卡片 */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

.exp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.exp-position {
  font-size: 0.9375rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.exp-duties {
  list-style: none;
}

.exp-duties li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
}

.exp-duties li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* 项目展示 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.project-tag {
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.project-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-detail-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  align-self: flex-start;
}

.project-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 荣誉奖项 */
/* 荣誉奖项 - 叠加卡片样式 */
/* 荣誉奖项 - 横向排列 */

/* 荣誉奖项 - 高级卡片样式 */
.honors-grid {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  max-width: 100%;
}

.honors-grid::-webkit-scrollbar {
  display: none;
}

.honors-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.honor-item {
  flex-shrink: 0;
  width: 200px;
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--bg-primary) 0%, rgba(91, 127, 255, 0.03) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
}

.honor-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(91, 127, 255, 0.15);
}

/* 卡片发光效果 */
.honor-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(91, 127, 255, 0.1) 60deg,
    transparent 120deg,
    transparent 180deg,
    rgba(139, 92, 246, 0.1) 240deg,
    transparent 300deg,
    transparent 360deg
  );
  transform: rotate(0deg);
  transition: transform 0.8s ease;
}

.honor-item:hover::before {
  transform: rotate(180deg);
}

/* 卡片内容 */
.honor-content {
  position: relative;
  z-index: 1;
}

/* 图标装饰 */
.honor-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 1rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(91, 127, 255, 0.3);
}

.honor-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.honor-item:hover .honor-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(91, 127, 255, 0.4);
}

.honor-year {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, rgba(91, 127, 255, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border-radius: 20px;
  margin-bottom: 0.875rem;
  transition: all 0.3s ease;
}

.honor-item:hover .honor-year {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: translateY(-2px);
}

.honor-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  transition: all 0.3s ease;
}

.honor-item:hover .honor-title {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* 悬浮效果 */
.honor-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(91, 127, 255, 0.15);
}

/* 卡片底部渐变 */
.honor-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.honor-item:hover::after {
  opacity: 1;
}

/* 联系区域 */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  text-align: center;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  padding: 0.75rem 0;
  font-size: 1.125rem;
}

.contact-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list span {
  color: var(--text-secondary);
}

/* 页脚 */
.footer {
  background-color: var(--bg-tertiary);
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 项目详情弹窗 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.close-modal {
  color: var(--text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--text-primary);
}

#modalBody h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

#modalBody .modal-tag {
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
  margin-right: 0.5rem;
}

#modalBody .modal-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

#modalBody p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

#modalBody .modal-section {
  margin-top: 1.5rem;
}

#modalBody .modal-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

#modalBody .modal-section ul {
  list-style: none;
}

#modalBody .modal-section li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
}

#modalBody .modal-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .title, .intro {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

  .about-stats {
    gap: 1rem;
  }

  .stat-item {
    min-width: 80px;
    padding: 1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
    transform: none;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    text-align: left !important;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-detail-btn {
    width: 100%;
    text-align: center;
  }

  .honor-item {
    width: 170px;
    padding: 1.25rem;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}