* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease; /* 全局过渡效果 */
}

@font-face {
  font-family: 'Pacifico';
  src: url('./fonts/Pacifico-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('./fonts/Ubuntu-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* 字体定义 */
:root {
    --chinese-font: 'Ubuntu' , "仿宋" ， "华文仿宋" , serif;
    --english-font: 'Ubuntu', sans-serif;
    --title-font: 'Pacifico', cursive;
}


body {
    min-height: 100vh;
    padding: 20px;
    /* 背景图片 */
    backdrop-filter: blur(1px);
    background: url('https://dreamgary.xyz/images/1.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: #333;
    font-family: var(--chinese-font);
    font-weight: bold;
}

/* 设置英文文本的字体 */
.english-text {
    font-family: var(--english-font);
    font-weight: 400;
}

/* 背景遮罩层 */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 顶部大标题 - 左对齐 */
.header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 40px;
    color: white;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--title-font);
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1.2;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.header:hover h1 {
    transform: translateX(5px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.header p {
    font-size: 1.5rem;
    opacity: 0.9;
    font-family: var(--english-font);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header:hover p {
    transform: translateX(5px);
    opacity: 1;
}

/* 主体内容 */
.main-content {
    display: flex;
    gap: 25px;
}

/* 左侧个人介绍 */
.left-column {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 右侧内容 */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 卡片通用样式 */
.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    padding: 30px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

/* 卡片悬停效果 */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-family: var(--chinese-font);
    transition: transform 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover h2 {
    transform: translateX(5px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.card h3 {
    font-size: 1.4rem;
    margin: 15px 0 10px;
    font-family: var(--chinese-font);
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover h3 {
    transform: translateX(3px);
    color: rgba(255, 255, 255, 0.9);
}

.card p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover p {
    transform: translateX(2px);
    color: rgba(255, 255, 255, 0.9);
}

/* 个人资料卡片 - 左对齐 */
.profile-card {
    text-align: left;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 0 20px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.profile-img:hover img {
    transform: scale(1.1);
}

.profile-card h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-family: var(--chinese-font);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.profile-card:hover h1 {
    transform: translateX(5px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.profile-card .title {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.profile-card:hover .title {
    transform: translateX(3px);
    opacity: 1;
}

/* 歌词显示区域 - 添加自动换行效果 */
.lyrics-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-height: 80px;
    transition: background 0.3s ease, transform 0.3s ease;
    /* 确保容器有足够空间容纳换行文本 */
    overflow: visible;
}

.lyrics-container:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.lyrics-display {
    font-family: var(--english-font);
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    /* 允许文本自动换行 */
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    animation: blink 0.7s step-end infinite;
}

/* 在原有CSS基础上添加以下样式 */
.character-item {
    /* 确保链接样式的字符项保持原有样式 */
    text-decoration: none;
    color: inherit;
}

a.character-item:hover {
    /* 链接悬停效果 */
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 链接列表 */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.link-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-item:hover i {
    transform: scale(1.2);
    color: #ffd700;
}

/* 标签列表 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.tag:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 联系信息 */
.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-list li:hover {
    transform: translateX(5px);
}

.contact-list i {
    width: 30px;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-list li:hover i {
    transform: scale(1.2);
    color: #ffd700;
}

.contact-list span {
    transition: color 0.3s ease;
}

.contact-list li:hover span {
    color: rgba(255, 255, 255, 0.95);
}

/* 游戏图标样式 */
.game-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.game-icon:hover {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.game-icon:hover i {
    transform: rotate(-5deg);
    color: #ffd700;
}

/* 角色列表 */
.character-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.character-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.character-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.character-item i {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.character-item:hover i {
    transform: scale(1.2);
    color: #ffd700;
}

/* 歌曲列表 */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.song-item {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.song-item:hover {
    transform: translateX(5px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.song-item i {
    font-size: 1.2rem;
    color: #ff6b6b;
    transition: transform 0.3s ease, color 0.3s ease;
}

.song-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #ff4757;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-column {
        flex: 1;
    }
    
    .header h1 {
        font-size: 3.2rem;
    }
    
    .header p {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .game-icons {
        justify-content: center;
    }
    
    .character-list {
        justify-content: center;
    }
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}