/*==================== GOOGLE FONTS 字体====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;

    /*========== Colors 主题色彩==========*/
    /* Change favorite color */
    --hue-color: 250; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: rgba(255, 255, 255, 0.98);
    --text-color: rgba(255, 255, 255, 0.9);
    --text-color-light: rgba(255, 255, 255, 0.7);
    --input-color: rgba(255, 255, 255, 0.1);
    --body-color: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #16213e 100%);
    --container-color: rgba(20, 20, 30, 0.8);
    --scroll-bar-color: rgba(255, 255, 255, 0.2);
    --scroll-thumb-color: rgba(255, 255, 255, 0.3);

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/*==================== SMOOTH SCROLL ====================*/
html {
    scroll-behavior: smooth;
}

/*==================== LOADING ANIMATION ====================*/
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--body-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-progress {
    width: 150px;
    height: 4px;
    background: rgba(147, 88, 254, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
    border-radius: 2px;
    animation: loading 1.5s ease-in-out infinite;
}

.loader-content::before {
    content: '';
    width: 60px;
    height: 60px;
    border: 3px solid rgba(147, 88, 254, 0.2);
    border-top: 3px solid var(--first-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loading {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

body {
  transition: all 0.2s;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景星空图 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -9999;
  opacity: 1;
  filter: blur(2px);
}

/* 背景渐变叠加 - 类玻璃效果 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -9998;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/*========== Button Dark/Light ==========*/
.nav__btns {
  display: flex;
  align-items: center;

}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

.change-theme:hover {
  color: var(--first-color);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title, 
.section__subtitle {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
  padding: var(--mb-4);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAV ====================*/
.nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  max-width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(147, 88, 254, 0.1);
  padding: 0 var(--mb-4);
  transition: all 0.3s ease;
}

/* 确保导航菜单居中显示 */
.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--mb-4);
  margin: 0;
  padding: 0;
}

/* 调整菜单项样式 */
.nav__item {
  display: flex;
  align-items: center;
  position: relative;
}

/* 增强导航链接的交互效果 */
.nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--normal-font-size);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-medium);
  cursor: pointer;
  text-transform: capitalize;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 88, 254, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav__link:hover::before {
  left: 100%;
}

.nav__link:hover {
  color: var(--first-color);
  background-color: rgba(147, 88, 254, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 88, 254, 0.4);
}

.nav__link:hover .nav__icon {
  transform: scale(1.2);
  color: var(--first-color);
}

/* 活跃链接样式 */
.nav__link.active-link {
  color: var(--first-color);
  background-color: rgba(147, 88, 254, 0.25);
  box-shadow: 0 2px 8px rgba(147, 88, 254, 0.3);
}

.nav__link.active-link .nav__icon {
  color: var(--first-color);
}

/* 导航图标样式 */
.nav__icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

/* 语言切换按钮样式 */
.nav__link#translate {
  margin-left: var(--mb-2);
  padding: 0.75rem 1rem;
}

.nav__link#translate:hover {
  background-color: rgba(147, 88, 254, 0.2);
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
  .nav__list {
    gap: var(--mb-2);
  }
  
  .nav__link {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
  }
  
  .nav__icon {
    font-size: 1.1rem;
  }
}

.nav__logo, .nav__toggle{
  font-weight: var(--font-medium);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--first-color);
  transition: all 0.3s ease;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(147, 88, 254, 0.5);
}

.nav__toggle{
  color: var(--title-color);
  font-size: 1.1rem;
  cursor: pointer;
}

.nav__toggle:hover{
  color: var(--first-color);
}

/*mobile devices*/
@media screen and (max-width:767px){
  .nav{
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    max-width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .nav__logo {
    display: none;
  }
  
  .nav__btns {
    display: none;
  }
  
  .nav__toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(147, 88, 254, 0.4);
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav__toggle i {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
  }
  
  .nav__toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(147, 88, 254, 0.5);
  }
  
  .nav__toggle:hover i {
    transform: rotate(90deg);
  }
  
  .nav__toggle.active i {
    transform: rotate(90deg);
  }
  
  /* Simplified toggle button transition */
  .nav__toggle i {
    transition: transform 0.3s ease;
  }
  
  .nav__toggle.active i {
    transform: rotate(90deg);
  }
  
  .nav__menu{
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1rem 2rem;
    box-shadow: 0 -2px 15px rgba(147, 88, 254, 0.1);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav__menu.show-menu {
    bottom: 0;
  }
  
  .nav__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    justify-items: center;
    width: 100%;
    max-width: 100%;
  }
  
  .nav__link {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .nav__link:hover {
    background-color: rgba(147, 88, 254, 0.2);
    transform: translateY(-2px);
  }
  
  .nav__item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .nav__icon {
    font-size: 1.2rem;
  }
  
  .nav__menu .nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .nav__close {
    bottom: 0.5rem;
    right: 1rem;
  }
}


.nav__close{
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav__close:hover{
  color: var(--first-color-alt);
}
/* show menu */
.show-menu{
  bottom: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0,0,0, .15);
  
}

/*==================== HOME ====================*/
.home__container {
  gap: 1rem;
}

.home__content{
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}
.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.2rem;
  color: var(--first-color);
  width: 50px;
  height: auto;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--first-color-lighter);
  border-radius: 10px;
  border: 2px solid var(--first-color-lighter);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.4rem;
  text-decoration: none;
}

