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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: bold;
    color: #00BFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1rem;
    color: #BEBEBE;
}

a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00BFFF;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
button {
    background-color: #00BFFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #39FF14;
}

/* 代码块样式 */
pre {
    background: #0A1F44;
    color: #00BFFF;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

code {
    color: #39FF14;
}

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

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

th {
    background-color: #00BFFF;
    color: #0A1F44;
}

td {
    color: #BEBEBE;
}

/* 背景网格效果 */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 20px
    ), repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 20px
    );
    z-index: -1;
    animation: grid-flow 10s infinite linear;
}

@keyframes grid-flow {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-10%, -10%);
    }
}

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

    h1, h2, h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

