:root {
    --primary-color: #3a86ff;
    --secondary-color: #5390fd;
    --background-color: #f8f9fa;
    --chat-bg: #ffffff;
    --user-message-bg: #ebf5ff;
    --ai-message-bg: #f8f9fa;
    --text-color: #2c3e50;
    --light-text: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s ease;
}
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 修复聊天容器布局，实现固定底部输入框 */
.container {
    max-width: 1200px;
    height: 100vh;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 聊天容器样式 */
.chat-container {
    flex: 1;
    background-color: var(--chat-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 1rem;
    overflow: hidden;
    border: 1.25px solid  #006eff36;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem - 50px); /* 减去margin和footer高度 */
}

/* 聊天消息区域样式 */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 固定输入容器在底部 */
.chat-input-container {
    position: relative;
    padding: 0.8rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--chat-bg);
    z-index: 10; /* 确保在最上层 */
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
}
.input-group {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background-color: var(--chat-bg);
    border-radius: 24px;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}
.image-upload-label {
    color: var(--light-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-upload-label:hover {
    color: var(--primary-color);
}
#user-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 0;
    max-height: 120px;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
}
#send-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#send-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#send-button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
/* 打字指示器样式 */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--ai-message-bg);
    border-radius: 18px;
    margin-left: 12px;
    border: 1px solid var(--border-color);
}
.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #9e9e9e;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); }
    40% { transform: scale(1); }
}
/* 页脚样式 */
footer {
    text-align: center;
    padding: 1rem;
    color: var(--light-text);
    font-size: 0.8rem;
    background-color: var(--chat-bg);
    border-top: 1px solid var(--border-color);
}
/* 消息图片容器样式 */
.message-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.message-images img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}
.message-images img:hover {
    transform: scale(1.05);
}
/* 确保重连按钮与清除历史按钮样式一致 */
#refresh-page {
    margin-left: 10px;
}
/* 在小屏幕上可能需要调整按钮的响应式布局 */
@media (max-width: 600px) {
    #refresh-page .btn-text {
        display: none;
    }
}
/* 增强移动端响应式设计 */
@media (max-width: 768px) {
    .header-left h2 {
        display: none;
    }
    .chat-container {
        margin: 0.2rem;
    }
    footer {
        display: none !important;
    }
    #send-button {
        width: 40px;
        height: 40px;
    }
    
    .message-images img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .image-preview {
        width: 80px;
        height: 80px;
    }
    
    .remove-image {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .markdown-content pre.code-block {
        font-size: 0.85em;
    }
    
    .markdown-content h1 {
        font-size: 1.5em;
    }
    
    .markdown-content h2 {
        font-size: 1.3em;
    }
    
    .markdown-content h3 {
        font-size: 1.1em;
    }
    
    /* 优化聊天头部在移动端的显示 */
    .chat-header {
        padding: 10px;
    }
    
    .chat-header h2 {
        font-size: 1.2rem;
    }
    
    /* 在移动端隐藏按钮文本，只显示图标 */
    #clear-history .btn-text {
        display: none;
    }
    
    /* 优化复制按钮在移动端的显示 */
    .copy-button {
        padding: 1px 3px;
    }
}
/* 针对超小屏幕的优化 */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    header {
        margin-bottom: 15px;
        padding: 15px 0;
    }
    header h1 {
        font-size: 1.4rem;
    }
    .message {
        margin-bottom: 15px;
    }
    .message-content {
        max-width: 90%;
        padding: 8px 10px;
    }
    .avatar {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    .user-message .avatar {
        margin-left: 8px;
    }
    .chat-input-container {
        padding: 10px;
    }
    .image-preview-container {
        gap: 6px;
        margin-bottom: 6px;
    }
    .image-preview {
        width: 70px;
        height: 70px;
    }
    .message-images img {
        max-width: 120px;
        max-height: 120px;
    }
    /* 优化代码块在小屏幕上的显示 */
    .markdown-content pre.code-block {
        padding: 8px;
        font-size: 0.8em;
    }
    /* 优化LaTeX公式在小屏幕上的显示 */
    .math-block {
        font-size: 0.9em;
    }
}
/* 优化滚动条样式 (style.css)/* 优化滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
/* 优化文本区域滚动条 */
#user-input::-webkit-scrollbar {
    width: 6px;
}
#user-input::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#user-input::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
#user-input::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* 优化图片加载时的过渡效果 */
.message-images img, .image-preview img {
    transition: opacity 0.3s ease;
    opacity: 0;
}
.message-images img.loaded, .image-preview img.loaded {
    opacity: 1;
}
/* 添加暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3a86ff;
        --secondary-color: #5390fd;
        --background-color: #121212;
        --chat-bg: #1e1e1e;
        --user-message-bg: #2d4263;
        --ai-message-bg: #2a2a2a;
        --text-color: #e0e0e0;
        --light-text: #a0a0a0;
        --border-color: #333333;
    }
    .markdown-content code {
        background-color: #2a2a2a;
    }
    .markdown-content pre.code-block {
        background-color: #2a2a2a;
    }
    .markdown-table th {
        background-color: #333333;
    }
    .markdown-table tr:nth-child(even) {
        background-color: #2a2a2a;
    }
    .markdown-table th, .markdown-table td {
        border-color: #444444;
    }
    .copy-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    #user-input {
        color: var(--text-color);
    }
    .input-group {
        background-color: #2a2a2a;
    }
}
/* 聊天头部样式优化 */
/* 优化 header 布局 */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left h2 {
  margin: 0;
  font-size: 1.2rem;
  white-space: nowrap;
}

