
body {
    font-family: Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    line-height: 1.6;
    font-size: 18px;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 50px;
}

.feedback-button {
    padding: 5px;
    border: 0;
    cursor: pointer;
    background: white;
}

.feedback-button:hover {
    background: #f0f0f0;
}

.feedback-button.active {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

/* 主内容区域 */
.main-content {
    margin: 0 auto;
    max-width: 1200px;
    margin-top: 80px; /* 避免被顶部导航遮挡 */
}

/* 聊天内容区域 */
.chat-box {
    padding: 20px;
    margin-bottom: 120px; /* 避免被底部输入区域遮挡 */
    overflow-y: auto;
    height: calc(100vh - 80px);
    background: url(../images/aibj.png) center bottom / 600px no-repeat fixed;
}

.message {
    border-radius: 20px;
    word-wrap: break-word;
}

.user {
    padding: 10px 20px;
    margin-bottom: 20px;
    background-color: #f4f4f4;
    margin-left: auto;
    max-width: 75%;
}

.bot {
    margin-bottom: 50px;
}

.error {
    background-color: #ffebee;
    padding: 10px 20px;
    color: #c62828;
}

/* 底部输入区域 */
.input-area {
    border-radius: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 10px 50px 10px;
    margin: 15px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: flex;
    gap: 10px;
    align-items: center;
}

#userInput {
    flex-grow: 1;
    padding: 8px;
    border: 0px;
    background-color: #ffffff;
    border-radius: 4px;
    outline: none;
    font-size: 18px;
    caret-color: #001aff;
}

::placeholder {
    color: rgb(190, 190, 190);
    opacity: 1;
}

/* 发送&停止按钮 */
.fixed-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
}

.action-button {
    width: 34px;
    height: 34px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #0285ff;
    border-radius: 50%;
}

.action-button:hover {
    background-color: #fff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .action-button {
        width: 50px;
        height: 50px;
    }
}

.feedback-buttons.hidden { display: none; }

.loading-image {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

/* 左下角按钮区域 */
.button-container {
    position: fixed;
    bottom: 28px;
    left: 25px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding-left: 5px;
}

/* 联网按钮 */
#promptButton {
    border: 1px solid #cccccc;
    background-color: #ffffff;
    font-size: 15px;
    border-radius: 15px;
    color: #555555;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

#promptButton svg {
    height: 24px;
    line-height: 18px;
    margin-right: 2px;
}

#promptButton.clicked {
    border: 1px solid #93c7f3;
    background-color: #daeeff;
    color: #0285ff;
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.nav-icon {
    background: none;
    border: none;
    color: #111;
    font-size: 24px;
    cursor: pointer;
    line-height: 45px;
    margin-top: 15px;
}

.user-info { display: flex; align-items: center; margin-left: auto; }

.personal-btn {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
}

.uid-display { margin-left: 8px; font-size: 12px; color: #fff; opacity: 0.8; }

.login-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

/* 辅助链接与加载文案 */
.zhuoxin-link { margin: 30px 0; color: #666; font-size: 18px; }
.zhuoxin-link a { color: #333; text-decoration: none; }
.zhuoxin-link a:hover { text-decoration: underline; }

.loading-container { margin: 10px 0; }
.loading-text { color: #666; font-size: 14px; }

/* 输出内容链接样式 */
.text-container a { border-bottom: 1px dotted #999; color: #000; text-decoration: none; }
.text-container a:hover { border-bottom: 1px dotted #999; color: #555; text-decoration: none; }

/* 联网搜索提示窗 */
.prompt-window {
    display: none;
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 20px;
    background-color: #fff3cb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
}

.prompt-window.show { display: block; }

.prompt-window .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    background: none;
    border: none;
    padding: 0;
}

.prompt-window .close-btn:hover { color: #333; }

