* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    --task-board-width: 0;

}

html, body {
    width: 100%;
    /*height: 100vh;*/
    height: 100%;
    overflow: hidden;

}

/* 容器：大屏flex横向，小屏block */
.container {
    width: 100%;
    height: 100%;
    display: flex;

    /*transition: all 0.3s ease; !* 展开动画 *!*/
}

/* 主页区域 */
.home-page {
    flex: 1;
    height: 100%;
    /*height: 100vh;*/
    overflow-y: auto;
    background: var(--bg-color);
    position: relative;
}

/* 任务板：初始宽度0，展开500px */
.task-board {
    overflow-x: hidden;
    width: var(--task-board-width);
    height: 100%;
    overflow-y: auto;
    /*background: #fff;*/
    background: var(--bg-color);
    border-left: 1px solid var(--text-color-0-5);
    transition: width 0.3s ease; /* 宽度动画 */
    position: relative;
}

/* 大屏展开任务板样式 */
.container.task-show .task-board {
    /*--task-board-width: 500px;*/
    --task-board-width: 30vw;
    /*--task-board-width: 500px;*/
    max-width: 500px;

}


/* 调出任务板按钮：大屏显示，小屏隐藏 */
.toggle-task {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    padding: 8px 16px;
    cursor: pointer;
}

/* 移动端tab栏：小屏显示，大屏隐藏 */
.mobile-tab {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-tab-height);
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1;
}

.mobile-tab .tab-item {
    float: left;
    width: 50%;
    height: 100%;
    line-height: var(--mobile-tab-height);
    text-align: center;
    cursor: pointer;
    color: var(--text-color-3);
    display: flex;
    align-items: center;
    justify-content: center;
}


.mobile-tab .tab-item i {
    color: inherit;
}

.mobile-tab .tab-item.active {
    color: var(--text-color);
}

.mobile-tab .tab-item .back-to-top {
    --size: 25px;
    background: #000;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    margin: 0 auto;
    display: none;

}


.mobile-tab .tab-item .back-to-top .inner {
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-tab .tab-item .back-to-top i {
    color: #fff;
    font-size: 12px;
}


.task-hint-bubble {
    --bubble-bg: #5f2fc3;
    position: absolute;
    max-width: 300px;
    padding: 16px 20px;
    background-color: var(--bubble-bg);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    top: -50px;

    /* 添加过渡动画 */
    transform-origin: bottom center; /* 从底部中心（角标位置）开始变换 */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;

    /* 默认隐藏状态 */
    transform: scale(0);
    opacity: 0;

    /* 确保伪元素不受transform影响 */
    &::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid var(--bubble-bg);
    }
}

/* 显示状态 */
.task-hint-bubble.show {
    transform: scale(1);
    opacity: 1;
}

.right-floating-btn-wrapper {
    position: fixed;
    z-index: 1;
    bottom: 20px;
    right: 20px;
}

.right-floating-btn-wrapper .floating-btn {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    cursor: pointer;
}

.right-floating-btn-wrapper .floating-btn .floating-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--float-btn-size);
    width: var(--float-btn-size);
}

.right-floating-btn-wrapper .floating-btn:not(:last-child) {
    margin-bottom: 10px;
}

.show-task-board-btn .icon-close {
    display: none;
}

.task-board-to-top-btn {
    display: none;
}

.right-floating-btn-wrapper .floating-btn:hover {
    opacity: 0.8;
}

.home-page-center-floating-btn-wrapper {
    position: fixed;
    bottom: calc(var(--mobile-tab-height) + 10px);
    left: 50%;
    /*transform: translateX(-50%);*/
    transition: left 0.2s ease;
    transform: translateX(0);
    z-index: 1;
    display: none;
}

.home-page-center-floating-btn-wrapper .inner {
    display: flex;
    align-items: center;
    justify-content: center;
}


.floating-create-btn {

    border: none;

    width: 90vw;
    max-width: 180px;
    border-radius: 30px;
    height: var(--float-btn-size);
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    font-size: 14px;
}

.floating-create-btn i {
    font-size: inherit;
    margin-right: 10px;
}

.home-page-to-top-btn {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    width: calc(var(--float-btn-size) - 5px);
    height: calc(var(--float-btn-size) - 5px);
}

.home-page-to-top-btn i {
    font-size: 14px;
}

.home-page-to-top-btn:hover {
    opacity: 0.8;
}

.floating-create-btn:hover {
    opacity: 1;
    box-shadow: var(--theme-color-0-2) 0px 16px 36px;
}


