:root {
	--primary-color: #1a73e8;
	--primary-dark: #3a56d4;
	--secondary-color: #f8f9fa;
	--accent-color: #34a853;
	--text-color: #202124;
	--light-text: #5f6368;
	--error-color: #f44336;
	--warning-color: #ff9800;
	--info-color: #2196f3;
	--light-gray: #f8f9fa;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--text-color);
	background-color: #f8f9fa;
	padding-top: 76px;
}

.navbar {
	box-shadow: 0 2px 4px rgba(0,0,0,.1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
}

.navbar-brand {
	font-weight: 600;
	color: var(--primary-color);
	display: flex;
	align-items: center;
}

.logo-img {
	height: 40px;
	width: auto;
	margin-right: 10px;
}

.btn-register {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: white !important;
	margin-right: 8px !important;
}

.btn-login {
	border-color: var(--primary-color) !important;
	color: var(--primary-color) !important;
	background:none !important;
	border: 1px solid !important;
}

.btn-login:hover {
	background-color: var(--primary-color) !important;
	color: white !important;
}

.login-prompt {
	text-align: center;
	padding: 60px 20px;
	color: var(--light-text);
}

.login-prompt i {
	font-size: 4rem;
	color: #dadce0;
	margin-bottom: 20px;
}

.login-prompt h5 {
	color: var(--light-text);
	margin-bottom: 12px;
	font-weight: 400;
}

.login-prompt p {
	margin-bottom: 20px;
	font-size: 0.95rem;
}


footer {
	background-color: #2c3e50;
	color: white;
	padding: 20px 0 10px;
	margin-top: 50px;
}

.footer-links h5 {
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.1rem;
}

.footer-links ul {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links {
	color: #bdc3c7;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links:hover {
	color: white;
}

.copyright {
	text-align: center;
	color: #bdc3c7;
	font-size: 0.9rem;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.login-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
	overflow-y: auto;
	padding: 20px;
}

.login-modal-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
}

.login-modal-container {
	background: white;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.3s ease;
	position: relative;
}

.login-modal-overlay.active .login-modal-container {
	transform: translateY(0);
	opacity: 1;
}

/* 简化头部 */
.login-modal-header {
	background: #f8f9fa;
	padding: 25px 30px 20px;
	text-align: center;
	position: relative;
	border-bottom: 1px solid #e8eaed;
}

.login-close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: #5f6368;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
	padding: 5px;
	border-radius: 4px;
}

.login-close-btn:hover {
	color: var(--primary-color);
	background: rgba(26, 115, 232, 0.1);
}

/* 简化图标和标题 */
.login-header-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.login-header-icon {
	color: var(--primary-color);
	font-size: 24px;
	background: rgba(26, 115, 232, 0.1);
	padding: 10px;
	border-radius: 10px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.login-header-title {
	text-align: left;
}

.login-modal-header h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	color: var(--text-color);
}

.login-modal-header p {
	color: var(--light-text);
	margin: 4px 0 0;
	font-size: 14px;
}

.login-modal-body {
	padding: 30px;
}

.login-form-group {
	margin-bottom: 20px;
	position: relative;
}

.login-input-wrapper {
	position: relative;
}

.login-input-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #5f6368;
	font-size: 16px;
	z-index: 1;
}

.login-input {
	width: 100%;
	padding: 14px 15px 14px 45px;
	border: 1px solid #dadce0;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s ease;
	background: white;
}

.login-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.login-input.error {
	border-color: var(--error-color);
}

.login-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--text-color);
	font-size: 14px;
}

.login-error {
	color: var(--error-color);
	font-size: 13px;
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	font-size: 14px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--light-text);
	cursor: pointer;
}

.remember-checkbox {
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid #dadce0;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
}

.remember-checkbox:hover {
	border-color: var(--primary-color);
}

.remember-checkbox.checked:after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.remember-checkbox.checked {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.forgot-password {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s;
}

.forgot-password:hover {
	color: #0d62d9;
	text-decoration: underline;
}

.login-submit-btn {
	width: 100%;
	padding: 14px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.login-submit-btn:hover {
	background: #0d62d9;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.login-submit-btn:active {
	transform: translateY(0);
}

.login-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.login-footer {
	padding: 20px 30px;
	text-align: center;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
	color: var(--light-text);
	font-size: 14px;
}

.register-link {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	margin-left: 6px;
	transition: all 0.3s;
}

.register-link:hover {
	color: #0d62d9;
	text-decoration: underline;
}

.login-loading {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	z-index: 10;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(26, 115, 232, 0.1);
	border-radius: 50%;
	border-top-color: var(--primary-color);
	animation: spin 1s ease-in-out infinite;
	margin-bottom: 12px;
}

.loading-text {
	color: var(--light-text);
	font-size: 14px;
	font-weight: 500;
}

.login-success {
	display: none;
	text-align: center;
	padding: 40px 30px;
}

.success-icon {
	color: #34a853;
	font-size: 48px;
	margin-bottom: 15px;
}

.login-success h4 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--text-color);
}

.login-success p {
	color: var(--light-text);
	font-size: 14px;
	margin-bottom: 20px;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.password-toggle {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #5f6368;
	cursor: pointer;
	font-size: 16px;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
}

.password-toggle:hover {
	color: var(--primary-color);
}

.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.toast-item {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(100%);
    opacity: 0;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--toast-color), transparent);
    opacity: 0.1;
}

.toast-item.success {
    border-left-color: #34a853;
    --toast-color: #34a853;
}

.toast-item.success .toast-icon {
    background: rgba(52, 168, 83, 0.1);
    color: #34a853;
}

.toast-item.error {
    border-left-color: #f44336;
    --toast-color: #f44336;
}

