﻿.aichat { background: linear-gradient(180deg,#fff,#f7f1e3 40%); -webkit-filter: drop-shadow(-6px 0 20px rgba(61,64,75,.2)); filter: drop-shadow(-6px 0 20px rgba(61,64,75,.2)); pointer-events: auto; width: 510px !important;position: relative; border-radius: 0; }

.video-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; }

.video-bg { width: 100%; height: 100%; object-fit: cover; }

.aichat-container { flex: 1; display: flex; flex-direction: column; box-sizing: border-box; justify-content: space-around; width: 100%; height: 100%; padding: 20px 20px 10px; position: relative; border-radius: 0; overflow: hidden;transition:all .4s ease-in-out }

.aichat-header { flex-shrink: 0; height: 70px; display: flex; align-items: center }

    .aichat-header .avatar { width: 36px; height: 36px }

    .aichat-header .avatar-name { margin-left: 10px }


.aichat-body { flex: 1; -ms-overflow-style: none; overflow-y: scroll; position: relative; scrollbar-width: none; width: 100% }

.aichat-list { font-size: 14px; color: #333; line-height: 1.75; list-style: none }

    .aichat-list .aichat-item + .aichat-item { margin-top: 20px }

.aichat-item:first-child .response { margin-top: 0 }

.aichat-item .request { width: fit-content; width: -moz-fit-content; width: -webkit-fit-content; margin-left: auto; padding: 15px 20px 15px; border-radius: 20px 0 20px 20px; box-shadow: 0 4px 8px rgba(0,0,0,.1); background-image: linear-gradient(-145deg,#feebe7,#f0e7fc 65%) }

.loading-indicator { weight: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; }

.aichat-item .response { margin-top: 20px; padding: 15px 20px 15px; border-radius: 0 20px 20px 20px; /*    box-shadow: 0 4px 8px rgba(0,0,0,.1);*/ background-image: linear-gradient(145deg,#feebe7,#f0e7fc 65%) }

.aichat-item p { margin: unset }

.aichat-footer { position: relative }

.aichat-textarea-box { background: #fff; border: 1px solid transparent; border-radius: 10px; box-sizing: border-box; height: 130px; margin-top: 10px; padding: 10px 13px 38px; position: relative; width: 100%; transition: border .2s ease-in-out }

    .aichat-textarea-box.active { border: 1px solid #7D352B; box-shadow: 0 0 8px rgba(125, 53, 43, 0.5); }

.aichat-textarea { outline: 0; border: 0; -ms-overflow-style: none; font-size: 14px; height: 100%; line-height: 20px; resize: none; width: 100% }

.aichat-textarea-limit { bottom: 10px; color: #afb3c3; font-size: 12px; left: 15px; line-height: 17px; position: absolute }

.aichat-submit { border-radius: 50%; bottom: 8px; cursor: no-drop; height: 28px; line-height: 28px; position: absolute; right: 10px; text-align: center; transition: .2s; width: 28px; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .2s ease-in-out; pointer-events: none }

    .aichat-submit.enabled { pointer-events: auto; cursor: pointer; opacity: 1; color: #FFFFFF; background-color: #7D352B; box-shadow: 0 0 8px rgba(125, 53, 43, 0.5); }

    .aichat-submit.loading { pointer-events: none; color: #8c5518; cursor: wait; pointer-events: none; }

        .aichat-submit.loading i { animation: spin 1s linear infinite; font-size: 18px; }

@keyframes spin {
    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }
}

.aichat-voice { width: 30px; height: 30px; border-radius: 50%; background-color: rgb(255, 255, 255); box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253); cursor: pointer; line-height: 28px; position: absolute; left: 0; right: 0; bottom: 8px; margin: 0 auto; text-align: center; font-size: 20px; display: flex; align-items: center; justify-content: center; transition-duration: 0.8s; overflow: hidden; position: relative; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }

    .aichat-voice.active { width: 140px; border-radius: 50px; background: linear-gradient(45deg, #afb3c3 0%, #7475b7 100%); align-items: center; }

        .aichat-voice.active i { transition-duration: .8s; transform: translateY(-200%); }

.recording-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; transform: translateY(200%); opacity: 0; transition: all .8s cubic-bezier(0.34, 1.56, 0.64, 1); }

.aichat-voice.active .recording-text { transform: translateY(0); opacity: 1; }

.cl_1 { width: 20px; height: 20px; border: 2px solid #b79add; border-top-color: transparent; border-radius: 100%; animation: cl_1 infinite 0.75s linear; }

@keyframes cl_1 {
    0% { transform: rotate(0); }

    100% { transform: rotate(360deg); }
}

.link-with-bullet { display: block; margin: 10px 0; padding-left: 20px; position: relative; }

    .link-with-bullet::before { content: "•"; position: absolute; left: 0; top: 0; font-size: 18px; color: #4285f4; }

.aichat-close { width: 38px; height: 38px; position: absolute; bottom: 10%; right: -38px; border-radius: 0 100px 100px 0; background: #fff; display: flex; align-items: center; justify-content: center }

    .aichat-close:hover { background: var(--bs-color-l) }

.answer-container > ul > li > p > a { display: block; }

.answer-container pre { overflow: auto; -ms-overflow-style: none; scrollbar-width: none; }

    .answer-container pre::-webkit-scrollbar { height: 0; }


.recommendations-list { display: flex; flex-wrap: wrap; gap: 5px 10px; padding-top: 10px; }

.recommendation { padding: 4px 15px; background: rgba(255, 255, 255, 0.95); border-radius: 50px; font-size: 13px; color: #5a6a80; cursor: pointer; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); word-break: break-word; font-weight: 500; border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(255, 255, 255, 0.8) inset; position: relative; overflow: hidden; z-index: 1; }

    .recommendation:hover { color: #4361ee; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 0 rgba(255, 255, 255, 0.8) inset; border: 1px solid rgba(67, 97, 238, 0.2); animation: glow 1.5s infinite alternate; }

.suggestions-container { position: relative; overflow: hidden; border-bottom: 1px dashed rgba(125, 53, 43, 0.2); }

    .suggestions-container span { display: block; text-align: center; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 1px; }

.suggestions-scroll { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 10px; padding: 6px 0; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }

    .suggestions-scroll::-webkit-scrollbar { display: none; height: 0; }
.suggestions-container.hide {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.suggestion {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50px;
    padding: 4px 8px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(125, 53, 43, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(125, 53, 43, 0.12);
    font-size: 14px;
    color: rgba(90, 62, 54, 0.95);
    font-weight: 500;
    flex-shrink: 0;
    user-select: none;
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn 0.4s ease forwards;
    opacity: 0;
}
    .suggestion:hover { background: rgba(255, 250, 245, 0.98); color: #7D352B; transform: translateY(-1px); border-color: rgba(125, 53, 43, 0.25); box-shadow: 0 3px 8px rgba(125, 53, 43, 0.15), inset 0 0 1px rgba(255, 255, 255, 0.9); }
    .suggestion:active {
        transform: scale(0.95)!important;
    }


.suggestions-container:before { left: 0; background: linear-gradient(to right, rgba(247,241,227, 0.9) 0%, transparent 100%); }

.suggestions-container:after { right: 0; background: linear-gradient(to left, rgba(247,241,227, 0.9) 0%, transparent 100%); }
/*.suggestions-container:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 15px;
    width: 40px;
    background: linear-gradient(90deg, rgba(247,241,227,0) 0%, #f7f1e3 90%);
    pointer-events: none;
    z-index: 2;
}*/

@keyframes glow {
    0% { box-shadow: 0 0 0 rgba(67, 97, 238, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset; }

    100% { box-shadow: 0 0 6px rgba(67, 97, 238, 0.2), 0 1px 0 rgba(255, 255, 255, 0.8) inset; }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
html, body {
       height: 100%;
       margin: 0;
       padding: 0;
   }
   body {
   }

/* 详情页样式 */
.detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,#fff,#f7f1e3 40%);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.detail-page.active {
    transform: translateY(0);
}

.detail-header {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.detail-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7D352B;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.detail-back:hover {
    background: rgba(125, 53, 43, 0.1);
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.detail-content {
    flex: 1;
    overflow-y: auto;
/*    padding: 20px;*/
    -webkit-overflow-scrolling: touch;
}
.detail-page img {
    max-width: 100%;
    object-fit: cover;
}

.detail-page video {
    max-width: 100%;
}
