﻿/* 任意想隐藏滚动条的元素 */
.hide-scroll {
    overflow: auto; /* 保留滚动能力 */
    -ms-overflow-style: none; /* IE 10+ */
    scrollbar-width: none; /* Firefox 64+ */
}
    /* Chrome、Edge、Safari、微信 WebView 等 WebKit/Blink */
    .hide-scroll::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        background: transparent;
    }

body {
    background-color: #0d0d0d;
    color: #fff;
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
}

.custom-header {
    display: flex;
    align-items: center;
    height: 40px;
    color: white;
    background-color: #111;
    padding: 0 10px;
    gap: 10px;
    box-sizing: border-box;
}

    /* 左侧 Logo */
    .custom-header .ailogo {
        width: 50px;
        flex-shrink: 0;
    }

/* 中间标题容器 */
.title-container {
    flex: 1;
    min-width: 0; /* 关键：允许容器收缩 */
    overflow: hidden;
}

    .title-container .title {
        text-align: center;
        font-size: 16px;
        color: white;
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 超出隐藏 */
        text-overflow: ellipsis; /* 超出显示 ... */
        margin: 0;
        line-height: 1.5;
    }

/* 右侧返回按钮 */
.custom-header .back {
    flex-shrink: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-header .back img {
        width: 24px;
        height: 24px;
        opacity: 0.9;
    }

.video-player,
.video {
    width: 100%;
    height: auto;
    background-color: #000;
    position: relative;
    aspect-ratio: 16 / 9;
}

#ts {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* 隐藏 Firefox 的滚动条 */
    -ms-overflow-style: none; /* 隐藏 IE 和 Edge 的滚动条 */
    scrollbar-color: #333 #111;
    background-color: #111;
    padding: 5px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    height: 50px;
}

    .menu::-webkit-scrollbar {
        /*height: 6px;*/
        display: none;
    }

    .menu::-webkit-scrollbar-thumb {
        background-color: #333;
        border-radius: 3px;
    }

    .menu::-webkit-scrollbar-track {
        background: #111;
    }

.menubtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 8px;
    margin-right: 10px;
    background-color: #2b2b2b;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    user-select: none;
}

    .menubtn img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
        vertical-align: middle;
    }

    .menubtn:hover {
        background-color: #3a3a3a;
    }

    .menubtn.curr {
        background-color: #007bff;
        color: #fff;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
    }

