* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.7;
	color: #333;
	background: transparent;
	min-height: 100vh;
}

/* ========== HERO HEADER (首页大图区域) ========== */
.hero-header {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #264de4;
    z-index: 3;
    padding: 0 1rem;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0);
    margin: 0 0 2rem 0;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: none;
    animation: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-content h1:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite alternate;
}

.responsive-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 4;
    justify-content: center;
    width: 100%;
}

.responsive-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.responsive-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ========== 平板设备优化 ========== */
@media (max-width: 1024px) {
    .hero-header {
        height: 40vh;
    }
}

/* ========== 手机设备优化 ========== */
@media (max-width: 768px) {
    .hero-header {
        height: 30vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* ========== 小手机设备优化 ========== */
@media (max-width: 480px) {
    .hero-header {
        height: 25vh;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .responsive-nav {
        flex-direction: column;
        gap: 0.8rem;
        bottom: 15px;
    }
    
    .responsive-nav a {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========== HEADER ========== */
header {
	text-align: center;
	padding: 2rem 1rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
	margin: 0 0 1rem 0;
	color: #4a6fa5;
	font-size: 2.2rem;
	font-weight: 600;
}

nav a {
	margin: 0 1rem;
	text-decoration: none;
	color: #555;
	font-weight: 500;
	transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
	color: #4a6fa5;
}

nav a.active {
	font-weight: bold;
	border-bottom: 2px solid #4a6fa5;
}

/* ========== 主容器 ========== */
main {
	max-width: 900px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

/* ========== 头像区域 ========== */
.profile-header {
	text-align: center;
	padding: 2rem 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid #eee;
}

.avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 5px solid #4a6fa5;
	object-fit: cover;
	box-shadow: 0 6px 15px rgba(74, 111, 165, 0.3);
	transition: transform 0.3s ease;
}

.avatar:hover {
	transform: scale(1.05);
}

.profile-header h2 {
	color: #4a6fa5;
	margin: 1rem 0 0.5rem 0;
	font-size: 1.6rem;
}

.profile-header p {
	color: #666;
	line-height: 1.6;
	margin: 0;
}

/* ========== 内容区域 ========== */
.content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: 2rem;
}

.about-section,
.timeline-section {
	background: white;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-section h3,
.timeline-section h3 {
	color: #4a6fa5;
	margin: 1.2rem 0 0.8rem 0;
	font-size: 1.3rem;
	border-left: 4px solid #4a6fa5;
	padding-left: 0.8rem;
}

/* ========== 技能条样式 ========== */
.skills {
	margin: 1rem 0;
}

.skill-item {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.skill-item label {
	width: 100px;
	font-weight: 500;
	color: #555;
}

.skill-bar {
	flex: 1;
	height: 10px;
	background: #e0e0e0;
	border-radius: 5px;
	overflow: hidden;
	margin: 0 0.8rem;
}

.skill-progress {
	height: 100%;
	border-radius: 5px;
	transition: width 1.2s ease-in-out;
}

.skill-progress.html {
	width: 85%;
	background: #e34c26;
}

.skill-progress.css {
	width: 75%;
	background: #264de4;
}

.skill-progress.js {
	width: 65%;
	background: #f0db4f;
	border: 1px solid #e0c83a;
}

.skill-progress.git {
	width: 60%;
	background: #171515;
}

.skill-item span {
	width: 40px;
	color: #777;
	font-size: 0.85rem;
}

/* ========== 横向时间轴 ========== */
.timeline-horizontal {
	position: relative;
	width: 100%;
	max-width: 1000px;
	margin: 2rem auto;
}

.timeline-horizontal::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #4a6fa5;
	transform: translateX(-50%);
	z-index: 0;
}

.timeline-item {
	position: relative;
	margin: 2rem 0;
	display: flex;
	justify-content: center;
	z-index: 1;
}

.timeline-dot {
	width: 14px;
	height: 14px;
	border: 4px solid white;
	background: #4a6fa5;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #4a6fa5;
	z-index: 2;
}

/* 左侧内容（带右向小箭头） */
.timeline-item.left .timeline-content {
	text-align: right;
	margin-right: 30px;
}

.timeline-item.left .timeline-content::after {
	content: '';
	position: absolute;
	right: -15px;
	top: 50%;
	width: 15px;
	height: 15px;
	background: white;
	border-right: 2px solid #4a6fa5;
	border-top: 2px solid #4a6fa5;
	transform: translateY(-50%) rotate(45deg);
}

/* 右侧内容（带左向小箭头） */
.timeline-item.right .timeline-content {
	text-align: left;
	margin-left: 30px;
}

.timeline-item.right .timeline-content::after {
	content: '';
	position: absolute;
	left: -15px;
	top: 50%;
	width: 15px;
	height: 15px;
	background: white;
	border-left: 2px solid #4a6fa5;
	border-top: 2px solid #4a6fa5;
	transform: translateY(-50%) rotate(-45deg);
}

.timeline-content {
	position: relative;
	max-width: 400px;
	padding: 1rem;
}

.timeline-date {
	font-size: 0.9rem;
	color: #4a6fa5;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.timeline-card {
	background: white;
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e0e0e0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ========== 联系区域 ========== */
.contact-section {
	text-align: center;
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-section h3 {
	color: #4a6fa5;
	margin-bottom: 1rem;
}

/* ========== 返回按钮 ========== */
.back-link {
	display: inline-block;
	margin-top: 1.5rem;
	color: #4a6fa5;
	text-decoration: none;
	font-weight: 500;
	padding: 0.6rem 1.2rem;
	border: 2px solid #4a6fa5;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.back-link:hover {
	background: #4a6fa5;
	color: white;
}

/* ========== 页脚 ========== */
footer {
	text-align: center;
	padding: 1.5rem;
	color: #777;
	font-size: 0.9rem;
	margin-top: 2rem;
}

/* ========== 手机端响应式优化 ========== */
@media (max-width: 480px) {
	/* 基础调整 */
	body {
		font-size: 14px;
		line-height: 1.6;
	}

	/* 头部优化 */
	header {
		padding: 1rem 0.5rem;
	}

	header h1 {
		font-size: 1.3rem;
		margin-bottom: 0.8rem;
	}

	/* 导航栏优化 - 垂直排列 */
	nav {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		align-items: center;
	}

	nav a {
		margin: 0.2rem 0;
		padding: 0.5rem 1rem;
		width: 80%;
		text-align: center;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 8px;
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	/* 主内容区域优化 */
	main {
		margin: 1rem auto;
		padding: 0 1rem;
		max-width: 100%;
	}

	/* 头像区域优化 */
	.profile-header {
		padding: 1.5rem 0;
		margin-bottom: 1rem;
	}

	.avatar {
		width: 90px;
		height: 90px;
		border-width: 3px;
	}

	.profile-header h2 {
		font-size: 1.3rem;
		margin: 0.8rem 0 0.3rem 0;
	}

	/* 内容区块优化 */
	.content-wrapper {
		gap: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.about-section,
	.timeline-section,
	.contact-section {
		padding: 1rem;
		border-radius: 10px;
		margin: 0.5rem 0;
	}

	/* 技能条优化 - 垂直堆叠 */
	.skill-item {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 1.2rem;
	}

	.skill-item label {
		width: 100%;
		margin-bottom: 0.5rem;
		font-size: 0.9rem;
	}

	.skill-bar {
		width: 100%;
		margin: 0 0 0.3rem 0;
		height: 8px;
	}

	.skill-item span {
		width: 100%;
		text-align: right;
		font-size: 0.8rem;
	}

	/* 时间轴完全重写为移动端友好 */
	.timeline-horizontal::before {
		left: 20px;
		transform: none;
	}

	.timeline-item {
		flex-direction: row;
		align-items: flex-start;
		margin: 1.5rem 0;
		padding-left: 0;
	}

	.timeline-dot {
		position: absolute;
		left: 18px;
		top: 1rem;
		width: 12px;
		height: 12px;
		border-width: 3px;
	}

	.timeline-content {
		margin-left: 40px !important;
		margin-right: 0 !important;
		text-align: left !important;
		max-width: calc(100% - 40px);
	}

	.timeline-item .timeline-content::after {
		display: none;
	}

	.timeline-card {
		padding: 0.8rem;
		font-size: 0.9rem;
	}

	.timeline-date {
		font-size: 0.85rem;
	}

	/* 联系区域优化 */
	.contact-section {
		padding: 1rem;
		margin-top: 1rem;
	}

	/* 返回按钮优化 */
	.back-link {
		width: 100%;
		text-align: center;
		padding: 0.8rem;
		margin-top: 1rem;
	}

	/* 页脚优化 */
	footer {
		padding: 1rem;
		font-size: 0.8rem;
		margin-top: 1rem;
	}
}

/* ========== 超小屏手机优化 ========== */
@media (max-width: 360px) {
	body {
		font-size: 13px;
	}

	main {
		padding: 0 0.8rem;
	}

	.avatar {
		width: 80px;
		height: 80px;
	}

	nav a {
		width: 90%;
		font-size: 0.85rem;
		padding: 0.4rem 0.8rem;
	}

	.about-section,
	.timeline-section,
	.contact-section {
		padding: 0.8rem;
	}

	.timeline-content {
		margin-left: 35px !important;
		max-width: calc(100% - 35px);
	}

	.timeline-dot {
		left: 16px;
	}
}

/* ========== 横屏手机优化 ========== */
@media (max-width: 768px) and (orientation: landscape) {
	.profile-header {
		padding: 1rem 0;
	}

	.avatar {
		width: 70px;
		height: 70px;
	}

	.content-wrapper {
		gap: 1rem;
	}

	.hero-header {
		height: 40vh;
	}
	
	.hero-content h1 {
		font-size: 1.8rem;
	}
	
	.responsive-nav {
		bottom: 15px;
	}
}

/* ========== 高DPI屏幕优化 ========== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
	.skill-bar {
		height: 6px;
	}

	.timeline-horizontal::before {
		width: 1px;
	}
}

/* ========== 减少动画性能优化 ========== */
@media (max-width: 768px) {
	.avatar:hover {
		transform: none;
	}

	.timeline-card:hover {
		transform: none;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	}

	.skill-progress {
		transition: width 0.8s ease-in-out;
	}
}

/* 定义脉动动画 */
@keyframes pulse {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.05);
	}
}