.hidden {
    display: none;
}

.item-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-primary {
    color: var(--primary);
}

.card {
    background-color: #f4f5f7;
    padding: 16px;
    border-radius: 8px;
}

button.ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--primary);
    padding: 0;
}

button.ghost:hover {
    color: var(--primary-hover);
}

a[aria-current="page"] {
    background-color: #F1F8F9;
    color: var(--primary);
}

.translator-service-setting label {
    margin: 9px 0;
}

.translator-service-setting select {
    width: auto;
}

.translator-service-setting input {
    width: auto;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 700px;
}

#myIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid #f3f3f3;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    z-index: 9999;
    display: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

img[lang|="zh"] {
    display: none;
}

#mouseHover {
    [ui-language|="zh"] img[lang] {
        display: none;
    }
    
    [ui-language|="zh"] img[lang|="zh"] {
        display: block;
    }
}

.floatingButtonTipTittle{
  font-family: Inter;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;

}

.floatingButtonTipContent{
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;

}
.intro-container {
    display: flex;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(227, 253, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.08);
    margin-top: 16px;
    margin-bottom: 24px;
    align-items: center;
    box-sizing: border-box;
    border-width: 0px;
    border-style: solid;
    border-color: rgb(229, 231, 235);
  width: 692px;
  height: 272px;
    img {
        width: 336px;
        aspect-ratio: auto 280 / 200;
        border-width: 0px;
        border-color: rgb(229, 231, 235);
        box-sizing: border-box;
        background-repeat: no-repeat;
        vertical-align: middle;
        height: 196px;
        max-width: 100%;
        border-style: none;
      padding-left: 16px;
    }
}

.aiList {
    flex-wrap: wrap;
    display: flex;
    box-sizing: border-box;
    background-repeat: no-repeat;
    border-width: 0px;
    border-style: solid;
    border-color: rgb(229, 231, 235);
}

.assistant-container {
    margin-right: 24px;
    border: 1px solid var(--muted-border-color);
    color: #3D4A56;
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 15px;
    position: relative;
    flex-shrink: 0;
    width: 46.8%;
    padding-bottom: 28px;
    cursor: pointer;

    .header_ {
        margin-bottom: 1rem;
        justify-content: space-between;
        align-items: center;
        display: flex;

        .headContainer {
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: space-between;

            .icon {
                border-radius: 9999px;
                margin-right: 0.75rem;
                justify-content: center;
                align-items: center;
                width: 3rem;
                height: 3rem;
                display: flex;

                img {
                    display: block;
                    border-radius: 9999px;
                    cursor: pointer;
                    max-width: 100%;
                    height: auto;
                    border-style: none;
                }
            }

            .tips {
                display: flex;
                max-width: none;
                text-align: left;
                padding-right: 0.5rem;
                margin-bottom: 0px;
                justify-content: flex-start;
                flex-direction: column;
                flex: 1 1 0%;
                cursor: pointer;

                .assistant-text {
                    text-align: left;
                    cursor: pointer;
                    max-width: 140px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    font-weight: 700;
                    font-size: 1rem;
                    line-height: 1.5rem;

                    .off {
                        font-weight: 400 !important;
                        color: rgb(153, 153, 153) !important;
                        font-size: 14px !important;
                    }
                }
            }

            .color-button {
                white-space: nowrap;
                --border-color: #00AAB5;
                max-width: 130px;
                overflow: hidden;
                border: 1px solid #00AAB5;
                border-radius: 1rem;
                align-items: center;
                background-color: transparent;
                font-size: 0.875rem;
                line-height: 1.25rem;
                color: #00AAB5 ;
                padding-top: 0.25rem;
                padding-bottom: 0.25rem;
                outline: none;
                text-align: center;
                cursor: pointer;
                /*transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);*/
                padding-left: 0.75rem;
                padding-right: 0.75rem;
                display: flex;
            }
            .gray-button{
                white-space: nowrap;
                --border-color: #999999;
                max-width: 130px;
                overflow: hidden;
                border: 1px solid #999999;
                border-radius: 1rem;
                align-items: center;
                background-color: transparent;
                font-size: 0.875rem;
                line-height: 1.25rem;
                color: #999999 ;
                padding-top: 0.25rem;
                padding-bottom: 0.25rem;
                outline: none;
                text-align: center;
                cursor: pointer;
                /*transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);*/
                padding-left: 0.75rem;
                padding-right: 0.75rem;
                display: flex;
            }

        }

    }
    p {
        margin: 0;
        font-size: 0.825rem;
        font-weight: 400;
        color: hsl(205deg, 16%, 77%);
    }
}


.options-account {
    display: flex;
    align-items: center;
    padding: 16px;

    img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        margin-right: 10px;
    }

    span.email, span.not-logged {
        margin-right: auto;
    }

    span.email {
        display: block;
    }

    span.not-logged {
        color: #797F8E;
        display: none;
    }

    #btnLogin {
        display: none;
        width: fit-content;
    }

    #btnLogout {
        display: block;
        width: fit-content;
    }
}

