
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* 全局布局 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 标题和提示 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: #007BFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 1rem;
    color: #666;
}

/* 主内容区 */
.main-content {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content h2 {
    color: #444;
    font-size: 2rem;
    margin-bottom: 20px;
}

.main-content p {
    color: #555;
    margin-bottom: 15px;
}

/* 数据展示模块 */
.data-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
}

.data-card {
    background: rgba(240, 240, 240, 0.8);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: calc(50% - 10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.data-card h4 {
    color: #007BFF;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.data-card p {
    color: #666;
    font-size: 0.9rem;
}

/* 图片区域 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 示例文章样式 */
.example-article {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.example-article h2 {
    color: #007BFF;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.example-article h3 {
    color: #444;
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.example-article pre {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #333;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0056b3;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .main-content {
        grid-column: span 1;
    }

    .data-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 20px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .data-section {
        flex-direction: column;
    }
}

