:root {
	--primary: #6C5CE7;
	--secondary: #00CEFF;
	--dark: #2D3436;
	--light: #F5F6FA;
	--gray: #636E72;
	--white: #FFFFFF;
}

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

body {
	color: var(--dark);
	line-height: 1.6;
	background-color: var(--light);
}
        
        /* 头部样式 */
header {
	background-color: var(--white);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 5%;
	max-width: 1400px;
	margin: 0 auto;
}

.logo {
	font-size: 28px;
	font-weight: 700;
	color: var(--primary);
	display: flex;
	align-items: center;
}

.logo span {
	color: var(--dark);
	margin-left: 8px;
}

.logo-icon {
	width: 32px;
	height: 32px;
	background-color: var(--primary);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	margin-right: 10px;
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 35px;
}

nav ul li a {
	text-decoration: none;
	color: var(--dark);
	font-weight: 500;
	font-size: 16px;
	position: relative;
	transition: color 0.3s;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary);
	transition: width 0.3s;
}

nav ul li a:hover::after {
	width: 100%;
}

nav ul li a:hover {
	color: var(--primary);
}

.auth-buttons .btn {
	padding: 10px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	font-size: 16px;
	margin-left: 15px;
	transition: all 0.3s;
}

.btn-login {
	color: var(--dark);
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.btn-register {
	background-color: var(--primary);
	color: var(--white);
	border: 1px solid var(--primary);
}

.btn-register:hover {
	background-color: #5A4BD6;
	border-color: #5A4BD6;
	box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}
        
        /* 主要内容 */
main {
	margin-top: 80px;
}
        
        /* 新闻详情页样式 */
.news-detail-section {
	padding: 80px 5%;
	max-width: 900px;
	margin: 0 auto;
}

.news-header {
	margin-bottom: 40px;
}

.news-date {
	color: var(--primary);
	font-size: 16px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
}

.news-date i {
	margin-right: 10px;
}

.news-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--dark);
	margin-bottom: 20px;
	line-height: 1.3;
}

.news-meta {
	display: flex;
	align-items: center;
	color: var(--gray);
	font-size: 14px;
	margin-bottom: 30px;
}

.news-meta span {
	margin-right: 20px;
	display: flex;
	align-items: center;
}

.news-meta i {
	margin-right: 8px;
}

.news-image {
	width: 100%;
	height: 450px;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--dark);
}

.news-content p {
	margin-bottom: 25px;
}

.news-content h2 {
	font-size: 28px;
	font-weight: 600;
	color: var(--dark);
	margin: 50px 0 20px;
}

.news-content h3 {
	font-size: 22px;
	font-weight: 600;
	color: var(--dark);
	margin: 40px 0 15px;
}

.news-content ul, .news-content ol {
	margin-bottom: 25px;
	padding-left: 25px;
}

.news-content li {
	margin-bottom: 10px;
	position: relative;
}

.news-content ul li::before {
	content: '';
	position: absolute;
	left: -15px;
	top: 12px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--primary);
}

.news-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 30px 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-footer {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.tag {
	display: inline-block;
	padding: 8px 16px;
	background-color: rgba(108, 92, 231, 0.1);
	border-radius: 20px;
	font-size: 14px;
	color: var(--primary);
	text-decoration: none;
	transition: all 0.3s;
}

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

.share-buttons {
	display: flex;
	gap: 15px;
}

.share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.05);
	color: var(--gray);
	transition: all 0.3s;
}

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

.related-news {
	margin-top: 80px;
}

.related-title {
	font-size: 28px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 40px;
	position: relative;
	padding-bottom: 15px;
}

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

.related-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.related-item {
	background-color: var(--white);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.related-image {
	height: 160px;
	overflow: hidden;
}

.related-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.related-item:hover .related-image img {
	transform: scale(1.05);
}

.related-content {
	padding: 20px;
}

.related-date {
	color: var(--primary);
	font-size: 14px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.related-date i {
	margin-right: 8px;
}

.related-item h3 {
	font-size: 18px;
	margin-bottom: 10px;
	color: var(--dark);
}

.back-to-list {
	display: inline-flex;
	align-items: center;
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	margin-top: 40px;
	padding: 10px 20px;
	border-radius: 8px;
	transition: all 0.3s;
	border: 1px solid rgba(108, 92, 231, 0.2);
}

.back-to-list i {
	margin-right: 8px;
	transition: transform 0.3s;
}

.back-to-list:hover {
	background-color: rgba(108, 92, 231, 0.1);
}

.back-to-list:hover i {
	transform: translateX(-5px);
}
        
        /* 底部 */
footer {
	background-color: var(--dark);
	color: var(--white);
	padding: 80px 5% 40px;
}

.footer-container {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 60px;
}

.footer-about {
	max-width: 350px;
}

.footer-logo {
	font-size: 24px;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 20px;
	display: inline-flex;
	align-items: center;
}

.footer-logo-icon {
	width: 28px;
	height: 28px;
	background-color: var(--primary);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	margin-right: 10px;
}

.footer-about p {
	opacity: 0.7;
	margin-bottom: 25px;
	line-height: 1.7;
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 18px;
	transition: all 0.3s;
}

.social-links a:hover {
	background-color: var(--primary);
	transform: translateY(-3px);
}

.footer-links h3 {
	font-size: 18px;
	margin-bottom: 25px;
	position: relative;
	padding-bottom: 15px;
}

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

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

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

.footer-links ul li a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links ul li a:hover {
	color: var(--white);
}

.footer-contact p {
	display: flex;
	align-items: flex-start;
	margin-bottom: 15px;
	opacity: 0.7;
	line-height: 1.7;
}

.footer-contact i {
	margin-right: 10px;
	color: var(--primary);
	font-size: 18px;
	margin-top: 3px;
}

.copyright {
	text-align: center;
	padding-top: 40px;
	margin-top: 60px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 0.6;
	font-size: 14px;
}
        
        /* 响应式设计 */
@media (max-width: 768px) {
	.header-container {
		flex-direction: column;
		padding: 15px;
	}

	nav ul {
		margin: 20px 0;
	}

	nav ul li {
		margin-left: 15px;
		margin-right: 15px;
	}

	.auth-buttons {
		margin-top: 15px;
	}

	.news-title {
		font-size: 28px;
	}

	.news-image {
		height: 250px;
	}

	.news-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-meta span {
		margin-bottom: 10px;
	}

	.related-list {
		grid-template-columns: 1fr;
	}
}