
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #f5f5f5;
    background: linear-gradient(to bottom, #1a1a1a, #0f0c29);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: bold;
    color: #d4e0ff;
}

p {
    font-size: 16px;
    color: #ccc;
}

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

a:hover {
    color: #a8b3ff;
}

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

/* 标题区设计 */
.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: #fff;
}

/* 示例展示区域 */
.article-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.article-section pre {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    color: #d4e0ff;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #a8b3ff;
}

/* 模块化卡片布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(to bottom, #2c3e50, #34495e);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

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

.card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.card p {
    font-size: 1rem;
    color: #d4e0ff;
}

/* 动态元素 */
.line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #6b72e8, #a8b3ff);
    margin: 20px 0;
    transition: transform 0.3s ease-in-out;
}

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

.shape {
    width: 100px;
    height: 100px;
    background-color: rgba(135, 206, 250, 0.5);
    border-radius: 50%;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

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

@media (min-width: 1200px) {
    .container {
        padding: 40px;
    }
}

