
/* 基础样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #2c004f, #1e009c);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #ff7edb;
    text-shadow: 0 2px 5px rgba(0, 255, 150, 0.3);
}

p, li {
    color: #d4d4d4;
}

a {
    color: #00ff99;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff7edb;
}

/* 网格布局与卡片设计 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: linear-gradient(to bottom, #1e009c, #5e00ff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 255, 150, 0.3);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card-title {
    font-size: 1.2em;
    margin: 10px 0;
    color: #ff7edb;
}

.card-description {
    font-size: 0.9em;
    color: #d4d4d4;
    margin-bottom: 10px;
}

.card-buttons a {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background: #00ff99;
    color: #121212;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.card-buttons a:hover {
    background: #ff7edb;
}

/* 示例文章展示样式 */
.article-section {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.article-section pre {
    background: #1e009c;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.article-section code {
    color: #00ff99;
}

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

.article-section th, .article-section td {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
}

.article-section th {
    background: #5e00ff;
    color: #ffffff;
}

/* 动画效果 */
@keyframes particles {
    0% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(50px, -50px); opacity: 0; }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    animation: particles 5s infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 10px;
    }

    .article-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    p, li {
        font-size: 0.9em;
    }
}

