body {
    background-color: #FEECEB;
}

.background-box {
    background-color: #FD85AB;
    margin: 5px auto 10px auto; 
    height: 820px; 
    width: calc(100% - 40px); 
    border-radius: 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 10px 20px;
    color: #fd85ab;
    position: relative;
    overflow: hidden;
}

.nav-left {
    font-size: 2em;
    font-weight: bold;
    margin-left: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-right a {
    color: #fd85ab;
    text-decoration: none;
    margin-left: 15px;
    font-size: 1.5em;
    transition: all 0.3s ease; 
}

.nav-right a:hover {
    text-decoration: underline;
    font-size: 1.7em; 
    font-weight: bold; 
    color: #92C6D9; 
}

.circle {
    width: 0.1em; /* 圆圈的宽度 */
    height: 0.1em; /* 圆圈的高度 */
    background-color: #92C6D9; /* 颜色不变 */
    border-radius: 50%; /* 保持为圆形 */
    margin-right: 8px; /* 调整与“Pan Yiying”之间的间距 */
    cursor: pointer; /* 鼠标悬浮时的光标形状 */
}

.portfolio-section {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-image {
    width: 30%; 
    height: auto;
    opacity: 1; 
    position: relative;
    z-index: 1; 
    margin-left: -1000px;
    border-radius: 30px
}

.main-portfolio-text {
    position: absolute;
    font-size: 11em; 
    color: #FEECE8; 
    z-index: 2; 
    top: 4%;
    left: 55%;
    transform: translate(-50%, -50%);
}

.overlay-texts {
    position: absolute;
    z-index: 0; 
    display: flex;
    flex-direction: column;
    top: 30%;
    left: 25%;
}

.overlay-text {
    font-size: 10.5em; 
    color: #92C6D9; 
    font-weight: 700; 
    -webkit-text-stroke: 2px #92C6D9; 
    color: transparent; 
    margin: -5px;
}


.small-square {
    width: 650px; 
    height: 180px;
    background-color: #92C6D9; 
    position: absolute; 
    top: 68%; 
    left: 54%;
    
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    color: white; 
    font-size: 20px; 
    text-align: left; 
    border-radius: 5px; 
    padding-left: 10px; 
}



.square-text span {
    font-size: 30px; 
    font-family: "libertad", sans-serif;
    font-weight: 500;
    font-style: italic;
    display: block; /* 使这段文字独占一行 */
    margin-bottom: 28px; /* 两段之间的间距 */
}

.square-text {
    margin: 0; 
    font-size: 25px; 
    color: white; 
    line-height: 1.4; /* 让每一行的行间距稍小，默认是1.5 */
    font-family: "libertad", sans-serif;
    font-weight: 500;
    font-style: italic;
}

 /* 欢迎页 */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FEECEB; /* 背景颜色，可自定义 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 确保它在最前面 */
    opacity: 1; /* 初始完全可见 */
    transition: opacity 1s ease; /* 渐隐动画 */
}

#splash-screen.hidden {
    opacity: 0; /* 渐隐到透明 */
    pointer-events: none; /* 避免透明后还能被点击 */
}

#splash-screen .content {
    text-align: center;
    color: #fd85ab;
}

#splash-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#splash-screen button {
    background-color: transparent;
    color: #fd85ab;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#splash-screen button:hover {
    background-color: #92C6D9;
}

/* 栅格容器 */
.grid-container {
    position: relative;
    top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行3列 */
    gap: 40px;
    justify-items: center; /* 每个格子里的内容居中 */
    margin: 0 auto;
    width: calc(100% - 80px); /* 预留边距 */
}

/* 栅格项目 */
.grid-item {
    width: 340px; /* 固定宽度 */
    text-align: center; /* 文本居中 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 40px; /* 圆角 */
    overflow: hidden; /* 超出部分隐藏 */
    background-color: #FEECEB; /* 背景颜色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影 */
}

.grid-item img {
    width: 100%; /* 图片宽度自适应 */
    height: 300px; /* 固定高度 */
    object-fit: cover; /* 保持图片比例裁剪 */
}

.grid-item p {
    font-size: 1rem;
    color: #fd85ab;
    padding: 10px;
    margin: 0;
}

.grid-item a {
    display: block; /* 整个栅格项可点击 */
    text-decoration: none; /* 去掉文字的下划线 */
    color: inherit; /* 保持文字颜色一致 */
}

.grid-item a:hover {
    opacity: 0.5; /* 悬停时稍微调整透明度 */
}

/* 社交菜单的样式 */
.social-menu {
    position: fixed; /* 固定在页面的左上角，不随页面滚动 */
    top: 70px; /* 距离页面顶部的距离，确保不会和导航重叠 */
    left: -150px; /* 初始位置在左侧，隐藏 */
    width: 300px; 
    background-color: #92C6D9;
    border-radius: 10px;
    padding: 10px 0;
    display: flex;
    flex-direction: column; /* 使菜单项竖直排列 */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999; /* 确保在所有其他页面元素的上方 */
}

.social-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.social-menu a:hover {
    background-color: #FD85AB;
    color: #FFFFFF;
}

.nav-left:hover .social-menu {
    opacity: 1;
    visibility: visible;
    left: 0; /* 从左侧滑出 */
}

.nav-left {
    font-size: 2em;
    font-weight: bold;
    margin-left: 20px;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10; /* 确保 "Pan Yiying" 不被其他元素覆盖 */
}

.nav-name {
    cursor: pointer;
    position: relative;
    z-index: 10; /* 确保导航文字始终位于最前面 */
}

.circle {
    width: 1em; 
    height: 1em; 
    background-color: #92C6D9;
    border-radius: 50%;
    margin-right: 10px; 
    cursor: pointer;
}

.nav-left:hover .circle {
    transform: scale(1.2); /* 当鼠标悬浮时，圆圈放大一点 */
    transition: transform 0.3s ease;
}

.nav-left:hover .nav-name {
    color: #FD85AB; /* 鼠标悬浮时，"Pan Yiying" 的颜色变为粉色 */
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }