body {padding: 0;border: 0;margin: 0;background-color: #eee;overflow: hidden;}
::-webkit-scrollbar {width: 0;}
::-webkit-scrollbar:horizontal {height: 0;}

#topbar {position: absolute;width: 100vw;height: 7vh;left: 0;top: 0;z-index: 1000;}
#topbar .waves-effect {position: absolute;width: 7vh;height: 7vh;}
#topbar .waves-effect img {position: absolute;width: 4vh;height: 4vh;left: 1.5vh;top: 1.5vh;}
#exit {left: 0;top: 0;}
#title {position: absolute;width: calc(100vw - 7vh) !important;height: 7vh;left: 7vh;top: 0;font-size: 2.8vh;display: flex;justify-content: start;align-items: center;}

#title_text {
    position: absolute;width: calc(100vw - 2vh);height: calc(5vh - 1px);left: 0;top: 7vh;
    font-size: 2.3vh;padding: 1vh;border: none;border-bottom: 1px solid #e0e0e0;resize: none;outline:none;font-family: Arial, Helvetica, sans-serif;border-radius: 0;
}
#title_text::placeholder {color: #9e9e9e;}
#title_text:focus {border:none;border-bottom: 1px solid #e0e0e0;box-shadow: none;}
#content_text {
    position: absolute;width: 100vw;height: 73vh;left: 0;top: 14vh;
    font-size: 2.3vh;padding: 1vh;border: none;resize: none;outline:none;font-family: Arial, Helvetica, sans-serif;border-radius: 0;
}
#content_text::placeholder {color: #9e9e9e;}
#show_text {
    position: absolute;width: 100vw;height: 80vh;left: 0;top: 7vh;
    font-size: 2.3vh;padding: 1vh;border: none;resize: none;outline:none;font-family: Arial, Helvetica, sans-serif;border-radius: 0;
    overflow: auto;word-wrap: break-word;overflow-wrap: break-word;word-break: break-all;white-space: pre-wrap;
}
#toolbar {position: absolute;width: 100vw;height: 13vh;left: 0;bottom: 0;border-top: 1px solid #e0e0e0;}
#img_text {
    position: absolute;width: calc(64vw - 2vh);height: 3vh;left: 3vw;top: 1vh;
    font-size: 2.3vh;border-radius: 1vh 0 0 1vh;padding: 1vh;border: none;outline: none;
}
#img_text::placeholder {color: #9e9e9e;}
#img_text:focus {border:none;box-shadow: none;}
#img_btn {
    position: absolute;width: 30vw;height: 5vh;right: 3vw;top: 1vh;
    border-radius: 0 1vh 1vh 0;font-size: 2.3vh;cursor: pointer;display: flex;justify-content: center;align-items: center;white-space: nowrap;
}
#md_btn {
    position: absolute;width: 30vw;height: 5vh;left: 3vw;top: 7vh;
    border-radius: 1vh;font-size: 2.3vh;cursor: pointer;display: flex;justify-content: center;align-items: center;white-space: nowrap;
}
#save_btn {
    position: absolute;width: 30vw;height: 5vh;left: 35vw;top: 7vh;
    border-radius: 1vh;font-size: 2.3vh;cursor: pointer;display: flex;justify-content: center;align-items: center;white-space: nowrap;
}
#submit_btn {
    position: absolute;width: 30vw;height: 5vh;left: 67vw;top: 7vh;
    border-radius: 1vh;font-size: 2.3vh;cursor: pointer;display: flex;justify-content: center;align-items: center;white-space: nowrap;
}

/* 基础容器样式 */
.markdown-container {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: black;
    margin: 0;
    padding: 0;
    display: grid;
}
/* 标题系统 */
.markdown-container h1,
.markdown-container h2,
.markdown-container h3,
.markdown-container h4,
.markdown-container h5,
.markdown-container h6 {
    font-weight: 600;
    line-height: 1.2;
    color: black;
    border: 0;
    padding: 0;
    margin: 0;
}
.markdown-container h1 {font-size: 1.3em;}
.markdown-container h2 {font-size: 1.2em;}
.markdown-container h3 {font-size: 1.1em;}
.markdown-container h4 {font-size: 1em;}
.markdown-container h5 {font-size: 0.9em;}
.markdown-container h6 {font-size: 0.8em;}
/* 段落与文字 */
.markdown-container p {
    margin: 0;
    word-break: break-word;
}
.markdown-container strong {font-weight: 700;}
.markdown-container em {font-style: italic;}
.markdown-container del {text-decoration: line-through;}
.markdown-container ins {text-decoration: underline;}
.markdown-container sub,
.markdown-container sup {
    font-size: 0.8em;
    line-height: 0;
}
/* 链接 */
.markdown-container a {
    color: #81d4fa;
    text-decoration: none;
    transition: color 0.2s;
}
.markdown-container a:hover {
    color: #4fa8d1;
    text-decoration: underline;
}
/* 列表系统 */
.markdown-container ul,
.markdown-container ol {
    margin: 0;
    padding-left: 2em;
    display: grid;
}
.markdown-container li {margin: 0;}
.markdown-container ul li {list-style-type: disc;}
.markdown-container ul ul li {list-style-type: circle;}
.markdown-container ol li {list-style-type: decimal;}
.markdown-container li p {margin: 0;}
/* 引用块 */
.markdown-container blockquote {
    margin: 1em 0;
    padding: 0.8em 1.2em;
    background-color: rgba(129, 212, 250, 0.1);
    border-left: 4px solid #81d4fa;
    color: #666;
}
.markdown-container blockquote p:last-child {margin-bottom: 0;}
/* 代码块 */
.markdown-container pre {
    margin: 0.5em 0;
    padding: 1.2em;
    background-color: #f8f9fa;
    border: 1px solid rgba(129, 212, 250, 0.3);
    border-radius: 4px;
    overflow-x: auto;
}
.markdown-container pre code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    color: #2f2f2f;
}
/* 行内代码 */
.markdown-container code {
    padding: 0.2em 0.4em;
    background-color: rgba(129, 212, 250, 0.15);
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}
/* 图片 */
.markdown-container img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 表格系统 */
.markdown-container table {
    width: 100%;
    margin: 0.5em 0;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.markdown-container th,
.markdown-container td {
    padding: 0.8em;
    border: 1px solid rgba(129, 212, 250, 0.3);
    text-align: left;
}
.markdown-container th {
    background-color: rgba(129, 212, 250, 0.15);
    font-weight: 600;
}
.markdown-container tr:nth-child(even) {
    background-color: rgba(129, 212, 250, 0.05);
}
/* 分隔线 */
.markdown-container hr {
    margin: 0.5em 0;
    border: 0;
    height: 1px;
    background-color: black;
}
/* 特殊文本 */
.markdown-container mark {
    background-color: rgba(129, 212, 250, 0.3);
    padding: 0.1em 0.3em;
}
/* 键盘文本 */
.markdown-container kbd {
    padding: 0.2em 0.4em;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-family: monospace;
}