
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a237e, #8e24aa, #00e676);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
}

@keyframes gradientAnimation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ffffff;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ff4081;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff4081;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

/* 主内容区 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

/* 文章区 */
article {
    flex: 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

article h2 {
    color: #ff4081;
    font-size: 2em;
    margin-bottom: 15px;
}

article h3 {
    color: #00e676;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

article p {
    font-size: 1em;
    margin-bottom: 15px;
}

article pre {
    background: #000000;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 示例数据展示 */
aside {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

aside h2 {
    color: #ff4081;
    font-size: 1.8em;
    margin-bottom: 15px;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside li {
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.3s;
}

aside li:hover {
    transform: scale(1.05);
}

aside li::before {
    content: '•';
    color: #00e676;
    margin-right: 10px;
}

/* 图片展示 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    border-top: 2px solid #ffffff;
    position: relative;
}

footer p {
    margin: 0;
    font-size: 1em;
    color: #ffffff;
}

footer::after {
    content: '这是一个网页样式设计参考';
    position: absolute;
    top: -20px;
    right: 20px;
    background: #ff4081;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    .gallery img {
        width: 80px;
        height: 80px;
    }
}

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

    nav a {
        font-size: 0.9em;
    }

    article, aside {
        padding: 15px;
    }

    .gallery img {
        width: 70px;
        height: 70px;
    }
}

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

    nav a {
        font-size: 0.8em;
    }

    article h2, aside h2 {
        font-size: 1.5em;
    }
}

