
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000046, #6c0a9e);
    font-family: 'Roboto Mono', monospace;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    position: relative;
}
header h1 {
    margin: 0;
    font-size: 2em;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: width 0.3s;
}
nav:hover {
    width: 200px;
}
nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 20px 0;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    transition: background 0.3s;
}
nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}
nav a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.main-content {
    margin-left: 60px;
    padding: 20px;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.section-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ff77ff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}
.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}
.article h2, .article h3 {
    color: #ffffff;
}
.article p {
    line-height: 1.6;
    margin-bottom: 15px;
}
.article pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    color: #ffcc00;
}
.sample-data {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}
.sample-data ul {
    list-style: none;
    padding: 0;
}
.sample-data li {
    margin-bottom: 15px;
}
.sample-data img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
}
.footer {
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
}
@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    nav {
        width: 50px;
    }
    nav a img {
        width: 20px;
        height: 20px;
    }
    .main-content {
        margin-left: 50px;
        padding: 10px;
    }
}
@media (min-width: 321px) and (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    nav {
        width: 60px;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    .section-title {
        font-size: 1.7em;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        width: 70px;
    }
    .section-title {
        font-size: 1.8em;
    }
}
@media (min-width: 1025px) and (max-width: 1200px) {
    nav {
        width: 80px;
    }
    .section-title {
        font-size: 2em;
    }
}
@media (min-width: 1201px) and (max-width: 1440px) {
    nav {
        width: 90px;
    }
    .section-title {
        font-size: 2.2em;
    }
}
@media (min-width: 1441px) {
    nav {
        width: 100px;
    }
    .section-title {
        font-size: 2.5em;
    }
}
button {
    background: radial-gradient(circle at center, #dcdcdc, #8f8f8f);
    border: 2px solid #555;
    padding: 10px 20px;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0px 2px 4px rgba(255, 255, 255, 0.5), 
                0px 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
button:hover {
    transform: scale(1.05);
}
img.decorative {
    opacity: 0.8;
    margin: 10px 0;
}
a {
    color: #ff77ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

