
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #B5BFC8);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    color: #9B5DE5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00FFC6;
}

/* 主容器与布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

/* 按钮与交互效果 */
.button {
    display: inline-block;
    background-color: #9B5DE5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #00FFC6;
}

/* 文章内容排版 */
.article {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.article h2 {
    border-bottom: 2px solid #00FFC6;
    padding-bottom: 10px;
}

.article pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #00FFC6;
    font-family: 'Roboto Mono', monospace;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.article th, .article td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

.article th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 视差滚动与动画 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    margin-top: 40px;
}

/* 自适应设计 */
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.5em;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .parallax {
        height: 200px;
    }
}

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

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