:root {
	--primary-color: #2e8540;
	--primary-light: #3daa54;
	--primary-dark: #1d5c2a;
	--accent-color: #ff6b00;
	--secondary-color: #f8f9fa;
	--text-color: #333;
	--text-light: #666;
	--border-color: #e0e0e0;
	--shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	--no-agency-color: #fff9c4; /* 淡黄色 */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
	color: var(--text-color);
	line-height: 1.6;
	background-color: #f9f9f9;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
#app {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	min-height: 100vh;
}

.main-content {
	flex: 1 0 auto;
}
a {
	text-decoration: none;
	color: inherit;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
}


/* 顶部导航栏 */
.top-nav {
	background-color: white;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 12px 0;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 26px;
	font-weight: bold;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	cursor: pointer;
}
.logo-img{
   width:85px;
   height:55px;
}
.logo span {
	color: var(--primary-dark);
}

.main-menu {
	display: flex;
	list-style: none;
	margin: 0 20px;
}

.main-menu li {
	margin: 0 40px;
	position: relative;
}

.main-menu li a {
	color: var(--text-color);
	font-weight: 500;
	padding: 8px 0;
	transition: color 0.3s;
}

.main-menu li a:hover, .main-menu li a.active {
	color: var(--primary-color);
}

.main-menu li a.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: var(--primary-color);
	border-radius: 3px 3px 0 0;
}

.auth-links {
	display: flex;
	align-items: center;
}

.auth-links a {
	margin-left: 15px;
	padding: 8px 20px;
	border-radius: 4px;
	transition: all 0.3s;
	font-weight: 500;
	cursor: pointer;
}

.auth-links a:first-child {
	color: var(--text-color);
}

.auth-links a:first-child:hover {
	color: var(--primary-color);
}

.auth-links a:last-child {
	background-color: var(--primary-color);
	color: white;
}

.auth-links a:last-child:hover {
	background-color: var(--primary-dark);
}
/* 用户头像和下拉菜单 */
.user-profile {
   /* display: none;*/ /* 默认隐藏，登录后显示 */
	align-items: center;
	position: relative;
	cursor: pointer;
	margin-left: 20px;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 10px;
	border: 2px solid var(--primary-light);

}

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

.user-name {
	font-weight: 500;
	margin-right: 5px;
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border-radius: 8px;
	box-shadow: var(--shadow);
	width: 180px;
	z-index: 101;
	margin-top: 10px;
	display: none;
	overflow: hidden;
}

.user-dropdown.active {
	display: block;
}

.user-dropdown-item {
	padding: 12px 15px;
	display: flex;
	align-items: center;
	transition: all 0.3s;
	border-bottom: 1px solid var(--border-color);
}

.user-dropdown-item:last-child {
	border-bottom: none;
}

.user-dropdown-item:hover {
	background-color: var(--secondary-color);
	color: var(--primary-color);
}

.user-dropdown-item i {
	margin-right: 10px;
	width: 20px;
	text-align: center;
}
/* 面包屑导航 */
.breadcrumb {
	padding: 15px 0 5px;
	font-size: 14px;
	color: var(--text-light);
}

.breadcrumb a {
	color: var(--primary-color);
}

.breadcrumb a:hover {
	text-decoration: underline;
}
#register-form-section {
    width: 100%;
}

#register-form .form-group {
    margin-bottom: 20px;
}

#register-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

#register-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#register-form .form-control:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#register-form .verification-code {
    display: flex;
    gap: 10px;
}

#register-form .verification-code .form-control {
    flex: 1;
}

#register-form .verification-code .btn {
    white-space: nowrap;
    padding: 12px 15px;
    min-width: 110px;
}

#register-form .agreement {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

#register-form .agreement a {
    color: #2e8540;
    text-decoration: none;
}

#register-form .agreement a:hover {
    text-decoration: underline;
}

#register-form .btn-primary {
    background-color: #2e8540;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#register-form .btn-primary:hover:not(:disabled) {
    background-color: #3a7bc8;
}

#register-form .btn-primary:disabled {
    background-color: #a0c0e8;
    cursor: not-allowed;
}

#register-form .btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#register-form .btn-outline:hover:not(:disabled) {
    border-color: #4a90e2;
    color: #4a90e2;
}

#register-form .btn-outline:disabled {
    color: #aaa;
    cursor: not-allowed;
}

/* 底部样式 */
footer {
	background-color: #2c3e50;
	color: white;
	padding: 40px 0 20px;
	flex-shrink: 0;
	margin-top: auto; /* 确保footer位于底部 */
}

