/* ===== 滚动淡入动画样式 ===== */

/* 初始状态：隐藏 */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 进入视口后的状态：显示 */
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 不同的动画时长 */
.fade-in-scroll.fast {
    transition-duration: 0.4s;
}

.fade-in-scroll.slow {
    transition-duration: 0.8s;
}

/* 延迟动画 */
.fade-in-scroll.delay-1 { transition-delay: 0.1s; }
.fade-in-scroll.delay-2 { transition-delay: 0.2s; }
.fade-in-scroll.delay-3 { transition-delay: 0.3s; }
.fade-in-scroll.delay-4 { transition-delay: 0.4s; }

/* ===== 元素入场动画 ===== */

/* 从左侧滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 从右侧滑入 */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放入场 */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== 底部渐显（适合大区块） ===== */
.fade-in-from-bottom {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-from-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 视口触发器（用于调试） ===== */
.viewport-trigger {
    /* 透明元素，用于触发动画 */
    opacity: 0;
    height: 1px;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: #333;
	font-size: 16px;
}

/* 设置版心 */
.banner {
	width: 80%;
	margin: auto;
}

li {
	/* 隐藏li标签圆点 */
	list-style: none;
}

a {
	text-decoration: none;
	transition: color 0.3s;
}

/* ===== 头部样式 ===== */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	box-shadow: 0 4px 6px rgba(255, 179, 255, 0.5);
	padding: 10px 0 10px 0;
	background-color: #FFFFFF;
	z-index: 999;
}

header .banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .left h1 {
	font-size: 25px;
	line-height: 60px;
	color: #FF85A2;
}

header .right ul {
	display: flex;
	justify-content: space-between;
	gap: 5px;
	height: 60px;
}

header .right li a {
	display: block;
	text-align: center;
	width: 80px;
	height: 40px;
	padding: 5px;
	border-radius: 10px;
	margin-top: 10px;
	transition: all 0.3s;
}

header .right li .active {
	background-color: rgba(225, 66, 220, 0.1);
	color: #ff85a2;
}

header .right li a:hover {
	background-color: rgba(225, 66, 220, 0.1);
	color: #ff85a2;
}

header .right li .login {
	color: #ff85a2;
}

/* ===== 主要内容 ===== */
main {
	margin-top: 80px;
	width: 100%;
	padding: 50px 0 50px 0;
}





/* ===== 旗舰版 Footer 布局与响应式 ===== */
footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 133, 162, 0.15);
    padding: 50px 0 30px;
    margin-top: 80px;
}

footer .footer-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section h3 {
    font-size: 18px;
    color: #ff85a2;
    margin-bottom: 25px;
    font-weight: 700;
}


.footer-bottom {
    width: 80%;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 133, 162, 0.1);
    padding-top: 25px;
    text-align: center !important;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    text-align: center !important;
}

.footer-bottom .heart-icon {
    color: #ff4757;
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 响应式断点 */

}


    .footer-section {
        align-items: center;
    }
    .footer-links a {
        justify-content: center;
    }
}
/* ===== 信息头像区域 ===== */
.me-info .my-logo {
	width: 150px;
	height: 150px;
	margin: auto;
	border: #FFFFFF solid 5px;
	border-radius: 50%;
	box-shadow: 1px 2px 15px #ff85a2;
	animation: logo 2.5s infinite linear;
}

@keyframes logo {
	0%, 100% {
		transform: translateY(0);
	}
	25% {
		transform: translateY(-15px);
	}
	75% {
		transform: translateY(15px);
	}
}

.my-logo img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
}

/* ===== 博主联系方式 ===== */
.hero-social {
	display: flex;
	justify-content: space-evenly;
	width: 300px;
	margin: 10px auto;
}

.hero-social .icon {
	display: block;
	font-size: 25px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	text-align: center;
	padding-top: 5px;
	transition: all 0.3s;
}

.hero-social .icon:hover {
	background-color: #ff85a2;
	color: #FFFFFF;
}

/* ===== 分割线 ===== */
.line {
	width: 100%;
	height: 1px;
	border: 2px dashed #FFE0E9;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #ff85a2;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #ff6a8e;
}

/* ===== 选中文本颜色 ===== */
::selection {
	background: #ff85a2;
	color: #fff;
}

/* ===== 响应式头部 ===== */

	
	header .left h1 {
		font-size: 20px;
		line-height: 50px;
	}
	
	header .right li a {
		width: 60px;
		height: 35px;
		font-size: 14px;
	}
	
	main {
		margin-top: 70px;
		padding: 30px 0;
	}
}


	
	header .left h1 {
		font-size: 18px;
	}
	
	header .right ul {
		gap: 2px;
	}
	
	header .right li a {
		width: 50px;
		height: 32px;
		font-size: 12px;
	}
}


