/* 容器样式 */
.custom-message-container {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* 留言框样式 */
.custom-message-box {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

/* 输入框和按钮的容器 */
.custom-input-group {
    display: flex;
    justify-content: space-between;
}

/* 邮箱输入框样式 */a
.custom-email-input {
    width: 70%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

/* 提交按钮样式 */
.custom-submit-button {
    width: 25%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.custom-submit-button:hover {
    background-color: #0056b3;
}

/* 验证码弹窗样式 */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.captcha-modal-content {
    background-color: white;
    position: absolute;
    top: 38%;
    left: 38%;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.captcha-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.captcha-verify-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.captcha-verify-btn:hover {
    background-color: #0056b3;
}

/* 姓名输入框样式 */
.custom-name-input {
    width: 25%; /* 姓名输入框占宽度的25% */
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

/* 输入框和按钮的容器 */
.custom-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 确保垂直居中对齐 */
}

/* 调整邮箱输入框宽度，适应姓名输入框 */
.custom-email-input {
    width: 50%; /* 邮箱输入框占宽度的50% */
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

/* 提交按钮样式 */
.custom-submit-button {
    width: 20%; /* 提交按钮宽度调整为20% */
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.custom-submit-button:hover {
    background-color: #0056b3;
}


@media (max-width: 600px) {
    .captcha-modal-content {
        width: 90%;
        left: 5%;
        max-width: none;
    }
}

/* 定义留言容器的基本样式 */
#comments-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

/* 定义留言列表的基本样式 */
#comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 定义每个留言项的基本样式 */
.message-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
}

/* 左侧部分（头像、邮箱、时间） */
.message-item .message-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 20px;
}

.message-item .message-left img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.message-item .message-left p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.message-item .message-left p.time {
    color: #999;
    font-size: 12px;
}

/* 右侧部分（留言内容） */
.message-item .message-right {
    flex: 1;
}

.message-item .message-right p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.message-item .message-right p strong {
    color: #333;
    font-weight: bold;
}

/* 分割线样式 */
.message-item hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* 定义分页栏的基本样式 */
.pagination-bar {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pagination-bar li {
    margin: 0 5px;
}

.pagination-bar li a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border: none;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.pagination-bar li a:hover {
    background-color: #ddd;
}

.pagination-bar .active a {
    background-color: #007bff;
    color: #fff;
}
