
/* 基础样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #1cb5e0, #000046);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}
.header::after {
    content: "这是一个网页样式设计参考";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0.7;
}
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.module:hover {
    transform: translateY(-5px);
}
.highlight {
    color: #ff7f50;
}
code, pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #fff;
}
pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
button {
    background: linear-gradient(to right, #ff7f50, #1cb5e0);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    animation: ripple 0.5s ease-out;
}
@keyframes ripple {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}
.icon {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease-in-out;
}
.icon:hover {
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header {
        font-size: 1.5rem;
    }
}

