/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #3f51b5; /* 蓝色导航栏 */
    margin-bottom: 1.5rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    margin-right: 2rem; /* 增加品牌标志与导航项的间距 */
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand i {
    margin-right: 0.5rem;
    font-size: 1.4rem;
}

.nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.9) !important;
    border-radius: 4px;
    margin: 0 0.2rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 为左侧导航添加间距 */
.navbar-nav {
    gap: 0.5rem; /* 增加导航项之间的间距 */
}

/* 通用页面样式 */
.content-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.page-title {
    color: #3f51b5;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3f51b5;
}

/* 通用组件样式 */
.preview-image {
    max-width: 100%;
    max-height: 300px;
    margin-top: 10px;
    object-fit: contain;
}

/* 通用加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading.hidden {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    .content-card {
        padding: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
} 