/* 防止固定头部遮挡内容 */
body {
    padding-top: 0;
}

/* Logo样式 - 120x120px原始图片，显示为合适的尺寸 */
.logo-img {
    width: 60px;           /* 在桌面端显示为60px，保持清晰度 */
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 移动端Logo尺寸调整 */
@media (max-width: 767.98px) {
    .logo-img {
        width: 50px;       /* 移动端稍微小一点 */
        height: 50px;
    }
}

/* 导航栏调整 */
.navbar {
    padding: 10px 0;
    background-color: white !important;
}

/* 移动端Logo居中 */
@media (max-width: 991.98px) {
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-nav.ms-auto {
        margin-left: 0 !important;
    }
}

/* 桌面端导航菜单右对齐 */
@media (min-width: 992px) {
    .navbar-brand {
        margin-right: 1rem !important;
    }
    
    /* 关键：移除原有的 margin-left: auto，改为居中 */
    .navbar-collapse {
        justify-content: center !important;
    }
    
    .navbar-nav {
        margin: 0 auto !important;
    }
}

/* 内容图片样式 - 1200x675px原始图片，响应式显示 */
.content-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 内容图片容器 */
.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 响应式内容图片最大宽度限制 */
@media (min-width: 576px) {
    .content-img {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .content-img {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .content-img {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .content-img {
        max-width: 1000px;
    }
}

/* 底部样式 */
.footer {
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
}

/* 页面内容居中 */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* 标题居中 */
h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
}

/* 动态头部占位高度 */
.header-spacing {
    height: 80px; /* 默认桌面端高度 */
}

@media (max-width: 767.98px) {
    .header-spacing {
        height: 70px; /* 移动端高度 */
    }
}

/* 导航链接样式 */
.nav-link {
    color: #495057 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

/* 当前页面高亮 */
.nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
}