html,
body {
    min-height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #d9e9fb 0%, #bed4ea 58%, #a5bfd9 100%);
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
}

.user-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-right-tools {
    --top-tool-size: 40px;
    --top-tool-radius: 14px;
    position: fixed;
    top: 24px;
    right: 20px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-right-tool-btn {
    width: var(--top-tool-size);
    min-width: var(--top-tool-size);
    height: var(--top-tool-size);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--top-tool-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(95, 132, 178, 0.96) 0%, rgba(125, 164, 205, 0.94) 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 67, 105, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-right-tool-btn:hover {
    background: linear-gradient(135deg, rgba(84, 119, 163, 0.98) 0%, rgba(113, 151, 192, 0.96) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 67, 105, 0.22);
}

.top-right-tool-btn span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.top-right-tool-icon {
    font-size: 15px;
    line-height: 1;
}

.message-action-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    background: rgba(15, 23, 42, 0.08);
}

.message-action-menu-overlay.active {
    display: block;
}

.message-action-menu {
    position: fixed;
    width: min(280px, calc(100vw - 24px));
    padding: 10px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 48px rgba(37, 67, 105, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.message-action-item {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #1f3146;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    text-align: left;
}

.message-action-item:hover {
    background: rgba(120, 151, 191, 0.12);
}

.message-action-item i {
    font-size: 16px;
    color: #56789c;
}

.message-action-divider {
    height: 1px;
    margin: 8px 14px;
    background: rgba(115, 138, 164, 0.18);
}

.message-action-more-title {
    padding: 2px 18px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6d8197;
    letter-spacing: 0.08em;
}

.message-share-sheet-overlay,
.message-share-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    background: rgba(14, 24, 39, 0.28);
}

.message-share-sheet-overlay.active,
.message-share-card-overlay.active {
    display: block;
}

.message-share-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 18px 22px;
    border-radius: 24px 24px 0 0;
    background: rgba(248, 251, 255, 0.98);
    box-shadow: 0 -18px 44px rgba(32, 62, 96, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.message-share-sheet-handle {
    width: 46px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(113, 132, 156, 0.34);
}

.message-share-sheet-header,
.message-share-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-share-sheet-title,
.message-share-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #19395d;
}

.message-share-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(112, 136, 165, 0.14);
    color: #5c7695;
}

.message-share-preview {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(226, 238, 250, 0.78) 0%, rgba(243, 248, 255, 0.92) 100%);
    color: #24486f;
    font-size: 14px;
    line-height: 1.7;
    min-height: 74px;
}

.message-share-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.message-share-action {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #31516f;
    font-size: 13px;
}

.message-share-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 22px rgba(42, 70, 105, 0.16);
}

.message-share-action-icon i {
    font-size: 24px;
    line-height: 1;
}

