
/* 全局样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #004AAD, #6F00FF);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

a:hover {
    color: #FFC700;
}

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

.header {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.8), rgba(111, 0, 255, 0.8));
    padding: 20px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.gptkong.com/demo/sample1.png'), 
                url('https://images.gptkong.com/demo/sample2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center, right center;
    opacity: 0.2;
    z-index: -1;
}

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-card img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

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

.article-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    max-width: 1200px;
}

.article-container pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.article-container code {
    color: #00D8FF;
    font-family: 'Courier New', Courier, monospace;
}

.footer {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.9), rgba(111, 0, 255, 0.9));
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 15px;
    }

    .article-container {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    .article-container {
        padding: 15px;
    }
}

