@charset "UTF-8";

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
    font-family: 'iconfont';
    /* Project id 549174 */
    src: url('//at.alicdn.com/t/c/font_549174_w1bv7zvmds.woff2?t=1763534630441') format('woff2'),
        url('//at.alicdn.com/t/c/font_549174_w1bv7zvmds.woff?t=1763534630441') format('woff'),
        url('//at.alicdn.com/t/c/font_549174_w1bv7zvmds.ttf?t=1763534630441') format('truetype');
}

* {
    box-sizing: border-box;
}

:root {
    --themecolor: white;
    --txtcolor: black;
}

body {
    font-family: 'iconfont';
    background-color: var(--themecolor);
    color: var(--txtcolor);
    transition: all 0.3s;
    margin: 0;
    padding: 2em;
}

input::placeholder,
textarea::placeholder {
    color: var(--txtcolor);
}

a {
    color: var(--txtcolor);
    text-decoration: none;
}

.container {
    max-width: 800px;
    display: flex;
    margin: 0 auto;
    min-height: calc(100vh - 8em);
    flex-direction: column;
    justify-content: center;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.input-section {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

#todoInput {
    flex: 1;
    min-width: 6em;
    padding: 0.25em 0.75em;
    border: 1px dashed;
    font-size: 16px;
    background-color: transparent;
    color: var(--txtcolor);
    outline: none;
    border-radius: 2em;
}

#todoInput:focus {
    border-color: var(--txtcolor);
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

button,.button {
    padding: 0.25em 0.75em;
    border-radius: 2em;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    border: 1px solid;
    transition: all 0.3s;
}

button:hover,.button:hover,button.hover,.button.hover {
    background: var(--txtcolor);
    border-color: var(--txtcolor);
    color: var(--themecolor);
}

.whiteboard {
    border-radius: 8px;
    display: flex;
    gap: 0;
    flex-direction: column;
}

.todo-item {
    flex-grow: 1;
    display: flex;
    gap: 10px;
    padding: 0 8px;
    user-select: none;
    max-width: 100%;
    position: relative;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed;
}

.todo-item.completed {
    opacity: 0.25;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
}

.todo-item .todo-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-item .move-btn {
    display: none;
}

.todo-item:hover .move-btn {
    display: inline;
}

.complete-btn,
.move-btn,
.delete-btn,
.todo-link {
    cursor: pointer;
}

.todo-item .complete-btn::before {
    content: "\e677";
}

.todo-item.completed .complete-btn::before {
    content: "\ecb3";
}

.todo-item .move-up::before {
    content: "\e9c9";
}

.todo-item .move-down::before {
    content: "\e99d";
}

.todo-item .move-top::before {
    content: "\e60f";
}

.todo-item .delete-btn::before {
    content: "\e990";
}

.todo-item .delete-btn:hover,
.todo-item .move-btn:hover {
    color: red;
}

.todo-item .todo-text::before {
    content: "\e67c\a";
}

.todo-item.link .todo-text::before {
    content: "\e668\a";
}

.todo-item.copy .todo-text::before {
    content: "\ea32\a";
}

.todo-item.ai .todo-text::before {
    content: "\e9b6\a";
}

.todo-item.email .todo-text::before {
    content: "\e737\a";
}

.todo-item.phone .todo-text::before {
    content: "\e842\a";
}

.todo-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(5deg);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 10vmin;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--themecolor);
    padding: 30px;
    border: 2px solid var(--txtcolor);
    border-radius: 8px;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.modal-content h3 {
    margin: 0;
    line-height: 1;
}

.modal-content h3 span{
    font-size: 0.65em;
    opacity: 0.65;
}

#batchTextarea {
    flex: 1;
    width: 100%;
    padding: 1em;
    color: var(--txtcolor);
    border: 1px dashed;
    background: none;
    border-radius: 4px;
    outline: none;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.footer {
    display: flex;
    gap: 10px;
    text-align: center;
    margin: 3em 0;
    color: var(--txtcolor);
    align-items: center;
    justify-content: center;
}

.theme-selector {
    display: inline-flex;
    gap: 10px;
}

.theme-square {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-square:hover {
    transform: scale(1.2);
}

/* 使用指南样式 */
.documentation {
    max-width: 800px;
    margin: 0 auto;
}

.documentation h2 {
    text-align: center;
}

.documentation h3 {
    border-left: 4px solid;
    padding-left: 0.5em;
}

.documentation p {
    margin-bottom: 15px;
    line-height: 1.6;
}