.message-share-action-icon.is-link {
    background: linear-gradient(135deg, #5f9be5 0%, #2d72d2 100%);
}

.message-share-action-icon.is-wechat {
    background: linear-gradient(135deg, #43cf65 0%, #1fa847 100%);
}

.message-share-action-icon.is-card {
    background: linear-gradient(135deg, #ff7090 0%, #ff5d77 100%);
}

.message-share-action-icon.is-favorite {
    background: linear-gradient(135deg, #f6bf45 0%, #ef9b14 100%);
}

.message-share-action-icon.is-moments {
    background: linear-gradient(135deg, #85c95b 0%, #5aa742 100%);
}

.message-share-tip,
.message-share-card-tip {
    margin-top: 16px;
    color: #6a8098;
    font-size: 12px;
    line-height: 1.6;
}

.message-share-card-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
    max-height: 88vh;
    padding: 18px;
    border-radius: 26px;
    background: rgba(250, 252, 255, 0.98);
    box-shadow: 0 24px 52px rgba(20, 40, 68, 0.28);
    overflow: auto;
}

.message-share-card-image-wrap {
    margin-top: 14px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(223, 236, 249, 0.76) 0%, rgba(244, 248, 253, 0.94) 100%);
}

.message-share-card-image {
    display: block;
    width: 100%;
    height: auto;
}

.message-share-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.message-share-card-download,
.message-share-card-copy {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.message-share-card-download {
    background: linear-gradient(135deg, #4f80bf 0%, #2d619d 100%);
    color: #fff;
}

.message-share-card-copy {
    background: rgba(102, 129, 159, 0.14);
    color: #24486f;
}

.talk_list .left_word {
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: text;
    user-select: text;
}

.message-quick-action {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 103, 132, 0.1);
    color: #5d7692;
    opacity: 0;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wechat-browser .talk_list .left_word,
.wechat-browser .talk_list .left_word * {
    -webkit-touch-callout: none;
}

.wechat-browser .talk_list .left_word span {
    -webkit-user-select: text;
    user-select: text;
}

.wechat-browser .message-quick-action {
    opacity: 1;
    width: 34px;
    height: 34px;
    top: 4px;
    right: 6px;
    background: rgba(76, 103, 132, 0.22);
    color: #36526f;
    z-index: 2;
}

.talk_list .left_word:hover .message-quick-action,
.talk_list .left_word:focus-within .message-quick-action {
    opacity: 1;
}

.followup-dock {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.followup-dock.is-hidden {
    display: none;
}

.followup-quote-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 16px 38px rgba(29, 58, 93, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.followup-quote-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.followup-quote-tag {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(98, 136, 185, 0.94) 0%, rgba(131, 171, 215, 0.92) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.followup-quote-text {
    min-width: 0;
    flex: 1;
    color: #294564;
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.followup-clear-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 120, 150, 0.12);
    color: #547091;
}

.followup-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
}

.followup-chip-row::-webkit-scrollbar {
    display: none;
}

.followup-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(132, 161, 198, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #274564;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(32, 58, 93, 0.1);
}

.followup-chip:hover {
    background: rgba(246, 251, 255, 0.96);
}

.selection-followup-toolbar {
    position: fixed;
    z-index: 1600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(212, 224, 238, 0.9);
    box-shadow: 0 18px 42px rgba(25, 45, 75, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.selection-followup-toolbar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.selection-followup-action {
    border: none;
    background: transparent;
    color: #213c59;
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 14px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.selection-followup-action i {
    font-size: 15px;
    line-height: 1;
}

.selection-followup-action:hover {
    background: rgba(92, 123, 160, 0.09);
}

.selection-followup-action.is-primary {
    background: linear-gradient(135deg, rgba(94, 132, 183, 0.94) 0%, rgba(126, 167, 212, 0.94) 100%);
    color: #fff;
}

.selection-followup-action.is-primary:hover {
    background: linear-gradient(135deg, rgba(84, 122, 174, 0.98) 0%, rgba(118, 160, 206, 0.98) 100%);
}

.message-quick-action:hover {
    background: rgba(76, 103, 132, 0.18);
    color: #38516d;
}

.message-quick-action i {
    font-size: 15px;
    line-height: 1;
}

@media (hover: none) and (pointer: coarse) {
    .message-quick-action {
        opacity: 1;
        background: rgba(76, 103, 132, 0.16);
    }
}

@media (max-width: 640px) {
    .message-share-actions {
        grid-template-columns: repeat(5, minmax(58px, 1fr));
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .message-share-action {
        min-width: 58px;
    }

    .message-share-action-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }
}

.sidebar-account-card {
    margin: 12px 14px 8px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(240, 246, 255, 0.96) 0%, rgba(227, 236, 247, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sidebar-account-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.sidebar-account-label {
    font-size: 12px;
    color: #6a7f96;
    letter-spacing: 0.04em;
}

.sidebar-account-status strong {
    font-size: 16px;
    color: #1e3550;
    line-height: 1.3;
}

.sidebar-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sidebar-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #28425f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(38, 62, 92, 0.08);
}

.sidebar-account-link:hover {
    color: #28425f;
    background: #fff;
}

.page-shell {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.page-content {
    min-height: 100dvh;
}

.main-stage {
    min-height: 100dvh;
    margin: 0;
}

.inputsend {
    display: flex;
    justify-content: space-between;
}

.row {
    position: relative;
}

#glbdom {
    position: relative;
    min-height: 100dvh;
    height: 100dvh;
    margin-top: 0;
    padding: 0;
    background: linear-gradient(180deg, #d9e9fb 0%, #bed4ea 58%, #a5bfd9 100%);
    overflow: hidden;
}

#glbdom canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#inputsend {
    position: absolute;
    bottom: max(0px, env(safe-area-inset-bottom));
    left: 0px;
    right: 370px;
    z-index: 20;
}

.chat-composer {
    position: absolute;
    left: 0;
    right: 370px;
    bottom: max(0px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px 18px;
}

.composer-hidden-action {
    display: none !important;
}

.composer-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 26px;
    background: rgba(246, 250, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 42px rgba(21, 46, 76, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.composer-voice-toggle,
.composer-send-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border: none;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(35, 66, 103, 0.14);
}

.composer-voice-toggle {
    position: relative;
    background: linear-gradient(135deg, rgba(120, 154, 199, 0.98) 0%, rgba(146, 181, 219, 0.96) 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(52, 87, 129, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.composer-voice-toggle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 1px solid rgba(142, 176, 214, 0.42);
    opacity: 0.9;
    pointer-events: none;
    animation: composerVoicePulse 2.2s ease-in-out infinite;
}

.composer-voice-toggle:hover {
    background: linear-gradient(135deg, rgba(107, 143, 194, 1) 0%, rgba(133, 171, 212, 0.98) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(52, 87, 129, 0.26);
}

.composer-voice-toggle:focus,
.composer-voice-toggle:active {
    background: linear-gradient(135deg, rgba(96, 132, 182, 1) 0%, rgba(123, 160, 203, 0.98) 100%);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(140, 176, 214, 0.22);
}

@keyframes composerVoicePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.composer-send-btn {
    background: linear-gradient(135deg, #6b8fc2 0%, #87a8d6 100%);
    color: #fff;
    padding: 0;
}

.composer-send-btn:hover {
    background: linear-gradient(135deg, #5f84b8 0%, #7f9fcf 100%);
    color: #fff;
}

.composer-input-shell #question {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    max-height: 132px;
    resize: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 2px;
    font-size: 15px;
    line-height: 1.55;
    color: #203851;
}

.composer-input-shell #question:focus {
    outline: none;
    box-shadow: none;
}

.composer-recording-btn {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #6b8fc2 0%, #87a8d6 100%);
    color: #fff;
    box-shadow: none;
}

.composer-recording-btn.d-block {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.composer-recording-btn span {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#sendvoicebutton,
#chathistoryid {
    margin-left: 0.5rem;
    margin-bottom: 0.1rem;
}

#id {
    padding-left: 80px;
    background-image: url(&quot;./assets/images/AI.png&quot;);
    background-size: cover;
    background-position: center center
}

.wrap {
    position: absolute;
    width: 350px;
    /* left: 50%; */
    right: 0;
    /* margin-left: -225px; */
    top: 35px;
    bottom: 55px;
    /* border: 1px solid #ebebeb; */
    /* background-color: #fff; */
    border-radius: 10px;
    /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    z-index: 5;
}

.main {
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    bottom: 55px;
    /* background-color: #f4f3f3; */
    box-sizing: border-box;
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.main::-webkit-scrollbar {
    display: none;
}

.main.is-dragging {
    cursor: grabbing;
}

.main.is-dragging,
.main.is-dragging * {
    user-select: none;
}

.main .talk_list .left_word,
.main .talk_list .left_word *,
.main .talk_list .left_word span,
.main .talk_list .left_word span * {
    -webkit-user-select: text;
    user-select: text;
}

.talk_list {
    position: relative;
    width: 100%;
    left: 0px;
    top: 0px;
    padding-bottom: 20px;
}
 .talk_list li {
     overflow: hidden;
     clear: both;
     display: flex;
     margin-bottom: 10px;
}

.talk_list .left_word {
    justify-content: flex-start;
    width: 100%;
}

.talk_list .right_word {
    justify-content: flex-end;
    width: 100%;
}

/*.talk_list .left_word img {*/
/*    float: left;*/
/*    margin-left: 20px;*/
/*}*/
.talk_list .left_word span {
    display: inline-block;
    /* background-color: #96C9FD; */
    background-color: rgba(255 255 255 / 75%);
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    padding: 3px 10px;
    max-width: 300px;
    border-radius: 12px;
    font-size: 16px;
    color: #000;
    line-height: 24px;
    margin-bottom: 0.3rem;
}

/*.talk_list .left_word span:before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: -8px;*/
/*    top: 3px;*/
/*    width: 13px;*/
/*    height: 12px;*/
/* background: url('../assets/images/person01.png') no-repeat; */
/*}*/
/*.talk_list .right_word img {*/
/*    float: right;*/
/*    margin-right: 20px;*/
/*}*/
.talk_list .right_word span {
    display: inline-block;
    background-color: rgba(0 155 0 / 75%);
    padding: 3px 10px;
    max-width: 290px;
    border-radius: 12px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 0.3rem;
    position: relative;
    line-height: 24px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}



#textinputbutton{
    padding: 3px;
}
 #gogogo {
        width: 100%;
        padding:3px;
        font-size: 18px;
    }



.loading-indicator {

    display: none;
    /* 默认隐藏，通过JavaScript控制显示 */
    position: fixed;
    /* 改为fixed以保证在滚动时始终居中显示 */
    z-index: 1000;
    /* 确保加载指示器位于其他内容之上 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 居中显示，适用于所有屏幕尺寸 */
    /* 使用flex布局简化居中和自适应 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* 移除固定大小，使内容自适应 */
    padding: 1rem;
    /* 调整内边距以适应不同屏幕 */
    min-width: 10%;
    /* 设置最小宽度以保持良好的阅读体验 */
    max-width: 10%;
    /* 防止在大屏设备上过宽 */
    max-height: 20vh;
    /* 限制最大高度，避免遮挡过多内容 */
    background-color: rgba(255, 255, 255, 0.9);
    /* 白色背景，稍微透明 */
    border-radius: 5px;
    font-size: 16px;
    /* 增大字体大小以提升移动端可读性 */
    color: #333;
    /*text-align: center;*/
    /* 优化移动端的触摸反馈（如不透明度变化）可通过JavaScript实现 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    /* 减弱阴影，更适合移动端显示 */
    transition: all 0.3s ease;
    /* 添加过渡效果，提升用户体验 */

}

.brand-logo {
  position: fixed;
  /*width: 50%;*/
  top: 24px;
  left: 50vw;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* 确保它位于 Three.js 渲染内容之上 */
}
#deepseekr1 img {
    width: 6rem;
    margin-right: 1rem;
}

.brand-logo img {
 width: 10rem; /* 示例值，根据实际情况调整 */
  height: auto;
}
.brand-logo span{
    font-size:1.5rem;
    font-style: 700;
}
/* 移动端样式调整示例 */
@media screen and (max-width: 992px) {
    .page-content,
    .main-stage,
    #glbdom {
        min-height: 100dvh;
        height: 100dvh;
    }

    /* 调整按钮大小和间距 */
    #gogogo {
        width: 100%;
        padding: 3px;
        font-size: 18px;
    }
    /* 输入框在小屏上的样式 */
    #question {
        font-size: 16px;
    }
    /* 加载指示器在移动端的定位 */
    .loading-indicator {
        display: none;
        /* 默认隐藏，通过JavaScript控制显示 */
        position: fixed;
        /* 改为fixed以保证在滚动时始终居中显示 */
        z-index: 1000;
        /* 确保加载指示器位于其他内容之上 */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* 居中显示，适用于所有屏幕尺寸 */
        /* 使用flex布局简化居中和自适应 */
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        /* 移除固定大小，使内容自适应 */
        padding: 1rem;
        /* 调整内边距以适应不同屏幕 */
        min-width: 20%;
        /* 设置最小宽度以保持良好的阅读体验 */
        max-width: 31%;
        /* 防止在大屏设备上过宽 */
        max-height: 17vh;
        /* 限制最大高度，避免遮挡过多内容 */
        background-color: rgba(255, 255, 255, 0.75);
        /* 白色背景，稍微透明 */
        border-radius: 5px;
        font-size: 16px;
        /* 增大字体大小以提升移动端可读性 */
        color: #333;
        text-align: center;
        /* 优化移动端的触摸反馈（如不透明度变化）可通过JavaScript实现 */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
        /* 减弱阴影，更适合移动端显示 */
        transition: all 0.3s ease;
        /* 添加过渡效果，提升用户体验 */
    }
    #inputsend {
        right: 0;
    }

    .chat-composer {
        right: 0;
        padding: 0 14px 14px;
    }

    .composer-input-shell {
        min-height: 58px;
        padding: 7px 8px;
        gap: 8px;
        border-radius: 24px;
    }

    .composer-voice-toggle,
    .composer-send-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        border-radius: 16px;
    }

    .composer-input-shell #question,
    .composer-recording-btn {
        min-height: 42px;
    }

    .wrap {
        position: absolute;
        top: calc(35vh);
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        /* border: 1px solid #ebebeb; */
        /* background-color: #fff; */
        border-radius: 10px;
        /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.1); */
        overflow: hidden;
    }
    .main {
        position: absolute;
        left: 0;
        right: 0;
        top: 55px;
        bottom: 55px;
        /* background-color: #f4f3f3; */
        box-sizing: border-box;
        padding: 10px 0;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .brand-logo {
        top: 26px;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }
}
/* 禁用输入框的视觉反馈 */
#question:disabled,
#question[readonly] {
    background-color: #f8f8f8;
    border-color: #ddd;
    cursor: not-allowed;
}

/* 加载进度条样式*/
#loadprogress{
 position: absolute;
            width: 25rem;
            height: 2.5rem;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            overflow: hidden;
            z-index: 1000;
}
    #progressIcon {
    position: absolute;
     top: 50%;
    left: 0; 
    transform: translateY(-50%);
     /*left:0;*/
     /* 初始位置在进度条的左边 
     /*transform: translate(-50%, -50%);*/
    width: 2rem;
    height: 2rem;
    background: url('../assets/images/loadpng.png') no-repeat center center / contain; /* 图标路径 */
    z-index: 10001;
}
#load{
    position: absolute;
            width: 25rem;
            height: 1rem;
            top: 67%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 8px;
            border: 1px solid #009999;
            overflow: hidden;
         z-index: 1000;
        }
    #per { 
            height: 100%;
            width: 0px;
            background: #1887e6;
            color: #194adb;
            line-height: 15px;
        }

/* 推广弹窗样式 */
#promotion-modal .modal-content {
    background: transparent !important;
    border: none !important;
}

#promotion-modal .modal-dialog {
    max-width: 60%; /* 默认中等大小 */
    margin: 1rem auto;
    display: flex;
    align-items: center;
    min-height: auto;
}

#promotion-modal .modal-body {
    padding: 0;
    position: relative;
}