.aibox {
    height: auto;
    padding: 0 5px;
    box-sizing: border-box;
    width: 100% !important;
}

    .aibox .con {
        position: relative;
        width: 100%;
        height: calc(100vh - 320px);
        overflow-x: hidden;
        overflow-y: auto;
        background-color: #27292b;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 10px;
    }

        .aibox .con .toolsbar {
            position: absolute;
            display: flex;
            justify-content: space-between;
            align-items: center;
            top: 0;
            width: 100%;
            height: 40px;
            z-index: 1000;
            background-color: #28292d;
            padding: 0 10px;
            border-top: 1px solid #3b3c40;
            border-radius: 10px;
        }

            .aibox .con .toolsbar .tools {
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                font-size: 0.9rem;
                color: #c89d58;
            }

        .aibox .con .console {
            position: relative;
            height: calc(100vh - 410px);
            overflow-y: auto;
            padding: 0 10px;
            margin: 40px 0 0 0;
            font-family: monospace;
        }

            .aibox .con .console .think {
                position: relative;
                height: auto;
                font-size: 1rem;
                color: #b18deb;
            }

            .aibox .con .console .resultbox {
                position: relative;
                height: auto;
                color: #cdcdcd;
                padding-bottom: 30px;
                -webkit-overflow-scrolling: touch;
            }

                .aibox .con .console .resultbox h3 strong:after, .content .aibox .con .console .resultbox h4 strong:after {
                    content: " \f27b";
                }

        .aibox .con .inputbox {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid #6d6d6d;
            border-radius: 35px;
            /*padding: 5px 10px;*/
            width: calc(100% - 10px);
            margin: 0 auto;
            gap: 10px;
            flex-wrap: nowrap;
        }

            .aibox .con .inputbox textarea {
                flex-grow: 1;
                flex-shrink: 1;
                flex-basis: 0;
                min-width: 100px;
                background: transparent;
                border: none;
                outline: none;
                word-wrap: break-word;
                overflow-wrap: break-word;
                resize: none;
                max-height: 60px;
                height: 24px;
                padding: 0;
                color: #fff;
                font-size: 0.9rem;
            }

            /* 开关样式 */
            .aibox .con .inputbox .ai-switch {
                display: flex;
                align-items: center;
                white-space: nowrap;
                margin: 0;
            }

            .aibox .con .inputbox .switch-label {
                position: relative;
                margin-right: 3px;
                font-size: 0.8rem;
                color: #fff;
            }

            .aibox .con .inputbox .switch {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 30px;
                height: 15px;
                margin: 0 auto;
            }

                .aibox .con .inputbox .switch input {
                    position: relative;
                    margin: 0;
                }

            .aibox .con .inputbox .slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: #696969;
                transition: .4s;
                border-radius: 20px;
            }

                .aibox .con .inputbox .slider:before {
                    position: absolute;
                    content: "";
                    height: 13px;
                    width: 13px;
                    left: 1px;
                    bottom: 1px;
                    background-color: white;
                    transition: .4s;
                    border-radius: 50%;
                }

            .aibox .con .inputbox input:checked + .slider {
                background-color: #c89d58;
            }

                .aibox .con .inputbox input:checked + .slider:before {
                    transform: translateX(15px);
                }

            .aibox .con .inputbox img {
                width: auto;
                height: 30px;
                cursor: pointer;
                flex-shrink: 0;
            }

        .aibox .con .remark {
            font-size: 0.6rem;
            color: #188eee;
            text-align: center;
        }

        .aibox .con .toolsbar .tools .language-switch {
            display: flex;
            align-items: center;
            margin-right: 5px;
        }

.am-hide {
    display: none !important;
    visibility: hidden !important;
}

.aibox .con .toolsbar .tools .language-switch {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.aibox .con .toolsbar .tools .switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 15px;
    margin: 0 auto;
}

.aibox .con .toolsbar .tools .switch-label {
    position: relative;
    margin-right: 3px;
}

.aibox .con .toolsbar .tools .switch input {
    position: relative;
    margin: 0;
}

.aibox .con .toolsbar .tools .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #696969;
    transition: .4s;
    border-radius: 20px;
}

    .aibox .con .toolsbar .tools .slider:before {
        position: absolute;
        content: "";
        height: 13px;
        width: 13px;
        left: 1px;
        bottom: 1px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

.aibox .con .toolsbar .tools input:checked + .slider:before {
    transform: translateX(15px);
}

.aibox .con .toolsbar .tools input:checked + .slider {
    background-color: #c89d58;
}

.section-title {
    cursor: pointer;
}
/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: bold;
    margin: 0.5em 0;
    color: #188eee;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1rem;
}

/* 分隔线 */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, #4a90e2 30%, transparent 70%);
    margin: 20px 0;
}


/* 强调文本 */
strong {
    color: #83bae7;
}

pre {
    font-size: 1rem;
    color: #78afdb;
    background-color: #28292d;
    border: 1px solid #414141;
}

code {
    font-size: 1rem;
    color: #78afdb;
    background-color: #28292d;
    border: 0;
}

.markmap {
    position: relative;
}

    .markmap > svg {
        width: 100%;
        height: calc(100vh - 185px);
        color: #fff;
    }

.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 16px;
}

