/* 移动端样式 */
@media screen and (max-width: 1400px) {
    /* 隐藏所有滚动条 */
    ::-webkit-scrollbar {
        display: none;
    }
    * {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    @supports (padding-top: env(safe-area-inset-top)) {
        body {
            padding-top: env(safe-area-inset-top);
        }
    }
    html{
        background-color: #ffffff;
    }
    body{
        background-color: #111111;
    }
    .header{
        display: none;
    }
    .footer{
        text-align: left;
        padding: 0 10px;
    }
    .clearfix::after {
        content: "";
        display: block;
        clear: both;
        visibility: hidden;
        height: 0;
    }
    .mobileMenuBox{
        width: 100%;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #111111;
        padding-bottom: 60px;
        padding-top: 15px;
    }
    .mobileMenuLogo img{
        width: 120px;
    }
    .mobileMenuBtn img{
        width: 25px;
    }
    .tab-buttons{
        display: none;
        width: 100%;
        color: #898989;
        padding: 10px 20px;
        background-color: #111111;
        position: fixed;
        top: 55px;
        left: 0;
        height: calc(100vh - 55px);
        z-index: 99999;
    }
    .tab-buttons button{
        background: none;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        width: 100%;
        text-align: left;
        color: #898989;
        font-size: 18px;
        margin-bottom: 5px;
    }
    .tab-buttons button img {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-right: 10px;
    }
    .leftLogo{
        display: none;
    }
    .tab-buttons button:hover{
        background: #282828;
        color: #ffffff;
        border-radius: 6px;
    }
    .tab-buttons button.active{
        background: #282828;
        color: #ffffff;
        border-radius: 6px;
    }
    .tab-body{
        width: 100%;
        background-color: #ffffff;
        padding: 10px;
        border-radius: 30px 30px 0 0;
        padding-bottom: 50px;
        margin-top: -45px;
    }
    .tab-content{
        display: none;
    }
    .tab-content:first-of-type {
        display: block;
    }
    .permissionBox {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #111111;
        padding: 5px 15px;
        border-radius: 50px;
        border: 1px solid #282828;
        margin-bottom: 20px;
    }
    .permissionBox img {
        margin-right: 10px;
        width: 20px;
        height: 20px;
    }
    .permissionBox input {
        width: 100%;
        border: none;
        background-color: transparent;
        color: #ffffff;
        padding: 10px;
        border-radius: 50px;
        outline: none;
    }
    .configBoxTitle{
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: 700;
    }
    .btn1 {
        background-color: #4a4aff; /* 蓝色 */
        color: white;
        border-radius: 20px;
        padding: 5px 12px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
        margin-bottom: 20px;
    }
    .btn2 {
        background-color: #ff4a4a; /* 红色 */
        color: white;
        border-radius: 20px;
        padding: 5px 12px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }
    .btn3 {
        background-color: #121434; /* 红色 */
        color: white;
        border-radius: 20px;
        padding: 5px 12px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }
    .btn4 {
        background-color: #121434;
        color: white;
        border-radius: 20px;
        padding: 5px 15px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }
    .btn5 {
        background-color: #b51717;
        color: white;
        border-radius: 20px;
        padding: 5px 15px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }
    .btn6 {
        color: #888888;
        border-radius: 20px;
        padding: 5px 15px;
        border: 1px dashed #888888;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
        background-color: #fff;
    }
    .btn1:disabled, .btn2:disabled {
        background-color: #ccc; /* 灰色 */
        cursor: not-allowed;
    }
    .configBox{padding: 10px;}
    .configBox1{
        margin-top: 10px;
    }
    .tips{
        color: #999;
        font-size: 12px;
    }
    #logArea, #entranceArea, #scriptLogArea,#insertSpeechBox,#playListBox {
        width: 100%;
        height: 300px;
        overflow-y: auto;
        border: 1px dashed #ccc;
        margin-bottom: 20px;
        padding: 15px;
        font-family: monospace;
        border-radius: 10px;
    }
    #insertSpeechBox,#playListBox{
        height: auto;
    }
    #insertSpeechText{
        height: 110px;
        border: none;
        margin-top: 10px;
        resize: none;
        background-color: #eee;
        padding: 10px;
        font-size: 18px;
    }
    #insertSpeechTextButton{
        margin-top: 10px;
    }
    #currentTextDisplay, #nextTextDisplay {
        height: 100px;
        overflow-y: auto;
    }
    .configBox1Play{
        padding: 10px;
        border: 1px dashed #ccc;
        border-radius: 10px;
    }
    input,select,textarea{
        border: 1px solid #ccc;
        padding: 5px 8px;
        font-size: 16px;
        border-radius: 6px;
    }
    textarea{
        width: 100%;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    textarea:focus{
        outline: none;
    }
    .marginBottom10{
        margin-bottom: 10px;
    }
    .insertBtn{cursor: pointer;color: #007bff;}
    .scriptConfigSummary{
        font-size: 20px;
        font-weight: 700;
        color: #000;
        margin: 10px 0;
    }
    #LLMwhiteList{width: 100%;}
    #welcomeSpeechProbability,#languageSynthesisIntervalTime,#GptSpeechProbability{width: 50px;text-align: center;}
    #welcomeSpeech{width: 100%;}
    #backgroundMusic{width: 100%;}
    #backgroundMusicPlayer{width: 100%;}
    #openMicButton{display: none;}
    .openMicDetails{display: none;}
    
    /* 快捷话术配置 */
    .insertSpeechSystemAlertBox{
        display: none;
    }
    .insertSpeechSystemAlertTitle{
        margin-bottom: 10px;
        font-weight: 700;
    }
    .insertSpeechSystemAlertItem{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .insertSpeechSystemAlertItem input:first-child {
        width: 100%;
    }
    .insertSpeechSystemAlertItem input:last-child {
        width: 100%;
    }
    .keyExpireTimeBox{
        display: none;
        font-weight: 400;
    }

    /* 音色列表 */
    .ttsListBox {
        margin-top: 10px;
    }
    .ttsListTitle {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 10px;
    }
    .ttsListContent {
        border-radius: 4px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .ttsListItem {
        display: flex;
        align-items: center;
        padding: 10px;
        border: 2px solid #eee;
        border-radius: 4px;
        width: 100%;
        cursor: pointer;
    }
    .ttsListItem.active {
        border: 2px solid #409eff;
        background-color: rgba(64, 158, 255, 0.1);
    }
    .ttsListItemIcon {
        width: 40px;
        height: 40px;
        margin-right: 8px;
        position: relative;
    }
    .ttsListItemIcon::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 4px;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .ttsListItemIcon:hover::before {
        opacity: 1;
    }
    .ttsListItemIcon img {
        width: 100%;
        height: 100%;
        border-radius: 4px;
    }
    .ttsListItemIconPlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: none;
        width: 24px;
        height: 24px;
        z-index: 1;
    }
    .ttsListItemIcon:hover .ttsListItemIconPlay {
        display: block;
    }
    .ttsListItemIconPlay img {
        width: 100%;
        height: 100%;
    }
    .ttsListItemRight {
        flex: 1;
        min-width: 0;
    }
    .ttsListItemRightTitle {
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ttsListItemRightDesc {
        font-size: 11px;
        color: #999;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 公告 */
    .noticesBox {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #111111;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        z-index: 9999;
        border: 1px solid #111111;
        display: none;
        color: #fff;
    }
    .noticesBoxClose {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }
    .noticesBoxClose img {
        width: 100%;
        height: 100%;
    }
    .noticesBoxTitle {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid #aaa;
        margin-bottom: 20px;
    }
    .noticesBoxContent {
        padding: 0 20px;
        font-size: 16px;
        line-height: 1.6;
        padding-bottom: 20px;
        font-size: 20px;
    }
    .loadingBox{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-size: 14px;
        color: #999;
        opacity: 1;
        z-index: 9999999;
    }
    .loadingBox img{
        width: 300px;
    }

    /* 声音克隆 */
    .voiceCloningContainer {
        width: 100%;
    }
    .voiceCloningBox {
        background: #ffffff;
        width: 100%;
    }
    .voiceCloningBoxContent{
        border: 1px dashed #888888;
        padding: 24px;
        border-radius: 10px;
        padding-bottom: 0;
    }
    .voiceCloningBox label {
        font-weight: 500;
        font-size: 14px;
        color: #1d1d1f;
        display: block;
        margin-bottom: 6px;
    }
    .voiceCloningBox input {
        width: 100%;
        padding: 10px;
        border: 1px solid #d2d2d7;
        border-radius: 8px;
        font-size: 14px;
        background: #fafafa;
    }
    .voiceCloningBox input:focus {
        border-color: #0066cc;
        outline: none;
        background: #fff;
    }
    .voiceCloningBox button {
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        border: none;
        border-radius: 8px;
    }
    #voiceCloningButton{
        margin-bottom: 5px;
    }
    #voiceCloningUploadProgress{
        display: none;
    }
    #voiceCloningMobileTips{
        display: block;
        margin-bottom: 20px;
    }

    .voiceCloningListBox {
        width: 100%;
        background: #ffffff;
        border-radius: 8px;
        margin-top: 20px;
    }
    .voiceCloningListItem {
        display: flex;
        padding: 15px;
        border: 1px dashed #888888;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    .voiceCloningListItemLeft {
        margin-right: 15px;
    }
    .voiceCloningListItemLeft img {
        width: 60px;
        height: 60px;
        border-radius: 30px;
        object-fit: cover;
    }
    .voiceCloningListItemRight {
        flex: 1;
    }
    .voiceCloningListItemRight div {
        margin-bottom: 5px;
        color: #666;
        font-size: 14px;
    }
    .voiceCloningListItemRight div:first-child {
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }
    .voiceCloningListItemRight div:nth-child(4) {
        color: #0066cc;
    }
    .voiceCloningListItemRight div:last-child {
        font-size: 12px;
        color: #999;
    }
}