.promotion-media-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: #fff; /* 添加背景色以防透明图片 */
}

/* 推广图片样式 */
.promotion-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 推广视频样式 */
.promotion-video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 关闭按钮样式 */
#promotion-modal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1050;
    filter: invert(1);
    opacity: 0.8;
}

#promotion-modal .btn-close:hover {
    opacity: 1;
}

/* 今日不再显示按钮样式 */
#promotion-close-today {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
}

#promotion-close-today:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    #promotion-modal .modal-dialog {
        max-width: 90% !important;
    }
}

@media (max-width: 576px) {
    #promotion-modal .modal-dialog {
        max-width: 95% !important;
    }
    
    #promotion-close-today {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* 侧边栏样式 */
#history-sidebar.container,
.container {
    position: relative;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#history-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    z-index: 1999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#history-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.sidebar-close-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

.sidebar-new-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 30px);
    margin: 10px 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-new-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-new-chat-btn i {
    font-size: 1rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0;
    min-height: 0;
}

.sidebar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
}

.sidebar-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    color: #999;
    font-size: 0.85rem;
}

.sidebar-history-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.sidebar-history-item:hover {
    background-color: #f8f9fa;
}

.sidebar-history-item.active {
    background-color: #e8f4fd;
    border-left: 3px solid #007bff;
}

