.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #151515;
    border-radius: 1rem;
    padding: 3rem;
    overflow-y: auto;
    position: relative;
    margin-bottom: 0rem;
}

.modal-content:hover {
    cursor: default;
}

.modal-content-body-composition {
    max-width: 82%;
    max-height: 80%;
}

.modal-content-fitness {
    min-width: 82%;
    min-height: 65%;
}

.modal-title {
    color: #ffffff;
    font-size: 3rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin-bottom: 1rem;
}

.warning-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    margin-left: -1.5rem;
}

.warning-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.warning-text {
    color: #ff0000;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 3px solid #272727;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
}

.instruction-icon {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.instruction-text {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    flex: 1;
    padding-right: 2rem;
    max-width: calc(100% - 4rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.instruction-mic-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    display: none;
}

.instruction-mic-icon.show {
    display: block;
}

.modal-confirm-button {
    background: #FF6600;
    border: none;
    border-radius: 1rem;
    color: #000000;
    padding: 2rem 4rem;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    width: 20rem;
    height: 6rem;
    transition: all 0.3s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-confirm-button:disabled {
    background: #666666;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}


.unlinked-icon-circle {
    width: 13rem;
    height: 15rem;
    border-radius: 50%;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: fixed; /* 使用 fixed 定位，相对于视口 */
    z-index: 10001;
    pointer-events: none;
    margin-top: -67rem;
}

.unlinked-title-icon {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    margin-top: -2rem;
}

.unlinked-modal {
    background: #151515;
    border-radius: 2rem;
    padding: 3rem;
    max-width: 82%;
    max-height: 85%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    margin-top: -10rem;
}

.unlinked-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.unlinked-modal-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    z-index: 10002;
}

.unlinked-modal-title {
    color: #FF012B;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0;
    text-align: center;
    margin-top: -1rem;
}

.unlinked-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.unlinked-instruction {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Light', Arial, sans-serif;
    margin: 0;
    text-align: left;
    text-indent: 2rem;
}

.unlinked-start-communication-button {
    background: #FF6600;
    border: none;
    border-radius: 0.5rem;
    padding: 2rem 3rem;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 35rem;
    max-height: 5rem;
    margin: 0 auto;
}

.unlinked-button-icon {
    width: auto;
    height: 2rem;
    flex-shrink: 0;
    display: block;
}

.unlinked-communication-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.unlinked-communicating-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 35rem;
    margin: 0 auto;
}

.unlinked-communicating-text {
    color: #FF6600;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    font-weight: 700;
}

.unlinked-cancel-button {
    background: #000000;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    height: 5rem;
}



.unlinked-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.unlinked-info-text {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    text-align: left;
    padding-left: 2rem;
}

.unlinked-link {
    color: #FF6600;
    cursor: pointer;
}



.unlinked-device-id-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
   
}

.unlinked-device-id-label {
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.unlinked-device-id-value {
    color: #FF6600;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.unlinked-support-text {
    color: #999999;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    text-align: center;
}

.unlinked-linked-button {
    background: #000000;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 2rem 3rem;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    width: 35rem;
    max-height: 5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Link Device to Account 弹窗 */

.link-account-overlay {
    background: transparent; /* 透明背景，可以看到底图 */
}

.link-account-modal {
    position: relative;
    background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
    border-radius: 2rem;
    padding: 3rem;
    min-width: 82%;
    min-height: 37%;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 20rem; /* 为更大的悬浮图片留空间 */
    margin-top: -15rem;  /* 让图片上半部分露出 */
}

.link-account-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}

.link-account-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -12rem; /* 再向上悬浮，露出更多上半部分 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10010;
    pointer-events: none;
}

.link-account-hero-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.link-account-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:2rem;
    text-align: center;
    margin-top: 15rem;
}

.link-account-title {
    color: #ff6600;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0.2rem 0 0;
}

.link-account-username {
    color: #00c26f;
    font-size: 2rem;
    margin: 0;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.link-account-desc {
    color: #cfcfcf;
    font-size: 2rem;
    margin: 0.4rem 0 0;
    line-height: 1.4;
}

.link-account-actions {
    width: 80%;
    display: flex;
    justify-content: space-between;
    gap: 15rem;
    margin-top: 1rem;
}

.link-account-btn {
    flex: 1;
    height: 4rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    transition: all 0.2s ease;
}

.link-account-decline {
    background: #0b0b0b;
    color: #ffffff;
}

.link-account-accept {
    background: #ff6600;
    color: #0b0b0b;
}

/* Link Device to Account Success 弹窗 */

.link-success-overlay {
    background: transparent; /* 透明背景，可以看到底图 */
}

.link-success-modal {
    position: relative;
    background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
    border-radius: 2rem;
    padding: 3rem;
    min-width: 82%;
    min-height: 50%;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 25rem; /* 为更大的悬浮图片留空间 */
    margin-top: -7rem;  /* 让图片上半部分露出 */
}

.link-success-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    z-index: 10011;
}

.link-success-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -12rem; /* 再向上悬浮，露出更多上半部分 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10010;
    pointer-events: none;
}

.link-success-hero-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.link-success-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    text-align: center;
    margin-top: 10rem;
}

.link-success-title {
    color: #ff6600;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0.2rem 0 0;
}

.link-success-message {
    color: #00c26f;
    font-size: 2rem;
    margin: 0;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.link-success-actions {
    width: 80%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.link-success-btn {
    background: #0b0b0b;
    color: #ffffff;
    height: 4rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    transition: all 0.2s ease;
    padding: 0 4rem;
    min-width: 15rem;
}

/* Cloud Service Expired 弹窗 */

.expired-overlay {
    background: transparent; /* 透明背景，可以看到底图 */
}

.expired-icon-circle {
    width: 13rem;
    height: 15rem;
    border-radius: 50%;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: fixed; /* 使用 fixed 定位，相对于视口 */
    z-index: 10001;
    pointer-events: none;
    margin-top: -67rem;
}

.expired-title-icon {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    margin-top: -2rem;
}

.expired-modal {
    background: #151515;
    border-radius: 2rem;
    padding: 3rem;
    max-width: 82%;
    min-height: 50%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    margin-top: -8rem;
}

.expired-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.expired-modal-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    z-index: 10002;
}

.expired-modal-title {
    color: #FF012B;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0;
    text-align: center;
}

.expired-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expired-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.expired-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expired-info-text {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    text-align: left;
    padding-left: 2rem;
    line-height: 1.6;
}

.expired-greeting {
    display: block;
    margin-bottom: 0.5rem;
}

.expired-link {
    color: #FF6600;
    text-decoration: none;
    cursor: pointer;
}



.expired-support-text {
    color: #999999;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    text-align: center;
    line-height: 1.6;
    margin-top: 15rem;
}

.expired-renewal-button {
    background: #000000;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 2rem 3rem;
    font-size: 1.6rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    width: 25rem;
    max-height: 5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 打印弹窗样式 */
.modal-content-print {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 4rem 3rem;
    min-width: 80%;
    max-width: 80%;
    text-align: center;
}

.print-modal-icon {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(48%) sepia(93%) saturate(2476%) hue-rotate(1deg) brightness(101%) contrast(101%);
}

.print-modal-text {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}

.print-modal-button {
    background: #000000;
    border: none;
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 1.5rem 4rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.print-modal-button:hover {
    background: #1a1a1a;
}

.print-modal-button:active {
    background: #0a0a0a;
}


