body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 第一栏和第二栏的渐变背景 */
.top-section {
    background: linear-gradient(to right, red, blue);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

/* 用户信息栏 */
.user-info {
    width: 100%;
    max-width: 1200px;
    height: 60px;
    line-height: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.user-info a {
    color: yellow;
    font-weight: bold;
    text-decoration: none;
}

.user-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}

/* 家乡话展厅标题 */
.top-section h1 {
    color: white;
    font-size: 28px;
    margin: 10px 0;
}

/* 第三栏及之后的渐变背景 */
.work-section {
    background: linear-gradient(to bottom, lightblue ,white);
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

/* 卡片样式 */
.work-card {
text-align: center;
    width: 95%;
    white-space: pre-line; /* 允许换行 */
    max-width: 800px;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 10px; /* 减小内边距 */
    box-sizing: border-box;
    margin: 10px auto; /* 调整上下外边距 */
    border: 1px;
    background-color: #fff;
    overflow: hidden; /* 触发 BFC 避免外边距合并 */
}

/* 作品标题 */
.work-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px; 
    color: #333;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* 音频封面图 */
.work-cover img {
    width: 300px;
    height: auto;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 音频播放器 */
.audio-player audio {
    width: 100%;
}

/* 播放、点赞等信息 */
.interaction-info {
    display: flex;
    justify-content: space-around;
    margin-top: 10px; /* 调整互动信息栏的顶部外边距 */
}

.audio-container {
    position: relative;
    margin-top: 0; /* 确保没有顶部外边距 */
    margin-bottom: 0; /* 确保没有底部外边距 */
}

#subtitle-display {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    font-size: 20px;
}

.interaction-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
}
.interaction-button {
    display: inline-block;
    padding: 5px 5px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.home-button {
    display: block;
    width: 30%;
    background-color: green;
    color: white;
    text-align: center;
    padding: 15px 0;
    text-decoration: none;
    font-weight: bold;
    margin: 0 auto; /* 使元素水平居中 */
    margin-top: 20px; /* 顶部外边距 */
    margin-bottom: 20px; /* 底部外边距 */
}

.comment-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ffa07a);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 20px;
    text-align: center;
    cursor: pointer;
}
.comment-button.hover {
    transform: scale(1.1);
}