
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ffffff;
}

header h1 {
    font-size: 3em;
    margin: 0;
    animation: textReveal 2s ease-in-out forwards;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 0;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    border-radius: 10px;
    width: 48%;
    margin-bottom: 20px;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.module:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.module h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.module p {
    font-size: 1em;
    line-height: 1.6;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ffffff;
}

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

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

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

.image-grid img {
    width: 48%;
    border-radius: 5px;
}

/* 动画关键帧 */
@keyframes textReveal {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 示例展示样式 */
.sample-display {
    background: rgba(0, 0, 0, 0.7);
    border: 2px dashed #ff6f61;
    padding: 30px;
    margin: 50px 0;
    animation: fadeIn 2s ease-in-out;
}

.sample-display h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.sample-display article {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.sample-display pre {
    background: #2a5298;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-display code {
    color: #ff6f61;
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .module {
        width: 48%;
    }
}

@media (max-width: 1200px) {
    .module {
        width: 100%;
    }
}

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

@media (max-width: 768px) {
    .image-grid img {
        width: 100%;
    }
}

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

    .module {
        padding: 15px;
    }

    table, th, td {
        font-size: 0.9em;
    }
}

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

    .module h2 {
        font-size: 1.2em;
    }

    .module p {
        font-size: 0.9em;
    }
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background: #ff6f61;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #e65c54;
}

/* 粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.1;
    z-index: -1;
}

