
/* 全局样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #121212, #1a1a1a);
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: 'Futura', sans-serif;
    font-weight: bold;
    color: #d1c4e9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}
p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}
a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #ff00ff;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}
.card {
    background: linear-gradient(to bottom right, #6a0dad, #4b0082);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.card:hover::before {
    opacity: 1;
}
.card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}
.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.card-description {
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.card-icon {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.code-block {
    background: #212121;
    color: #bb86fc;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}
.tip {
    background: #3700b3;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    font-size: 1rem;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .card {
        padding: 15px;
    }
}

