/* 卡片样式 */
.content {
    width: 43%;
    background-color: white;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 20px;
    transition: transform 0.3s ease;
    font-family: "经典隶变简", sans-serif;
    margin: 0 auto;
}

/* 照片样式 */
.selfie {
    display: block;
    margin: 0 auto;
    width: 45%;
    height: auto;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
.content h1 {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    color: #5d5d5d;
}
.content h5 {
    margin-bottom: 20px;
    text-align: center;
    color: #5d5d5d;
}

/* 日期样式 */
.p date {
    font-size: 0.9em;
    color: gray;
    text-align: center;
    font-family: "经典隶变简", sans-serif;
}

/* 正文样式 */
.content p {
    font-size: 18px;
    line-height: 2;
    color: #919191;
    margin: 0;
    text-align: left;
}

/* 动画效果 */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-effect {
  animation: fade-in 1s ease-out;
}

/* 手机端的响应式优化 */
@media (max-width: 768px) {
    .content {
        width: 90%; /* 使卡片在手机屏幕上更宽，接近全屏 */
        padding: 15px; /* 减少内边距，优化空间利用 */
    }

    .selfie {
        width: 99%; /* 调整照片宽度以适应小屏幕 */
    }

    .content h1 {
        font-size: 20px; /* 减小标题字体，避免在小屏幕上显得过大 */
        margin-bottom: 15px; /* 减少标题与内容之间的距离 */
    }

    .content h5 {
        font-size: 16px; /* 减小副标题的字体 */
        margin-bottom: 15px; /* 减少副标题的间距 */
    }

    .content p {
        font-size: 16px; /* 调整正文的字体大小，以适应手机端 */
        line-height: 1.8; /* 减少行间距，保持可读性 */
    }
}
