
/* 全局样式与基础布局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #8A2BE2, #6495ED);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
h1, h2, h3 {
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    font-size: 16px;
    color: #f0f0f0;
}
a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff9900;
}
.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: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
    opacity: 0;
}
.card:hover::before {
    transform: rotate(0deg);
    opacity: 1;
}
.image-box {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
}
.code-block {
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table th, table td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    text-align: center;
}
table th {
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .image-box {
        height: 150px;
    }
    .code-block {
        font-size: 12px;
    }
}

