
/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4B0082, #0000FF);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-weight: bold;
    text-align: center;
}
p, li, td {
    font-size: 1rem;
    line-height: 1.8;
}
a {
    color: #00FFA2;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #FFC107;
}
ul, ol {
    padding-left: 1.5rem;
}
table {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background-color: rgba(0, 0, 0, 0.2);
}
code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    color: #00FFA2;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-wrap: break-word;
    word-break: break-all;
}
pre code {
    font-size: 0.9rem;
}

/* 页面布局与模块设计 */
.container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.section:hover {
    transform: translateY(-5px);
}
.section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.section p {
    margin-bottom: 1rem;
}

/* 导航栏与页脚 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00FFA2;
}
.navbar .menu {
    display: flex;
    gap: 1.5rem;
}
.navbar .menu a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
.navbar .menu a:hover {
    background: rgba(0, 0, 0, 0.2);
}
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}
.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .navbar .menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    table {
        font-size: 0.9rem;
    }
}
@media (max-width: 400px) {
    body {
        font-size: 0.9rem;
    }
    h1, h2, h3, h4 {
        font-size: 1.5rem;
    }
    .section {
        padding: 1.5rem;
    }
    pre code {
        font-size: 0.8rem;
    }
}

/* 交互效果 */
button {
    background: #00FFA2;
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
button:hover {
    transform: scale(1.1);
    background: #FFC107;
    color: #fff;
}

