
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

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

a:hover {
    color: #FFA500;
}

/* 全局容器布局 */
.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.header {
    position: relative;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 2rem;
    width: 100%;
}

.header h1 {
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* 图片网格样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1rem;
    color: #F5F5F5;
}

/* 文章展示样式 */
.article-container {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.article-container h2 {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.article-container pre {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-container th, .article-container td {
    border: 1px solid #ffffff;
    padding: 0.5rem;
    text-align: left;
}

.article-container th {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1rem;
    }

    .article-container pre {
        font-size: 0.9rem;
    }
}

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

    .article-container h2 {
        font-size: 1.5rem;
    }

    .article-container pre {
        font-size: 0.8rem;
    }
}

