/* 字体优化与特效 CSS */

/* 导入更现代的字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 全局字体优化 */
body, input, select, textarea {
    font-family: 'Poppins', 'Noto Sans SC', "Source Sans Pro", sans-serif;
    letter-spacing: 0.02em;
    font-weight: 300;
}

/* 标题字体优化 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: text-shadow 0.3s ease;
}

/* 标题悬停效果 */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
}

/* 主标题特效 */
#header .content .inner h1 {
    background: linear-gradient(45deg, #ffffff, #9db5e6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
    position: relative;
    display: inline-block;
    animation: titlePulse 3s infinite alternate;
}

/* 一言文本特效 */
#hitokoto {
    font-style: italic;
    transition: all 0.5s ease;
    position: relative;
    padding: 0.5rem 0;
}

#hitokoto:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
    transform: translateX(-50%);
}

#hitokoto:hover:after {
    width: 80%;
}

/* 链接特效 */
a {
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

nav a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: width 0.4s ease;
}

nav a:hover:before {
    width: 100%;
}

/* 技能标签特效 */
.skill-tag {
    transition: all 0.3s ease;
    transform-origin: center;
}

.skill-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* 动画定义 */
@keyframes titlePulse {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px rgba(157, 181, 230, 0.3);
    }
}

/* 文本段落优化 */
p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 表单元素优化 */
input, textarea, select {
    font-weight: 400;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}