/* 像素风格简历样式 - 黑白简约主题 */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #666666;
  --text-color: #000000;
  --light-text: #555555;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --border-color: #000000;
  --pixel-shadow: 4px 4px 0px #cccccc;
  --pixel-border: 2px solid #000000;
  --transition: none;
  --glow: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  padding: 2rem 0;
  min-height: 100vh;
  position: relative;
}

/* 像素网格背景效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 0 1.5rem;
  position: relative;
}

/* 像素风格侧边栏 */
.side {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.me, .profile, .contact, .skill {
  background: var(--card-bg);
  border: var(--pixel-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--pixel-shadow);
  position: relative;
  backdrop-filter: blur(10px);
}

/* 像素风格发光边框效果 */
.me::before, .profile::before, .contact::before, .skill::before, .info-unit::before {
  display: none;
}

.me:hover, .profile:hover, .contact:hover, .skill:hover, .info-unit:hover {
  transform: none;
  box-shadow: var(--pixel-shadow);
}

@keyframes pixelGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1.1); }
}

.portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border: 3px solid var(--border-color);
  box-shadow: var(--pixel-shadow);
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.name {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}

.info-job {
  font-size: 1rem;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

/* 社交媒体链接 - 像素按钮风格 */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  box-shadow: 2px 2px 0px #cccccc;
  text-decoration: none;
}

.social-links a:hover {
  background: #eeeeee;
  box-shadow: 2px 2px 0px #aaaaaa;
  transform: translate(-1px, -1px);
}

.info-unit {
  background: var(--card-bg);
  border: var(--pixel-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--pixel-shadow);
  position: relative;
  backdrop-filter: blur(10px);
}

.info-unit h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
}

.info-unit h2 i {
  margin-right: 0.75rem;
  color: var(--secondary-color);
}

.info-unit hr {
  height: 2px;
  background: var(--border-color);
  border: none;
  margin-bottom: 1rem;
}

.profile ul, .contact ul {
  list-style: none;
}

.profile li, .contact li {
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-family: 'Courier New', monospace;
}

.profile label, .contact label {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact a {
  color: var(--text-color);
  text-decoration: none;
}

.contact a:hover {
  color: var(--secondary-color);
}

/* 主内容区样式 */
.main .info-unit h2 {
  font-size: 1.5rem;
}

.main .info-unit h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.main .info-unit h3 time {
  font-size: 0.9rem;
  color: var(--light-text);
  font-weight: normal;
  background: #eeeeee;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-color);
}

.info-content {
  padding-left: 1rem;
  list-style: none;
}

.info-content li {
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--text-color);
  font-family: 'Courier New', monospace;
}

.info-content li:before {
  content: "▶";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.info-content strong {
  color: var(--primary-color);
  font-weight: bold;
}

.project .info-content ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.project .info-content i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* 像素风格技能标签 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
}

.skill-tags li {
  margin-bottom: 0;
}

.skill-tags li:before {
  content: none;
}

.tag {
  background: var(--card-bg);
  color: var(--primary-color);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: bold;
  display: inline-block;
  font-family: 'Courier New', monospace;
  box-shadow: 1px 1px 0px #cccccc;
}

.tag:hover {
  background: #eeeeee;
  box-shadow: 2px 2px 0px #aaaaaa;
  transform: translate(-1px, -1px);
}

/* 像素风格技能详情 */
.skill-details {
  margin-top: 1.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f8f8;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-color);
}

.skill-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

.skill-item h4 i {
  margin-right: 0.5rem;
}

.skill-item p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* 项目技术标签 - 像素风格 */
.project-tech {
  margin-bottom: 0.75rem !important;
}

.project-tech:before {
  content: none !important;
}

.tech-tag {
  background: #f0f0f0;
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 0.5rem;
  font-family: 'Courier New', monospace;
}

/* 技能等级标签 */
.skill-level {
  float: right;
  font-size: 0.8rem;
  color: white;
  background: var(--primary-color);
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border-color);
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

/* 像素风格进度条 */
progress {
  width: 100%;
  height: 12px;
  border: 2px solid var(--border-color);
  background: #f8f8f8;
  margin-top: 0.25rem;
}

progress::-webkit-progress-bar {
  background: #f8f8f8;
}

progress::-webkit-progress-value {
  background: var(--primary-color);
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--light-text);
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 2px solid var(--border-color);
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

/* 个人简介样式 */
.summary p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
  font-family: 'Courier New', monospace;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  .side {
    position: static;
  }
  
  body::before {
    background-size: 15px 15px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .main .info-unit h3 {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main .info-unit h3 time {
    margin-top: 0.25rem;
  }
  
  .skill-tags {
    gap: 0.35rem;
  }
  
  .tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  body::before {
    background-size: 10px 10px;
  }
}

/* 打印样式优化 */
@media print {
  body {
    background: white;
    padding: 0;
  }
  
  body::before {
    display: none;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .me:hover, .profile:hover, .contact:hover, .info-unit:hover {
    transform: none;
    box-shadow: none;
  }
  
  .me, .profile, .contact, .info-unit {
    box-shadow: none;
    border: 1px solid #000;
    background: white;
    color: black;
  }
  
  footer {
    display: none;
  }
}