.home__social-icon i {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.home__social-icon img {
  width: 20px;
  height: 20px;
  margin-bottom: 0.15rem;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.home__social-icon:hover {
  color: #FFF;
  background: var(--first-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--first-color);
}

.home__social-icon:hover i {
  filter: brightness(0) invert(1);
}

/* 抖音图标在悬停时保持原色，因为图标本身是紫色的 */
.home__social-icon:hover img {
  filter: brightness(1.2);
}

.home__social-text {
  font-size: 0.65rem;
  margin-top: 0.15rem;
  font-weight: var(--font-medium);
  color: inherit;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* 头像圆形样式已在index.html的style标签中定义 */

.home__data {
  grid-column: 1/3;
}

.home__title {
  font-size: var(--big-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
}

/* .home__scroll {
  display: none;
} */

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;

}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

.home__scroll-mouse {
  font-size: 2rem;

}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);

}

.home__scroll-arrow {
  font-size: 1.25rem;

}

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);

}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__icon {
  font-size: 1.2rem;
  margin-left: var(--mb-0-5);
  transition: .3s;
}

.button--flex {
  display: inline-flex;
  align-items: center;
  transition: .3s;

}

.button--small {
  padding: .75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

.button--link:hover {
  background-color: transparent;
  color: var(--first-color-alt);
}

/*==================== ABOUT ====================*/
/* 头像已移除，不再需要此样式 */

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);

}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.about__info-name {
  font-size: var(--smaller-font-size);

}

.about__info-title, .about__info-name {
  display: block;
  text-align: center;

}

.about__buttons {
  display: flex;
  justify-content: center;
}

/*==================== SKILLS ====================*/
.skills__container {
  row-gap: 0;
}

.skills__list {
  row-gap: 1.5rem;
  padding: 0;
}

.skills__data {
  transition: transform 0.3s ease;
}

.skills__data:hover {
  transform: translateX(5px);
}

.skills__titles {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-0-5);
  width: 100%;
}

