/* 中心容器样式 */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin-top: auto;
    position: relative;
}

/* 照片样式 */
.selfie {
    width: 45%;
    height: auto;
    border-radius: 3px;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .selfie {
        width: 98%; /* 手机端调整图片宽度 */
    }
}

/* 卡片容器 */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin: 3px 0;
}

@media (max-width: 768px) {
    .card-container {
        gap: 10px; /* 调整卡片间距 */
    }
}

/* 卡片样式 */
.card {
    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;
    height: 200px;
    font-family: "经典隶变简", sans-serif;
    position: relative;
}

@media (max-width: 768px) {
    .card {
        width: 90%; /* 小屏幕下卡片占更大宽度 */
        padding: 10px; /* 缩小内边距 */
        height: auto; /* 自动高度调整 */
    }
}

/* 链接样式 */
.card a {
    text-decoration: none;
    color: inherit;
}

.card a:hover {
    text-decoration: none;
}

/* 标题样式 */
.card h2 {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
    color: #5d5d5d;
}

@media (max-width: 768px) {
    .card h2 {
        font-size: 20px; /* 手机端标题字体大小调整 */
        text-align: center; /* 在手机端居中标题 */
    }
}

/* 日期样式 */
.date {
    font-size: 0.9em;
    color: gray;
    bottom: 10px;
    left: 20px;
}

@media (max-width: 768px) {
    .date {
        font-size: 0.8em;
        left: 10px;
    }
}

/* 正文样式 */
.card p {
    font-size: 16px;
    color: #919191;
    text-align: left;
}

@media (max-width: 768px) {
    .card p {
        font-size: 14px;
        text-align: left; /* 移动端左侧显示本 */
    }
}

/* 加载更多按钮容器 */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* 加载更多按钮样式 */
.load-more-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ececec;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "经典隶变简", sans-serif;
}

.load-more-btn:hover {
    background-color: #a1a1a1;
}

@media (max-width: 768px) {
    .load-more-btn {
        width: 90%;
        padding: 12px;
    }
}

/* 淡入动画 */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-effect {
  animation: fade-in 1s ease-out;
}

/* 谚语样式 */
.proverb {
    position: absolute;
    bottom: -20px;
    max-width: 40%;
    color: white;
    font-size: 1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.11);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .proverb {
        font-size: 1em; /* 文字大小调整 */
        max-width: 80%; /* 手机端宽度增加 */
    }
}

/* flash信息提醒 */
.flashes {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    z-index: 1000;
}

.flashes li {
    list-style: none;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin-bottom: 5px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

@media (max-width: 768px) {
    .flashes {
        width: 90%;
        top: 10px; /* 提高在手机端的位置 */
    }
}
