.card-container {
    width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 20px;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    justify-content: space-around;
}

.card {
    resize: both;
    display: flex;
    flex-direction: column;
    overflow: auto; /* 改为 auto */
    border: 10px solid white;
    flex: 0 0 auto;
    width: 350px;
    margin-right: 20px;
    background-color: black;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    height: 410px;
    z-index: 3;
    min-width: 350px;
    min-height: 200px;
    max-height: 80vh;
}

.card-content::-webkit-scrollbar,
.card-container::-webkit-scrollbar,
.card::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.card-content {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    min-height: 0;
}

.card-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.card-toggle:hover {
    color: #ccc;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.card-item {
    height: 40px;
    line-height: 30px;
    display: flex;
    text-align: center;
    justify-content: space-between;
    padding: 5px 10px;
    align-items: center;
}

.card-item:nth-child(odd) {
    background-color: #fce38a;
}

.card-item:nth-child(even) {
    background-color: #f38181;
}

.card-item:hover {
    filter: brightness(90%);
}

.card-title {
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 1.2em;
    font-weight: bold;
    background-color: black;
    display: flex;
    color: white;
    align-items: center;
    justify-content: left;
    padding: 10px 10px 10px 30px;

}

.card-color-picker-container {
    padding-top: 10px;
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    height: 25px;
    width: 70px;
}

.card-color-picker-odd,
.card-color-picker-even {
    width: 35px;
    height: 20px;
    padding: 0 2px;
    margin-right: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    outline: none;
}

.card-color-picker-odd::-webkit-color-swatch-wrapper,
.card-color-picker-even::-webkit-color-swatch-wrapper {
    padding: 0;
}

.card-color-picker-odd::-webkit-color-swatch,
.card-color-picker-even::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.card-color-picker-odd::-moz-color-swatch,
.card-color-picker-even::-moz-color-swatch {
    border: none;
    border-radius: 50%;
}

.card-color-picker-even {
    margin-right: 25px;
}

.card-options {
    display: flex;
    align-items: center;
}

.card-more-options {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.card-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    right: 0;
    top: 100%;
}

.card-menu button {
    display: block;
    width: 100%;
    padding: 5px 10px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.card-menu button:hover {
    background-color: #f0f0f0;
}

.drag-handle {
    cursor: move;
    color: #888;
    margin-left: 10px;
}

.drag-handle-card {
    position: fixed;
    cursor: move;
    color: #888;
    margin-right: 10px;
    left: 10px;
}

.blue-background-class {
    background-color: #E8F0FE;
}

.topic-name {
    outline: none;
    padding: 2px 5px;
    border-radius: 3px;
}

.topic-name:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.file-name {
    flex-grow: 1;
    text-align: center;
}