.skills__titles-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.skills__name {
  flex: 1;
  margin: 0;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.skills__icon-container{
  display: flex;
  align-items: center;
  margin-right: var(--mb-1);
  flex-shrink: 0;
}

.skills__icon{
  font-size: 1.25rem;
  color: var(--first-color);
  margin-right: var(--mb-1);
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills__data:hover .skills__icon{
  transform: scale(1.1);
  color: var(--first-color-alt);
}

/* 响应式调整 */
@media screen and (max-width: 767px){
  .skills__icon{
    font-size: 1rem;
    margin-right: var(--mb-0-5);
  }
  
  .skills__name{
    font-size: var(--normal-font-size);
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px){
  .skills__icon{
    font-size: 1.125rem;
  }
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.skills__number {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
}

.skills__bar {
  height: 8px;
  border-radius: 10px;
  background-color: var(--first-color-lighter);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skills__percentage {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skills__percentage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skills__percentage.animate {
  animation: progressFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 技能百分比宽度 */
.skills__ai {
  width: 75%;
}

.skills__python {
  width: 65%;
}

.skills__web {
  width: 50%;
}

.skills__deploy {
  width: 70%;
}

.skills__video {
  width: 70%;
}

.skills__erp {
  width: 60%;
}

.skills__ops {
  width: 100%;
}

/*==================== QUALIFICATION ====================*/
.qualification__tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2)
}

.qualification__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer
}

.qualification__button:hover {
  color: var(--first-color);
}

.qualification__icon {
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.qualification__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.qualification__calendar {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  /* margin-bottom: var(--mb-1) */

}

.qualification__description {
  margin-top: var(--mb-0-75);
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.6;
}

.qualification__description ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.qualification__description li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px, -7px)
}

.qualification__content[data-content] {
  display: none;

}

.qualification__active[data-content] {
  display: block;
}

.qualification__button.qualification__active {
  color: var(--first-color)
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}


/*==================== PORTFOLIO ====================*/
.portfolio {
  padding-bottom: 6rem;
}

.portfolio__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.portfolio__slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.portfolio__slider-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

.portfolio__slide {
  flex: 0 0 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__slide.active {
  opacity: 1;
  transform: scale(1);
}

.portfolio__card {
  background: var(--body-color);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.portfolio__card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.portfolio__card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.portfolio__card:hover .portfolio__card-image::before {
  opacity: 1;
}

.portfolio__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__img.lazyload {
  background: linear-gradient(135deg, rgba(147, 88, 254, 0.1), rgba(79, 70, 229, 0.1));
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.portfolio__card:hover .portfolio__img {
  transform: scale(1.05);
}

.portfolio__card-content {
  padding: 2rem;
}

.portfolio__card-info {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.portfolio__card-info .portfolio__card-description {
  flex: 1;
  margin-bottom: 0;
}

.portfolio__card-info .portfolio__card-tech {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.portfolio__card-title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.portfolio__card:hover .portfolio__card-title {
  color: var(--first-color);
}

.portfolio__card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portfolio__tech-tag {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 20px;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio__tech-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.portfolio__card-description {
  color: var(--text-color-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.portfolio__card-links {
  display: flex;
  gap: 1rem;
}

.portfolio__card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio__card-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.portfolio__card-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.portfolio__card-link:hover i {
  transform: translateX(3px);
}

.portfolio__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio__nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.portfolio__nav-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.portfolio__nav-btn:active {
  transform: scale(0.95);
}

.portfolio__nav-btn i {
  transition: transform 0.3s ease;
}

.portfolio__nav-btn:hover i {
  transform: scale(1.2);
}

.portfolio__pagination {
  display: flex;
  gap: 0.75rem;
}

.portfolio__pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio__pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.portfolio__pagination-bullet.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/*==================== CONTACT ME ====================*/
.contact__container {
  row-gap: 3rem;
}

.contact__information {
  display: flex;
  margin-bottom: var(--mb-2)
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.content__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.contact__content {
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
}

.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .25rem .5rem .5rem 0;
}

/*==================== CONTACT FORM STYLES ====================*/
.contact__container {
  gap: 3rem;
}

.contact__content {
  background-color: var(--input-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
  color: var(--title-color);
}

.contact__description {
  margin-bottom: var(--mb-2-5);
  color: var(--text-color);
  line-height: 1.6;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__information {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease;
}

.contact__information:hover {
  transform: translateX(5px);
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.contact__info-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact__info-subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Form styles */
.contact__form {
  background-color: var(--input-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__form:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 留言显示区域样式 */
.contact__messages {
  background-color: var(--input-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__messages:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact__messages-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
  color: var(--title-color);
}

.contact__messages-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.contact__message-item {
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__message-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact__message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--mb-0-75);
}

.contact__message-name {
  font-size: var(--font-medium);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.contact__message-date {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.contact__message-content {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
}

/* 滚动条样式 */
.contact__messages-list::-webkit-scrollbar {
  width: 8px;
}

.contact__messages-list::-webkit-scrollbar-track {
  background: var(--input-color);
  border-radius: 4px;
}

.contact__messages-list::-webkit-scrollbar-thumb {
  background: var(--first-color);
  border-radius: 4px;
}

.contact__messages-list::-webkit-scrollbar-thumb:hover {
  background: var(--first-color-alt);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__div {
  position: relative;
  height: 4rem;
}

.form__div-textarea {
  height: 10rem;
}

.form__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(147, 88, 254, 0.3);
  border-radius: 0.75rem;
  background-color: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: all 0.3s ease;
}

.form__input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 15px rgba(147, 88, 254, 0.4);
  background-color: rgba(20, 20, 30, 0.9);
}

.form__input-textarea {
  resize: none;
}

.form__label {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  background-color: rgba(20, 20, 30, 0.9);
  backdrop-filter: blur(10px);
  color: rgba(147, 88, 254, 0.9);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  padding: 0 0.5rem;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
}

.form__input:focus + .form__label {
  color: var(--first-color);
  background-color: rgba(20, 20, 30, 0.95);
  box-shadow: 0 2px 8px rgba(147, 88, 254, 0.2);
}

.form__input:not(:placeholder-shown) + .form__label {
  top: -0.75rem;
  left: 1rem;
  background-color: rgba(20, 20, 30, 0.9);
  backdrop-filter: blur(10px);
  color: rgba(147, 88, 254, 0.8);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  padding: 0 0.5rem;
  border-radius: 0.25rem;
}

.form__input::placeholder {
  color: transparent;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact__content,
  .contact__form {
    padding: 1.5rem;
  }
  
  /* Project card adjustments */
  .portfolio__img {
    width: 100%;
    max-width: 300px;
  }
  
  .portfolio__content {
    padding: 0 1rem;
  }
  
  .portfolio__title {
    font-size: var(--normal-font-size);
  }
  
  .portfolio__description {
    font-size: var(--small-font-size);
  }
  
  /* Skills section adjustments */
  .skills__name {
    font-size: var(--small-font-size);
  }
  
  .skills__number {
    font-size: var(--small-font-size);
  }
  
  /* Home section adjustments */
  .home__content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  
  .home__social {
    justify-content: center;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .home__img {
    justify-self: center;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  /* About section adjustments */
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about__img {
    justify-self: center;
  }
  
  /* Qualification section adjustments */
  .qualification__data {
    gap: 0.5rem;
  }
  
  /* Footer section adjustments */
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
}

/* Extra small devices (350px and below) */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
    padding: var(--mb-2);
  }
  
  .nav__list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home__title {
    font-size: var(--h1-font-size);
  }
  
  .home__subtitle {
    font-size: var(--normal-font-size);
  }
  
  .section__title {
    font-size: var(--h2-font-size);
  }
  
  .section__subtitle {
    font-size: var(--normal-font-size);
  }
}

/*==================== IMAGE MODAL ====================*/
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}

/* Export Modal Styles */
.highlight {
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Export Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(147, 88, 254, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
    border: 1px solid rgba(147, 88, 254, 0.3);
    position: relative;
    z-index: 999999;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(147, 88, 254, 0.2);
}

.modal__title {
    font-size: var(--h3-font-size);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__close:hover {
    color: var(--first-color);
    transform: rotate(90deg);
}

.modal__body {
    padding: 1.5rem;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(147, 88, 254, 0.2);
}

/* Modal Tabs */
.modal__tabs {
    display: flex;
    background: rgba(147, 88, 254, 0.1);
    border-bottom: 1px solid rgba(147, 88, 254, 0.2);
}

.modal__tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal__tab:hover {
    color: var(--first-color);
    background: rgba(147, 88, 254, 0.15);
}

.modal__tab.active {
    color: var(--first-color);
    background: rgba(147, 88, 254, 0.2);
}

.modal__tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--first-color);
}

.modal__tab-content {
    display: none;
}

.modal__tab-content.active {
    display: block;
}

/* Messages Management */
.messages__management {
    height: 100%;
    min-height: 400px;
}

.messages__list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.messages__list::-webkit-scrollbar {
    width: 6px;
}

.messages__list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.messages__list::-webkit-scrollbar-thumb {
    background: rgba(147, 88, 254, 0.5);
    border-radius: 3px;
}

.messages__list::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 88, 254, 0.7);
}

/* Export Form Styles */
.export__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.export__form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export__form-label {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.8);
}

.export__format-options,
.export__template-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.export__format-btn,
.export__template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid rgba(147, 88, 254, 0.3);
    border-radius: 0.75rem;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.export__format-btn:hover,
.export__template-btn:hover {
    border-color: var(--first-color);
    background: rgba(147, 88, 254, 0.1);
    color: var(--first-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 88, 254, 0.3);
}

.export__format-btn.active,
.export__template-btn.active {
    border-color: var(--first-color);
    background: rgba(147, 88, 254, 0.15);
    color: var(--first-color);
    box-shadow: 0 4px 12px rgba(147, 88, 254, 0.25);
}

.export__format-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .modal__content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal__header,
    .modal__body,
    .modal__footer {
        padding: 1rem;
    }
    
    .export__format-options,
    .export__template-options {
        flex-direction: column;
    }
    
    .export__format-btn,
    .export__template-btn {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
    }
    
    .export__format-btn i {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    /* Editor adjustments */
    .editor__form-input,
    .editor__form-textarea {
        font-size: var(--small-font-size);
    }
    
    .editor__skill-item,
    .editor__experience-item,
    .editor__project-item {
        padding: 1rem;
    }
}

/* Editor Styles */
.editor__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.editor__form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor__form-label {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.editor__form-input,
.editor__form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--first-color-lighter);
    border-radius: 0.75rem;
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-color);
    font-size: var(--normal-font-size);
    transition: all 0.3s ease;
}

.editor__form-input:focus,
.editor__form-textarea:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(147, 88, 254, 0.1);
}

.editor__form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Skills Editor */
.editor__skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor__skill-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--first-color-lighter);
    border-radius: 0.75rem;
    background: rgba(20, 20, 30, 0.9);
    transition: all 0.3s ease;
}

.editor__skill-item:hover {
    border-color: var(--first-color);
    box-shadow: 0 4px 12px rgba(147, 88, 254, 0.1);
}

.editor__skill-item input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--first-color-lighter);
    border-radius: 0.5rem;
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-color);
}

.editor__skill-item input:focus {
    outline: none;
    border-color: var(--first-color);
}

.editor__skill-item button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--first-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.editor__skill-item button:hover {
    background: var(--first-color-alt);
}

/* Experiences Editor */
.editor__experiences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor__experience-item {
    padding: 1.25rem;
    border: 2px solid var(--first-color-lighter);
    border-radius: 0.75rem;
    background: rgba(20, 20, 30, 0.9);
    transition: all 0.3s ease;
}

.editor__experience-item:hover {
    border-color: var(--first-color);
    box-shadow: 0 4px 12px rgba(147, 88, 254, 0.1);
}

.editor__experience-item .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.editor__experience-item .form-row input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--first-color-lighter);
    border-radius: 0.5rem;
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-color);
}

.editor__experience-item .form-row input:focus {
    outline: none;
    border-color: var(--first-color);
}

.editor__experience-item textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--first-color-lighter);
    border-radius: 0.5rem;
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-color);
    resize: vertical;
    margin-bottom: 0.75rem;
}

