
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00008B, #4B0082);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #FFA500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题与导航 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: #ccc;
}

/* 卡片布局 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px;
    width: 90%;
    max-width: 400px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.button:hover {
    background: #FFA500;
    transform: scale(1.1);
}

/* 文章样式 */
.article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.article h2 {
    color: #FFD700;
    margin-bottom: 15px;
}

.article p {
    color: #ddd;
    margin-bottom: 15px;
}

.article pre {
    background: rgba(0, 0, 0, 0.5);
    color: #00FF00;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article th, .article td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    color: #fff;
}

.article th {
    background: rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .card, .article {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .button {
        padding: 8px 16px;
    }
}

