
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与背景 */
body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航样式 */
.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger div {
    width: 100%;
    height: 4px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
}

.menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 10px 0;
}

.menu a:hover {
    color: #ffd700;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 头部样式 */
.header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: fadeIn 2s ease-in-out forwards;
}

.header p {
    font-size: 1.2em;
    color: #ffd700;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.module h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    position: relative;
}

.module h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #ffd700;
    position: absolute;
    left: 0;
    bottom: -10px;
    border-radius: 2px;
}

.module img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.module p {
    font-size: 1em;
    margin-bottom: 10px;
}

.module ul {
    list-style: none;
    margin-left: 20px;
}

.module ul li {
    margin-bottom: 8px;
    position: relative;
}

.module ul li::before {
    content: '•';
    color: #ffd700;
    position: absolute;
    left: -15px;
}

/* 示例数据展示 */
.example-data {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin-top: 40px;
}

.example-data h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ff69b4;
}

.example-data pre {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.example-data code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        width: 25px;
        height: 18px;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .module {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 2em;
    }

    .module h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 320px) {
    .module h2 {
        font-size: 1.2em;
    }

    .header p {
        font-size: 1em;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

button {
    background: #ff69b4;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.1);
}

.code-block {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-block code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