.editor__experience-item textarea:focus {
    outline: none;
    border-color: var(--first-color);
}

.editor__experience-item .form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Projects Editor */
.editor__projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor__project-item {
    padding: 1.25rem;
    border: 2px solid var(--first-color-lighter);
    border-radius: 0.75rem;
    background: rgba(20, 20, 30, 0.9);
    transition: all 0.3s ease;
}

.editor__project-item:hover {
    border-color: var(--first-color);
    box-shadow: 0 4px 12px rgba(147, 88, 254, 0.1);
}

.editor__project-item input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--first-color-lighter);
    border-radius: 0.5rem;
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.editor__project-item input:focus {
    outline: none;
    border-color: var(--first-color);
}

.editor__project-item textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--first-color-lighter);
    border-radius: 0.5rem;
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-color);
    resize: vertical;
    margin-bottom: 0.75rem;
}

.editor__project-item textarea:focus {
    outline: none;
    border-color: var(--first-color);
}

.editor__image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.editor__image-upload label {
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.editor__image-upload input[type="file"] {
    padding: 0.5rem;
    border: 1px solid var(--text-color-light);
    border-radius: 0.5rem;
    font-size: var(--small-font-size);
    cursor: pointer;
}

.editor__image-upload input[type="file"]:hover {
    border-color: var(--first-color);
}

/* Button Styles */
.button--secondary {
    background: var(--first-color-lighter);
    color: var(--first-color);
    transition: all 0.3s ease;
}

.button--secondary:hover {
    background: var(--first-color);
    color: white;
}

.button--small {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--first-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-modal-close:hover {
    background: var(--first-color-alt);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 968px;
  margin: 0 auto;
  padding: 0 var(--mb-1-5);
}

.footer__bg {
  background-color: rgba(147, 88, 254, 0.1);
  backdrop-filter: blur(15px);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(147, 88, 254, 0.1);
}

.footer__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* 技术栈展示 */
.footer__tech {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__tech-title {
  font-size: var(--h3-font-size);
  color: #FFF;
  margin-bottom: 1.5rem;
  font-weight: var(--font-semi-bold);
}

.footer__tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.footer__tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.footer__tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer__tech-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer__tech-tag:hover::before {
  left: 100%;
}

/* 技术统计 */
.footer__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__stat-number {
  font-size: 2rem;
  font-weight: var(--font-semi-bold);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}

.footer__stat-label {
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 导航和社交 */
.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__links {
  white-space: nowrap;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--normal-font-size);
  transition: all 0.3s ease;
  position: relative;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFF;
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: var(--first-color-lighter);
}

.footer__link:hover::after {
  width: 100%;
}

.footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #FFF;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__socials a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 技术标签动画 */
@keyframes techTagFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.footer__tech-tag {
  animation: techTagFloat 3s ease-in-out infinite;
}

.footer__tech-tag:nth-child(1) { animation-delay: 0s; }
.footer__tech-tag:nth-child(2) { animation-delay: 0.2s; }
.footer__tech-tag:nth-child(3) { animation-delay: 0.4s; }

/*==================== PRINT STYLES ====================*/
@media print {
  /* 隐藏不需要打印的元素 */
  .nav, .scrollup, .home__social, .home__scroll, .about__buttons, 
  .swiper-button-prev, .swiper-button-next, .swiper-pagination, 
  .contact__form, .contact__messages, .cursor-follower, .custom-cursor {
    display: none !important;
  }
  
  /* 确保内容在打印时正常显示 */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  section {
    page-break-inside: avoid;
    margin-bottom: 2rem !important;
  }
  
  /* 确保项目内容正常显示 */
  .portfolio__content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  
  /* 确保项目图片正常显示 */
  .portfolio__img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* 确保技能条正常显示 */
  .skills__content {
    background: white !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
  }
  
  /* 确保工作经历和教育背景正常显示 */
  .timeline {
    padding-left: 2rem !important;
  }
  
  /* 确保工作经历内容在打印时显示 */
  .qualification__content[data-content] {
    display: block !important;
  }
  
  /* 确保联系信息正常显示 */
  .contact__info {
    background: white !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
  }
  
  /* 确保页脚正常显示 */
  .footer {
    background: white !important;
    color: black !important;
    padding: 2rem !important;
  }
  
  .footer__tech-tag {
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: black !important;
  }
  
  .footer__link {
    color: black !important;
  }
  
  .footer__socials a {
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: black !important;
  }
  
  .footer__copy {
    color: rgba(0, 0, 0, 0.8) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
}
.footer__tech-tag:nth-child(4) { animation-delay: 0.6s; }
.footer__tech-tag:nth-child(5) { animation-delay: 0.8s; }
.footer__tech-tag:nth-child(6) { animation-delay: 1s; }
.footer__tech-tag:nth-child(7) { animation-delay: 1.2s; }
.footer__tech-tag:nth-child(8) { animation-delay: 1.4s; }
.footer__tech-tag:nth-child(9) { animation-delay: 1.6s; }
.footer__tech-tag:nth-child(10) { animation-delay: 1.8s; }
.footer__tech-tag:nth-child(11) { animation-delay: 2s; }
.footer__tech-tag:nth-child(12) { animation-delay: 2.2s; }
.footer__tech-tag:nth-child(13) { animation-delay: 2.4s; }
.footer__tech-tag:nth-child(14) { animation-delay: 2.6s; }
.footer__tech-tag:nth-child(15) { animation-delay: 2.8s; }
.footer__tech-tag:nth-child(16) { animation-delay: 3s; }
.footer__tech-tag:nth-child(17) { animation-delay: 3.2s; }
.footer__tech-tag:nth-child(18) { animation-delay: 3.4s; }

/* 统计数字动画 */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer__stat-number {
  animation: countUp 1s ease-out;
}

@media screen and (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer__tech-tags {
    gap: 0.6rem;
  }
  
  .footer__tech-tag {
    font-size: var(--smaller-font-size);
    padding: 0.4rem 0.8rem;
  }
  
  .footer__stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .footer__stat-number {
    font-size: 1.5rem;
  }
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  /* fill:white; */
  overflow: hidden;
}




/*========== BACK TO TOP BUTTON ==========*/
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(147, 88, 254, 0.4);
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--first-color-alt), var(--first-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(147, 88, 254, 0.5);
}

.back-to-top i {
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 5.5rem;
}

/* 移动端样式 */
@media screen and (max-width: 767px) {
  .back-to-top {
    bottom: 5.5rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .back-to-top i {
    font-size: 1.5rem;
  }
  
  .back-to-top.show {
    bottom: 5.5rem;
  }
}

/* 打印时隐藏 */
@media print {
  .back-to-top {
    display: none !important;
  }
}

/*========== SCROLL PROGRESS INDICATOR ==========*/
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
    width: 0%;
    z-index: var(--z-modal);
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
    width: .60rem;
    background-color: var(--scroll-bar-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color-light);
}

/*========== CUSTOM CURSOR ==========*/
/* 隐藏默认光标 */
body {
    cursor: none;
}

/* 自定义光标样式 */
.custom-cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid var(--first-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
}

/* 光标脉冲动画 */
@keyframes cursorPulse {
    0% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 1), 0 0 30px rgba(138, 43, 226, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 1), 0 0 40px rgba(138, 43, 226, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 1), 0 0 30px rgba(138, 43, 226, 0.5);
    }
}

/* 鼠标跟随特效 */
.cursor-follower {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--first-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 1), 0 0 30px rgba(138, 43, 226, 0.8);
    animation: followerPulse 3s infinite;
}