.model-selector {
  margin-left: 10px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 响应式设计 - 优化手机端 header */
@media (max-width: 768px) {
  .chat-header {
    padding: 6px 8px;
    flex-direction: row;
  }
  
  .header-left {
    gap: 5px;
  }
  
  .header-left h2 {
    font-size: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  
  .model-selector {
    margin-left: 0;
  }
  
  #model-select {
    padding: 4px 20px 4px 6px;
    font-size: 0.75rem;
    max-width: 100px;
    background-position: right 5px center;
  }
  
  .header-buttons {
    gap: 5px;
  }
  
  .related-sites a,
  .header-buttons button {
    padding: 4px 6px;
    font-size: 0.75rem;
  }
  
  .related-sites a .btn-text,
  .header-buttons button .btn-text {
    display: none;
  }
  
  .related-sites {
    margin-right: 5px;
    gap: 5px;
  }
  
  #refresh-page, #clear-history {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #refresh-page i, #clear-history i {
    font-size: 0.8rem;
  }
}

/* 超小屏幕进一步优化 */
@media (max-width: 480px) {
  .chat-header {
    padding: 4px 6px;
  }
  
  #model-select {
    max-width: 80px;
    font-size: 0.7rem;
  }
  
  .related-sites a,
  .header-buttons button {
    padding: 3px 5px;
  }
  
  .related-sites {
    gap: 3px;
  }
}
.related-sites {
    display: flex;
    gap: 8px;
}

.related-sites a {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.related-sites a:hover {
    background-color: #e0e0e0;
}

.related-sites a i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
}

/* 中等屏幕响应式调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .related-sites a .btn-text,
    .header-buttons button .btn-text {
        display: none;
    }
    
    .related-sites a,
    .header-buttons button {
        padding: 6px 8px;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .chat-header {
        border-bottom-color: #333;
    }
    
    .related-sites a {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .related-sites a:hover {
        background-color: #3a3a3a;
    }
}
#clear-history, #stop-generate  {
    background-color: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
#refresh-page {
    background-color: transparent;
    border: 1px solid #0044ff;
    color: #0044ff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
    
#stop-generate {
    border-color: #f39c12;
    color: #f39c12;
}

#clear-history:hover {
    background-color: #e74c3c;
    color: white;
}

#stop-generate:hover {
    background-color: #f39c12;
    color: white;
}

/* 消息样式 */
.message {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-message .avatar {
    background-color: #10b981;
}

.message-content {
    max-width: calc(100% - 50px);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background-color: var(--ai-message-bg);
    margin: 0 0.8rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
    word-break: break-word;
    border: 1px solid var(--border-color);
}

.user-message .message-content {
    background-color: var(--user-message-bg);
}

/* 消息头部样式 */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--light-text);
}

.message-time {
    margin-right: 10px;
}

.copy-button {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    transition: var(--transition);
}

.copy-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}
/* 离线状态样式 */
.chat-input-container.offline {
    opacity: 0.7;
    pointer-events: none;
}

