
/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A84FF, #6C5CE7);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}
h2 {
    font-size: 36px;
    margin-top: 40px;
}
p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}
a {
    color: #FFD700;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 卡片布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}
.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    margin-bottom: 15px;
}
.card a {
    display: inline-block;
    background: linear-gradient(90deg, #0A84FF, #6C5CE7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s ease;
}
.card a:hover {
    background: linear-gradient(90deg, #6C5CE7, #0A84FF);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}
code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #FFD700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .card p {
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1s ease-out;
}

