/* 个人介绍页面 - Next Gemini主题兼容样式 */

/* CSS变量 - 与Next主题保持一致 */
:root {
  /* Next主题核心色彩 */
  --next-primary: #222;
  --next-text: #555;
  --next-background: #fff;
  --next-border: #ddd;
  --next-link: #0593d3;
  --next-shadow: rgba(0,0,0,0.1);
  --next-card-bg: #fff;
  --next-gradient-start: #0593d3;
  --next-gradient-end: #5ec5f7;
  
  /* 字体系统 */
  --next-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue", sans-serif;
  --next-code-font: "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace;
  
  /* 布局参数 */
  --next-max-width: 1200px;
  --next-content-margin: 40px;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  :root {
    --next-primary: #fff;
    --next-text: #c2c2c2;
    --next-background: #1e1e1e;
    --next-border: #3a3a3a;
    --next-link: #87ceeb;
    --next-shadow: rgba(255,255,255,0.1);
    --next-card-bg: #2a2a2a;
    --next-gradient-start: #87ceeb;
    --next-gradient-end: #4682b4;
  }
}

/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: var(--next-font-family);
  color: var(--next-text);
  background-color: var(--next-background);
  line-height: 1.6;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--next-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--next-gradient-end);
}

/* 容器布局 - 响应式设计 */
.container {
  max-width: var(--next-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    padding: 0 16px;
  }
}

/* 顶部导航栏 */
.header .headerbar {
  display: flex;
  padding: 0.8rem 1rem;
  min-height: 70px;
  align-items: center;
  background: var(--next-card-bg);
  border-bottom: 3px solid var(--next-link);
  position: fixed;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px var(--next-shadow);
  transition: all 0.3s ease;
}

.header-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header .brand {
  display: flex;
  align-items: center;
  padding-right: 30px;
}

.header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.header img:hover {
  transform: scale(1.05);
}

.brand-name {
  color: var(--next-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--next-text);
  margin: 0;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.home:hover {
  background-color: var(--next-border);
}

.home img {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

/* 个人信息区块 */
.person-info {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--next-gradient-start), var(--next-gradient-end));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.person-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  background-size: 50px 50px;
  opacity: 0.3;
}

.person-block {
  position: relative;
  z-index: 1;
}

.avator img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 24px;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.avator img:hover {
  transform: scale(1.05);
}

.person-detail p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.tag-list {
  margin-top: 32px;
  padding-bottom: 16px;
}

.tag-list span {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px 8px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tag-list span:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* 标题样式 */
.title {
  padding: 60px 0 40px;
  font-weight: 300;
  text-align: center;
  font-size: 2.2rem;
  color: var(--next-primary);
  position: relative;
}

.title::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--next-link);
  border-radius: 2px;
}

/* 教育经历 */
.education {
  padding-bottom: 60px;
  background: var(--next-background);
}

.education-layout {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.education-item {
  flex: 1;
  background: var(--next-card-bg);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--next-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--next-shadow);
}

.school {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.school-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--next-shadow);
}

.school-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-name {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--next-primary);
}

.school-info {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--next-text);
}

.school-time {
  font-size: 0.9rem;
  color: var(--next-link);
  font-weight: 500;
}

.event {
  font-size: 0.9rem;
  color: var(--next-text);
  line-height: 1.6;
}

.event span {
  font-weight: 600;
  color: var(--next-primary);
}

/* 实习经历 */
.work {
  background: linear-gradient(to bottom, var(--next-background) 0%, #f8f9fa 100%);
  padding-bottom: 60px;
}

.work-layout {
  display: flex;
  gap: 32px;
}

.work-item {
  flex: 1;
  background: var(--next-card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--next-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--next-shadow);
}

.company-logo {
  width: 120px;
  margin-bottom: 24px;
}

.company-logo img {
  width: 100%;
  height: auto;
}

.work-time {
  font-weight: 500;
  font-size: 0.9rem;
  float: right;
  color: var(--next-link);
  margin-top: 8px;
}

.work-main {
  font-size: 1.1rem;
  color: var(--next-primary);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.work-more {
  display: inline-block;
  padding: 6px 12px;
  background: var(--next-link);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 16px;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.work-more:hover {
  background: var(--next-gradient-end);
  transform: translateY(-1px);
}

.work-detail {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--next-text);
  line-height: 1.6;
}

.work-detail ul {
  padding-left: 20px;
}

.work-detail li {
  margin-bottom: 8px;
}

/* 项目经历 */
.project {
  background: var(--next-background);
  padding-bottom: 60px;
}

.project-item {
  margin-bottom: 40px;
  background: var(--next-card-bg);
  box-shadow: 0 6px 25px var(--next-shadow);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px var(--next-shadow);
}

.project-img {
  width: 280px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.project1-img,
.project2-img,
.project3-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.project-item:hover .project1-img,
.project-item:hover .project2-img,
.project-item:hover .project3-img {
  transform: scale(1.05);
}

.project1-img {
  background-image: url("assets/images/coding.jpg");
}

.project2-img {
  background-image: url("assets/images/maotu.jpeg");
}

.project3-img {
  background-image: url("assets/images/zhonghan.jpeg");
}

.project-info {
  padding: 32px;
  flex: 1;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--next-primary);
  margin-bottom: 12px;
  display: inline-block;
}

.project-time {
  display: inline-block;
  margin-left: 16px;
  color: var(--next-link);
  font-weight: 500;
  font-size: 0.9rem;
}

.project-info > p {
  font-size: 0.95rem;
  color: var(--next-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-info ul {
  margin-top: 16px;
  padding-left: 20px;
}

.project-info li {
  margin-bottom: 8px;
  color: var(--next-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-article {
  margin-top: 20px;
}

.project-article a {
  display: inline-block;
  padding: 6px 14px;
  background: #28a745;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 16px;
  margin-right: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.project-article a:hover {
  background: #218838;
  transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 767px) {
  .education-layout {
    flex-direction: column;
    gap: 24px;
  }
  
  .work-layout {
    flex-direction: column;
    gap: 24px;
  }
  
  .work-time {
    float: none;
    display: block;
    margin-top: 8px;
  }
  
  .project-item {
    flex-direction: column;
    height: auto;
  }
  
  .project-img {
    width: 100%;
    height: 200px;
  }
  
  .project-time {
    margin-left: 0;
    display: block;
    margin-top: 8px;
  }
  
  .person-detail p {
    font-size: 16px;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .header-layout {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}