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

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@700&display=swap');

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    color: #ffffff;
    padding: 20px;
}

/* 动画关键帧 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
}

/* 不对称布局中的图像块 */
.image-block img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* 文本块样式 */
.text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-block h2, .text-block h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ff6f61;
    margin-bottom: 15px;
}

.text-block p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #dddddd;
}

.text-block pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.text-block code {
    font-family: 'Roboto', monospace;
    color: #ffcc00;
}

/* 渐变按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff6f61, #6bc1ff);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: linear-gradient(45deg, #6bc1ff, #ff6f61);
}

/* 示例数据展示区 */
.example-data {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.example-data h2 {
    font-family: 'Montserrat', sans-serif;
    color: #6bc1ff;
    margin-bottom: 20px;
}

.example-data .data-item {
    margin-bottom: 20px;
}

.example-data .data-item h3 {
    color: #ff6f61;
    margin-bottom: 10px;
}

.example-data .data-item p {
    color: #dddddd;
    margin-bottom: 10px;
}

.example-data .data-item img, 
.example-data .data-item video, 
.example-data .data-item svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
}

/* 提示信息样式 */
.notice {
    margin-top: 30px;
    text-align: center;
    font-size: 1.2rem;
    color: #ffcc00;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 30px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .text-block p {
        font-size: 1rem;
    }
}

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

    .text-block h2 {
        font-size: 1.5rem;
    }

    .text-block h3 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .text-block p {
        font-size: 0.95rem;
    }

    .example-data h2 {
        font-size: 1.3rem;
    }

    .notice {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .text-block p {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 动态交互效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
    position: relative;
}

.scroll-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* SVG 图形样式 */
.svg-graphic {
    width: 100px;
    height: 100px;
}


