
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2E4053, #F5F5F5);
    color: #2E4053;
    line-height: 1.6;
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2E4053;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.navbar a {
    color: #F5F5F5;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}
.navbar a:hover {
    color: #FFA726;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    .navbar a {
        margin: 10px 0;
    }
}
/* 主要内容样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 100px 20px 20px 20px;
}
.card {
    background-color: #F5F5F5;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(46, 64, 83, 0.1);
    flex: 1 1 30%;
    margin: 10px;
    padding: 20px;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card h3 {
    color: #FFA726;
}
.card p {
    color: #555;
}
/* 代码示例样式 */
.code-block {
    background-color: #2E4053;
    color: #F5F5F5;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
}
.code-block code {
    display: block;
    white-space: pre;
}
/* 底部样式 */
.footer {
    background-color: #2E4053;
    color: #F5F5F5;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.footer .resources, .footer .feedback {
    flex: 1 1 45%;
    margin: 10px 0;
}
.footer h4 {
    margin-bottom: 15px;
    color: #FFA726;
}
.footer a {
    color: #F5F5F5;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s;
}
.footer a:hover {
    color: #FFA726;
}
.feedback form {
    display: flex;
    flex-direction: column;
}
.feedback input, .feedback textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}
.feedback button {
    background-color: #FFA726;
    border: none;
    padding: 10px;
    border-radius: 5px;
    color: #2E4053;
    cursor: pointer;
    transition: background-color 0.3s;
}
.feedback button:hover {
    background-color: #FFB74D;
}
/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 2s ease-in;
}
/* 图片悬停效果 */
.image-hover:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}
/* 导航链接滚动 */
.nav-link {
    cursor: pointer;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #FFA726;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

