
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #4b6cb7);
    color: #ffffff;
    line-height: 1.6;
}
h1, h2, h3 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
p { font-size: 1rem; }
a { color: #00ffcc; text-decoration: none; }
a:hover { color: #ff00ff; }

/* 页面容器与布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-10px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

/* 文章内容样式 */
.article {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}
.article h2, .article h3 {
    color: #00ffcc;
}
.article pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    color: #66d9ef;
    font-family: 'Courier New', monospace;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background: rgba(0, 0, 0, 0.3);
    color: #ff00ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    .grid-container { grid-template-columns: 1fr; }
}

