/* 全局样式变量 - 莫兰迪色系 */
:root {
  --primary-color: #6d878c;     /* 柔和的青灰色 */
  --secondary-color: #9a9b8c;   /* 淡橄榄绿 */
  --accent-color: #a78a7f;      /* 温暖的灰棕色 */
  --text-color: #3e4144;        /* 深灰色文字 */
  --text-light: #7c7c7d;        /* 中灰色文字 */
  --background-color: #f8f7f4;  /* 米白色背景 */
  --section-bg: #ededea;        /* 淡灰色区块背景 */
  --border-color: #d9d7d2;      /* 浅灰色边框 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
}

/* 基础样式 */
body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

/* 容器布局 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.6em;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.2em;
  color: var(--primary-color);
}

h2 {
  font-size: 1.9em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.2em;
  color: var(--text-color);
}

h3 {
  font-size: 1.5em;
  color: var(--primary-color);
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* 段落和列表样式 */
p {
  margin-bottom: 1.5em;
  line-height: 1.7;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

li {
  margin-bottom: 0.7em;
}

/* 强调元素 */
strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* 引用块 */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1em 1.5em;
  margin: 2em 0;
  background-color: var(--section-bg);
  color: var(--text-color);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* 卡片样式 */
.card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.8em;
  margin-bottom: 2em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
  margin-top: 0;
  font-size: 1.4em;
}

/* 卡片图片样式 */
.card-image {
  margin-bottom: 1.2em;
  border-radius: 6px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* 技能标签 */
.skill-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.4em 1em;
  border-radius: 30px;
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-right: 0.7em;
  margin-bottom: 0.7em;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  transform: scale(1.05);
}

.skill-tag.product {
  background-color: var(--secondary-color);
}

.skill-tag.soft {
  background-color: var(--accent-color);
}

/* 页眉和页脚 */
.site-header {
  background-color: var(--background-color);
  padding: 1.2em 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2em;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav .nav-links {
  display: flex;
  gap: 2em;
}

.site-nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a.active {
  color: var(--primary-color);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.site-nav a.active::after,
.site-nav a:hover::after {
  width: 100%;
}

.site-footer {
  margin-top: 4em;
  padding: 2.5em 0;
  background-color: var(--section-bg);
  border-top: 1px solid var(--border-color);
}

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

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

.footer-links a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

/* 主内容区 */
.site-content {
  min-height: 75vh;
  padding: 1em 0 3em;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.7em 1.4em;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--primary-color);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: white;
}

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

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

/* 两栏布局 */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
  margin-bottom: 3.5em;
}

.two-column + .two-column {
  margin-top: 1.5em;
}

.two-column > div {
  flex: 1;
  min-width: 300px;
}

/* 首页特色内容 */
.feature-section {
  background-color: var(--section-bg);
  padding: 2.5em;
  border-radius: 8px;
  margin: 3.5em 0;
  box-shadow: var(--shadow-sm);
}

/* 头部横幅 - 莫兰迪色系渐变 */
.banner {
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4.5em 2.5em;
  text-align: center;
  margin-bottom: 3em;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.1) 0%, transparent 20%);
  opacity: 0.7;
}

.banner h1 {
  border-bottom: none;
  margin-bottom: 0.7em;
  color: white;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner p {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  opacity: 0.9;
  font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .site-nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: var(--shadow-md);
    padding: 1em 0;
    text-align: center;
  }
  
  .site-nav .nav-links.active {
    display: flex;
  }
  
  .banner {
    padding: 3em 1.5em;
  }
  
  .banner h1 {
    font-size: 2em;
  }
  
  .banner p {
    font-size: 1.1em;
  }
  
  .two-column {
    gap: 1.5em;
  }
  
  .feature-section, .card {
    padding: 1.5em;
  }
}

/* 个人资料部分 */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3em 2em;
  margin-bottom: 3em;
  background-color: var(--section-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.profile-image {
  width: 240px;
  height: auto;
  overflow: hidden;
  margin-bottom: 2em;
  border: none;
  box-shadow: none;
}

.profile-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.profile-content {
  max-width: 800px;
}

.profile-content h1 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--primary-color);
  border-bottom: none;
  font-size: 2.2em;
}

.profile-content p {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .profile-section {
    flex-direction: row;
    text-align: left;
    padding: 4em;
    align-items: flex-start;
  }
  
  .profile-image {
    margin-right: 3em;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* 教育背景样式 */
.education-section {
  padding: 2em;
}

.education-item {
  display: flex;
  align-items: flex-end;
  margin-bottom: 2em;
  position: relative;
  padding-left: 1.5em;
}

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

.education-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.education-logo {
  width: 90px;
  height: 90px;
  margin-right: 1.5em;
  margin-bottom: 0.5em;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: white;
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-content {
  flex: 1;
}

.education-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* 项目卡片链接样式 */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 300px;
}

.project-card .card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-card .card:after {
  content: "";
  position: absolute;
  bottom: 1.5em;
  right: 1.8em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d878c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17l9.2-9.2M17 17V8h-9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.project-card:hover .card:after {
  transform: translate(3px, -3px);
  opacity: 1;
}

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

/* 区域间距 */
.section-spacer {
  height: 2em;
} 