
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4B0082, #0074D9);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}
a {
    color: #FFD700;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.section {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.gradient-background {
    background: linear-gradient(135deg, #4B0082, #0074D9);
    transition: background 0.5s ease;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #000;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #FFD700;
    font-size: 14px;
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .card {
        margin-bottom: 10px;
    }
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.image-decor {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.image-decor:hover {
    transform: scale(1.05);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    position: relative;
}
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.5), rgba(0, 116, 217, 0.5));
}