/*字幕全文工具栏*/
.aibox .con .toolsbar .tools .searchbox2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 65%;
    padding-right: 10px;
}

    .aibox .con .toolsbar .tools .searchbox2 .iptgroup {
        position: relative;
        width: 75%;
    }

        .aibox .con .toolsbar .tools .searchbox2 .iptgroup span {
            position: absolute;
            padding: 0;
            top: 0;
            bottom: 0;
            left: 5px;
            cursor: default;
        }

        .aibox .con .toolsbar .tools .searchbox2 .iptgroup .iptsearch {
            width: 100%;
            height: 30px;
            background: transparent;
            border: 1px solid #777;
            border-radius: 6px;
            outline: none;
            padding-left: 27px;
        }

    .aibox .con .toolsbar .tools .searchbox2 .pptcon {
        width: 60px;
        font-size: 0.9rem;
    }

    .aibox .con .toolsbar .tools .searchbox2 span {
        cursor: pointer;
        padding: 0 0 0 5px;
        font-size: 1.2rem;
    }

/*问答样式*/
.aibox .con .console #rbox6 #console .question {
    background: rgba(255, 255, 255, 0.04);
    margin: 0 0 10px 0;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

    .aibox .con .console #rbox6 #console .question:hover {
        color: #fff;
    }

/*测试*/
.submenu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #111;
    padding: 5px;
    border-top: 1px solid #222;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subcontent {
    display: inline-block;
    color: #fff;
    background-color: #2b2b2b;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
}

    .subcontent.curr {
        background-color: #007bff;
        box-shadow: 0 0 6px rgba(0, 123, 255, 0.6);
    }

    .subcontent[disabled] {
        opacity: 0.4;
        cursor: not-allowed;
    }

.submenu::-webkit-scrollbar {
    height: 4px;
    display: none;
}

.submenu::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.submenu_zm {
    display: inline-block;
    color: #fff;
    background-color: #2b2b2b;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
}

    .submenu_zm.curr {
        background-color: #007bff;
        box-shadow: 0 0 6px rgba(0, 123, 255, 0.6);
    }

    .submenu_zm[disabled] {
        opacity: 0.4;
        cursor: not-allowed;
    }

/* 特殊样式（当id为4或5时） */
.aibox.special .con {
    height: calc(100vh - 355px);
}

    .aibox.special .con .console {
        height: calc(100vh - 445px);
    }

/* 字幕等内容随视频滚动 */
.aibox .con .console #rbox4 ul {
    padding-left: 0;
}

.aibox .con .console .resultbox ul {
    margin: 0.5em 0;
}

.aibox .con .console #rbox4 #ulzm li {
    list-style-type: none;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    flex-direction: row;
    padding-left: 20px;
    padding-bottom: 10px;
    color: #8b8b8b;
}

    .aibox .con .console #rbox4 #ulzm li .ttbox {
        display: flex;
    }

.aibox .con .console #rbox4 li .timebox {
    color: #188eee;
    padding-right: 10px;
}

.aibox .con .console #rbox4 ul li .subtitle {
    letter-spacing: 1px;
}

.aibox .con .console #rbox4 ul li .txtcn, .aibox .con .console #rbox4 ul li .txtcnall {
    line-height: 1.7;
}

.aibox .con .console #rbox4 ul li p {
    margin: 0;
    padding: 0;
}

.aibox .con .console #rbox4 ul li .txten {
    font-family: Arial Unicode MS;
    line-height: 1.7;
}

.aibox .con .console #rbox4 ul li.active {
    background: rgba(69, 69, 69, 0.4);
    border-radius: 10px;
}

.aibox .con .console #rbox3 .section-title {
    cursor: pointer;
}

.aibox .con .console #rbox3 h3 {
    padding: 10px;
    margin: 0;
}

    .aibox .con .console #rbox3 h3.active {
        background: rgba(69, 69, 69, 0.4);
        border-radius: 10px;
    }

        .aibox .con .console #rbox3 h3.active:after {
            content: " \f0a5";
            color: #f1ce8d;
            background: rgba(69, 69, 69, 0.4);
            border-radius: 10px;
        }

.points {
    width: 200px;
    cursor: pointer;
}

.pointsadd {
    width: 70px;
}

.collectpoints {
    width: 90px;
}

.zmpoints {
    line-height: 30px;
}