.options-account.not-logged {
    span.email {
        display: none;
    }

    span.not-logged {
        display: block;
    }

    #btnLogin {
        display: block;
    }

    #btnLogout {
        display: none;
    }
}


.fontOptionContainer{
    padding-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    p{
        margin-bottom: 0.25rem;
    }
}

.translatedText{
    font-family: inherit;
    font-size: 18px;
}

.spitLine::before{
    content: "";
    display: block;
    max-width: 80px;
    width: 10%;
    border-top: 1px dashed #94a3b8;
    padding-top: 8px;
}

details{
    display: block;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    border-style: none;
    border-bottom: 1px solid hsl(205deg, 20%, 94%);
}

.detail{
    text-align: right;
    line-height: 1rem;
    margin-top: 1.25rem;
}

details summary:not([role]) {
    color: hsl(205deg, 20%, 32%);
    font-size: 0.875rem;
}

details summary::after {
    display: block;
    width: 1rem;
    height: 1rem;
    margin-inline-start: calc(var(--spacing, 1rem)* 0.5);
    float: right;
    transform: rotate(-90deg);
    background-image: var(--icon-chevron);;
    background-position: right center;
    background-size: 1rem auto;
    background-repeat: no-repeat;
    content: "";
    transition: transform var(--transition);
}

.flex-end{
    align-items: flex-end;
}

.flex-column{
    flex-direction: column;
}

.flex{
    display: flex;
}

.flex-center{
    align-items: center;
}

.textColorInput{
    width: 8rem !important;
    margin-right: 0.5rem;
}

.setFontFamily{
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.resetFontFamily{
    color:hsl(205deg, 15%, 41%);
    --text-decoration: underline;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.j-end{
    justify-content: flex-end;
}

:root{
    --font--dash--border:#59c1bd;
    --font--underLine-border:#72ece9;
    --font-marker--bg:0,0,0;
    --font--blockquote--left--bg:#FF0000;
    --font--spit--line--border: #000000;
}

.translatedTextContainer{
    margin: 8px 0 !important;
    display: inline-block;
}

.fontFamilyDashRest{
    background: linear-gradient(to right, var(--font--dash--border) 0%, var(--font--dash--border) 50%, transparent 50%, transparent 100%) repeat-x left bottom;
    background-size: 8px 2px;
    padding-bottom: 2px;
}

.fontFamilyUnderlineRest{
    border-bottom: 1px solid var(--font--underLine-border) !important;
}

.fontFamilyMaskRest{
    filter: blur(5px) !important;
    transition: filter 0.3s ease !important;
    border-radius: 10px;
    display: inline-block;
}

.fontFamilyMaskRest:hover{
    filter: none !important;
}

.fontFamilySpitLineRest{
    color: #f50a0a;
}

.fontFamilySpitLineRest::before{
    content: "";
    display: block;
    max-width: 80px;
    width: 10%;
    border-top: 1px dashed var(--font--spit--line--border);
    padding-top: 8px;
}


.fontFamilyMarkerReset{
    background:
            linear-gradient(to right, rgba(var(--font-marker--bg), 0.1), rgba(var(--font-marker--bg), 0.9) 3%, rgba(var(--font-marker--bg), 0.9) 35%, rgba(var(--font-marker--bg), 0.9) 70%, rgba(var(--font-marker--bg), 0.8) 95%, rgba(var(--font-marker--bg), 0.3));
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.fontFamilyBlockQuoteReset{
    border-left: 4px solid var(--font--blockquote--left--bg) !important;
    padding-left: 12px !important;
    margin-top: 4px;
    margin-bottom: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    display: block;
}

#messageBox {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    z-index: 1000;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  border: 2px solid #00BECA;
}
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto;
  border: 1px solid #888;
  padding: 32px 28px;
  width: 552px;
  height: 332px;
  max-width: 552px;
  border-radius: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.input-container {
  margin-bottom: 15px;
}
.floatingButtonUrlInputLabel {
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  text-align: left;
  color: #1F2943;
}
.floatingButtonUrlInputInput {
  width: 488px;
  height: 56px;
  padding: 16px 15px;
  border: 1px solid #D0D5DD;
  border-radius: 12px;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}
.floatingButtonUrlInputInput:focus{
  border: 2px solid #00BECA;
}
.helper-text {
  margin-top: 24px;
  margin-bottom: 28px;
  color: #666666;
  width: 488px;
  height: 72px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}
.button-group {
  text-align: center;
}
.floatingCommonButton {
  width: 152px;
  height: 44px;
  padding: 8px 16px;
  margin-left: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cancel-btn {
  background: #F4F5F7;
  color: #333;
}
.cancel-btn:hover{
  background: #EDEFF2;
}
.confirm-btn {
  background: #00AAB5;
  color: white;
}
.forbidden{
  opacity: 0.5;
  pointer-events: none !important;
}
.confirm-btn:hover{
  background: #00C9D5;
}

/* 消息框的样式 */
.floatingButtonMessage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50; /* 绿色背景 */
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

/* 消息淡出效果 */
.floatingButtonMessage.hide {
  opacity: 0;
}