
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(135deg, #0A192F, #7209B7, #FFC8D8);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #FFD700;
}
p {
    font-size: 16px;
    margin-bottom: 1rem;
}
a {
    color: #FFD700;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 15px;
    }
}
@media (min-width: 1024px) {
    h1, h2, h3 {
        font-size: 2rem;
    }
}
.button {
    background: #FF6F61;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.button:hover::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    animation: ripple 0.6s ease-out;
}
@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(2);
    }
}