/* 回到顶部按钮 */
		.back-to-top {
			position: fixed;
			right: 30px;
			bottom: 50px;
			width: 50px;
			height: 50px;
			background: #ff85a2;
			color: #fff;
			border: none;
			border-radius: 50%;
			font-size: 20px;
			cursor: pointer;
			opacity: 0;
			visibility: hidden;
			transition: all 0.3s;
			box-shadow: 0 4px 15px rgba(255, 133, 162, 0.3);
			z-index: 1000;
		}
		
		.back-to-top .icon{
			color: #FFFFFF;
			font-size: 20px;
		}
		
		.back-to-top.show {
			opacity: 1;
			visibility: visible;
		}
		
		.back-to-top:hover {
			background: #ff6a8e;
			transform: translateY(-5px) scale(1.1);
		}
    left: 100%;
}
/* ===== 第三阶段V2：头像相框 + 四角光晕 + 樱花效果 ===== */

/* 头像相框 */
.my-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 0 6px rgba(255, 182, 193, 0.3),
        0 8px 32px rgba(255, 133, 162, 0.2);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.my-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== 卡片四角光晕 ===== */
.card-glow-corners {
    position: relative;
    overflow: hidden;
}

.card-glow-corners::before,
.card-glow-corners::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.card-glow-corners::before {
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.4) 0%, transparent 70%);
    animation: corner-pulse-left 4s ease-in-out infinite;
}

.card-glow-corners::after {
    bottom: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(255, 133, 162, 0.4) 0%, transparent 70%);
    animation: corner-pulse-right 4s ease-in-out infinite 1s;
}

@keyframes corner-pulse-left {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes corner-pulse-right {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ===== 樱花飘落效果 ===== */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sakura-petal {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 192, 203, 0.9) 0%, rgba(255, 182, 193, 0.6) 50%, transparent 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    animation: sakura-fall linear infinite;
}

@keyframes sakura-fall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg) rotateX(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(25vh) translateX(30px) rotate(90deg) rotateX(180deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(-20px) rotate(180deg) rotateX(360deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(75vh) translateX(40px) rotate(270deg) rotateX(540deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(110vh) translateX(-10px) rotate(360deg) rotateX(720deg);
        opacity: 0;
    }
}

/* ===== Bilibili 粉丝信息 ===== */
.bilibili-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.bilibili-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6a8e;
}

.bilibili-info .info-item .icon {
    font-size: 24px;
}

.bilibili-info .info-item .count {
    font-size: 20px;
    font-weight: 600;
}

.bilibili-info .info-item .label {
    font-size: 12px;
    color: #999;
}

/* ===== 简洁背景 + 玻璃拟态卡片 ===== */
body {
    background: linear-gradient(180deg, #fff5f8 0%, #ffffff 30%, #faf4ff 70%, #fff5f8 100%);
    min-height: 100vh;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 133, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.bg-decoration .center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 240, 245, 0.5) 0%, transparent 60%);
    border-radius: 50%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 32px rgba(255, 133, 162, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 
        0 12px 40px rgba(255, 133, 162, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transform: translateY(-5px);
}

.article-card-glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 20px rgba(255, 133, 162, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card-glass:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 
        0 8px 32px rgba(255, 133, 162, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transform: translateY(-8px);
}

header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.skeleton-card-glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}


/* ===== 响应式深度美化 (念安专用) ===== */

/* 通用布局锁定 */
.banner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头像尺寸全平台锁定 - 拒绝自由发挥 */
.my-logo, .about-avatar {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 8px 25px rgba(255, 133, 162, 0.3) !important;
    overflow: hidden !important;
    margin: 0 auto 15px !important;
}

/* 适配 1024px 平板 */
@media (max-width: 1024px) {
    footer .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }
}

/* 适配 768px 手机横屏 */
@media (max-width: 768px) {
    header { height: 60px !important; }
    header .left h1 { font-size: 18px !important; }
    main { margin-top: 60px !important; padding: 20px 0 !important; }
    
    footer .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    .footer-section { align-items: center !important; }
    .footer-links a { justify-content: center !important; }
    .footer-social { justify-content: center !important; }
    
    /* 缩小头像 */
    .my-logo, .about-avatar {
        width: 100px !important;
        height: 100px !important;
    }
}

/* 适配 480px 极小屏幕手机 */
@media (max-width: 480px) {
    header .left h1 { display: none !important; }
    header .banner { justify-content: space-between !important; }
    
    .info-title h1 { font-size: 22px !important; }
    .info-title h4 { font-size: 18px !important; }
    
    /* 友链和社交按钮在手机上稍微缩小一点，更精致 */
    .footer-social a { width: 38px !important; height: 38px !important; font-size: 18px !important; }
    .run-time-box { padding: 10px !important; font-size: 12px !important; }
}
