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

/* 全局字体与背景 */
body {
    font-family: 'Roboto', 'Montserrat', 'Helvetica Neue', sans-serif;
    background: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 渐变背景 */
.gradient-background {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #2575fc;
}

/* 主内容区域 */
.main {
    padding: 100px 40px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 模块化布局 */
.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #6a11cb;
}

.section p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #cccccc;
}

.section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 渐变按钮 */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

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

table th, table td {
    padding: 12px 15px;
    border: 1px solid #2a2a2a;
    text-align: left;
}

table th {
    background-color: #2a2a2a;
    color: #ffffff;
}

table tr:nth-child(even) {
    background-color: #1e1e1e;
}

/* 底部样式 */
.footer {
    background-color: #1e1e1e;
    padding: 40px;
    text-align: center;
    color: #cccccc;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: #2575fc;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 15px 30px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .main {
        padding: 80px 30px 30px 30px;
    }

    .navbar ul {
        gap: 15px;
    }

    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .main {
        padding: 80px 20px 20px 20px;
    }
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 40px;
    }

    .section h2 {
        font-size: 24px;
    }

    .section p {
        font-size: 14px;
    }

    .navbar {
        padding: 10px 20px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        display: none;
    }

    .main {
        padding: 60px 15px 15px 15px;
    }

    .section h2 {
        font-size: 20px;
    }

    .section p {
        font-size: 12px;
    }

    .button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .section h2 {
        font-size: 18px;
    }

    .section p {
        font-size: 10px;
    }

    .button {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    animation: fadeIn 1s ease-in-out;
}

/* 提示信息样式 */
.reference-note {
    background: #1e1e1e;
    padding: 20px;
    border-left: 4px solid #6a11cb;
    margin-bottom: 40px;
}

.reference-note p {
    color: #cccccc;
    font-size: 16px;
}

/* 图片布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


