/* @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); */
@import url('/external/css2.css');
*{
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

:root{
    --primary-color: #131314d1;
    --secondary-color: #1e1f20ad;
    --secondary-hover-color: #333537;
    --focus-color: #282A2C;
    --focus-hover-color: #37393B;
    --button-hover-color: #2f3030;
    --text-color: #fff;
    --text-secondary-color: #D8D8D8;
    --heading-secondary-color: #b19874;
    --placeholder-color: #ABAFB3;
    --accent-color: #6366F1;
    --border-color: #333537;
    --shadow-light-1: rgba(163, 177, 198, 0.4);
    --shadow-light-2: rgba(255, 255, 255, 0.6);
    --shadow-light-3: rgba(163, 177, 198, 0.5);
    --shadow-light-4: rgba(255, 255, 255, 0.7);
    --shadow-dark-1: rgba(13, 15, 23, 0.4);
    --shadow-dark-2: rgba(37, 41, 59, 0.6);
    --shadow-dark-3: rgba(13, 15, 23, 0.5);
    --shadow-dark-4: rgba(37, 41, 59, 0.7);
    --toggle-bg-color: #5f5f5f;
    --setting-item-hover-bg: rgba(255, 255, 255, 0.05);
    --overlay-light: rgba(167, 175, 196, 0.15);
    --overlay-dark: rgba(23, 25, 35, 0.5);
    --overlay-dark-alt: rgba(0, 0, 0, 0.7);
    --avatar-edit-light: linear-gradient(145deg, #6366f1, #4f46e5);
    --avatar-edit-dark: linear-gradient(145deg, #4f46e5, #4338ca);
    --click-effect-bg: rgba(255, 255, 255, 0.1);
    --chat-bg-light: #000000c9;
    --chat-bg-dark: #ffb26761;
    --chat-bg-dark-alt: #232529;
    --message-bg: #1e1f20ad;
    --message-bg-dark: #232529ad;
    --scrollbar-thumb: #555;
}

.light_mode{
    --primary-color: #ffffffc7;
    --secondary-color: #f0f4f9d6;
    --secondary-hover-color: #DDE3EA;
    --focus-color: #E9EEF6;
    --focus-hover-color: #E1E6ED;
    --button-hover-color: #E9ECF1;
    --text-color: #000;
    --text-secondary-color: #4D4D4D;
    --heading-secondary-color: #C4C7C5;
    --placeholder-color: #717075;
    --chat-bg-light: #ffffff8f;
    --chat-bg-dark: #d5a76eab;
    --chat-bg-dark-alt: #e6e9f0;
    --message-bg: #f0f4f9d6;
    --message-bg-dark: #e6e9f0d6;
    --scrollbar-thumb: #999;
}

body{
    background: var(--primary-color);
    background-image: url(https://bet.kozekiui.lr-luorui.cn/images/background_UI_dn.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.header,
.chats .message,
.chats .message .message__content,
.prompt__form{
    margin: 0 auto;
    max-width: 824px;
    /* background: var(--primary-color); */
    border-radius: 20px;
}

body.hide-header .header{
    margin: 0;
    display: none;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.navbar__logo{
    /* color: var(--text-secondary-color); */
    color: #e0e0e0;
    font-weight: 600;
}

.navbar__button{
    box-shadow: 1px 0px 10px 2px #ffe1b1;
    padding: 0.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: none;
    background: var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s ease;
    backdrop-filter: blur(15px);
}

.navbar__button:hover{
    background: var(--secondary-hover-color);
}

.header{
    margin-top: 6vh;
}

.header__title h1{
    width: fit-content;
    background: linear-gradient(to right, #4a90e2, #a355b9, #ff6b6b);
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 3.25rem;
    font-weight: 600;
}

.header__title h2{
    color: var(--heading-secondary-color);
    font-size: 3.25rem;
    font-weight: 600;
}

.suggests{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.7rem;
    gap: 0.5rem;
    margin: 0.5rem 0px 13% 0px;
}

@media screen and (max-width: 980px) {

    .header{
        padding: 0 2rem;
    }

    .header__title{
        line-height: 2.8rem;
    }

    .header__title h1{
        font-size: 2.7rem;
    }

    .header__title h2{
        font-size: 2.5rem;
    }

    .suggests{
        justify-content: center;
    }

    .suggests__item:nth-child(3),
    .suggests__item:nth-child(4){
        display: none;
    }

    .message{
        padding: 0 1.5rem;
    }

    .prompt__disclaim{
        font-size: 0.8rem;
    }

    /* 苹果风格悬浮窗设置面板 */
.settings-panel {
    position: fixed;
    top: 0%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: 90vw;
    height: 620px;
    max-height: 90vh;
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

/* 苹果风格窗口控制按钮 */
.window-controls {
    display: flex;
    gap: 6px; /* 苹果风格更小间距 */
    padding: 10px 14px; /* 调整内边距使按钮更靠近左侧 */
    position: absolute; /* 绝对定位确保在左上角 */
    top: 0;
    left: 0;
}

.window-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.window-control-btn:hover {
    transform: scale(1.1);
}

.close-btn {
    background-color: #FF3B30; /* 苹果风格红色 */
    box-shadow: 0 1px 3px rgba(255, 59, 48, 0.4); /* 添加轻微阴影 */
}

.minimize-btn {
    background-color: #FFCC00; /* 苹果风格黄色 */
    box-shadow: 0 1px 3px rgba(255, 204, 0, 0.4); /* 添加轻微阴影 */
}

.maximize-btn {
    background-color: #34C759; /* 苹果风格绿色 */
    box-shadow: 0 1px 3px rgba(52, 199, 89, 0.4); /* 添加轻微阴影 */
}

/* 苹果风格设置面板头部 */
.settings-panel__header {
    display: flex;
    align-items: center;
    justify-content: center; /* 确保标题居中 */
    padding: 0 16px;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    height: 48px;
    position: relative; /* 相对定位作为按钮的容器 */
}

.settings-panel__header h2 {
    font-size: 14px; /* 苹果风格更小字体 */
    font-weight: 400; /* 苹果风格更轻字体 */
    color: var(--text-color);
    margin: 0;
    text-align: center;
    width: 100%; /* 确保标题宽度足够 */
}

/* 苹果风格设置内容区域 */
.settings-panel__content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 个人信息区域样式 */
.profile-section {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-container {
    position: relative;
    margin-right: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.profile-avatar-edit:hover {
    opacity: 1;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 14px;
    color: var(--text-secondary-color);
}

/* 苹果风格设置组 */
.setting-group {
    margin-bottom: 24px;
}

.group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--placeholder-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 12px;
}

/* 苹果风格设置项 */
.setting-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.setting-item:hover {
    background-color: var(--setting-item-hover-bg);
}

.setting-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary-color);
    margin-right: 16px;
}

.setting-item-content {
    flex: 1;
}

.setting-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.setting-item-subtitle {
    font-size: 13px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.setting-item-arrow {
    color: var(--text-secondary-color);
    opacity: 0.7;
}

/* 苹果风格切换开关 */
.mac-toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 27px;
}

.mac-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg-color);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* 苹果风格下拉选择框 */
.mac-select {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-color);
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    min-width: 120px;
}

/* 新拟物UI - 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(167, 175, 196, 0.15);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal__content {
    background: linear-gradient(145deg, #e6e9f0, #ffffff);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* 深色模式下的模态框 */
.dark-mode .modal {
    background-color: rgba(23, 25, 35, 0.5);
}

.dark-mode .modal__content {
    background: linear-gradient(145deg, #2a2d3e, #1f2231);
    box-shadow:
        8px 8px 16px rgba(13, 15, 23, 0.6),
        -8px -8px 16px rgba(37, 41, 59, 0.8);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.modal__header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal__close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: linear-gradient(145deg, var(--chat-bg-light), var(--chat-bg-dark));
    box-shadow:
        3px 3px 6px rgba(163, 177, 198, 0.6),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.dark-mode .modal__close-btn {
    background: linear-gradient(145deg, #2a2d3e, #1f2231);
    box-shadow:
        3px 3px 6px rgba(13, 15, 23, 0.6),
        -3px -3px 6px rgba(37, 41, 59, 0.8);
}

.modal__close-btn:hover {
    color: var(--text-color);
    transform: scale(1.05);
}

.modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal__footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-cancel {
    background: linear-gradient(145deg, #e6e9f0, #ffffff);
    border: none;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        5px 5px 10px rgba(163, 177, 198, 0.6),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.dark-mode .btn-cancel {
    background: linear-gradient(145deg, #2a2d3e, #1f2231);
    box-shadow:
        5px 5px 10px rgba(13, 15, 23, 0.6),
        -5px -5px 10px rgba(37, 41, 59, 0.8);
}

.btn-cancel:hover {
    transform: translateY(-3px);
}

.btn-cancel:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 6px rgba(163, 177, 198, 0.6),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.dark-mode .btn-cancel:active {
    box-shadow:
        inset 3px 3px 6px rgba(13, 15, 23, 0.6),
        inset -3px -3px 6px rgba(37, 41, 59, 0.8);
}

/* 导入拖放区域样式 - 新拟物风格 */
.import-drop-area {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.container {
    height: 300px;
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    gap: 15px;
    background: linear-gradient(145deg, #e6e9f0, #ffffff);
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.dark-mode .container {
    background: linear-gradient(145deg, #2a2d3e, #1f2231);
    box-shadow:
        8px 8px 16px rgba(13, 15, 23, 0.6),
        -8px -8px 16px rgba(37, 41, 59, 0.8);
}

.container.active {
    transform: scale(1.02);
}

.header {
    flex: 1;
    width: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* background: linear-gradient(145deg, #ffffff, #e6e9f0);
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.6);
    padding: 20px; */
}

.dark-mode .header {
    background: linear-gradient(145deg, #1f2231, #2a2d3e);
    box-shadow:
        inset 4px 4px 8px rgba(13, 15, 23, 0.4),
        inset -4px -4px 8px rgba(37, 41, 59, 0.6);
}

.header svg {
    height: 100px;
    margin-bottom: 15px;
}

.header p {
    text-align: center;
    color: var(--text-color);
    font-size: 16px;
}

.footer {
    width: 100%;
    height: 50px;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--text-color);
    border: none;
    background: linear-gradient(145deg, #e6e9f0, #ffffff);
    box-shadow:
        5px 5px 10px rgba(163, 177, 198, 0.6),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.dark-mode .footer {
    background: linear-gradient(145deg, #2a2d3e, #1f2231);
    box-shadow:
        5px 5px 10px rgba(13, 15, 23, 0.6),
        -5px -5px 10px rgba(37, 41, 59, 0.8);
}

.footer:hover {
    transform: translateY(-3px);
}

.footer:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 6px rgba(163, 177, 198, 0.6),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.dark-mode .footer:active {
    box-shadow:
        inset 3px 3px 6px rgba(13, 15, 23, 0.6),
        inset -3px -3px 6px rgba(37, 41, 59, 0.8);
}

.footer svg {
    height: 130%;
    fill: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    box-shadow:
        3px 3px 6px rgba(163, 177, 198, 0.4),
        -3px -3px 6px rgba(255, 255, 255, 0.6);
}

.dark-mode .footer svg {
    background-color: rgba(37, 41, 59, 0.5);
    box-shadow:
        3px 3px 6px rgba(13, 15, 23, 0.4),
        -3px -3px 6px rgba(37, 41, 59, 0.6);
}

.footer p {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

#file {
    display: none;
}}

/* 修复弹窗底部间距问题 */
.modal__footer {
    margin-top: -2px;
    padding-top: 21px;
    padding-bottom: 11px;
}

.mac-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* 滚动条样式 */
.settings-panel__content::-webkit-scrollbar {
    width: 6px;
}

.settings-panel__content::-webkit-scrollbar-track {
    background: transparent;
}

.settings-panel__content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.settings-panel__content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 平板设备优化 */
@media screen and (max-width: 768px) {
    .settings-panel {
        width: 95vw;
        height: 95vh;
        max-width: none;
        max-height: none;
    }
}

/* 手机屏幕优化 */
@media screen and (max-width: 480px) {
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    .profile-name {
        font-size: 18px;
    }
    .group-title {
        padding-left: 8px;
    }
    .setting-item {
        padding: 10px 8px;
    }
}

/* 闭合之前未闭合的@media screen and (max-width: 980px) 媒体查询 */

    .suggests{
    margin: 0rem 0px 21% 0px;
}

/* 解决设置面板中重复的导入数据项 */
#settingsPanel .setting-item#importSettingItem:nth-child(2) {
    display: none;
}



.suggests__item{
    background: var(--secondary-color);
    color: var(--text-secondary-color);
    padding: 1rem;
    height: 12.5rem;
    width: 12.5rem;
    border-radius: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s ease;
    backdrop-filter: blur(15px);
    border: 4px solid #ffffff1f;
}

.suggests__item:hover{
    background: var(--secondary-hover-color);
}

.suggests__item-text{
    font-weight: 500;
    line-height: 1.375rem;
}

.suggests__item-icon{
    text-align: right;
}

.suggests__item-icon i{
    box-shadow: 1px 0px 30px 2px #ffe1b1;
    font-size: 1.5rem;
    background: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
}

.prompt{
    position: fixed;
    /* background: var(--primary-color); */
    z-index: 1000;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 1rem;
    backdrop-filter: blur(15px);
    border-radius: 50px 50px 0px 0px;
}

.prompt__input-wrapper{
    width: 100%;
    height: 4rem;
    display: flex;
    position: relative;
}

.prompt__form-input{
    box-shadow: 1px 0px 10px 2px #ffffff;
    height: 100%;
    width: 100%;
    border: none;
    resize: none;
    font-size: 1rem;
    color: var(--text-color);
    padding: 1rem 1.75rem;
    border-radius: 20px;
    background: var(--secondary-color);
    transition: background 0.3s ease;
    backdrop-filter: blur(15px);
}

.prompt__form-input:focus{
    /* background: var(--focus-color); */
}

.prompt__form-input:focus ~ .prompt__form-button:hover{
    background: var(--focus-hover-color);
}

.prompt__form-input::placeholder{
    color: var(--placeholder-color);
}

.prompt__form-button{
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: transparent;
    transition: all 0.3s ease;
}

.prompt__form-button:hover{
    background: var(--button-hover-color);
}

.prompt__form-button#sendButton{
    transform: translateY(-50%) scale(0);
}

.prompt__form-input:valid ~ .prompt__form-button#sendButton{
    transform: translateY(-50%) scale(1);
}

/* 输入框为空时的按钮位置 */
#scrollToBottomButton{
    right: 3.5rem;
}

#deleteButton{
    right: 0.5rem;
}

/* 输入框有内容时的按钮位置 */
.prompt__form-input:valid ~ #scrollToBottomButton{
    right: 7rem;
}

.prompt__form-input:valid ~ #deleteButton{
    right: 3.5rem;
}

.prompt__disclaim{
    text-align: center;
    color: var(--placeholder-color);
    font-size: 0.85rem;
    margin-top: 0rem;
}

.chats{
    padding: 2rem 1rem 8rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    scrollbar-color: var(--scrollbar-thumb) transparent;
    position: relative;
    z-index: 100;
    background: linear-gradient(145deg, var(--chat-bg-light), var(--chat-bg-dark));
    backdrop-filter: blur(15px);
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    border-radius: 28px 28px 0px 0px;
}

.dark-mode .chats{
    background: linear-gradient(145deg, var(--chat-bg-dark-alt), var(--chat-bg-dark));
    box-shadow:
        8px 8px 16px rgba(13, 15, 23, 0.6),
        -8px -8px 16px rgba(37, 41, 59, 0.8);
}

.chats .message--incoming{
    margin-top: 1.5rem;
}

.chats .message--outgoing:not(:first-child){
    margin-top: 40px;
}

.chats .message__content{
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 15px;
    background: var(--message-bg);
    box-shadow:
        5px 5px 10px rgba(163, 177, 198, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.dark-mode .chats .message__content{
    background: var(--message-bg-dark);
    box-shadow:
        5px 5px 10px rgba(13, 15, 23, 0.3),
        -5px -5px 10px rgba(37, 41, 59, 0.5);
}

.chats .message__content:hover{
    transform: translateY(-3px);
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.6);
}

.dark-mode .chats .message__content:hover{
    box-shadow:
        8px 8px 16px rgba(13, 15, 23, 0.4),
        -8px -8px 16px rgba(37, 41, 59, 0.6);
}

.chats .message__text{
    color: var(--text-color);
    white-space: pre-wrap;
    margin-top: 10px;
}

.hide{
    display: none;
}

.chats .message--error .message__text{
    color: #e55865;
}

.chats .message--loading .message__text{
    display: none;
}

.chats .message__avatar{
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

/* From Uiverse.io by 3bdel3ziz-T */ 
/* The switch container */
.switch {
  --transition: 300ms;
  --transition500: 500ms;
  --color-dark: #0c0f14;
  --color-darkGray: #21262e;
  --color-gray: #52555a;
  --color-offwhite: #cecece;
  --shadow-color: var(--color-dark);
  position: relative;
  display: flex;
  align-items: center;
  width: 60px;
  height: fit-content;
  background-color: var(--color-dark);
  border-radius: 30px;
  padding: 4px;
  transition: var(--transition500);
  user-select: none;
  cursor: pointer;
  overflow: hidden;
}

/* Svg styles */
.switch .svg {
  transition: var(--transition);
  position: absolute;
  left: 5px;
}
.switch .moon {
  width: 18px;
  fill: var(--color-gray);
  opacity: 1;
}

.switch .sun {
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: calc(100% - 21.5px);
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  scale: 0.8;
  opacity: 0;
}

.switch .sun .dot {
  positon: relative;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-dark);
  background: white;
  z-index: 1;
  box-shadow: 11px 0px 0px var(--shadow-color),
    10.3px 0px 0px var(--shadow-color), -11px 0px 0px var(--shadow-color),
    -10.3px 0px 0px var(--shadow-color), 0px -11px 0px var(--shadow-color),
    0px -10.3px 0px var(--shadow-color), 0px 11px 0px var(--shadow-color),
    0px 10.3px 0px var(--shadow-color), 8px 8px 0px var(--shadow-color),
    7.3px 7.3px 0px var(--shadow-color), 8px -8px 0px var(--shadow-color),
    7.3px -7.3px 0px var(--shadow-color), -8px -8px 0px var(--shadow-color),
    -7.3px -7.3px 0px var(--shadow-color), -8px 8px 0px var(--shadow-color),
    -7.3px 7.3px 0px var(--shadow-color);
}

.switch .sun .dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-dark);
}

/*checkbox styles */
.switch .circle {
  appearance: none;
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  left: 0;
  background-color: var(--color-darkGray);
  border: 1px solid var(--color-darkGray);
  transition: var(--transition500);
  box-shadow: 1px 1px 20px 3px var(--color-darkGray);
}

.switch:has(.circle:checked) {
  background: var(--color-offwhite);
}

.switch .circle:hover {
  margin-left: 3px;
}
.switch .circle:checked:hover {
  margin-left: -3px;
}

.switch .circle:checked {
  left: calc(100% - 24px);
  background: white;
  border-color: white;
  box-shadow: 1px 1px 30px 12px white;
}

.switch:has(.circle:checked) > .sun {
  opacity: 1;
}

.switch:has(.circle:checked) > .moon {
  opacity: 0;
}

/* From Uiverse.io by sayborduu */ 
/* Remove this container when use*/
.component-title {
  width: 100%;
  position: absolute;
  z-index: 999;
  top: 30px;
  left: 0;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  text-align: center;
}

/* The switch - the box around the slider */
.switch-parent {
  width: 51px;
  height: 31px;
  position: relative;
}

/* Hide default HTML checkbox */
.checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #e9e9eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
}

/* The slider */
.slider {
  width: 27px;
  height: 27px;
  position: absolute;
  left: calc(50% - 27px / 2 - 10px);
  top: calc(50% - 27px / 2);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease-out;
  cursor: pointer;
}

.switch-parent:active .slider {
  width: 37px;
  border-radius: 20px;
}

.checkbox:checked + .switch:active .slider {
  width: 37px;
  left: calc(30% - 27px / 2 + 10px);
}

.checkbox:checked + .switch {
  background-color: #34c759;
}

.checkbox:checked + .switch .slider {
  left: calc(50% - 27px / 2 + 10px);
  top: calc(50% - 27px / 2);
}

/* 添加手机屏幕专用优化 */
@media screen and (max-width: 480px) {
    /* 进一步缩小导航栏元素 */
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar__logo {
        font-size: 0.8rem;
    }

    .navbar__button {
        padding: 0.3rem;
        font-size: 1rem;
    }

    /* 进一步缩小标题字体 */
    .header__title h1 {
        font-size: 1.75rem;
    }

    .header__title h2 {
        font-size: 1.5rem;
    }

    /* 调整建议卡片大小 */
    .suggests__item {
        width: 10rem;
        height: 10rem;
    }

    .suggests__item-text {
        font-size: 0.9rem;
        line-height: 1.2rem;
    }

    /* 优化输入框高度 */
    .prompt__input-wrapper {
        height: 3.25rem;
    }

    /* 调整按钮尺寸 */
    .prompt__form-button {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    /* 调整按钮位置 */
    #scrollToBottomButton {
        right: 2.5rem;
    }

    .prompt__form-input:valid ~ #scrollToBottomButton {
        right: 5rem;
    }

    /* 隐藏提示文字 */
    .prompt__disclaim {
        display: none;
    }

    /* 优化设置面板 */
    .settings-panel {
        height: 90%;
        max-height: none;
    }

    .settings-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
}

/* 苹果风格关闭按钮 */
.settings-panel__close-btn {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ff5f56;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.settings-panel__close-btn:before {
    content: '×';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.settings-panel__back-btn {
    display: none;
}

    .settings-panel__header h2 {
        font-size: 1.1rem;
    }

    .settings-content h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .welcome-setting {
        padding: 10px 0;
    }
}

/* 修复小屏幕下头像显示问题 */
@media screen and (max-width: 600px) {
    .navbar__avatar,
    .chats .message__avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    #profileAvatar {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    /* 优化手机版导航栏 */
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar__logo {
        font-size: 0.9rem;
    }

    .navbar__button {
        padding: 0.4rem;
        font-size: 1.2rem;
    }

    /* 优化手机版标题 */
    .header__title h1 {
        font-size: 2rem;
    }

    .header__title h2 {
        font-size: 1.8rem;
    }

    /* 优化手机版提示框 */
    .prompt__input-wrapper {
        height: 3.5rem;
    }

    .prompt__form-input {
        padding: 0.75rem 1.5rem;
    }

    .prompt__form-button {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* 调整按钮位置 */
    #scrollToBottomButton {
        right: 3rem;
    }

    .prompt__form-input:valid ~ #scrollToBottomButton {
        right: 6rem;
    }

    /* 优化聊天内容 */
    .chats .message__content {
        gap: 1rem;
    }

    .chats .message__icon {
        margin-left: 3rem;
    }
}

.chats .message--loading .message__avatar{
    /* 禁用旋转动画 */
    animation: none;
}

.chats .message__icon{
    color: var(--text-color);
    cursor: pointer;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    font-size: 1.25rem;
    margin-left: 3.5rem;
    transition: background 0.3s ease;
}

.chats .message__icon:hover{
    background: var(--secondary-hover-color);
}

.chats .message__loading-indicator{
    display: none;
    gap: 0.6rem;
    width: 100%;
    flex-direction: column;
    margin-bottom: 20px;
}

.chats .message--loading .message__loading-indicator{
    display: flex;
}

.chats .message__loading-indicator .message__loading-bar{
    height: 1rem;
    width: 100%;
    border-radius: 0.135rem;
    background-position: -800px 0;
    background: linear-gradient(to right, #2563eb60 30%, var(--primary-color) 60%, #2563eb60);
    animation: loading 3s linear infinite;
}

.chats .message__loading-indicator .message__loading-bar:first-child{
    width: 85%;
}

.chats .message__loading-indicator .message__loading-bar:last-child{
    width: 70%;
}

@keyframes loading {
    
    0%{
        background-position: -800px 0;
    }
    50%{
        background-position: 0px 0;
    }
    100%{
        background-position: 800px 0;
    }

}

.code__copy-btn{
    background-color: transparent;
    border: none;
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 12px;
    z-index: 10;
    font-size: 18px;
}

p{
    margin-bottom: 10px;
}

ul{
    list-style: disc inside;
    margin-left: 20px;
}

ol{
    margin-left: 40px;
}

strong{
    font-weight: bold;
}

em{
    font-size: italic;
}

a{
    color: #1e90ff;
    text-decoration: none;
}

th,
td{
    border: 1px solid;
    text-align: left;
    padding: 10px;
}

pre{
    position: relative;
    background-color: var(--secondary-color);
    padding: 10px 0 0;
    font-family: monospace;
    font-size: 14px;
    border-radius: 10px;
    margin: 0;
    overflow-x: auto;
}

code{
    margin-top: 30px;
    border-radius: 5px;
    color: inherit;
}

.code__language-label{
    position: absolute;
    font-weight: bold;
    top: 10px;
    left: 12px;
    color: var(--placeholder-color);
    font-size: 14px;
    text-transform: capitalize;
}

.hljs{
    background-color: var(--secondary-color);
}

blockquote{
    padding-left: 60px;
    line-height: 2.5rem;
    color: var(--text-color);
}

/* 登录弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

/* .modal__content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    height: 64%;
    max-width: 9994px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
} */
.modal__close-btn{
      padding: 15px 30px;
      border: 2px solid #2c2c2c;
      background-color: #1a1a1a;
      color: #ffffff;
      font-size: 1.2rem;
      cursor: pointer;
      border-radius: 30px;
      transition: all 0.4s ease;
      outline: none;
      position: relative;
      overflow: hidden;
      font-weight: bold;
}

.modal__close-btne::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: scale(0);
  transition: transform 0.5s ease;
}

.modal__close-btn:hover::after {
  transform: scale(4);
}

.modal__close-btn:hover {
  border-color: #666666;
  background: #292929;
}

.modal__content {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 2rem;
    width: 42%;
    height: 62%;
    max-width: 10003px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
}

@media screen and (max-width: 430px) {
.modal__content {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 2rem;
    width: 81%;
    height: 43%;
    max-width: 10003px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
}
}

@media screen and (max-width: 978px) {
.modal__content {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 2rem;
    width: 81%;
    height: 43%;
    max-width: 10003px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
}
}

/* QQ号码弹窗样式 */
#qqModal .modal__content {
    text-align: center;
}

#qqModal input {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: none;
    border-radius: 0.5rem;
    background: var(--focus-color);
    color: var(--text-color);
}

.modal__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: var(--secondary-hover-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-cancel:hover {
    background: var(--button-hover-color);
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

/* 当元素有滚动内容且鼠标悬停时显示滚动条 */
.chats:hover::-webkit-scrollbar-thumb,
.settings-panel__content:hover::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

/* 滚动时显示滚动条 */
.chats::-webkit-scrollbar-thumb:active,
.settings-panel__content::-webkit-scrollbar-thumb:active {
    background: var(--accent-color);
}

.modal__content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal__content p {
    color: var(--text-secondary-color);
    margin-bottom: 0.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #e6e9f0);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.dark-mode .form-group input {
    background: linear-gradient(145deg, #2a2d3e, #1f2231);
    box-shadow:
        inset 4px 4px 8px rgba(13, 15, 23, 0.4),
        inset -4px -4px 8px rgba(37, 41, 59, 0.6);
}

.form-group input:focus {
    outline: none;
    box-shadow:
        inset 2px 2px 4px rgba(163, 177, 198, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.6),
        0 0 0 2px rgba(99, 102, 241, 0.5);
}

.dark-mode .form-group input:focus {
    box-shadow:
        inset 2px 2px 4px rgba(13, 15, 23, 0.4),
        inset -2px -2px 4px rgba(37, 41, 59, 0.6),
        0 0 0 2px rgba(99, 102, 241, 0.5);
}

.required {
    color: #e55865;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        5px 5px 10px rgba(163, 177, 198, 0.4),
        -5px -5px 10px rgba(255, 255, 255, 0.6);
}

.dark-mode .btn-login {
    background: linear-gradient(145deg, #4f46e5, #4338ca);
    box-shadow:
        5px 5px 10px rgba(13, 15, 23, 0.4),
        -5px -5px 10px rgba(37, 41, 59, 0.6);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow:
        7px 7px 14px rgba(163, 177, 198, 0.5),
        -7px -7px 14px rgba(255, 255, 255, 0.7);
}

.dark-mode .btn-login:hover {
    transform: translateY(-3px);
    box-shadow:
        7px 7px 14px rgba(13, 15, 23, 0.5),
        -7px -7px 14px rgba(37, 41, 59, 0.7);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow:
        inset 3px 3px 6px rgba(163, 177, 198, 0.4),
        inset -3px -3px 6px rgba(255, 255, 255, 0.6);
}

.dark-mode .btn-login:active {
    box-shadow:
        inset 3px 3px 6px rgba(13, 15, 23, 0.4),
        inset -3px -3px 6px rgba(37, 41, 59, 0.6);
}

/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-light);
    z-index: 1500;
    backdrop-filter: blur(10px);
}

.dark-mode .overlay {
    background: var(--overlay-dark);
}

/* 模态框打开时的页面样式 */
body.modal-open {
    overflow: hidden;
}

/* 增强遮罩层效果 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark-alt);
    z-index: 1500;
    backdrop-filter: blur(5px);
}

/* 新拟物UI - 设置面板 */
.settings-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: scale(0.95);
    width: 800px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 40px);
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    box-shadow:
        8px 8px 16px var(--shadow-light-1),
        -8px -8px 16px var(--shadow-light-2);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

/* 深色模式下的设置面板 */
.dark-mode .settings-panel {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    box-shadow:
        8px 8px 16px var(--shadow-dark-1),
        -8px -8px 16px var(--shadow-dark-2);
}

/* 大屏幕居中显示 */
@media screen and (min-width: 768px) {
    .settings-panel {
        top: 3%;
        left: 4%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.settings-panel.active {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 新拟物UI - 设置面板头部 */
.settings-panel__header {
    padding: 20px 16px;
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow:
        inset 0 2px 4px var(--shadow-light-1),
        0 2px 4px var(--shadow-light-2);
}

.dark-mode .settings-panel__header {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    box-shadow:
        inset 0 2px 4px var(--shadow-dark-1),
        0 2px 4px var(--shadow-dark-2);
}

.settings-panel__header h2 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* 新拟物UI - 设置面板内容区域 */
.settings-panel__content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    box-shadow:
        inset 0 4px 8px var(--shadow-light-1);
}

.dark-mode .settings-panel__content {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    box-shadow:
        inset 0 4px 8px var(--shadow-dark-1);
}

/* 新拟物UI - 个人信息区域 */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    margin-bottom: 20px;
    width: 100%;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 18px;
    box-shadow:
        4px 4px 8px var(--shadow-light-1),
        -4px -4px 8px var(--shadow-light-2);
}

.dark-mode .profile-section {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    box-shadow:
        4px 4px 8px var(--shadow-dark-1),
        -4px -4px 8px var(--shadow-dark-2);
}

.profile-avatar-container {
    position: relative;
    margin-bottom: 16px;
}

#profileAvatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow:
        4px 4px 8px var(--shadow-light-1),
        -4px -4px 8px var(--shadow-light-2);
}

.dark-mode #profileAvatar {
    border: 3px solid var(--primary-color);
    box-shadow:
        4px 4px 8px var(--shadow-dark-1),
        -4px -4px 8px var(--shadow-dark-2);
}

.profile-avatar-edit {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--avatar-edit-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow:
        3px 3px 6px var(--shadow-light-1),
        -3px -3px 6px var(--shadow-light-2);
    transition: all 0.2s ease;
}

.dark-mode .profile-avatar-edit {
    background: var(--avatar-edit-dark);
    box-shadow:
        3px 3px 6px var(--shadow-dark-1),
        -3px -3px 6px var(--shadow-dark-2);
}

.profile-avatar-edit:hover {
    transform: scale(1.05);
}

.profile-avatar-edit:active {
    transform: scale(0.95);
    box-shadow:
        inset 3px 3px 6px rgba(163, 177, 198, 0.4),
        inset -3px -3px 6px rgba(255, 255, 255, 0.6);
}

.dark-mode .profile-avatar-edit:active {
    box-shadow:
        inset 3px 3px 6px rgba(13, 15, 23, 0.4),
        inset -3px -3px 6px rgba(37, 41, 59, 0.6);
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 14px;
    color: var(--text-secondary-color);
}

/* 新拟物UI - 设置项列表 */
.settings-list {
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group h3 {
    color: var(--placeholder-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 新拟物UI - 窗口控制按钮 */
.window-controls {
    position: absolute;
    top: 25px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

@media screen and (max-width: 600px){
    .window-controls {
    position: absolute;
    top: 9px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 20;
}
}

.window-control-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.close-btn {
    background: linear-gradient(145deg, #ff5252, #ff1744);
    box-shadow:
        2px 2px 4px rgba(255, 82, 82, 0.4),
        -2px -2px 4px rgba(255, 255, 255, 0.6);
}

.minimize-btn {
    background: linear-gradient(145deg, #ffea00, #ffc107);
    box-shadow:
        2px 2px 4px rgba(255, 234, 0, 0.4),
        -2px -2px 4px rgba(255, 255, 255, 0.6);
}

.maximize-btn {
    background: linear-gradient(145deg, #66bb6a, #43a047);
    box-shadow:
        2px 2px 4px rgba(102, 187, 106, 0.4),
        -2px -2px 4px rgba(255, 255, 255, 0.6);
}

.dark-mode .close-btn {
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    box-shadow:
        2px 2px 4px rgba(211, 47, 47, 0.4),
        -2px -2px 4px rgba(37, 41, 59, 0.6);
}

.dark-mode .minimize-btn {
    background: linear-gradient(145deg, #ffb300, #ff6f00);
    box-shadow:
        2px 2px 4px rgba(255, 179, 0, 0.4),
        -2px -2px 4px rgba(37, 41, 59, 0.6);
}

.dark-mode .maximize-btn {
    background: linear-gradient(145deg, #388e3c, #2e7d32);
    box-shadow:
        2px 2px 4px rgba(56, 142, 60, 0.4),
        -2px -2px 4px rgba(37, 41, 59, 0.6);
}

.window-control-btn:hover {
    transform: scale(1.1);
}

.window-control-btn:active {
    transform: scale(0.9);
}

/* 新拟物UI - 设置项 */
.setting-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        4px 4px 8px var(--shadow-light-1),
        -4px -4px 8px var(--shadow-light-2);
}

.dark-mode .setting-item {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    box-shadow:
        4px 4px 8px var(--shadow-dark-1),
        -4px -4px 8px var(--shadow-dark-2);
}

.setting-item:hover {
    transform: translateY(-3px);
    box-shadow:
        5px 5px 10px var(--shadow-light-3),
        -5px -5px 10px var(--shadow-light-4);
}

.dark-mode .setting-item:hover {
    transform: translateY(-3px);
    box-shadow:
        5px 5px 10px var(--shadow-dark-3),
        -5px -5px 10px var(--shadow-dark-4);
}

.setting-item:active {
    transform: translateY(0);
    box-shadow:
        inset 3px 3px 6px var(--shadow-light-1),
        inset -3px -3px 6px var(--shadow-light-2);
}

.dark-mode .setting-item:active {
    transform: translateY(0);
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark-1),
        inset -3px -3px 6px var(--shadow-dark-2);
}

.setting-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(66, 133, 244, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--accent-color);
}

.setting-item-content {
    flex: 1;
}

.setting-item-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.setting-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.setting-item-arrow {
    color: var(--text-secondary-color);
    font-size: 16px;
}

/* 豆包风格开关 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 语言选择下拉框 */
.language-select {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    text-align: right;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.language-select:focus {
    outline: none;
}

/* 分割线 */
.divider {
    height: 10px;
    background: var(--primary-color);
    border: none;
    margin: 10px 0;
}

/* 响应式设计 - 手机屏幕 */
@media screen and (max-width: 480px) {
    .settings-panel {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .settings-panel__content {
        padding: 12px;
    }

    .profile-section {
        padding: 20px 0;
    }

    .setting-item {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .setting-item-title {
        font-size: 15px;
    }

    .setting-item-subtitle {
        font-size: 13px;
    }

    /* 优化手机上的窗口控制按钮 */
    .window-controls {
        top: 10px;
        left: 10px;
    }

    .window-control-btn {
        width: 14px;
        height: 14px;
    }
}

/* 响应式设计 - 平板和小屏幕电脑 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .settings-panel {
        width: 768px;
        height: 550px;
    }
}

/* 响应式设计 - 大屏幕 */
@media screen and (min-width: 1200px) {
    .settings-panel {
        width: 420px;
        height: 600px;
    }
}

/* 关闭按钮样式 - 已整合到.window-controls中 */
#closeSettingsBtn {
/*    display: none;  隐藏旧的关闭按钮 */
}
/* 导航栏用户头像样式 */
.navbar__user {
    display: flex;
    align-items: center;
}

.navbar__avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    margin-right: 1rem;
    overflow: hidden;
    display: block;
}

@media screen and (max-width: 980px) {
    
    .header{
        padding: 0 2rem;
    }

    .header__title{
        line-height: 2.8rem;
    }

    .header__title h1{
        font-size: 2.7rem;
    }

    .header__title h2{
        font-size: 2.5rem;
    }

    .suggests{
        justify-content: center;
    }

    .suggests__item:nth-child(3),
    .suggests__item:nth-child(4){
        display: none;
    }

    .message{
        padding: 0 1.5rem;
    }

    .prompt__disclaim{
        font-size: 0.8rem;
    }

    .settings-panel {
        max-width: 100%;
    }

    .settings-panel__sidebar {
        max-width: 100%;
        height: auto;
        float: none;
    }

    .settings-panel__content {
        height: auto;
        max-height: 92vh;
    }

}

.message_background{
    background: var(--primary-color);
}

.chat_yye_background{
        box-shadow: 1px 0px 10px 2px #ffe1b1;
}

.ltk-div{
    margin: 10px 0px 10px 42%;
}

@media screen and (max-width: 400px) {
    .ltk-div{
         margin: 10px 0px 10px 22%;
    }
}

@media screen and (max-width: 600px) {
    .ltk-div{
         margin: 10px 0px 10px 33%;
    }
}

@media screen and (max-width: 900px) {
    .ltk-div{
         margin: 10px 0px 10px 26%;
    }
}

/* @media screen and (max-width: 1372px) {
    .ltk-div{
         margin: 10px 0px 10px 45%;
    }
} */
