
/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #651FFF, #7C4DFF, #9575CD);
    color: white;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none;
    color: #BBDEFB;
    transition: color 0.3s ease;
}
a:hover {
    color: #E8EAF6;
}
.container {
    max-width: 1440px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.navbar a {
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}
.navbar a:hover {
    transform: scale(1.1);
}
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #4527A0;
    transition: left 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sidebar.open {
    left: 0;
}
.sidebar a {
    color: white;
    font-size: 1rem;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}
.sidebar a:hover {
    transform: translateX(10px);
}
.main-content {
    margin-top: 20px;
}
.section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}
.section:hover {
    transform: translateY(-5px);
}
.section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.section p {
    margin-bottom: 15px;
}
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #651FFF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.theme-toggle:hover {
    background: #5E35B1;
}
.dark-mode {
    background: #212121;
    color: #FFFFFF;
}
.dark-mode .section {
    background: rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 1.5rem;
    }
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}
@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

