html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f0f2f5;
    transform: translateX(5px);
}

/* 主要内容区域样式 */
.container {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
}

/* 确保 footer 位于页面底部 */
.footer {
    width: 100%;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.jumbotron {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
    margin-bottom: 2rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
    background-color: #0052cc;
    border: none;
}

.btn-primary:hover {
    background-color: #0043a7;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .container {
        padding: 1rem;
    }

    .jumbotron {
        padding: 2rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}