
/* 基础样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #2c3e50;
}
p {
    font-weight: normal;
    margin-bottom: 1.2em;
}
a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s ease;
}
a:hover {
    color: #2980b9;
}

/* 布局容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    grid-column: span 2;
    text-align: center;
    margin-top: 40px;
}
.header h1 {
    font-size: 2.5rem;
    color: #2980b9;
    margin-bottom: 10px;
}
.header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* 图片展示区 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.05);
}

/* 文章展示区域 */
.article-container {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}
.article-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}
.article-container pre {
    background: #f4f6f7;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    color: #333;
    margin-bottom: 20px;
}
.article-container code {
    font-size: 0.9rem;
    color: #e74c3c;
}
.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.article-container th, .article-container td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.article-container th {
    background-color: #ecf0f1;
    color: #333;
}

/* 动画与交互效果 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #2980b9;
}
.line-art {
    width: 100px;
    height: 100px;
    border-top: 2px solid #3498db;
    border-right: 2px solid #3498db;
    transform: rotate(45deg);
    margin: 20px auto;
    transition: transform 0.3s ease;
}
.line-art:hover {
    transform: rotate(45deg) scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
    .article-container {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .image-grid img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }
}

/* 提示信息 */
.notice {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

