*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
}

body {
	margin: 0;
	--color-text: #000;
	--color-bg: #fff;
	--color-link: #4b4b4b;
	--color-link-hover: #000;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: ivymode, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.demo-1 {
	--color-text: #ffffff;
    --color-link: #1c4a62;
    --color-link-hover: #fff;
}

.demo-3 {
	--color-text: #3ca5c7;
    --color-link: #d29021;
    --color-link-hover: #b97a0e;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
	text-decoration: underline;
}

.message {
	background: var(--color-text);
	color: var(--color-bg);
	padding: 1rem;
	text-align: center;
}

.frame {
	padding: 3rem 5vw;
	text-align: center;
	position: relative;
	z-index: 1000;
}

.frame__title {
	font-size: 1rem;
	margin: 0 0 1rem;
	font-weight: normal;
}

.frame__links {
	display: inline;
}

.frame__links a:not(:last-child) {
	margin-right: 1rem;
}

.frame__demos a:not(:last-child) {
	margin-right: 2rem;
}

.frame__demos {
	margin: 1rem 0;
}

.frame__demo {
	white-space: nowrap;
}

.frame__demo--current,
.frame__demo--current:hover {
	color: var(--color-text);
}

.content {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: calc(100vh - 13rem);
	position: relative;
	justify-content: flex-start;
	align-items: center;
	cursor: pointer;
}

@media screen and (min-width: 53em) {
	.message {
		display: none;
	}
	.frame {
		position: fixed;
		text-align: left;
		z-index: 100;
		top: 0;
		left: 0;
		display: grid;
		align-content: space-between;
		width: 100%;
		max-width: none;
		height: 100vh;
		padding: 2rem;
		grid-gap: 3rem;
		pointer-events: none;
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-moz-user-select: none; 
		-ms-user-select: none; 
		user-select: none; 
		grid-template-columns: min-content min-content auto 300px;
		grid-template-rows: auto auto auto;
		grid-template-areas: 'title links info ...'
							'... ... ... ...'
							'... ... demos demos';
	}
	.frame__title-wrap {
		grid-area: title;
		display: flex;
	}
	.frame__title {
		margin: 0;
		white-space: nowrap;
	}
	.frame__info {
		 position: absolute;
        top: 10%;           /* 距离图片顶部 10%，可调 */
        left: 50%;
        transform: translateX(-50%);
        color: white;       /* 白色文字，和图片对比更明显 */
        font-size: 1.5rem;  /* 字体大小可调 */
        z-index: 10;        /* 确保覆盖在图片上 */
        pointer-events: none; /* 避免挡住鼠标点击 */
	}
	.frame__demos {
		margin: 0;
		grid-area: demos;
		justify-self: end;
	}
	.frame__links {
		grid-area: links;
		padding: 0;
		white-space: nowrap;
		margin: 0 1rem;
	}
	.frame a {
		pointer-events: auto;
	}
	.content {
		height: 100vh;
		justify-content: center;
	}
}

#slider {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.dg {
	z-index: 100 !important;
}

/* 基础设置 */
.about-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.content-container {
    padding-top: 140px;
    padding-bottom: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    justify-content: flex-start;
    align-items: center;
}

.about-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
}

.about-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-box {
    padding: 20px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-block {
    border-left: 4px solid var(--color-link, #4b4b4b);
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.7);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.contact-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-link, #4b4b4b);
}

.tech-badge {
    display: inline-block;
    background: var(--color-link, #4b4b4b);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0 4px;
}

/* 页脚 */
.page-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255，0.7);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-article {
        padding: 20px;
    }
    
    .skills-container {
        flex-direction: column;
    }
    
    .content-container {
        padding-top: 80px;
    }
}

#about-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/img11.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
}

