html {
	height: 100%;
}

body {
	background: #f5f7fa;
	font-family: 'Segoe UI', 'Microsoft YaHei', Arial, STHeiti, \5b8b\4f53;
	font-size: 14px;
	height: 100%;
	color: #333;
	line-height: 1.6;
}

.nk-container {
	position: relative;
	height: auto;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.container {
	width: 960px;
	padding: 0;
}

/* 导航栏样式优化 */
header.bg-light {
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	background: #ffffff !important;
}

header .navbar {
	padding: 12px 0;
}

header .navbar-brand {
	padding: 0;
}

header .nav-link {
	color: #495057 !important;
	font-weight: 500;
	padding: 10px 16px;
	border-radius: 6px;
	transition: all 0.3s ease;
	margin: 0 3px;
}

header .dropdown-item {
	color: #495057 !important;
	padding: 10px 20px;
	transition: all 0.3s ease;
}

/* 鼠标悬停时字体颜色和背景色变化 */
header .nav-link:hover {
	color: #20c997 !important;
	background-color: rgba(32, 201, 151, 0.1);
	transform: translateY(-2px);
}

header .dropdown-item:hover {
	color: #20c997 !important;
	background-color: rgba(32, 201, 151, 0.1);
}

/* 激活状态样式 */
header .nav-link.active {
	color: #20c997 !important;
	background-color: rgba(32, 201, 151, 0.1);
	box-shadow: 0 2px 8px rgba(32, 201, 151, 0.2);
}

/* 用户头像容器 */
header .avatar-container {
	width: 36px;
	height: 36px;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	border: 2px solid #ffffff;
	transition: all 0.3s ease;
}

header .avatar-container:hover {
	transform: scale(1.1);
	box-shadow: 0 3px 12px rgba(32, 201, 151, 0.3);
}

header .avatar-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 下拉菜单动画 */
.dropdown-menu.animate.slideIn {
	animation: slideIn 0.3s ease;
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
	border: none;
	border-radius: 12px;
	margin-top: 12px;
	padding: 8px 0;
}

@keyframes slideIn {
	0% {
		opacity: 0;
		transform: translateY(15px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 消息徽章位置 */
header .badge {
	position: absolute;
	top: -5px;
	left: 33px;
	animation: pulse 1.5s infinite;
	box-shadow: 0 2px 5px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

/* 搜索框美化 */
header .search-container {
	display: flex;
	align-items: center;
	background-color: #f8f9fa;
	border-radius: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	padding: 8px 15px;
	width: 320px;
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
}

header .search-container:focus-within {
	box-shadow: 0 2px 15px rgba(32, 201, 151, 0.2);
	border-color: #20c997;
	transform: translateY(-2px);
}

header .search-input {
	flex: 1;
	border: none;
	outline: none;
	background-color: transparent;
	font-size: 15px;
	color: #495057;
	padding: 6px 12px;
}

header .search-input::placeholder {
	color: #adb5bd;
}

/* 分割线 */
header .divider {
	width: 1px;
	height: 24px;
	background-color: #dee2e6;
	margin: 0 12px;
}

header .search-button {
	display: flex;
	align-items: center;
	border: none;
	background: none;
	color: #20c997;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	outline: none;
	transition: all 0.3s ease;
	padding: 6px 12px;
	border-radius: 20px;
}

header .search-button:hover {
	background-color: rgba(32, 201, 151, 0.1);
	transform: translateY(-2px);
}

header .search-button:focus {
	outline: none;
	box-shadow: none;
}

header .search-icon {
	font-weight: bold;
	margin-right: 6px;
}

/* 底部信息栏美化 */
footer {
	padding: 25px 0;
	font-size: 14px;
	position: relative;
	width: 100%;
	background: linear-gradient(to bottom, #2c3e50, #1a252f);
	color: #adb5bd;
	box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
	z-index: 10;
	margin-top: 30px;
}

footer .qrcode {
	text-align: center;
	padding: 0 15px;
}

footer .qrcode img {
	width: 110px !important;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

footer .qrcode img:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(32, 201, 151, 0.3);
}

footer .detail-info {
	padding: 0 15px;
}

footer .nav-link {
	color: #cfd6e1 !important;
	padding: 5px 12px;
	transition: all 0.3s ease;
	font-weight: 500;
	font-size: 13px;
}

footer .nav-link:hover {
	color: #20c997 !important;
	transform: translateX(5px);
}

footer .company-info {
	margin-top: 10px;
}

footer .company-info li {
	padding: 5px 0;
	transition: all 0.3s ease;
	color: #99a3b1;
	font-size: 13px;
}

footer .company-info li:hover {
	color: #cfd6e1;
	transform: translateX(5px);
}

footer .company-info i {
	width: 20px;
	height: 20px;
	text-align: center;
	margin-right: 10px;
	color: #20c997;
}

/* 内容区域 */
.main {
	padding: 20px 0 0;
	background: #f5f7fa;
	flex: 1;
}

.main .container {
	background-color: transparent;
	box-shadow: none;
}

/* 卡片样式美化 */
.card {
	border: none;
	border-radius: 8px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.card:hover {
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.card-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 15px 20px;
}

.card-body {
	padding: 20px;
}

/* 按钮样式美化 */
.btn {
	border-radius: 4px;
	padding: 8px 16px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: #20c997;
	border-color: #20c997;
}

.btn-primary:hover {
	background-color: #1cb386;
	border-color: #1cb386;
	box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.btn-outline-danger:hover {
	box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* 通用样式 */
i {
	font-style: normal;
}

u {
	text-decoration: none;
}

b {
	font-weight: normal;
}

a {
	color: #495057;
	transition: all 0.3s ease;
}

a:hover {
	text-decoration: none;
	color: #20c997;
}

.font-size-12 { font-size: 12px; }
.font-size-14 { font-size: 14px; }
.font-size-16 { font-size: 16px; }
.font-size-18 { font-size: 18px; }
.font-size-20 { font-size: 20px; }
.font-size-22 { font-size: 22px; }
.font-size-24 { font-size: 24px; }

.hidden {
	display: none;
}

.rt-0 {
	right: 0;
	top: 0;
}

.square {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: #ff6547;
	margin-bottom: 2px;
	margin-right: 3px;
	border-radius: 2px;
}

.bg-gray {
	background: #f8f9fa;
}

.user-header {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

em {
	font-style: normal;
	color: #dc3545;
}

/* 帖子列表美化 */
.media {
	transition: all 0.3s ease;
	border-radius: 8px;
	padding: 15px !important;
}

.media:hover {
	background-color: #f8f9fa;
	transform: translateX(3px);
}

/* 分页美化 */
.pagination {
	margin-bottom: 30px; /* 添加底部边距，与footer保持距离 */
}

.pagination .page-link {
	color: #495057;
	border-color: #dee2e6;
	margin: 0 3px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
	background-color: #20c997;
	border-color: #20c997;
}

.pagination .page-link:hover {
	color: #20c997;
	background-color: rgba(32, 201, 151, 0.1);
	border-color: #20c997;
}

/* 徽章美化 */
.badge {
	padding: 5px 8px;
	font-weight: 500;
	border-radius: 4px;
}

/* 媒体查询，确保在小屏幕上正常显示 */
@media (max-width: 768px) {
    footer {
        position: relative;
        height: auto;
    }
    
    .main {
        margin-bottom: 0;
    }
}

