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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6A5ACD, #FFA500);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(45deg, #6A5ACD, #FFA500);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    color: #F0E68C;
}

/* 主内容区域 */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
}

.article h2, .article h3, .article h4 {
    color: #FFD700;
    margin-bottom: 15px;
}

.article p {
    margin-bottom: 15px;
}

.article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

/* 示例数据展示 */
.example-data {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
}

.example-data h3 {
    color: #FF6347;
    margin-bottom: 15px;
}

.example-data ul {
    list-style: none;
}

.example-data li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.example-data li:before {
    content: "•";
    color: #FFA500;
    position: absolute;
    left: 0;
}

/*图片样式*/
.images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.images img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.images img:hover {
    transform: scale(1.05);
}

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

.button:hover {
    transform: scale(1.1);
    background: #FF8C00;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #FFD700;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 215, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 20px;
    }

    .article, .example-data {
        padding: 15px;
    }

    .images {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }

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

@media (max-width: 320px) {
    .header h1 {
        font-size: 1.5em;
    }

    .button {
        padding: 8px 16px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.article, .example-data {
    animation: fadeIn 1s ease-in-out;
}