/* 响应式断点：小屏（移动端）<768px */
@media screen and (max-width: 767px) {
    * {
        --mobile-tab-height: 60px;
    }

    .navbar {
        position: fixed;
    }

    .nav-placeholder {
        display: block;
    }

    ._banner-item {
        /*width: 200px;*/
        /*height: 400px;*/
        width: 175px;
        height: 350px;
    }

    .toggle-task {
        display: none;
    }

    .mobile-tab {
        display: block;
    }

    .container {
        display: block;
    }

    /* 小屏默认显示主页，隐藏任务板 */
    .task-board {
        display: none;
        width: 100%;
        height: calc(100vh - var(--mobile-tab-height));
    }

    /* 小屏切换tab显示对应页面 */
    .container.tab-home .home-page {
        display: block;
        height: calc(100vh - var(--mobile-tab-height));
    }

    .container.tab-home .task-board {
        display: none;
    }

    .container.tab-task .home-page {
        display: none;
    }

    .container.tab-task .task-board {
        display: block;
    }

    /* 重置大屏展开样式，避免冲突 */
    .container.task-show .task-board {
        width: 100%;
    }

    .close-task-nav-btn {
        display: none;
    }

    .right-floating-btn-wrapper {
        display: none;
    }

    .home-page-to-top-btn {
        display: none;
    }
}


/*.content-wrapper {*/
/*    padding: 0 var(--content-padding);*/
/*    width: 100%;*/
/*    max-width: 1800px;*/
/*    margin: 0 auto;*/
/*}*/

/* 类似 Bootstrap 的容器类，但保留原类名 */
.content-wrapper {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* 响应式断点 - 类似 Bootstrap 移动优先策略 */
@media (min-width: 576px) {
    .content-wrapper {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .content-wrapper {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .content-wrapper {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .content-wrapper {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .content-wrapper {
        max-width: 1320px;
    }
}

/* 为原设计的 1800px 最大宽度添加超大屏幕断点 */
@media (min-width: 1800px) {
    .content-wrapper {
        max-width: 1500px;
        /* 保持原设计的自定义 padding 变量 */
        /*padding-right: var(--content-padding, 40px);*/
        /*padding-left: var(--content-padding, 40px);*/
    }
}


.content-tab-wrapper {
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text-color-0-5);
    /*background: #003eff;*/
    /*padding-left: 70px;*/
    /*padding-right: 70px;*/
    width: 100%;
    overflow-x: auto;
}


.content-tab-inner {
    padding: 0 var(--content-padding);
    width: fit-content;
    margin: 0 auto;
    /*background: #5f3f3f;*/
    --content-tab-item-height: 30px;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    height: var(--content-tab-item-height);

}

.content-tab-inner .left {
    display: flex;
    align-items: center;
}

.content-tab-inner .right {
    display: flex;
    align-items: center;
}

.content-tab-inner .right .search-btn {
    border: none;
    width: var(--content-tab-item-height);
    height: var(--content-tab-item-height);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.content-tab-inner .right .search-btn:hover {
    background: var(--text-color-0-5);
}


.content-tab-item {
    height: var(--content-tab-item-height);
    color: var(--text-color-7);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.content-tab-item i {

    font-size: inherit;
    color: inherit;
}

.content-tab-item i:first-child {
    margin-right: 5px;
}

.content-tab-item i:last-child {
    margin-left: 3px;
}

.content-tab-item:hover {
    color: var(--text-color);
}

.content-tab-item:not(:last-child) {
    margin-right: 4px;
}

.content-tab-item.active {
    /*color: var(--text-color);*/
    background: var(--text-color-0-3);
}


.auth-wrapper {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    --modal-padding: 20px;
}

.auth-modal {
    width: 85%;
    max-width: 380px;
    background: #fff;
    position: absolute;
    top: 50%; /* 向下移动 50% 的父元素高度 */
    left: 50%; /* 向右移动 50% 的父元素宽度 */
    transform: translate(-50%, -50%); /* 向上和向左移动自身的 50% */
    border: 1px solid var(--text-color-1);
    border-radius: 10px;
}


.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    /*border-bottom: 1px solid var(--text_color_1);*/
    padding: 0 var(--modal-padding);
}


.auth-modal-title {
    font-weight: bold;
    font-size: 18px;

}

.close-auth-modal-btn {
    /*width: 40px;*/
    /*height: 40px;*/
    border-radius: 50%;
    /*background: var(--text_color_1);*/
    display: flex;
    align-items: center;
    justify-content: center;
}


.close-auth-modal-btn i {
    color: var(--text-color-9);
    font-size: 12px;
}


.auth-modal-content {
    padding: var(--modal-padding);
}


.auth-modal-btn {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.auth-modal-btn:not(:last-child) {
    margin-bottom: 10px;
}


.signup-hint {
    margin-bottom: 20px;
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.6;
}


/*透明度动画*/
.fade-animation {
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}