/* 跟随者脉冲动画 */
@keyframes followerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(138, 43, 226, 1), 0 0 30px rgba(138, 43, 226, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(138, 43, 226, 1), 0 0 40px rgba(138, 43, 226, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(138, 43, 226, 1), 0 0 30px rgba(138, 43, 226, 0.8);
    }
}

/* 光标在链接上的样式 */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.portfolio__img:hover ~ .custom-cursor {
    transform: scale(1.5);
    background-color: var(--first-color);
    opacity: 0.8;
}

/* 光标在按钮上的样式 */
.button:hover ~ .custom-cursor {
    transform: scale(1.8);
    background-color: var(--first-color-alt);
    opacity: 0.9;
}

/*========== 3D PARTICLES BACKGROUND ==========*/
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/*========== PAGE LOADER ==========*/
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    z-index: -1;
    display: none;
}

#page-loader.hidden .loader-content {
    display: none;
}

#page-loader .loader-content {
    text-align: center;
    max-width: 300px;
}

#page-loader .loader-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#page-loader .loader-letter {
    font-size: 48px;
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    margin: 0 10px;
    animation: bounce 1.5s infinite ease-in-out;
}

#page-loader .loader-letter:nth-child(2) {
    animation-delay: 0.2s;
}

#page-loader .loader-letter:nth-child(3) {
    animation-delay: 0.4s;
}

