:root {
  --primary-color: #121314;
  --accent-color: rgba(255, 225, 11, 0.82);
  --accent-light: rgba(255, 225, 11, 0.2);
  --bg-color: #ffffff;
  --text-color: #121314;
  --secondary-text: #555;
  --border-color: #eaeaea;
  --shadow-color: rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  font-size: calc(10px + 0.33vw);
  -webkit-font-smoothing: antialiased;
  padding: 5vh 10vw;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-color);
  position: relative;
}

/* 固定背景效果 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, var(--accent-light) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, var(--accent-light) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

main {
  position: relative;
}

/* 装饰元素 */
.decoration {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-light);
  z-index: -1;
}

.decoration-1 {
  width: 150px;
  height: 150px;
  top: 5%;
  right: -5%;
}

.decoration-2 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: -5%;
}

/* 网站链接 - 右上角 */
.website-link {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.8em 1.2em;
  font-size: 1em;
  font-weight: 500;
  background-color: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 0 0 0 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 100;
}

.website-link:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.website-link:after {
  display: none;
}

h1 {
  font-size: 4.5em;
  font-weight: 500;
  margin-bottom: 0.2em;
  position: relative;
  display: inline-block;
  /* 添加标题渐变效果 */
  background: linear-gradient(120deg, var(--primary-color) 60%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -0.1em;
  left: 0;
  width: 100%;
  height: 0.08em;
  background-color: var(--accent-color);
  transform-origin: left;
}

p {
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.4;
  max-width: 26em;
  margin-bottom: 0.8em;
}

a {
  text-decoration: none;
  color: var(--text-color);
  position: relative;
}

a:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 80%;
  left: -0.1em;
  right: -0.1em;
  bottom: 0;
  transition: top 200ms cubic-bezier(0, 0.8, 0.13, 1);
  background-color: var(--accent-color);
}

a:hover:after {
  top: 0%;
}

.tagline {
  font-weight: 500;
  font-size: 2.2em;
  margin-top: 0;
}

footer {
  margin-top: 3em;
  font-size: 0.9em;
  padding-top: 2em;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.footer-logo {
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.copyright {
  color: var(--secondary-text);
  font-size: 0.9em;
}

.copyright p {
  margin: 0.3em 0;
  font-size: 0.9em;
}

.made-with {
  font-size: 0.85em;
  margin-top: 0.5em;
}

.heart {
  color: #ff4d4d;
}

.resume {
  margin-top: 3em;
  border-top: 1px solid var(--border-color);
  padding-top: 2em;
}

.resume h2 {
  font-size: 2.5em;
  font-weight: 500;
  margin-bottom: 1em;
  color: var(--text-color);
}

.resume-section {
  margin-bottom: 2.5em;
  position: relative;
}

.resume h3 {
  font-size: 1.8em;
  font-weight: 500;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.resume h4 {
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: 0.3em;
  margin-top: 1em;
}

.resume .period {
  font-size: 1em;
  font-style: italic;
  color: var(--secondary-text);
  margin-top: 0;
  margin-bottom: 0.5em;
}

.resume ul {
  padding-left: 1.5em;
  margin-top: 0.5em;
}

.resume li {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 0.5em;
  font-weight: 300;
}

.education-item,
.experience-item,
.research-item {
  margin-bottom: 1.5em;
  position: relative;
  padding-left: 1em;
}

.education-item::before,
.experience-item::before,
.research-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  opacity: 0.7;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5em;
}

.skill-group {
  position: relative;
  padding-top: 1em;
}

.skill-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-color);
  opacity: 0.7;
}

.skill-group p {
  font-size: 1.1em;
}

/* 技能标签样式 - 彻底重写 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1em 0;
}

.skill-tag {
  display: block;
  background: var(--accent-light);
  color: var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* 删除不需要的样式 */
.skill-tags-wrapper {
  display: none; 
}

/* 确保技能组标题和标签之间的间距合适 */
.skill-group h4 + .skill-tags {
  margin-top: 0.8em;
}

/* 确保标签之间的间距一致 */

/* 技能图标样式 */
.skill-icons {
  margin: 1.2em 0;
  text-align: center;
}

.skill-icons-img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-icons-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 技能图标样式 - 简化版 */
.skill-group img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 1.2em 0;
}

.skill-group img:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 确保技能组标题和图标之间的间距合适 */
.skill-group h4 + .skill-icons {
  margin-top: 1.2em;
}

/* 奖项部分样式 - 完全重写 */
.awards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5em;
}

.award-item {
  display: flex;
  position: relative;
  padding-left: 1em;
}

.award-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  opacity: 0.7;
}

.award-icon {
  font-size: 2em;
  margin-right: 0.8em;
  align-self: flex-start;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif; /* Added emoji fallback fonts */
}

.award-content {
  flex: 1;
}

.award-content h4 {
  margin: 0 0 0.3em 0;
  font-size: 1.2em;
}

.award-content p {
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}

.award-date {
  display: block;
  font-size: 0.85em;
  color: var(--secondary-text);
  margin-top: 0.5em;
  font-style: italic;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.4em;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  h1 {
    font-size: 3.5em;
  }

  .tagline {
    font-size: 1.8em;
  }

  p {
    font-size: 1.4em;
  }

  .skills-container,
  .awards-container {
    grid-template-columns: 1fr;
  }

  .resume h2 {
    font-size: 2em;
  }

  .resume h3 {
    font-size: 1.5em;
  }

  .resume li {
    font-size: 1em;
  }

  .decoration-1 {
    width: 100px;
    height: 100px;
  }

  .decoration-2 {
    width: 70px;
    height: 70px;
  }

  .website-link {
    font-size: 0.9em;
    padding: 0.6em 1em;
  }

  .skill-icons-img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 3vh 5vw;
  }

  h1 {
    font-size: 2.8em;
  }

  .tagline {
    font-size: 1.5em;
  }

  .website-link {
    font-size: 0.8em;
    padding: 0.5em 0.8em;
  }
}
