
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #0F2027, #9400D3);
    color: #B2BEB5;
    overflow-x: hidden;
}

/* 通用容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #39FF14;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    text-shadow: 0 0 10px #39FF14;
}

h2 {
    font-size: 2.5rem;
    margin-top: 40px;
    text-shadow: 0 0 5px #FF4500;
}

h3 {
    font-size: 2rem;
    margin-top: 30px;
}

/* 段落样式 */
p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 渐变背景模块 */
.section {
    width: 100%;
    min-height: 100vh;
    padding: 50px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #0F2027, #1B2838);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #9400D3, #1B2838);
}

/* 模块标题 */
.section-title {
    font-size: 2.5rem;
    color: #FF4500;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #FF4500;
}

/* 模块描述 */
.section-description {
    font-size: 1.2rem;
    color: #B2BEB5;
    max-width: 800px;
    text-align: center;
    margin-bottom: 30px;
}

/* 图标样式 */
.module-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.module-icon:hover {
    transform: scale(1.1);
}

/* 动效说明 */
.animation-effect {
    font-style: italic;
    color: #39FF14;
}

/* 按钮样式 */
.btn {
    padding: 15px 30px;
    background: #39FF14;
    color: #0F2027;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.btn:hover {
    background: #FF4500;
    color: #FFFFFF;
}

/* 代码块样式 */
pre {
    background: #0F2027;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    max-width: 100%;
}

code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #39FF14;
    padding: 10px;
    text-align: left;
}

th {
    background: #39FF14;
    color: #0F2027;
}

tr:nth-child(even) {
    background: #1B2838;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 40px 0;
    }
    h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-description {
        font-size: 0.9rem;
    }
    pre {
        padding: 15px;
    }
}