.chat-input-container.offline::after {
    content: "网络已断开";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* 错误消息样式 */
.error-message .message-content {
    background-color: #fff0f0;
    border: 1px solid #ffcccc;
}

.error-message .message-content p {
    color: #d32f2f;
}

.local-warning {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 300px;
}

.local-warning a {
    color: #004085;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}
/* 停止按钮样式 */
#stop-generate {
    position: absolute;
    right: 0;
    bottom: 0;  /* 修改为0，使其与发送按钮底部对齐 */
    background-color: #ff4d4d;
    border: none;
    color: white;
    width: 40px;  /* 确保与发送按钮宽度一致 */
    height: 40px;  /* 确保与发送按钮高度一致 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;  /* 确保停止按钮在发送按钮上层 */
}

/* 确保输入组是相对定位的 */
.input-group {
    position: relative;
}

/* 发送按钮样式调整 - 减弱悬停效果 */
#send-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#send-button:hover {
    background-color: #0056b3; /* 更柔和的悬停颜色 */
    transform: none; /* 移除缩放效果 */
    box-shadow: none; /* 移除阴影增强效果 */
}
/* 修改按钮包装器样式 */
.button-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;  /* 固定尺寸 */
    height: 40px; /* 与按钮尺寸一致 */
}

/* 停止按钮样式修正 */
#stop-generate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 100;
}

/* 发送按钮新增样式 */
#send-button {
    position: relative;
    z-index: 50;
    width: 100%;
    height: 100%;
}

/* 确保输入组是相对定位的 */
.input-group {
    position: relative;
}

/* 其他动画样式保持不变 */
#stop-generate:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#stop-generate.clicked {
    transform: scale(0.9);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* 淡入淡出动画 */
.fade-in {
    animation: fadeIn 0.3s forwards;
}

.fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* 发送按钮禁用状态 */
#send-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 旋转动画 */
.fa-spin {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 移动端适配 - 隐藏头像
在移动设备上，为了节省空间并优化界面，我们可以隐藏聊天消息中的头像。下面是相关修改：
## 添加媒体查询样式
```css
/* 移动端适配 - 隐藏头像 */
@media screen and (max-width: 768px) {
    .message .avatar {
        display: none;
    }
    /* 调整消息内容宽度 */
    .message .message-content {
        width: 100%;
        margin-left: 0;
    }
    /* 调整消息间距 */
    .chat-messages {
        padding: 10px;
    }
}
/* 停止生成提示样式 */
.generation-stopped {
    font-style: italic;
    color: #888;
    padding: 4px 8px;
    margin: 4px 0;
    border-left: 3px solid #ff4d4d;
    background-color: rgba(255, 77, 77, 0.05);
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}
/* 模型选择器样式 */
.model-selector {
    margin-right: 10px;
    position: relative;
}
#model-select {
    padding: 6px 30px 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--chat-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-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='%236c757d' 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 10px center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#model-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(58, 134, 255, 0.2);
}
#model-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}
/* 模型选择器选项样式 */
#model-select option {
    padding: 8px;
    background-color: var(--chat-bg);
    color: var(--text-color);
}
/* 模型切换通知 */
.model-change-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.model-change-notification i {
    margin-right: 8px;
}
.model-change-notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .model-selector {
        margin-right: 8px;
    }
    #model-select {
        padding: 5px 25px 5px 8px;
        font-size: 0.8rem;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
/* 数学公式样式优化 */
.MathJax {
    font-style: italic !important;
  }
   /* 确保公式在移动设备上也能正常显示 */
  @media (max-width: 768px) {
    .MathJax {
      font-size: 0.9em;
    }
  }
  /* LaTeX 公式容器样式 */
.latex-display-container {
  width: 100%;
  overflow-x: auto;
  margin: 1em 0;
  padding: 0.5em 0;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}
.latex-display-inner {
  display: flex;
  justify-content: center;
  min-width: min-content;
}
.latex-display-inner .MathJax {
  font-style: italic !important;
  max-width: 100%;
}
/* 确保在小屏幕上也能正常显示 */
@media (max-width: 768px) {
  .latex-display-container {
    font-size: 0.9em;
  }
}
/* 暗色模式下的样式 */
@media (prefers-color-scheme: dark) {
  .latex-display-container {
    background-color: rgba(255, 255, 255, 0.03);
  }
}
/* 关联网站链接样式 */
.related-sites {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}
.related-sites a {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}
.related-sites a:hover {
    background-color: #e0e0e0;
}
.related-sites a i {
    margin-right: 5px;
}
/* 响应式设计 - 在小屏幕上隐藏文字只显示图标 */
@media (max-width: 768px) {
    .related-sites a .btn-text {
        display: none;
    }
    .related-sites a {
        padding: 6px 8px;
    }
    .related-sites {
        margin-right: 10px;
    }
}
/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .related-sites a {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .related-sites a:hover {
        background-color: #3a3a3a;
    }
}