
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000080, #4B0082);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #00ffcc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-block {
    grid-column: 1 / 2;
}

.model-3d {
    grid-column: 2 / 3;
    position: relative;
}

.model-3d img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

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

    h1 {
        font-size: 2rem;
    }
}

/* 色彩与渐变效果 */
.header-section {
    background: linear-gradient(45deg, #1c1c1c, #330033);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.header-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

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

/* 动画与交互效果 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: move 5s infinite;
}

@keyframes move {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.hover-effect {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hover-effect:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* 示例文章样式 */
.article-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    margin: 20px;
}

.article-section h2 {
    color: #00ffcc;
    font-size: 2rem;
}

.article-section pre {
    background: #222;
    color: #00ffcc;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 提示信息 */
.info-banner {
    text-align: center;
    background: #330033;
    color: #fff;
    padding: 10px;
    font-size: 1rem;
}

