*{
    padding:0;
    margin:0;

}
body{
    background-color: rgb(148, 216, 231);
}
h1, h4, p, blockquote {
    color: aliceblue;
}

/*border: 5px darkgray dashed;*/
header {
    background-color: rgba(26, 209, 255, 0.764);
    padding: 20px;
    text-align: center;
    background-image: url(../images/微信图片_20251120211255_242_39-modified.png);
    background-position: 65% 50%;
    background-size:contain;
    background-repeat: no-repeat;
    position: relative;
}
/* 添加半透明遮罩调整整体透明度 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(36, 95, 121, 0.636); /* 调整遮罩透明度 */
    z-index: 1;
}

/* 确保文字在遮罩上方 */
header h1,
header blockquote {
    position: relative;
    z-index: 2;
}

header h1 {
    color: #fbf416;
    font-size: 2rem;
    margin-bottom: 10px;
}
header blockquote {
    color: #1a1913fb;
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}
nav {
    background-color: rgba(108, 110, 111, 0.668);

    padding: 10px;
    border-radius: 4px;
}

nav li{
    color: rgba(5, 6, 90, 0);
    flex: 1;
    text-align: center;
}

nav a {
    color: rgba(255, 255, 255, 0.757);
    text-decoration: none;
    padding: 12px 0;
    display: block;
    transition: background-color 0.3s;
    border-radius: 5px;
    font-size: 17px;
}

nav ul li a:hover {
    text-decoration:underline;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;

}


main {
    padding: 20px;
    padding-bottom: 80px;
    margin-bottom: 10px;
    background-image: url(../images/1914256.png);
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.welcome {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.8;
    justify-content: center;
    
}
 
.welcome h4 {
    margin-bottom: 15px;
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.8),
                 0 0 18px rgba(255, 255, 255, 0.6),
                 0 0 27px rgba(255, 255, 255, 0.4);
}

.welcome p {
    max-width: 1000px;
    line-height: 1.8;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #e6df5f79;
    border-radius: 8px;
    /* 添加居中样式 */
    margin: 0 auto; /* 水平居中 */
    text-align: center; /* 文字内容居中 */
}

/* 作品集板块样式 */
.portfolio-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.58);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    color: #101010;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 350;
    border-bottom: 1px solid #0c0c0c1f;
    padding-bottom: 5px;
}

/* 画廊布局 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

.music-player {
    position: fixed; /* 添加这行 */
    bottom: 20px;   /* 添加这行 */
    right: 20px;    /* 添加这行 */
    z-index: 1000;  /* 添加这行 */
}
.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
}

.music-toggle {
    background: transparent;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 0;
    font-family: inherit;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.music-name {
    color: white;
    font-size: 12px;
    font-style: italic;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    font-family: inherit;
}