#page-loader .loader-progress {
    width: 100%;
    height: 4px;
    background-color: var(--scroll-bar-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

#page-loader .loader-bar {
    width: 0%;
    height: 100%;
    background-color: var(--first-color);
    border-radius: 2px;
    animation: progress 2s ease-in-out forwards;
}

#page-loader .loader-text {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
}

/* 加载动画关键帧 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*==================== CUSTOM CURSOR STYLES ====================*/
.custom-cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid var(--first-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--first-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: all 0.3s ease;
}

/* 鼠标悬停在可交互元素上的样式 */
.custom-cursor.hover {
    transform: scale(1.5);
    background-color: var(--first-color);
    opacity: 0.8;
}

/*==================== MEDIA QUERIES =====================
/* For touch devices - disable custom cursor */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

/* For small devices */
@media screen and (max-width: 350px) {
    /* 加载动画适配 */
    .loader-letter {
        font-size: 36px;
    }
    
    .loader-text {
        font-size: var(--small-font-size);
    }
    
    /* 项目卡片效果适配 */
    .portfolio__content {
        transform: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .portfolio__img {
        transform: none !important;
        filter: none !important;
    }
  .container {
      margin-left: var(--mb-1);
      margin-right: var(--mb-1);
  }
  .nav__menu {
      padding: 2rem .25rem 4rem;
  }

  .nav__list {
      column-gap: 0;
  }
  .home__content {
      grid-template-columns: .25fr 3fr;
  }

  .home__blob {
      width: 180px;
  }

  .skills__title {
      font-size: var(--normal-font-size);
  }
  .qualification__data {
      gap: .5rem;
  }

  .services__container {
      grid-template-columns: max-content;
      justify-content: center;
  }

  .services__content {
      padding-right: 3.5rem;
  }
  .services__modal {
      padding: 0 .5rem;
  }

  .project__img {
      width: 200px;
  }

  .testimonial__header,
  .testimonial__data {
      flex-direction: column;
      align-items: center;
  }

  .testimonial__img {
      margin-right: 0;
      margin-bottom: var(--mb-0-25);
  }

  .testimonial__data,
  .testimonial__description {
      text-align: center;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .home__content {
      grid-template-columns: max-content 1fr 1fr;
  }
  .home__data {
      grid-column: initial;
  }
  .home__img {
      order: 1;
      justify-self: center;
  }

  .about__container,
  .skills_container,
  .portfolio__content,
  .project__container,
  .contact__container,
  .footer__container {
      grid-template-columns: repeat(2, 1fr);
  }

  .qualification__sections {
      display: grid;
      grid-template-columns: .6fr;
      justify-content: center;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
    /* 项目卡片布局适配 */
    .portfolio__container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 3D粒子背景适配 */
    #particles-bg {
        width: 100%;
        height: 100%;
    }
}

/* For large devices */
@media screen and (min-width: 768px) {
      .container {
          margin-left: auto;
          margin-right: auto;
      }

      .body {
          margin: 0;
      }
      .section {
          padding: 6rem 0 2rem;
      }
      .section__subtitle {
          margin-bottom: 4rem;
      }
      .header {
          top: 0;
          bottom: initial;
      }

      .header,
      .main,
      .footer__container {
          padding: 0 1rem;
      }

      .nav {
          height: calc(var(--header-height) + 1.5rem);
          column-gap: 1rem;
      }
      .nav__icon,
      .nav__close,
      .nav__toggle {
          display: none;
      }

      .nav__list {
          display: flex;
          column-gap: 2rem;
      }

      .nav__item {
        align-content: center;
        display: flex;
        flex-wrap: wrap;
      }

      #translate{
        font-size: 0;
      }

      .nav__menu {
          margin-left: auto;
      }
      .change-theme {
          margin: 0;
      }

      .home__container {
          row-gap: 5rem;
      }

      .home__content {
          padding-top: 5.5rem;
          column-gap: 2rem;
      }
      .home__blob {
          width: 270px;
      }
      .home__scroll {
          display: block;
      }
      .home__scroll-button {
          margin-left: 3rem;
      }
      .about__container {
          column-gap: 5rem; 
      }
      .about__description {
          text-align: initial;
      }
      .about__info {
          justify-content: space-between;
      }
      .about__buttons {
          justify-content: initial;
      }
      .qualification__tabs {
          justify-content: center;

      }
      .qualification__button {
          margin: 0 var(--mb-1)
      }

      .qualification__sections {
          grid-template-columns: .5fr
      }
      .services__container {
          grid-template-columns: repeat(3, 218px);
          justify-content: center;
      }
      .services__icon {
          font-size: 2rem;
      }
      .services__content {
          padding: 6rem 0 2rem 2.5rem;
      }

      .services__modal-content {
          width: 450px;
      }
      .portfolio__img {
          width: 320px;
      }
      .portfolio__content {
          align-items: center;
      }
      .project {
          text-align: initial;
      }
      .project__bg {
          background: none;
      }
      .project__container {
          background-color: var(--first-color-second);
          border-radius: 1rem;
          padding: 3rem 2.5rem 0;
          grid-template-columns: 1fr max-content;
          column-gap: 3rem;
      }
      .project__data {
          padding-top: .8rem;
      }
      .footer__container {
          grid-template-columns: repeat(3, 1fr);
      }
      .footer__bg {
          padding: 3rem 0 3.5rem; 
      }

      .footer__links {
          flex-direction: row;
          column-gap: 2rem;
      }
      .footer__socials {
          justify-self: flex-end;
      }
      .footer__copy {
          margin-top: 4.5rem;
      }

  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
      padding: 0;
  }
  .home__blob {
      width: 320px;
  }
  .home__social {
      transform: translateX(-6rem);
  }
  .services__container {
      grid-template-columns: repeat(3, 238px);
  }
  .portfolio__content {
      column-gap: 5rem;
  }
  .swiper-portfolio-icon {
      font-size: 3.5rem;
  }
  .swiper-button-prev {
      left: -3.5rem;
  }
  .swiper-button-next {
      right: -3.5rem;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
      bottom: -4.5rem
  }

  .contact__form {
      width: 460px; 
  }
  .contact__inputs {
      grid-template-columns: repeat(2, 1fr);
  }
}

/*==================== MOBILE ADAPTATION ====================*/
@media screen and (max-width: 767px) {
  .home__content {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    text-align: center;
  }
  
  .home__social {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    row-gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .home__social-icon {
    width: 40px;
    min-height: 40px;
    padding: 0.3rem 0.2rem;
  }
  
  .home__social-icon i {
    font-size: 1rem;
  }
  
  .home__social-icon img {
    width: 16px;
    height: 16px;
  }
  
  .home__social-text {
    font-size: 0.55rem;
  }
  
  .home__data {
    grid-column: 1;
  }
  
  .home__title {
    font-size: 1.75rem;
  }
  
  .home__subtitle {
    font-size: 1rem;
  }
  
  .home__description {
    font-size: var(--small-font-size);
    padding: 0 1rem;
  }
  
  /* 调整头像大小 */
  .home__img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
  }
  
  /* 项目展示移动端适配 */
  .portfolio__container {
    padding: 0 1rem;
  }
  
  .portfolio__slider {
    padding: 1rem;
  }
  
  .portfolio__card-image {
    height: 200px;
  }
  
  .portfolio__card-content {
    padding: 1.5rem;
  }
  
  .portfolio__card-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .portfolio__card-info .portfolio__card-tech {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .portfolio__card-title {
    font-size: var(--h3-font-size);
  }
  
  .portfolio__card-description {
    font-size: var(--small-font-size);
  }
  
  .portfolio__nav-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .portfolio__tech-tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 350px) {
  .home__social {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home__title {
    font-size: 1.5rem;
  }
  
  .home__subtitle {
    font-size: 0.9rem;
  }
  
  .home__description {
    padding: 0 0.5rem;
  }
}