/* 全局重置与字体设置 */
:root {
    --primary-font: 'Helvetica Neue', 'Arial', sans-serif;
    --transition-speed: 0.5s;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* 隐藏滚动条，实现全屏卡片切换效果 */
    font-family: var(--primary-font);
    background-color: #f4f4f4;
}

/* 容器和卡片列表 */
.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.card-list {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform var(--transition-speed) ease-in-out;
}

/* 单个传记卡片 */
.bio-card {
    min-width: 100%; /* 保证每个卡片占据100%视口宽度 */
    height: 100%;
    display: flex;
    align-items: center; /* 垂直居中内容 */
    justify-content: center; /* 水平居中内容 */
    padding: 20px;
    box-sizing: border-box;
    color: #333; /* 默认文字颜色 */
}

.card-content {
    max-width: 600px; /* 限制内容宽度，提高阅读舒适度 */
    max-height: 80%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9); /* 内容区使用半透明白色背景 */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* 内容过多时可以滚动 */
}

/* 文本样式 */
.friend-name {
    font-size: 2.5em;
    margin-top: 0;
    border-bottom: 3px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bio-text p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 15px;
}

/* 导航按钮样式 */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    transition: background 0.3s;
    outline: none;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev-button {
    left: 20px;
    border-radius: 0 50% 50% 0;
}

.next-button {
    right: 20px;
    border-radius: 50% 0 0 50%;
}