/* 基本样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.container {
    margin-top: 20px;
}

/* 表单样式 */
form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-group label {
    color: #666;
}

.form-control, .form-control-file {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004080;
}

#loadMoreButton {
    margin-top: 20px;
}

/* 图片墙样式 */
#imageWall {
    margin-top: 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9; /* 確保圖片比例一致 */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container:hover {
    transform: scale(1.03);
}

.image-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 留言计数徽章 */
.badge {
    font-size: 14px;
}

/* 评论区域样式 */
#commentsContainer {
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.comment {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    color: #000;
    background-color: #f4f4f9;
}

/* 留言颜色样式 */
.comment-color-0 {
    background-color: #ffebeb;
}

.comment-color-1 {
    background-color: #ebf5ff;
}

.comment-color-2 {
    background-color: #ebffeb;
}

.comment-color-3 {
    background-color: #ffffeb;
}

.comment-color-4 {
    background-color: #f5ebff;
}

/* 分享按钮样式 */
.btn-facebook {
    background-color: #3b5998;
    color: white;
}

.btn-twitter {
    background-color: #1da1f2;
    color: white;
}

.btn-weibo {
    background-color: #e6162d;
    color: white;
}

/* 表格样式 */
.table {
    width: 100%;
    margin-bottom: 20px;
}

.table th, .table td {
    text-align: center;
    vertical-align: middle;
}

.table img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .form-group label, .form-control {
        font-size: 14px;
    }

    .btn-primary, .btn-warning, .btn-danger, .btn-secondary {
        width: 100%;
        margin-top: 10px;
    }

    .table-responsive {
        border: 0;
    }

    .table thead {
        display: none;
    }

    .table tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
        background-color: #fff;
    }

    .table td {
        display: block;
        text-align: right;
        font-size: 14px;
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        text-align: left;
        font-weight: bold;
    }

    .table img {
        max-width: 50px;
    }
}
