
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4A00E0, #8E2DE2);
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}
header h1 {
    font-size: 1.5em;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
nav a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #32CD32;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}
nav a:hover::after {
    width: 100%;
}
main {
    margin-top: 80px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
section {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
section h2, section h3, section h4 {
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
section p {
    margin-bottom: 15px;
}
pre {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}
code {
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
}
.button {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
                -5px -5px 10px rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.2s;
}
.button:hover {
    transform: scale(1.05);
    animation: shake 0.3s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px;
}
footer {
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px;
    color: #fff;
}
.footer-note {
    font-size: 0.9em;
    color: #ccc;
}
@media (max-width: 1440px) {
    section {
        padding: 25px;
    }
}
@media (max-width: 1200px) {
    section {
        padding: 20px;
    }
}
@media (max-width: 1024px) {
    nav a {
        margin-left: 10px;
    }
}
@media (max-width: 768px) {
    header h1 {
        font-size: 1.2em;
    }
    section {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    nav a {
        margin-left: 8px;
        font-size: 0.9em;
    }
    .button {
        padding: 8px 16px;
    }
}
@media (max-width: 320px) {
    header h1 {
        font-size: 1em;
    }
    nav a {
        margin-left: 5px;
        font-size: 0.8em;
    }
    .button {
        padding: 6px 12px;
    }
}