.sidebar-item-title {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-item-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.sidebar-date-group {
    padding: 10px 20px 5px;
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #f8f9fa;
}

.sidebar-date-label {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.sidebar-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

/* 汉堡菜单按钮（手机端） */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 24px;
    left: 20px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 手机端适配 */
@media screen and (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    #history-sidebar {
        position: fixed;
        width: 100%;
        max-width: 320px;
    }
    
    .sidebar-overlay {
        position: fixed;
        pointer-events: auto;
    }
}

/* 桌面端：侧边栏按钮样式 - 修复：PC端也显示汉堡菜单 */
@media screen and (min-width: 993px) {
    .mobile-menu-btn {
        display: flex; /* 改为 flex，让 PC 端也能看到汉堡菜单 */
    }
}

.talk_list .left_word span p,
.talk_list .right_word span p {
    margin: 0 0 0.5em 0;
    line-height: 1.6;
}

.talk_list .left_word span p:last-child,
.talk_list .right_word span p:last-child {
    margin-bottom: 0;
}

.talk_list .left_word span br,
.talk_list .right_word span br {
    display: block;
    content: "";
    margin-top: 0.3em;
}

/* Markdown 渲染样式 */
.talk_list .left_word span code,
.talk_list .right_word span code {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.talk_list .left_word span pre,
.talk_list .right_word span pre {
    background-color: rgba(0, 0, 0, 0.06);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.talk_list .left_word span pre code,
.talk_list .right_word span pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

.talk_list .left_word span strong,
.talk_list .right_word span strong {
    font-weight: 700;
    color: #000;
}

.talk_list .left_word span em,
.talk_list .right_word span em {
    font-style: italic;
}

.talk_list .left_word span ul,
.talk_list .right_word span ul,
.talk_list .left_word span ol,
.talk_list .right_word span ol {
    margin: 8px 0;
    padding-left: 20px;
}

.talk_list .left_word span li,
.talk_list .right_word span li {
    margin: 4px 0;
    display: list-item;
    list-style-position: outside;
}

.talk_list .left_word span ul li,
.talk_list .right_word span ul li {
    list-style-type: disc;
}

.talk_list .left_word span ol li,
.talk_list .right_word span ol li {
    list-style-type: decimal;
}

.talk_list .left_word span blockquote,
.talk_list .right_word span blockquote {
    border-left: 3px solid #007bff;
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
    font-style: italic;
}

.talk_list .left_word span h1,
.talk_list .right_word span h1,
.talk_list .left_word span h2,
.talk_list .right_word span h2,
.talk_list .left_word span h3,
.talk_list .right_word span h3,
.talk_list .left_word span h4,
.talk_list .right_word span h4 {
    margin: 12px 0 8px 0;
    font-weight: 700;
    line-height: 1.3;
}

.talk_list .left_word span h1,
.talk_list .right_word span h1 {
    font-size: 1.4em;
}

.talk_list .left_word span h2,
.talk_list .right_word span h2 {
    font-size: 1.2em;
}

.talk_list .left_word span h3,
.talk_list .right_word span h3 {
    font-size: 1.1em;
}

.talk_list .left_word span h4,
.talk_list .right_word span h4 {
    font-size: 1em;
}

.talk_list .left_word span table,
.talk_list .right_word span table {
    border-collapse: collapse;
    margin: 8px 0;
    width: 100%;
}

.talk_list .left_word span th,
.talk_list .right_word span th,
.talk_list .left_word span td,
.talk_list .right_word span td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}

.talk_list .left_word span th,
.talk_list .right_word span th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.talk_list .left_word span hr,
.talk_list .right_word span hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 12px 0;
}

.talk_list .left_word span a,
.talk_list .right_word span a {
    color: #007bff;
    text-decoration: none;
}

.talk_list .left_word span a:hover,
.talk_list .right_word span a:hover {
    text-decoration: underline;
}

/* KaTeX 数学公式样式 */
.talk_list .left_word span .math-block,
.talk_list .right_word span .math-block {
    display: block;
    text-align: center;
    margin: 16px 0;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    overflow-x: auto;
}

.talk_list .left_word span .math-inline,
.talk_list .right_word span .math-inline {
    display: inline;
}

.talk_list .left_word span .katex,
.talk_list .right_word span .katex {
    font-size: 1.1em;
}

.talk_list .left_word span .katex-display,
.talk_list .right_word span .katex-display {
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* 右侧气泡的深色适配 */
.talk_list .right_word span pre {
    background-color: rgba(255, 255, 255, 0.15);
}

.talk_list .right_word span pre code {
    color: #fff;
}

.talk_list .right_word span code {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.talk_list .right_word span blockquote {
    border-left-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

.talk_list .right_word span th {
    background-color: rgba(255, 255, 255, 0.15);
}

.talk_list .right_word span th,
.talk_list .right_word span td {
    border-color: rgba(255, 255, 255, 0.3);
}

.talk_list .right_word span a {
    color: #fff;
    text-decoration: underline;
}

.talk_list .right_word span .math-block {
    background-color: rgba(255, 255, 255, 0.1);
}

@media screen and (min-width: 993px) {
    #history-sidebar {
        position: fixed;
        border-radius: 0 14px 14px 0;
    }

    .sidebar-overlay {
        position: fixed;
    }
}

.composer-shell {
    position: absolute;
    left: 0;
    right: 370px;
    bottom: max(0px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 18px;
}

.composer-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.composer-primary {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.composer-icon-btn,
.composer-mode-btn,
.composer-send-btn,
.composer-more-btn,
.composer-record-btn {
    border: none;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(31, 63, 105, 0.18);
}

.composer-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 98, 125, 0.84);
    color: #fff;
}

.composer-icon-btn.btn-info,
.composer-icon-btn.btn-success,
.composer-icon-btn.btn-primary,
.composer-icon-btn.btn-secondary {
    background: rgba(74, 98, 125, 0.84);
    color: #fff;
}

.tts-floating-btn {
    position: static;
    z-index: auto;
    width: var(--top-tool-size);
    height: var(--top-tool-size);
    min-width: var(--top-tool-size);
    padding: 0;
    border-radius: var(--top-tool-radius);
    border: 1px solid rgba(130, 158, 194, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(244, 248, 255, 0.96);
    color: #527398;
    box-shadow: 0 10px 24px rgba(37, 67, 105, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tts-floating-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 67, 105, 0.16);
}

.tts-floating-btn.btn-primary {
    background: linear-gradient(135deg, rgba(106, 145, 193, 0.96) 0%, rgba(134, 174, 214, 0.96) 100%);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
}

.tts-floating-btn.btn-secondary {
    background: rgba(244, 248, 255, 0.96);
    border-color: rgba(130, 158, 194, 0.26);
    color: #527398;
}

.tts-floating-btn i {
    font-size: 15px;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .top-right-tools {
        --top-tool-size: 38px;
        --top-tool-radius: 13px;
        top: 24px;
        right: 16px;
        gap: 8px;
    }

    .mobile-menu-btn {
        top: 24px;
        left: 16px;
        width: 38px;
        height: 38px;
    }

    .brand-logo {
        top: 24px;
    }

    .top-right-tool-btn span {
        font-size: 12px;
    }
}

@media screen and (min-width: 821px) and (max-width: 1199px) {
    .top-right-tools {
        top: 24px;
        right: 18px;
        gap: 8px;
    }
}

.composer-mode-btn {
    min-width: 104px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(74, 98, 125, 0.88);
    color: #fff;
}

.composer-mode-btn.is-text-mode {
    background: rgba(61, 90, 196, 0.92);
}

.composer-mode-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.composer-input-slot {
    flex: 1;
    min-width: 0;
}

.composer-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 58px;
    border-radius: 22px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(21, 46, 76, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.composer-input-wrap #question,
.composer-input-wrap .composer-record-btn {
    border-radius: 16px;
}

.composer-input-wrap #question {
    min-height: 46px;
    resize: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 14px;
}

.composer-input-wrap #question:focus {
    box-shadow: none;
}

.composer-record-btn {
    width: 100%;
    min-height: 46px;
    background: linear-gradient(135deg, #4f77e8 0%, #6c8ff6 100%);
}

.composer-send-btn {
    min-width: 82px;
    padding: 0 18px;
    background: linear-gradient(135deg, #3172f0 0%, #5b88f7 100%);
}

.composer-more-btn {
    display: none;
    width: 46px;
    min-width: 46px;
    height: 58px;
    align-items: center;
    justify-content: center;
    background: rgba(74, 98, 125, 0.88);
    color: #fff;
}

.call-status {
    min-height: 0;
    color: #1b3f67;
    font-size: 12px;
    padding-left: 8px;
}

.realtime-sheet {
    position: fixed;
    right: 18px;
    bottom: 118px;
    width: min(380px, calc(100vw - 24px));
    z-index: 2200;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(11, 30, 58, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.realtime-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(73, 112, 206, 0.95) 0%, rgba(97, 138, 227, 0.92) 100%);
    color: #fff;
}

.realtime-sheet-body {
    padding: 14px 16px 16px;
}

.realtime-status-card {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(73, 112, 206, 0.08);
    color: #28456e;
}

.realtime-helper {
    font-size: 12px;
    line-height: 1.55;
}

.realtime-message-box {
    height: 180px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 14px;
    background: rgba(248, 250, 253, 0.96);
}

.realtime-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
}

.status-indicator.status-connected {
    background: #2bc970;
}

.status-indicator.status-error {
    background: #ff6b6b;
}

.status-indicator.status-connecting {
    background: #ffd166;
}

@media screen and (min-width: 821px) and (max-width: 1199px) {
    .wrap {
        left: auto;
        transform: none;
        width: clamp(300px, 31vw, 348px);
        right: 18px;
        top: 80px;
        bottom: 138px;
        border-radius: 24px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .main {
        top: 18px;
        bottom: 18px;
        padding: 10px 10px 20px;
        background: transparent;
    }

    .talk_list .left_word span,
    .talk_list .right_word span {
        max-width: 100%;
    }

    .composer-shell {
        right: clamp(318px, 33vw, 372px);
        padding-right: 18px;
    }
}

@media screen and (max-width: 820px) {
    .wrap {
        left: 12px;
        right: 12px;
        width: auto;
        top: auto;
        bottom: 98px;
        height: clamp(230px, 40dvh, 360px);
        transform: none;
        border-radius: 26px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .main {
        top: 18px;
        bottom: 18px;
        padding: 0 10px 12px;
        cursor: auto;
    }

    .talk_list {
        padding: 8px 4px 24px;
    }

    .talk_list .left_word span,
    .talk_list .right_word span {
        max-width: 100%;
        border-radius: 18px;
        padding: 10px 14px;
    }

    .composer-shell {
        left: 0;
        right: 0;
        gap: 8px;
        padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    }

    .user-menu {
        top: 10px;
        right: 10px;
    }

    .composer-secondary {
        order: 2;
        padding: 10px 12px 0;
        border-radius: 22px 22px 0 0;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .composer-secondary.is-collapsed {
        display: none;
    }

    .composer-primary {
        order: 3;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 22px 60px rgba(20, 42, 78, 0.2);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .composer-mode-btn {
        min-width: 82px;
        padding: 0 14px;
    }

    .composer-mode-label {
        display: none;
    }

    .composer-more-btn {
        display: inline-flex;
    }

    .composer-secondary .composer-icon-btn {
        width: 40px;
        height: 40px;
    }

    .call-status {
        order: 1;
        min-height: 18px;
        padding: 0 4px;
        color: rgba(27, 63, 103, 0.88);
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    .followup-quote-pill {
        padding: 9px 10px;
        border-radius: 18px;
    }

    .followup-quote-main {
        gap: 8px;
    }

    .followup-quote-tag {
        padding: 4px 8px;
        font-size: 11px;
    }

    .followup-quote-text {
        font-size: 13px;
    }

    .selection-followup-toolbar {
        max-width: calc(100vw - 24px);
        gap: 2px;
        padding: 4px;
    }

    .selection-followup-action {
        min-width: 58px;
        padding: 8px 10px;
    }

    .realtime-sheet {
        right: 12px;
        left: 12px;
        bottom: calc(132px + env(safe-area-inset-bottom));
        width: auto;
    }
}

body .brand-logo {
    position: fixed;
    top: 24px;
    left: 50vw;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    pointer-events: none;
}

body #deepseekr1 img {
    margin-right: 0;
}

@media screen and (max-width: 768px) {
    body .brand-logo {
        top: 24px;
    }
}
