* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: backgroundShift 20s ease infinite alternate;
}

.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* 降低背景暗度 */
    z-index: -1;
}

.profile-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-title {
    color: #fff;
    font-size: 48px;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out;
}

.subtitle {
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out 0.2s both;
}

/* 卡片网格布局 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.card {
    background: linear-gradient(to bottom right, #f5e9d0, #e8d7b5, #f5e9d0); /* 卷轴风格的米色渐变 */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    animation: slideInUp 0.6s forwards;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 添加卷轴纹理效果 */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23d9c7a7" stroke-width="0.5" stroke-dasharray="1,1" /></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.image-card {
    animation-delay: 0.3s;
}

.info-card {
    animation-delay: 0.4s;
}

.demo-card {
    animation-delay: 0.5s;
    grid-column: span 2; /* 让演示卡片占据两列 */
}

.story-card {
    animation-delay: 0.6s;
}

.skills-card {
    animation-delay: 0.7s;
}

.card-title {
    background: #8b6b43; /* 更改为卷轴风格的棕色调 */
    color: #fff;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInUp 0.5s forwards 0.1s;
}

/* 立绘卡片样式 */
.image-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInUp 0.5s forwards 0.3s;
}

.profile-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
}

/* 角色演示卡片样式 */
.demo-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInUp 0.5s forwards 0.3s;
}

.player-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 基本信息卡片样式 */
.info-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInUp 0.5s forwards 0.3s;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    animation: slideInUp 0.5s forwards;
}

.info-item:nth-child(1) {
    animation-delay: 0.4s;
}

.info-item:nth-child(2) {
    animation-delay: 0.5s;
}

.info-item:nth-child(3) {
    animation-delay: 0.6s;
}

.info-item:nth-child(4) {
    animation-delay: 0.7s;
}

.info-item:nth-child(5) {
    animation-delay: 0.8s;
}

.info-label {
    font-size: 14px;
    color: #6d5c3d; /* 更深的棕色 */
    font-weight: 500;
}

.info-value {
    font-size: 18px;
    color: #3a2e1f; /* 深棕色 */
    font-weight: bold;
}

/* 角色介绍卡片样式 */
.story-content {
    padding: 20px;
    color: #3a2e1f; /* 深棕色 */
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInUp 0.5s forwards 0.3s;
}

.story-content p {
    margin-bottom: 15px;
    opacity: 0;
    animation: slideInUp 0.5s forwards;
}

.story-content p:nth-child(1) {
    animation-delay: 0.4s;
}

.story-content p:nth-child(2) {
    animation-delay: 0.6s;
}

.story-content p:nth-child(3) {
    animation-delay: 0.8s;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* 技能卡片样式 */
.skills-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInUp 0.5s forwards 0.3s;
}

.skill {
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
    border-left: 4px solid #8b6b43; /* 匹配卡片标题颜色 */
    opacity: 0;
    animation: slideInUp 0.5s forwards;
}

.skill:nth-child(1) {
    animation-delay: 0.4s;
}

.skill:nth-child(2) {
    animation-delay: 0.6s;
}

.skill:nth-child(3) {
    animation-delay: 0.8s;
}

.skill-name {
    font-size: 18px;
    font-weight: bold;
    color: #3a2e1f; /* 深棕色 */
    margin-bottom: 5px;
}

.skill-description {
    font-size: 14px;
    color: #5d4b33; /* 中棕色 */
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .demo-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .card-title {
        font-size: 18px;
        padding: 12px 15px;
    }
    
    .info-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-card {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 20px 15px;
    }
    
    .profile-container {
        gap: 20px;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .card-title {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .story-content,
    .skills-container,
    .image-container,
    .demo-container {
        padding: 15px;
    }
    
    .skill {
        padding: 12px;
    }
    
    .skill-name {
        font-size: 16px;
    }
    
    .demo-card {
        grid-column: span 1;
    }
}

/* 动画 */
@keyframes backgroundShift {
    0% {
        background-position: center;
    }

    100% {
        background-position: bottom right;
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 在CSS文件中添加以下样式 */

/* 标题容器样式 */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
    animation: fadeIn 1s ease-out;
}

/* Logo样式 */
.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation: fadeIn 1s ease-out 0.1s both;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 36px;
    }
}
