
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A1F44, #333D5A);
    color: #FFFFFF;
    line-height: 1.6;
}
header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(90deg, #8C52FF, #39FF14);
    color: #0A1F44;
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    position: relative;
}
header::after {
    content: "这是一个网页样式设计参考";
    display: block;
    font-size: 0.8rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}
h2, h3 {
    font-family: 'Roboto Slab', serif;
    color: #8C52FF;
}
p {
    font-family: 'Lato', sans-serif;
    color: #FFFFFF;
}
pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #39FF14;
    font-family: 'Courier New', monospace;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    text-align: left;
}
th {
    background: rgba(255, 255, 255, 0.1);
}
button {
    background: #8C52FF;
    color: #FFFFFF;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
button:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.5s ease-out;
}
@keyframes ripple {
    from { width: 0; height: 0; opacity: 1; }
    to { width: 100%; height: 100%; opacity: 0; }
}
@media (max-width: 768px) {
    header {
        font-size: 1.5rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
    pre {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    .card {
        padding: 1rem;
    }
}

