body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.title {
    text-align: center;
    color: #333;
    margin: 0;
}

.container {
    display: flex;
    height: 70vh;
    padding: 0 20px;
}

.input-container, .preview-container {
    flex: 1;
    position: relative;
    margin: 0 10px;
}

#input-text, #preview-text {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    overflow-y: auto;
    box-sizing: border-box;
}

#input-text {
    resize: none;
}

#preview-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f9f9f9;
}

#preview-canvas {
    width: 100%;
    height: auto;
}

/* 在文件末尾添加以下样式 */
/*
.keycap {
    display: inline-block;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 4px;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
    min-width: 1.4em;
}
*/

.floating-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.floating-button:hover {
    background-color: #45a049;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.notification.show {
    opacity: 1;
}

.author-info {
    font-size: 14px;
    color: #888;
    margin-left: 10px;
}

/* 更新或添加以下样式 */
.header {
    text-align: center;
    margin: 20px 0;
}

.title {
    color: #333;
    margin: 0;
    display: inline-block;
}

.author-info {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
    font-weight: normal;
}

/* 删除之前的 .author-info 样式 */
/*
.author-info {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #888;
    z-index: 1000;
}
*/
