body {
    background: #f5f5f5;
    min-height: 100vh;
    margin: 0px;
    padding: 5px;
    display: flex;
    overflow: auto;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background-color: #333;
    color: #fff;
}

.navbar .container-fluid {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-collapse {
    justify-content: flex-end;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.circle-img {
    border-radius: 50%;
    margin-top: 70px;
    border: 5px solid #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    max-height: 350px;
}

.tribute-button {
    position: relative;
    border: none;
    background: none;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 10px;
}

.tribute-button:hover {
    transform: translateY(-2px);
}

.tribute-button.selected {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.tribute-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height:calc(100% + 10px);
    border: 3px solid transparent;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s, border-color 0.2s;
}

.tribute-button.selected::after {
    opacity: 1;
    border-color: #333;
}

.tribute-button img {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.2s;
}

.tribute-button.selected img {
    opacity: 1;
    transform: scale(1.05);
}

.tribute-button .text-center {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    transition: color 0.2s;
}

.tribute-button.selected .text-center {
    color: #333;
}

.card {
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 50px;
}

.card-title {
    color: #555;
}

.card-text {
    color: #777;
}

.pagination {
    justify-content: center;
}

.page-link {
    color: #333;
}

.page-item.active .page-link {
    background-color: #333;
    border-color: #333;
}

.btn-primary {
    background-color: #333;
    border-color: #333;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #555;
    border-color: #555;
}

.description-toggle {
    margin: 10px 0;
    color: #333;
    cursor: pointer;
}

.description-container {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    max-height: 300px;
 text-align: left;
    text-indent: 2em;
}

.description-container.expanded {
    max-height: 2000px;
}

.message-card {
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.message-card .header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.message-card .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.message-card .username {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.message-card .time {
    font-size: 0.9em;
    color: #777;
    margin-left: auto;
}

.message-card .content {
    line-height: 1.6;
    color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .container {
    max-width: 100%;
    margin: 0 auto;
}
  /* 新增媒体查询 */
        @media (min-width: 768px) {
           .tribute-button {
                width: calc(16.66% - 20px); /* 电脑上一行显示9个，减去左右margin */
            }
        }
        @media (max-width: 767px) {
           .tribute-button {
                width: calc(33.33% - 20px); /* 手机上一行显示3个，减去左右margin */
            }
        }