.footer-content {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.footer-column {
	flex: 1;
	min-width: 200px;
	text-align: center;
	margin-bottom: 20px;
}

.footer-column h4 {
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links li a {
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.3s;
}

.footer-links li a:hover {
	color: var(--primary-light);
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

.icp-info {
	margin-top: 10px;
	font-size: 0.9rem;
}

/* 新增：登录注册弹窗样式 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal-container {
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
	width: 90%;
	max-width: 450px;
	overflow: hidden;
	transform: translateY(-50px);
	transition: transform 0.4s ease;
}

.modal-overlay.active .modal-container {
	transform: translateY(0);
}

.modal-header {
	padding: 20px;
	position: relative;
	text-align: center;
	border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
	color: var(--primary-dark);
	font-size: 1.8rem;
	margin: 0;
}

.close-modal {
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-light);
	transition: color 0.3s;
}

.close-modal:hover {
	color: var(--accent-color);
}

.modal-body {
	padding: 25px;
}

.login-tabs {
	display: flex;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.login-tab {
	flex: 1;
	text-align: center;
	padding: 12px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s;
	border-bottom: 3px solid transparent;
}

.login-tab.active {
	color: var(--primary-color);
	border-bottom: 3px solid var(--primary-color);
}

/*.tab-content {*/
/*	display: none;*/
/*}*/

/*.tab-content.active {*/
/*	display: block;*/
/*}*/

.qrcode-container {
	text-align: center;
	padding: 20px 0;
}

.qrcode {
	width: 180px;
	height: 180px;
	margin: 0 auto 15px;
	background-color: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.qrcode i {
	font-size: 5rem;
	color: var(--primary-color);
}

.qrcode-text {
	color: var(--text-light);
	margin-bottom: 20px;
}
.form-footer {
	margin-top: 20px;
	text-align: center;
	color: var(--text-light);
}

.form-footer a {
	color: var(--primary-color);
	font-weight: 500;
	cursor: pointer;
}

.verification-code {
	display: flex;
	gap: 10px;
}

.verification-code .form-control {
	flex: 1;
}

.verification-code .btn {
	white-space: nowrap;
}

.countdown {
	color: var(--text-light);
	font-size: 0.9rem;
	text-align: center;
	margin-top: 10px;
}

.agreement {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-top: 15px;
}

.agreement a {
	color: var(--primary-color);
}

.scan-status {
	margin: 15px 0;
	padding: 10px;
	border-radius: 4px;
	text-align: center;
	display: none;
}

.scan-success {
	background-color: #e6f7ee;
	color: var(--primary-dark);
	display: block;
}

.simulate-scan {
	margin-top: 15px;
}
/* 消息徽章样式 */
.message-badge {
	position: relative;
	margin-right: 20px;
}

.message-link {
	display: flex;
	align-items: center;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s;
}

.message-link:hover {
	color: var(--primary-color);
}
.badge {
	position: absolute;
	top: 6px;
    right: -3px;
	background-color: var(--accent-color);
	color: white;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}
/* GoEasy IM 聊天弹窗样式 */
.chat-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	max-width: 900px;
	height: 80%;
	max-height: 600px;
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.chat-header {
	padding: 15px 20px;
	background-color: var(--primary-color);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
}

.chat-title {
	font-size: 18px;
	font-weight: 600;
}

.chat-close {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s;
}

.chat-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.chat-container {
	display: flex;
	flex: 1;
	overflow: hidden;
}

.conversation-list {
	width: 250px;
	border-right: 1px solid var(--border-color);
	overflow-y: auto;
	background-color: var(--secondary-color);
}

.conversation-header {
	padding: 15px;
	font-weight: 600;
	border-bottom: 1px solid var(--border-color);
	background-color: white;
}

.conversation-item {
	padding: 12px 15px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background-color 0.3s;
	border-bottom: 1px solid var(--border-color);
}

.conversation-item:hover {
	background-color: rgba(46, 133, 64, 0.1);
}

.conversation-item.active {
	background-color: var(--primary-light);
	color: white;
}

.conversation-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 12px;
	background-color: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.conversation-info {
	flex: 1;
	overflow: hidden;
}

.conversation-name {
	font-weight: 600;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.conversation-preview {
	font-size: 12px;
	color: var(--text-light);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.conversation-item.active .conversation-preview {
	color: rgba(255, 255, 255, 0.8);
}

.conversation-time {
	font-size: 11px;
	color: var(--text-light);
	margin-top: 4px;
}

.conversation-item.active .conversation-time {
	color: rgba(255, 255, 255, 0.8);
}

.chat-main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.chat-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background-color: #f9f9f9;
}

.message {
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
}

.message.received {
	align-items: flex-start;
}

.message.sent {
	align-items: flex-end;
}

.message-bubble {
	max-width: 70%;
	padding: 12px 15px;
	border-radius: 18px;
	margin-bottom: 5px;
	position: relative;
}

.message.received .message-bubble {
	background-color: white;
	border: 1px solid var(--border-color);
	border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
	background-color: var(--primary-light);
	color: white;
	border-bottom-right-radius: 4px;
}

.message-time {
	font-size: 12px;
	color: var(--text-light);
	padding: 0 5px;
}

.chat-input-area {
	padding: 15px;
	border-top: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	background-color: white;
}

.chat-input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid var(--border-color);
	border-radius: 20px;
	resize: none;
	outline: none;
	font-family: inherit;
	font-size: 14px;
	max-height: 120px;
}

.chat-send-btn {
	margin-left: 10px;
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.3s;
}

.chat-send-btn:hover {
	background-color: var(--primary-dark);
}

.chat-send-btn:disabled {
	background-color: var(--text-light);
	cursor: not-allowed;
}

.modal-chat {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.no-conversations {
	padding: 20px;
	text-align: center;
	color: var(--text-light);
}
/* 右下角悬浮聊天按钮 */
.chat-float-button {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background-color: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	z-index: 99;
	transition: all 0.3s;
}

.chat-float-button:hover {
	transform: scale(1.1);
	background-color: var(--primary-dark);
}

.chat-float-button i {
	font-size: 24px;
}

.unread-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: #ff4757;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}
/* 响应式设计 */
@media (max-width: 992px) {

	.nav-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.main-menu {
		margin: 15px 0;
		flex-wrap: wrap;
	}

	.auth-links {
		align-self: flex-end;
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {


	.footer-content {
		flex-direction: column;
	}

	.footer-column {
		width: 100%;
	}
}

@media (max-width: 576px) {
	.main-menu li {
		margin: 0 15px;
	}
}