body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: #333;
    transition: background 0.5s ease;
}

header {
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.5s ease;
}

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

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    margin-left: 40px;
    margin-right: 40px;
}

button {
    padding: 5px 10px;
    background-color: #BA55D3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; /* 调整字体大小 */
    width: 80px; /* 设置按钮宽度 */
    height: 35px; /* 设置按钮高度 */
}

button:hover {
    background-color: #9932CC;
}

header img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid white;
    margin-right: 40px;
    margin-left: 40px;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.2em;
    color: #9932CC;
    text-align: left;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 50%;
}

nav a {
    color: #ffffff;
    margin: 0 5px;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    text-align: center;
    width: 18%;
    box-sizing: border-box;
    padding: 10px 0;
}

nav a:hover {
    color: #9400D3;
}

main {
    display: flex;
    flex: 1;
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    transition: background 0.5s ease;
}

.content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    transition: background 0.5s ease;
}

.content .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.content section {
    flex: 1;
    margin: 0 10px;
    padding: 20px;
    background: linear-gradient(45deg, #FFCC99, #FFA07A);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: background 1.0s ease;
}

h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.about h2 { color: #20B2AA; }
.experience h2 { color: #6495ED; }
.projects h2 { color: #7B68EE; }
.skills h2 { color: #EE82EE; }
.education h2 { color: #FF6347; }
.hobbies h2 { color: #D2691E; }
.blog h2 { color: #808000; }
.book-notes h2 { color: #32CD32; }
.music-festival h2 { color: #2E8B57; }
.civilization h2 { color: #000000; }

p {
    font-size: 16px;
    color: #228B22;
}

footer {
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    text-align: center;
    padding: 20px;
    transition: background 0.5s ease;
}

footer p {
    color: #ffffff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding: 5px 10px;
    background-color: #BA55D3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; /* 调整字体大小 */
    width: 80px; /* 设置按钮宽度 */
    height: 35px; /* 设置按钮高度 */
}

.dropbtn:hover {
    background-color: #9932CC;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 10px;
    background-color: #FFF0F5;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 6px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #D8BFD8;
}

.show {
    display: block;
}

