/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* 页面整体布局 */
body {
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* 头部样式 */
header {
    background: #4CAF50;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

/* 链接按钮 */
.links {
    text-align: center;
    margin: 30px 0;
}

.links .btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
}

/* 链接按钮颜色 */
.github { background: #333; }
.paper { background: #2196F3; }
.demo { background: #FF9800; }

.links .btn:hover {
    opacity: 0.8;
}

/* 机器人GIF展示 */
.robots {
    text-align: center;
    margin: 50px 0;
}

.robots h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.robot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 三列布局 */
    gap: 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.robot-gif {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 内容区样式 */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 0 10px #ccc;
    border-radius: 10px;
}

.content h2 {
    margin-bottom: 20px;
}

.demo-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 引用信息 */
.citation {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    box-shadow: 0 0 10px #ccc;
    border-radius: 5px;
    text-align: left;
    overflow: auto;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 10px;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

/* 响应式设计：适应小屏幕 */
@media (max-width: 768px) {
    .robot-gallery {
        grid-template-columns: repeat(2, 1fr);  /* 小屏幕改为两列 */
    }

    .robot-gif {
        max-width: 250px;
    }

    .content h2, .robots h2 {
        font-size: 1.5em;
    }
}


/* Module Section */
.modules {
    padding: 60px 20px;
    background: #f9fafb;
    text-align: center;
}
.modules h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #4f46e5;
}
.module {
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.module h3 {
    font-size: 1.8em;
    color: #6366f1;
    margin-bottom: 10px;
}
.module p {
    font-size: 1.1em;
    color: #374151;
}

/* Failure Section */
.failures {
    padding: 60px 20px;
    background: #fefefe;
    text-align: center;
}
.failures h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #dc2626;
}
.failure-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.failure-item {
    width: 300px;
    text-align: center;
}
.failure-gif {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.failure-item p {
    margin-top: 10px;
    font-size: 1em;
    color: #6b7280;
}


