:root {
	--primary: #910048;
	--primary-light: #c1518a;
	--primary-dark: #6a0034;
	--secondary: #5e5e5e;
	--accent: #9e0059;
	--light: #f8f5f7;
	--dark: #333;
	--text: #444;
	--text-light: #777;
	--white: #fff;
	--gray: #e0e0e0;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
	height: 100%;
}

body {
	height: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	background-color: var(--light);
	color: var(--text);
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.fill-container {
	flex: 1;
}

/* 顶部导航栏 */
header {
	background-color: var(--white);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.top-bar {
	background-color: var(--primary-dark);
	color: var(--white);
	padding: 8px 0;
	font-size: 0.9rem;
}

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

.top-bar a {
	color: var(--white);
	text-decoration: none;
	margin-left: 15px;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	display: flex;
	align-items: center;
}

.logo h1 {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary);
	/* margin-left: 10px; */
}

.logo span {
	color: var(--primary-light);
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links>li {
	position: relative;
	margin-left: 25px;
}

.nav-links>li>a {
	text-decoration: none;
	color: var(--dark);
	font-weight: 500;
	padding: 10px 0;
	display: block;
	transition: var(--transition);
}

.nav-links>li>a:hover {
	color: var(--primary);
}

.nav-links>li:hover>.dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--white);
	min-width: 200px;
	box-shadow: var(--shadow);
	border-radius: 5px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: var(--transition);
	z-index: 100;
}

.dropdown li {
	list-style: none;
	border-bottom: 1px solid var(--gray);
}

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

.dropdown li a {
	display: block;
	padding: 12px 15px;
	color: var(--text);
	text-decoration: none;
	transition: var(--transition);
}

.dropdown li a:hover {
	background-color: var(--light);
	color: var(--primary);
}

.nav-actions {
	display: flex;
	align-items: center;
}

.search-box {
	position: relative;
	margin-right: 20px;
}

.search-box input {
	padding: 8px 15px 8px 35px;
	border: 1px solid var(--gray);
	border-radius: 20px;
	width: 200px;
	font-size: 0.9rem;
}

.search-box i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-light);
}

.btn {
	background-color: var(--primary);
	color: var(--white);
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

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

.mobile-menu-btn {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--primary);
}

/* 轮播图区域 */
.slider {
	position: relative;
	height: 500px;
	margin: 30px 0;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.slides {
	display: flex;
	width: 300%;
	height: 100%;
	transition: transform 0.5s ease;
}

.slide {
	width: 33.333%;
	position: relative;
}

.slide-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.slide-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: var(--white);
	padding: 30px;
}

.slide-content h2 {
	font-size: 2.2rem;
	margin-bottom: 10px;
}

.slide-content p {
	font-size: 1.1rem;
	max-width: 600px;
}

.slider-nav {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
}

.slider-dot {
	width: 12px;
	height: 12px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	margin: 0 5px;
	cursor: pointer;
	transition: var(--transition);
}

.slider-dot.active {
	background-color: var(--white);
}

.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.7);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.5rem;
	color: var(--primary);
	transition: var(--transition);
}

.slider-btn:hover {
	background-color: var(--white);
}

.prev {
	left: 20px;
}

.next {
	right: 20px;
}

/* 新增内容：轮播图下方的双列布局 */
.content-below-slider {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	margin-bottom: 60px;
}

.conference-intro {
	background: var(--white);
	border-radius: 8px;
	padding: 30px;
	box-shadow: var(--shadow);
}

.conference-intro h2 {
	color: var(--primary);
	margin-bottom: 20px;
	font-size: 1.8rem;
	position: relative;
	padding-bottom: 10px;
}

.conference-intro h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--primary);
}

.conference-intro p {
	margin-bottom: 25px;
	line-height: 1.8;
}

.btn-outline {
	background: transparent;
	color: var(--primary);
	border: 1px solid var(--primary);
	padding: 10px 20px;
	border-radius: 5px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	display: inline-block;
}

.btn-outline:hover {
	background: var(--primary);
	color: var(--white);
}

.timeline-section {
	background: var(--white);
	border-radius: 8px;
	padding: 30px;
	box-shadow: var(--shadow);
}

.timeline-section h2 {
	color: var(--primary);
	margin-bottom: 25px;
	font-size: 1.8rem;
	position: relative;
	padding-bottom: 10px;
}

.timeline-section h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--primary);
}

.timeline {
	position: relative;
	padding-left: 20px;
}

.timeline:before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background-color: var(--primary-light);
}

.timeline-item {
	position: relative;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--gray);
}

.timeline-item:last-child {
	margin-bottom: 0;
	border-bottom: none;
}

.timeline-item:before {
	content: '';
	position: absolute;
	left: -23px;
	top: 5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--primary);
}

.timeline-date {
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 5px;
	font-size: 1.1rem;
}

