
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0A192F, #1E2D4D);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'CustomHandwriting', cursive;
    color: #8A2BE2;
}

p, li {
    font-size: 1rem;
    color: #E0E0E0;
}

a {
    color: #64FFDA;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 页面头部 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #64FFDA;
}

header nav a {
    margin-left: 15px;
    color: #64FFDA;
    rel: "nofollow";
}

/* 主体内容 */
main {
    padding-top: 80px;
    padding-bottom: 40px;
}

section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

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

.grid-item {
    background: linear-gradient(135deg, #64FFDA, #8A2BE2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #0A192F;
    transition: transform 0.3s ease;
}

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

/* 示例数据展示 */
.data-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.data-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* 代码块样式 */
pre {
    background: #0A192F;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    color: #64FFDA;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav a {
        margin: 5px 0;
    }

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

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

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

