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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000066, #4B0082);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #CCCCCC;
}

/* 导航栏样式 */
nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

nav a {
    color: #39FF14;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFFFFF;
}

/* 模块样式 */
.section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    transform: rotate(45deg);
}

.section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #39FF14;
}

.section p {
    font-size: 1em;
    color: #FFFFFF;
}

/* 示例文章展示 */
.sample-article {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
}

.sample-article h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #39FF14;
}

.sample-article pre {
    background: #1E1E1E;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

.sample-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.sample-article table, .sample-article th, .sample-article td {
    border: 1px solid #39FF14;
}

.sample-article th, .sample-article td {
    padding: 10px;
    text-align: left;
}

.sample-article th {
    background: #39FF14;
    color: #000066;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }
}

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

    nav a {
        font-size: 0.9em;
    }

    .section h2 {
        font-size: 1.5em;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 结束语样式 */
.footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
    font-size: 1em;
    color: #CCCCCC;
}

