/* 心情容器样式 */
.mood-container {
    width: 90%;
    max-width: 600px; /* 最大宽度以适应大屏幕 */
    background-color: white;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 20px;
    transition: transform 0.3s ease;
    font-family: "经典隶变简", sans-serif;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 搜索容器样式 */
.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; /* 增加底部间距 */
}

.search-container input {
    width: calc(100% - 80px); /* 调整宽度以适应按钮 */
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.search-container button {
    padding: 10px;
    background-color: #bebebe;
    color: white;
    border-left: none;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.search-container button i {
    font-size: 14px;
}

.search-container button:hover {
    background-color: #555;
}

.clear-search {
    display: none;
    margin-top: 10px;
    padding: 6px;
    background-color: #adadad;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

/* 标签容器样式 */
.tags-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tags-container button {
    margin: 5px;
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    background-color: #b5b5b5;
    cursor: pointer;
    border-radius: 5px;
}

.tags-container button.active {
    background-color: #c55858;
    color: white;
}

/* 心情项样式 */
.moods {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.mood-item {
    width: 100%;
    background-color: white;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 15px;
    transition: transform 0.3s ease;
    font-family: "经典隶变简", sans-serif;
    cursor: pointer;
    overflow: hidden;
}

.tag-badge {
    color: #ff1b1b;
    width: 60px;
    margin-left: auto; /* 将标签放置在右侧 */
    padding: 5px;
    font-size: 12px;
    border: none;
    background-color: #ffd5d5;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(117, 35, 35, 0.3);
}

.mood-item.full-content {
    max-height: none;
}

/* 发布心情按钮样式 */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.floating-button a {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 60px;
    color: #ffffff;
    opacity: 0.85;
    background-color: #c55858;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.floating-button a:hover {
    background-color: #b54949;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .mood-container {
        width: 90%;
        padding: 15px;
    }

    .search-container input {
        width: calc(100% - 60px); /* 调整宽度以适应按钮 */
        font-size: 14px;
    }

    .search-container button {
        padding: 8px;
        font-size: 14px;
    }

    .tags-container button {
        margin: 3px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .mood-item {
        padding: 15px;
    }

    .tag-badge {
        width: 50px;
        font-size: 11px;
    }

    .floating-button a {
        width: 50px;
        height: 50px;
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .mood-container {
        width: 95%;
        padding: 10px;
    }

    .search-container input {
        width: calc(100% - 50px); /* 调整宽度以适应按钮 */
        font-size: 12px;
    }

    .search-container button {
        padding: 6px;
        font-size: 12px;
    }

    .tags-container button {
        margin: 2px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .mood-item {
        padding: 10px;
    }

    .tag-badge {
        width: 40px;
        font-size: 10px;
    }

    .floating-button a {
        width: 40px;
        height: 40px;
        font-size: 40px;
    }
}
