body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

#inputSection,
#outputSection {
    display: none;
}

textarea {
    width: 100%;
    height: 200px;
    /* 增加高度 */
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 5px;
    width: calc(50% - 5px);
    box-sizing: border-box;
}

#output {
    white-space: pre-wrap;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box;
    font-size: 25px;
    /* 增加字号 */
}

#savedList {
    margin-top: 20px;
}

#savedList div {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 5px;
    margin-bottom: 10px;
    justify-content: flex-end; /* 按钮居右 */
}

.delete-btn {
    background-color: #f44336; /* 红色背景 */
    padding: 8px;
    font-size: 14px;
    color: white; /* 白色文字 */
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.category-info {
    flex-grow: 1;
}
.button-group {
    display: flex;
    gap: 5px;
    justify-content: flex-end; /* 按钮居右 */
}
.button-group2 {
    display: flex; /* 使用 flexbox */
    gap: 5px;
    justify-content: flex-end; /* 按钮居右 */
}
.content-btn {
    padding: 8px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 5px;
    width: 90px;  
    display:inline-block;
}
.change-btn {
    width: 100px;
}
.content-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.category-input-container {
    display: flex;
    margin-bottom: 20px;
}

#newCategoryInput {
    flex-grow: 1;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    height: 21px;
}

#newCategoryInput:focus {
    outline: none;
    border-color: #4CAF50;
}

.add-category-btn {
    padding: 10px 20px;
    margin-left: 10px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-category-btn:hover {
    background-color: #45a049;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#categorySelect,#voiceSelect {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

.modal-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #45a049;
}