
/* 页面全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e1e3f, #3a2f6b);
    color: #ffffff;
    line-height: 1.6;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.header {
    grid-column: span 12;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat, linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 48px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.module {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.article {
    grid-column: span 8;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.article h2 {
    color: #ff9f1c;
    margin-bottom: 20px;
}

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

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

.article code {
    color: #ffdd57;
    font-family: 'Roboto Mono', monospace;
}

.side-bar {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.side-bar h3 {
    color: #ff6f61;
    margin-bottom: 15px;
}

.side-bar ul {
    list-style: none;
    padding: 0;
}

.side-bar li {
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.side-bar li:hover {
    transform: scale(1.05);
}

.footer {
    grid-column: span 12;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #cccccc;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .module, .article, .side-bar {
        grid-column: span 12;
    }

    .header h1 {
        font-size: 36px;
    }
}

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

    .header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

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