/* 基础卡片样式 - 保持兼容性 */
.card {
    transition: none;
}

/* 仅对特定页面应用新卡片样式 */
.messages-page .card {
    width: 190px;
    height: 254px;
    border-radius: 20px;
    background: #f5f5f5;
    position: relative;
    padding: 1.8rem;
    border: 2px solid #c3c6ce;
    transition: 0.5s ease-out;
    overflow: visible;
}

.entry-page .card {
    width: 190px;
    height: 254px;
    border-radius: 20px;
    background: #f5f5f5;
    position: relative;
    padding: 1.8rem;
    border: 2px solid #c3c6ce;
    transition: 0.5s ease-out;
    overflow: visible;
}

.topic-page .card {
    width: 190px;
    height: 254px;
    border-radius: 20px;
    background: #f5f5f5;
    position: relative;
    padding: 1.8rem;
    border: 2px solid #c3c6ce;
    transition: 0.5s ease-out;
    overflow: visible;
}

/* 仅对特定页面应用新卡片详情样式 */
.messages-page .card-details {
    color: black;
    height: 100%;
    gap: .5em;
    display: grid;
    place-content: center;
}

.entry-page .card-details {
    color: black;
    height: 100%;
    gap: .5em;
    display: grid;
    place-content: center;
}

.topic-page .card-details {
    color: black;
    height: 100%;
    gap: .5em;
    display: grid;
    place-content: center;
}

/* 仅对特定页面应用新卡片按钮样式 */
.messages-page .card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 1rem;
    border: none;
    background-color: #008bf8;
    color: #fff;
    font-size: 1rem;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
}

.entry-page .card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 1rem;
    border: none;
    background-color: #008bf8;
    color: #fff;
    font-size: 1rem;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
}

.topic-page .card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 1rem;
    border: none;
    background-color: #008bf8;
    color: #fff;
    font-size: 1rem;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
}

/* 仅对特定页面应用新文本标题样式 */
.messages-page .text-title {
    font-size: 1.5em;
    font-weight: bold;
}

.entry-page .text-title {
    font-size: 1.5em;
    font-weight: bold;
}

.topic-page .text-title {
    font-size: 1.5em;
    font-weight: bold;
}

/* 仅对特定页面应用新文本内容样式 */
.messages-page .text-body {
    font-size: 1em;
    color: #666;
}

.entry-page .text-body {
    font-size: 1em;
    color: #666;
}

.topic-page .text-body {
    font-size: 1em;
    color: #666;
}

/* 仅对特定页面应用卡片悬停效果 */
.messages-page .card:hover {
    border-color: #008bf8;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    transition: 0.3s ease-out;
}

.entry-page .card:hover {
    border-color: #008bf8;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    transition: 0.3s ease-out;
}

.topic-page .card:hover {
    border-color: #008bf8;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    transition: 0.3s ease-out;
}

/* 仅对特定页面应用卡片按钮悬停效果 */
.messages-page .card:hover .card-button {
    transform: translate(-50%, 50%);
    opacity: 1;
}

.entry-page .card:hover .card-button {
    transform: translate(-50%, 50%);
    opacity: 1;
}

.topic-page .card:hover .card-button {
    transform: translate(-50%, 50%);
    opacity: 1;
}

/* 仅对特定页面应用非悬停状态的过渡效果 */
.messages-page .card:not(:hover) {
    transition: 0.3s ease-out;
}

.entry-page .card:not(:hover) {
    transition: 0.3s ease-out;
}

.topic-page .card:not(:hover) {
    transition: 0.3s ease-out;
}