
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(to bottom, #0000FF, #800080);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-top: 0;
}
a {
    color: #00ffcc;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #ff9900;
    text-shadow: 0 0 5px #ff9900;
}
p, li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
code {
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}
pre {
    margin: 1rem 0;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 动画效果 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.icon-hover {
    transition: transform 0.3s ease-in-out;
}
.icon-hover:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 模块化布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.grid-item:hover {
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    code {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    .container {
        padding: 1rem;
    }
}

/* 特殊提示 */
.notice {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 2rem;
}

