
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0d0d2b, #1a1aff);
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.95;
    overflow-x: hidden;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

header h1 {
    font-family: 'Futura', sans-serif;
    font-size: 2.5rem;
    color: #ff6f61;
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    color: #b3c7ff;
}

/* 侧边图像 */
.left-image {
    position: relative;
}

.left-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 内容区域 */
.content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.content h2, .content h3, .content h4 {
    color: #ff6f61;
    margin-bottom: 15px;
}

.content p {
    margin-bottom: 15px;
}

.content ul, .content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

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

.content table, .content th, .content td {
    border: 1px solid #b3c7ff;
}

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

.content pre {
    background: #1a1aff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.content code {
    font-family: 'Courier New', Courier, monospace;
    color: #e6e6ff;
}

/* 示例数据展示 */
.demo-section {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.demo-section h2 {
    color: #00ffcc;
    margin-bottom: 20px;
}

.demo-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.demo-card {
    background: rgba(26, 26, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 40px);
    min-width: 250px;
}

.demo-card h3 {
    color: #ff6f61;
    margin-bottom: 10px;
}

.demo-card p {
    color: #cce0ff;
}

@media (max-width: 1440px) {
    .demo-card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    .demo-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .content, .demo-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .content h2 {
        font-size: 1.5rem;
    }
    .demo-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2rem;
    }
    .content h2 {
        font-size: 1.2rem;
    }
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

button, .btn {
    background: #ff6f61;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

button:hover, .btn:hover {
    background: #e65c54;
    transform: scale(1.05);
}

/* 提示语 */
.reference {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: #b3c7ff;
}

