
/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e005c, #7b00a8, #ff00e6);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #dcdcdc;
    line-height: 1.6;
    padding: 20px;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
}
header h1 {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
header p {
    font-size: 1.2rem;
    color: #ffffff;
}
/* 主体内容样式 */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}
.card h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}
.card p {
    font-size: 1rem;
    color: #dcdcdc;
}
/* 示例数据展示样式 */
.example-section {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}
.example-section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}
.example-section article {
    margin-bottom: 20px;
}
.example-section h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}
.example-section p {
    font-size: 1rem;
    color: #dcdcdc;
    margin-bottom: 15px;
}
.example-section pre {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}
.example-section code {
    color: #00ffea;
    font-family: 'Courier New', Courier, monospace;
}
.example-data {
    list-style-type: disc;
    margin-left: 20px;
    color: #dcdcdc;
}
.example-data li {
    margin-bottom: 10px;
}
.example-data li::marker {
    color: #ff00e6;
}
/* 信息栏样式 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
    font-size: 1rem;
}
.footer-note {
    font-style: italic;
}
/* 动画效果 */
.fade-in {
    opacity: 0;
    animation: fadeInEffect 2s ease-in-out forwards;
}
@keyframes fadeInEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* 响应式设计 */
@media (max-width: 320px) {
    header h1 {
        font-size: 2rem;
    }
    .card h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }
    .card h2 {
        font-size: 1.8rem;
    }
}
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    header {
        padding: 30px 0;
    }
}
@media (max-width: 1200px) {
    main {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
@media (min-width: 1440px) {
    body {
        padding: 40px;
    }
    header h1 {
        font-size: 4rem;
    }
    .card h2 {
        font-size: 2.5rem;
    }
}

