/* 导航栏基础样式 */
.navbar-section {
    background-color: white;
}

.navbar {
    background-color: white;
    padding: 0.5rem 1rem; /* 调整内边距 */
}

.navbar-nav .nav-link {
    color: rgb(23,49,119) !important; /* Bootstrap蓝色 */
    font-weight: 500;
    margin-left: 1rem; /* 调整导航项之间的间距 */
}

/* 调整导航链接按钮样式 */
.navigation-links .btn {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

/* 当鼠标悬停时改变背景颜色 */
.navigation-links .btn:hover {
    background-color: #f8f9fa;
}

.bi-search {
    cursor: pointer;
}

/* 页脚样式 */
.footer {
    background-color: rgb(23, 49, 119);
    color: white;
    padding: 2rem 0;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

/* 新增版权信息垂直定位修正 */
.copyright {
    position: absolute;
    bottom: 0; /* 精准贴底 */
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 0 !important; /* 强制清除可能的外边距 */
}

.footer-link {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: white;
}

.copyright {
    background-color: rgb(7, 30, 76);
    padding: 1rem 0;
}

/* 卡片动画 */
.card-hover {
    transition: transform 0.3s ease;
}

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

/* 调整页脚链接样式 */
.footer-title {
    font-size: 16px;
    color: white;
    margin-bottom: 10px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
}

/* 确保标题和链接在同一行 */
.col-lg-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 确保父级元素背景透明 */
.article-container-parent {
    background-color: transparent; /* 设置父级元素背景透明 */
}

/* 调整 article-container 样式 */
.article-container {
    padding: 20px 0; /* 移除左右内边距实现背景全屏展示 */
    box-shadow: none;
    background-color: white;
    color: black;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 14px; /* 整体文字缩小为14px */
    @media (max-width: 768px) {
        padding: 10px 0; /* 响应式适配保持比例 */
    }
}

/* 确保 .article-content 没有左右内边距 */
.article-content {
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
}

/* 文章图片样式 - 确保图片圆角处理 */
.article-image img {
    max-width: 100%;
    height: auto;
}

/* 最新推荐样式 - 调整布局和间距 */
.latest-recommendations {
    margin-top: 30px;
    background-color: transparent; /* 设置为透明背景 */
    padding: 0; /* 移除内边距 */
    /* 在小屏幕上调整外边距 */
    @media (max-width: 768px) {
        margin-top: 20px;
    }
}

.latest-recommendations .recommend-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* 增加项目间的间距 */
}

.latest-recommendations .recommend-item img {
    margin-right: 10px;
    border-radius: 4px; /* 图片圆角处理 */
}

.latest-recommendations .recommend-item span {
    font-size: 12px;
    color: #666;
}

.latest-recommendations .recommend-item a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    /* 在小屏幕上适当减小字体大小 */
    @media (max-width: 768px) {
        font-size: 12px;
    }
}

.btn-secondary {
    background-color: #495057;
    border-color: #495057;
}

.btn-secondary:hover {
    background-color: #343a40;
    border-color: #343a40;
}

.navigation-links .btn i {
    margin: 0 10px;
}