.timeline-content {
	color: var(--text);
}

/* 主要内容区域 */
.main-content {
	padding: 60px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
}

.section-title h2 {
	font-size: 2rem;
	color: var(--primary);
	margin-bottom: 15px;
	position: relative;
	display: inline-block;
}

.section-title h2:after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--primary);
}

.section-title p {
	color: var(--text-light);
	max-width: 700px;
	margin: 0 auto;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

.feature-card {
	background: var(--white);
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.feature-card:hover {
	transform: translateY(-5px);
}

.feature-icon {
	width: 70px;
	height: 70px;
	background-color: var(--primary-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	color: var(--white);
	font-size: 1.8rem;
}

.feature-card h3 {
	margin-bottom: 15px;
	color: var(--primary);
}

.event-highlights {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 60px;
}

.event-card {
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.event-img {
	height: 200px;
	overflow: hidden;
}

.event-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.event-card:hover .event-img img {
	transform: scale(1.05);
}

.event-content {
	padding: 20px;
}

.event-content h3 {
	margin-bottom: 10px;
	color: var(--primary);
}

.event-meta {
	display: flex;
	margin: 15px 0;
	font-size: 0.9rem;
	color: var(--text-light);
}

.event-meta div {
	margin-right: 15px;
	display: flex;
	align-items: center;
}

.event-meta i {
	margin-right: 5px;
}

/* 底部信息栏 */
footer {
	background-color: var(--primary-dark);
	color: var(--white);
	padding: 20px 0 10px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-bottom: 30px;
}

.footer-section h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.footer-section h3:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--primary-light);
}

.footer-section ul {
	list-style: none;
}

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

.footer-section a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: var(--transition);
}

.footer-section a:hover {
	color: var(--white);
	padding-left: 5px;
}

.contact-info div {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.contact-info i {
	margin-right: 10px;
	color: var(--primary-light);
}

.social-links {
	display: flex;
	margin-top: 20px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	margin-right: 10px;
	transition: var(--transition);
}

.social-links a:hover {
	background-color: var(--primary-light);
}

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

.page-contain {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: var(--shadow);
	margin-top: 20px;
	margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.content-below-slider {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.mobile-menu-btn {
		display: block;
	}

	.nav-links,
	.search-box,
	.nav-actions .btn {
		display: none;
	}

	.slider {
		height: 400px;
	}

	.slide-content h2 {
		font-size: 1.8rem;
	}

	.event-highlights {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.footer-content {
		grid-template-columns: 1fr;
	}

	.slider {
		height: 300px;
	}

	.slide-content {
		padding: 15px;
	}

	.slide-content h2 {
		font-size: 1.5rem;
	}

	.slide-content p {
		font-size: 1rem;
	}

	.slider-btn {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}
}

/* 增强版用户下拉菜单样式 */
.user-dropdown {
	position: relative;
	display: inline-block;
}

.user-avatar {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.avatar-initials {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.user-avatar:hover .avatar-initials {
	transform: scale(1.05);
	border-color: rgba(102, 126, 234, 0.3);
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	min-width: 220px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 0;
	margin-top: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	border: 1px solid #e9ecef;
}

.user-dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-menu:before {
	content: '';
	position: absolute;
	top: -6px;
	right: 20px;
	width: 12px;
	height: 12px;
	background: white;
	transform: rotate(45deg);
	border-left: 1px solid #e9ecef;
	border-top: 1px solid #e9ecef;
}

.dropdown-header {
	padding: 16px;
	border-bottom: 1px solid #f1f3f4;
}

.user-name {
	font-weight: 600;
	color: #2c3e50;
	font-size: 14px;
}

.user-email {
	font-size: 12px;
	color: #7f8c8d;
	margin-top: 4px;
}

.dropdown-divider {
	height: 1px;
	background: #e9ecef;
	margin: 0;
}

.dropdown-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	text-decoration: none;
	color: var(--secondary);
	font-size: 14px;
	transition: all 0.2s ease;
	gap: 10px;
}

.dropdown-item:hover {
	background: #f8f9fa;
	color: var(--primary);
}

.dropdown-item i {
	width: 20px;
	text-align: center;
	font-size: 16px;
	color: var(--secondary);
}

.dropdown-item:hover i {
	color: var(--primary);
}

.logout-item {
	color: #e74c3c !important;
}

.logout-item i {
	color: #e74c3c;
}

.logout-item:hover {
	background: #fee;
	color: #e74c3c !important;
}

.logout-item:hover i {
	color: #e74c3c;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.user-avatar .avatar-initials {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.dropdown-menu {
		position: fixed;
		top: auto;
		bottom: 60px;
		right: 15px;
		left: 15px;
		width: auto;
		margin: 0;
	}

	.dropdown-menu:before {
		display: none;
	}
}