
/* 全局样式与配色方案 */
:root {
    --primary-color: #1a2a6c;
    --secondary-color: #b21f1f;
    --accent-color: #00ff7f;
    --text-color: #ffffff;
    --code-bg: rgba(0, 0, 0, 0.5);
    --border-radius: 10px;
    --transition-speed: 0.3s;
}
body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent-color);
}
p {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: #ffcc00;
}
button {
    background: var(--accent-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}
button:hover {
    box-shadow: 0 0 15px rgba(0, 255, 127, 1);
}
/* 布局与模块化设计 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed);
}
.card:hover {
    transform: translateY(-5px);
}
/* 图文并茂的视觉效果 */
.image-box {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: var(--border-radius);
}
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}
.image-box:hover img {
    transform: scale(1.1);
}
/* 代码块样式 */
pre {
    background: var(--code-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
}
code {
    color: var(--accent-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid var(--accent-color);
    padding: 10px;
    text-align: center;
}
th {
    background: rgba(0, 255, 127, 0.2);
}
/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 1.8rem;
    }
    p {
        font-size: 0.9rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

