/* about.css - 关于她页面的样式 */

:root {
    --primary-color: #ff69b4;
    --secondary-color: #ff8da1;
    --accent-color: #ffd1dc;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-time: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.bg-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.bg-fixed {
    background-image: url('../img/about_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.5s ease-out;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(192, 192, 192, 0.35);
    z-index: -1;
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 1.5rem;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all var(--transition-time) ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-time) ease;
}

nav a:hover {
    color: var(--accent-color);
}

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

header {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

header h1 {
    font-family: 'Dancing Script', 'Microsoft YaHei', sans-serif;
    font-size: 4em;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1.2s;
}

header h2 {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.5em;
    color: white;
    letter-spacing: 2px;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    margin-top: 3rem;
    color: #6c757d;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* MBTI 卡片样式 */
.mbti-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 50px auto;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbti-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mbti-card__content {
    padding: 40px;
    font-size: 18px;
    line-height: 1.8;
    width: calc(100% - 320px);
    position: relative;
    overflow: hidden;
}

.mbti-card__content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.mbti-card__content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.mbti-trait {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 240, 245, 0.5);
}

.mbti-trait:hover {
    background-color: rgba(255, 182, 193, 0.2);
    transform: translateX(5px);
}

.mbti-trait strong {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 10px;
}

.mbti-trait p {
    margin: 5px 0 0 25px;
    font-size: 16px;
    color: var(--text-color);
}

.mbti-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 5px;
}

.mbti-card img {
    width: 320px;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mbti-card:hover img {
    transform: scale(1.05);
}

/* 个人描述卡片样式 */
.personal-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 50px auto;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.personal-card__content {
    padding: 40px;
    font-size: 18px;
    line-height: 1.8;
    width: calc(100% - 320px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.personal-card__content p {
    color: #343a40;
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-family: 'Noto Serif SC', serif;
    text-align: justify;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    transition: transform 0.3s ease;
}

.personal-card__content p:hover {
    transform: translateX(5px);
}

.personal-card__content p::before {
    content: '❀';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0.7;
}

.personal-card img {
    width: 320px;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.personal-card:hover img {
    transform: scale(1.05);
}

/* 时间轴样式 */
.timeline-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    position: relative;
    padding: 20px 0;
}

.timeline-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    line-height: 1.6;
    margin-bottom: 0;
}

.timeline-date {
    color: #fff;
    background-color: var(--primary-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    position: absolute;
    top: -15px;
    right: 20px;
}

/* 舞蹈技能展示部分 */
.skills-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 20px;
    text-align: center;
}

.skills-section h2 {
    font-size: 2.5em;
    color: #00000076; /* 修改为粉色 */;
        margin-bottom: 40px;
    font-family: 'Dancing Script', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.skills-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: rotate(360deg);
}

.skill-card h3 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover h3::after {
    transform: scaleX(1);
}

.skill-card p {
    color: var(--light-text);
    line-height: 1.6;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.skill-card:hover p {
    color: var(--text-color);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    nav ul {
        /* flex-direction: column; */
        align-items: center;
    }
    nav a{
        margin: 0 10px;
        color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all var(--transition-time) ease;
    }
    nav li {
        margin: 0.5rem 0;
    }

    header h1 {
        font-size: 2.5em;
    }

    header h2 {
        font-size: 1.2em;
        padding: 0 1rem;
    }

    .mbti-card,
    .personal-card {
        flex-direction: column;
    }

    .mbti-card__content,
    .personal-card__content {
        width: 100%;
        padding: 20px;
    }

    .mbti-card img,
    .personal-card img {
        width: 100%;
        max-width: 100%;
        height: 300px;
        object-fit: contain;
        border-radius: 10px;
        margin: 15px 0;
    }
}

.mbti-trait {
    margin-bottom: 10px;
    padding: 8px 12px;
}

.mbti-trait p {
    margin: 5px 0 0 15px;
    font-size: 14px;
}

.skills-container {
    flex-direction: column;
}

.skill-card {
    max-width: 100%;
    margin-bottom: 20px;
}

.container {
    padding: 30px 15px;
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 修改技能卡片容器样式 */
.skills-container {
    display: flex;
    flex-direction: row; /* 强制横向排列 */
    flex-wrap: nowrap; /* 禁止换行 */
    justify-content: space-between;
    gap: 30px;
    overflow-x: auto; /* 添加横向滚动条以防溢出 */
    padding-bottom: 20px; /* 为滚动条留出空间 */
}


/* 修改单个卡片样式 */
.skill-card {
    flex: 0 0 calc(33.33% - 20px); /* 固定宽度 */
    min-width: 300px; /* 最小宽度保证可读性 */
    margin: 0; /* 移除外边距 */
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.skill-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.skill-card:hover .skill-card__image {
    transform: scale(1.05);
}

.skill-card__content {
    padding: 25px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), white);
}

.skill-card__title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Dancing Script', cursive;
    text-align: center;
}

.skill-card__description {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

.skill-card__level {
    margin-top: 15px;
}

.skill-level {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-level__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-level__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: var(--light-text);
}

/* 移动端适配调整 */
@media screen and (max-width: 992px) {
    .skill-card {
        flex: 0 0 calc(50% - 15px); /* 中屏幕显示2个 */
    }
}

@media screen and (max-width: 768px) {
    .skills-container {
        flex-wrap: nowrap; /* 保持横向滚动 */
    }
    .skill-card {
        flex: 0 0 85%; /* 移动端卡片宽度 */
        min-width: 280px;
    }
}
