body {

    /* 尺寸 */
    --side-bar-width: 280px;
    --top-nav-height: 65px;

    --content-padding: 10px;

    --story-header-height: 55px;
}


.dark-mode {
    /* 颜色 */
    /*--bg_color: #161618;*/
    --bg-color: #0A0A0A;
    --bg-color-2: #1C1B1E;
    --surface-color: #262626;
    --text-color: #fff;
    --text-color-9: rgba(255, 255, 255, 0.9);
    --text-color-8: rgba(255, 255, 255, 0.8);
    --text-color-7: rgba(255, 255, 255, 0.7);
    --text-color-6: rgba(255, 255, 255, 0.6);
    --text-color-5: rgba(255, 255, 255, 0.5);
    --text-color-4: rgba(255, 255, 255, 0.4);
    --text-color-3: rgba(255, 255, 255, 0.3);
    --text-color-2: rgba(255, 255, 255, 0.2);
    --text-color-1: rgba(255, 255, 255, 0.1);
    --text-color-0-8: rgba(255, 255, 255, 0.08);
    --text-color-0-5: rgba(255, 255, 255, 0.05);
    /*--theme_color: #FFDA2A;*/
    /*--theme-color: #9333EA;*/
    --theme-color: #7a41db;
    --link-text-color: var(--theme-color);


    --primary-btn-bg: var(--theme-color);
    --primary-btn-text-color: #fff;

    /* 半透明按钮 （追踪按钮）*/
    --translucent-btn-bg: rgba(147, 51, 234, 0.2);
    --translucent-btn-text-color: #9333EA;

    /*副按钮*/
    --sub-btn-bg: #F2F2F2;
    --sub-btn-text-color: #0B0C0F;

    --input-focus-border-color: var(--theme-color);

    --danger-color: #e76262;

    --male-color: #2980b9;
    /*--female-color: #e15f53;*/
    --female-color: pink;

    --favorite-color: #ffff00;

    --sender-bubble-bg: #9333EA;
    /*--sender-bubble-bg: #1C1B1E;*/
    --sender-bubble-text-color: #efefef;

    --receiver-bubble-bg: #1C1B1E;
    --receiver-bubble-text-color: #efefef;

    --narration-bubble-bg: rgba(0,0,0,0.6);
    --narration-bubble-text-color: #efefef;

}


.btn {
    cursor: pointer;
    height: 50px;
    outline: none;
    border: none;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
}

.primary-btn {
    color: var(--primary-btn-text-color);
    background: linear-gradient(to right, var(--theme-color), #b086d5);
}

.primary-btn * {
    color: var(--primary-btn-text-color);
}

.danger-btn {
    background: transparent;
    color: var(--danger-color);
}


.sub-btn {
    background: var(--sub-btn-bg);
    color: var(--sub-btn-text-color);
}

.sub-btn * {
    color: var(--sub-btn-text-color);
}


.clear-float:after {
    content: "";
    height: 0;
    clear: both;
    overflow: hidden;
    display: block;
    visibility: hidden;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--text-color-9);

    font-family: Arial, sans-serif;
    transition: background-color 0.1s, color 0.1s; /* 设置渐变效果，1秒的时间 */


    scrollbar-width: thin; /* 适配 Firefox */
}


a {
    text-decoration: none;
    cursor: pointer;
    color: var(--link-text-color);
}


i {
    color: inherit;
    font-size: inherit;
}


body {
    background: var(--bg-color);
    height: 100vh;
    position: relative;
    /*overflow: hidden;*/
}


/*body::after {*/
/*  content: '';*/
/*  position: fixed;*/
/*  bottom: -50%;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 50%;*/
/*  -webkit-box-shadow:0px 0px 300px 75px rgba(127,125,240,0.83);*/
/*-moz-box-shadow: 0px 0px 300px 75px rgba(127,125,240,0.83);*/
/*box-shadow: 0px 0px 300px 75px rgba(127,125,240,0.83);*/
/*    z-index: -1;*/
/*}*/


.ellipsis {
    white-space: nowrap; /* 禁止换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}


.ellipsis-2 {
    display: -webkit-box; /* 使用 flexbox 和 WebKit 盒子模型 */
    -webkit-line-clamp: 2; /* 限制为两行 */
    -webkit-box-orient: vertical; /* 设置为垂直排列 */
    overflow: hidden; /* 隐藏超出的部分 */
    text-overflow: ellipsis; /* 超出的文本显示省略号 */
}


.ellipsis-3 {
    display: -webkit-box; /* 使用 flexbox 和 WebKit 盒子模型 */
    -webkit-line-clamp: 3; /* 限制为两行 */
    -webkit-box-orient: vertical; /* 设置为垂直排列 */
    overflow: hidden; /* 隐藏超出的部分 */
    text-overflow: ellipsis; /* 超出的文本显示省略号 */
}






/* 定义加载动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 应用动画到一个div元素 */
.loader {
    --size: 40px;
    --border-size: 5px;
    border: var(--border-size) solid var(--theme-color);
    border-top: var(--border-size) solid transparent;
    border-radius: 50%;
    width: var(--size);
    height: var(--size);
    animation: spin 1s linear infinite;
}


.loader-2 {
    --size: 40px;
    --border-size: 5px;
    border: var(--border-size) solid var(--text-color);
    border-top: var(--border-size) solid transparent;
    border-radius: 50%;
    width: var(--size);
    height: var(--size);
    animation: spin 1s linear infinite;
}




.loading-modal-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


.loading-modal {
    --size: 100px;
    height: var(--size);
    width: var(--size);
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-modal-text {
    margin-bottom: 15px;
    opacity: 0.6;
}

.loading-modal .loader-2 {
    --size: 35px;
    --border-size: 5px;
}




/*声浪效果*/
.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
}

.wave-bar {
    background-color: white;
    width: 2px;
    margin: 0 1px;
    border-radius: 2px;
    height: 100%;
    transition: height 0.2s ease;
}

.wave-bar:nth-child(1) {
    height: 30%;
}

.wave-bar:nth-child(2) {
    height: 70%;
}

.wave-bar:nth-child(3) {
    height: 50%;
}

.wave-bar:nth-child(4) {
    height: 90%;
}

.wave-bar:nth-child(5) {
    height: 40%;
}

.waveform.playing .wave-bar {
    animation: wave 1s infinite ease-in-out;
}

.waveform.playing .wave-bar:nth-child(1) {
    animation-delay: 0s;
}

.waveform.playing .wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.waveform.playing .wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.waveform.playing .wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.waveform.playing .wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}