.toast-item.error .toast-icon {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.toast-item.warning {
    border-left-color: #ff9800;
    --toast-color: #ff9800;
}

.toast-item.warning .toast-icon {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.toast-item.info {
    border-left-color: var(--primary-color);
    --toast-color: var(--primary-color);
}

.toast-item.info .toast-icon {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.toast-time {
    font-size: 12px;
    color: var(--light-text);
    opacity: 0.8;
    font-weight: 500;
}

.toast-message {
    font-size: 13.5px;
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.toast-close:hover {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.toast-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--toast-color), var(--toast-color));
    width: 100%;
    transform-origin: left;
    animation: toastProgress 3s linear forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* 悬停效果 */
.toast-item:hover {
    transform: translateX(0) translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu {
    display: none;
    position: absolute;
    left: 50%; /* 居中于父元素 */
    transform: translateX(-50%); /* 水平居中 */
    top: calc(100% + 4px); /* 在触发器下方 */
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: menuFadeIn 0.2s ease-out;
}

.user-menu.show {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    color: #202124;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.user-menu-item i {
    width: 16px;
    margin-right: 10px;
    color: #5f6368;
    font-size: 13px;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
}

.user-menu-item:hover i {
    color: #1a73e8;
}

.user-menu-divider {
    height: 1px;
    background-color: #e8eaed;
    margin: 6px 16px;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: none;
    background: transparent !important;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-arrow {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.dropdown-arrow i.fas {
    color: #5f6368;
    font-size: 10px;
    font-weight: 900; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-arrow i.fa-angle-down {
    color: #1a73e8; 
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.dropdown-arrow i.fa-caret-down {
    color: #1a73e8; 
    font-size: 13px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.dropdown-arrow i.fa-chevron-down {
    color: #1a73e8;
    font-size: 12px;
    font-weight: 800;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 0;
}

.dropdown-arrow::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.05);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.user-menu-trigger:hover .dropdown-arrow::before {
    opacity: 1;
}

.user-menu.show ~ .user-menu-trigger .dropdown-arrow::before {
    opacity: 1;
    background: rgba(26, 115, 232, 0.1);
}

.user-menu-trigger:hover {
    background-color: rgba(26, 115, 232, 0.05) !important;
}

.user-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    color: #1a73e8;
    font-size: 22px;
}

.user-name {
    color: #1a73e8;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-menu-trigger:hover .user-avatar i,
.user-menu-trigger:hover .user-name {
    color: #0d62d9;
}

.user-menu-trigger:hover .dropdown-arrow i {
    color: #1a73e8;
}

.user-menu.show ~ .user-menu-trigger .dropdown-arrow i {
    transform: rotate(180deg);
}

.navbar-nav {
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5f6368 !important;
    font-size: 13.5px;
    font-weight: 500;
    background: transparent !important;
    border: none !important;
    transition: color 0.2s ease;
}

.nav-link i {
    font-size: 13px;
    width: 15px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-link.active {
    color: #1a73e8 !important;
    font-weight: 600;
}

.nav-link.active i {
    opacity: 1;
    color: #1a73e8 !important;
}

.nav-link:hover {
    color: #1a73e8 !important;
}

.nav-link:hover i {
    opacity: 1;
    color: #1a73e8;
}

.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.1) !important; 
    padding: 6px 10px !important;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2) !important;
    border-color: rgba(26, 115, 232, 0.3) !important;
}

.navbar-toggler:active {
    border-color: rgba(26, 115, 232, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1) !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 115, 232, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 80px 20px 160px 20px;
    color: var(--light-text);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.membership-info {
    text-align: center;
    padding: 40px 20px;
}

.membership-icon {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.permission-alert {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 992px) {
    .nav-link {
        padding: 6px 14px !important;
        gap: 5px;
        font-size: 13.5px;
    }
    
    .nav-link i {
        font-size: 13px;
        width: 14px;
    }
}

@media (max-width: 768px) {
	body {
		padding-top: 66px;
	}
	
	.logo-img {
		height: 35px;
	}
	
	.login-modal-container {
		max-width: 90%;
		margin: 20px;
	}
	
	.login-modal-header,
	.login-modal-body,
	.login-footer {
		padding: 20px 25px;
	}
	
	.login-modal-header h3 {
		font-size: 18px;
	}
	
	.toast-notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .toast-item {
        padding: 16px;
    }
    
    .user-menu-trigger {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-avatar i {
        font-size: 20px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-menu {
        left: 0;
        transform: none;
        width: 100%;
        min-width: 160px;
    }
    
    .nav-link {
        padding: 6px 12px !important;
        gap: 4px;
    }
    
    .nav-link.active::after {
        width: 16px;
        height: 1.5px;
    }
}

@media (max-width: 576px) {
	.navbar-brand {
		font-size: 1.1rem;
	}
	
	.nav-link {
		padding: 6px 12px;
		font-size: 0.9rem;
	}
	
	.logo-img {
		height: 30px;
		margin-right: 8px;
	}
	
	.login-modal-overlay {
		padding: 10px;
	}
	
	.login-modal-container {
		max-width: 95%;
		margin: 10px;
	}
	
	.login-modal-header,
	.login-modal-body,
	.login-footer {
		padding: 20px;
	}
	
	.login-input {
		padding: 12px 12px 12px 40px;
		font-size: 14px;
	}
	
	.login-submit-btn {
		padding: 12px;
		font-size: 14px;
	}
	
	.login-options {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

.ent-tag {
    color: var(--error-color) !important;
}

.common-detail-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    position: relative;
    min-height: 600px;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--light-text);
}

.loading-indicator i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

.subscription-prompt {
    background-color: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 60px 25px;
    text-align: center;
    height: 350px;
}