
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #1e0066, #00aaff, #87ff9a);
    background-size: 400% 400%;
    animation: gradient-flow 10s ease infinite;
    color: #fff;
    line-height: 1.6;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2, h3 {
    font-weight: bold;
    margin: 0;
}

p {
    font-size: 16px;
    margin: 0;
}

a {
    color: #87ff9a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00aaff;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.header-title {
    font-size: 24px;
}

.header-tagline {
    font-size: 14px;
    opacity: 0.8;
}

/* 主体样式 */
.main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-content {
    font-size: 14px;
}

/* 图片样式 */
.image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.image-container img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.1);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
button {
    background-color: #00aaff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #87ff9a;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }

    pre code {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

