html, body {
    height: 100%;
    margin: 0; /* 去掉默认边距 */
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}
/* 为小屏幕设备设置响应式样式 */
@media (max-width: 600px) {
    .renwu {
        flex-direction: row; /* 保持横向排列 */
        font-size: 10px; /* 根据需要调整字体大小 */
    }
    p {
        font-size: 10px;
    }
    .h1, h1 {
    font-size: 26px;
    }
    .h3, h3{
    font-size: 14px;
    }
    .postcontent{
    font-size: 12px;
    }
}
        .dropdown {
            display: none;
            position: absolute;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
            width: 200px;
            padding: 10px;
            margin-left:12.2px;
            z-index: 10;
        }
        .dropdown div {
            padding: 8px;
            cursor: pointer;
            color: gray;
        }
        .dropdown div:hover {
            background-color: #f0f0f0;
        }
@keyframes dot-flashing {
    0% {
        background-color: rgb(255, 165, 0);
        box-shadow: rgb(204, 132, 0) 15px 0px;
    }
    50% {
        background-color: rgba(255, 165, 0, .3);
        box-shadow: rgba(204, 132, 0, .3) 15px 0px;
    }
    100% {
        background-color: rgb(255,165 ,0);
        box-shadow: rgb(204 ,132 ,0) 15px   0;
    }
}
    .actions {
      display: flex;
      justify-content: space-between; /* 左右分布 */
      align-items: center;
      margin-top: 10px;
      width: 100%;
    }

    .left-actions,
    .right-actions {
      display: flex;
      gap: 10px; /* 按钮间距 */
    }
/* 表格 */
table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 1rem; 
   background-color:#fff
 }

 th, td {
   padding:.75rem; 
   text-align:left; 
   border-top :1px solid #dee2e6
 }
 
 tr:nth-child(even) {background-color:#f2f2f2}
 
 th {background-color:#e9ecef}

 a {
     color:#0366d6
 }
 a:hover {
     text-decoration:none
 }

.dot-flashing {
    width:8px;
    height:8px;
    border-radius:50%;
    display:inline-block;

    background-color: rgb(255,165 ,0);
    animation: dot-flashing .8s infinite linear alternate;

    box-shadow:
      rgb(204 ,132 ,0)   15px     0; /* 第二个点 */
}
.upgrade-btn1 {
    background-color: orange;
    color: black;
    padding: var(--button-padding);
    font-size: var(--button-font-size);
    border: none;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    margin-left: 10px;
    padding-left: 3px;
    padding-right: 3px;
}
p {
    line-height: 1.5; /* 或者使用其他值，例如2 */
}
.chat-container {
    flex: 1;
    margin-left: 140px;
    background-color: white;
    border-radius: 10px;
    /* padding: 25px; */
    box-sizing: border-box;
    user-select: text !important;
    text-decoration:none;
    cursor:default;
    min-height:100%;
    padding-top: 25px;
    padding-right: 0px;
    padding-bottom: 25px;
    padding-left: 0px;
}

.chat-containertop {
    width: 60%;
    margin: 25px auto 12.5px auto;
    background-color: antiquewhite;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 12.5px rgba(0, 0, 0, 0.125);
    cursor:default;
}
.chat-box {
    height: 54.62vh;
    width: 100%;
    margin: 0;
    overflow-y: auto;
    padding: 0px;
    background-color: #e9e9e9;
    border-radius: 0px;
    margin-bottom: 0px;
    user-select:text !important;
    cursor:default;
    box-sizing: border-box;
    font-size:16px;
}
.chat-message {
    padding: 6.25px 12.5px;
    border-radius: 0;
    margin: 6.25px 0;
    user-select:text !important;
    font-size:16px;
}
.user-message {
    background-color: white;
    color: black;
    align-self: flex-end;
    user-select:text !important;
    white-space: pre-wrap;
    font-size:16px;
    padding-left: 55px;
    word-break: break-all;
}
.bot-message {
    background-color: #e5e5e5;
    color: black;
    align-self: flex-start;
    user-select:text !important;
    font-size:16px;
    padding-left: 55px;
}
.input-container {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin: 0px 0; /* 添加适当的间距 */
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
}
textarea {
    width: calc(100%);
    padding: 18px;
    margin-left: 12.5px;
    margin-right: 6.25px;
    border: 1.25px solid #ccc;
    border-radius: 6.25px;
    resize: none; /* 禁止用户手动调整大小 */
    color:#000000;
    white-space:pre-wrap;
    font-size:16px;
}
input[type="text"] {
    width: calc(100%);
    padding: 12.5px;
    margin-left: 0;
    border: 1.25px solid #ccc;
    border-radius: 0px;
    color:#000000;
    font-size:16px;
    padding-left: 40px;
}
input[type="text1"] {
    width: calc(100% - 125px);
    padding: 12.5px;
    margin-left: 12.5px;
    border: 1px solid #ccc;
    border-radius: 6.25px;
    font-size:16px;
}
input[type="text3"] {
    padding: 12.5px;
    border: 1.25px solid #ccc;
    border-radius: 6.25px;
    color:#000000;
    font-size:14px;
}
button {
    padding: 12.5px;
    background-color: #4472c4;
    color: white;
    border: none;
    border-radius: 6.25px;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}
.footer {
    text-align: center;
    margin: 100px auto 25px auto;
    font-size: 11px;
    color: #666;
}
.small-text {
    font-size: 12.5px; /* 设置字体大小 */
    color: #666; /* 设置颜色 */
    text-decoration: none; /* 去掉下划线 */
    display: block; /* 让链接作为块级元素，以便居中 */
    text-align: center; /* 文本居中 */
    margin: 0 auto 6px auto; /* 上、左右自动居中，下方留出间距 */
    left:50%;
}
.user-icon-container {
    position: fixed;
    top: 12.5px;
    right: 12.5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 25px; /* 根据需要调整字体大小 */
    color: #fff; /* 根据需要调整文字颜色 */
    overflow: hidden; /* 确保长文本不溢出 */
    text-align: center; /* 水平居中文字 */
}
.username {
    font-size: 15px; /* 根据需要调整字体大小 */
    white-space: nowrap; /* 防止文本换行 */
}
.vip-container {
    position: fixed;
    top: 12.5px;
    right: 87.5px;
    width: 187.5px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px; /* 根据需要调整字体大小 */
    color: #666; /* 根据需要调整文字颜色 */
    overflow: hidden; /* 确保长文本不溢出 */
    text-align: center; /* 水平居中文字 */
    white-space: nowrap; /* 防止文本换行 */
}
.vip-button {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}
/* 弹出框默认隐藏,充值界面 */
.recharge-popup {
    display: none; /* 默认隐藏弹出框 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.625); /* 半透明背景 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 弹出框内容 */
.popup-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 12.5px;
    width: 625px;
    text-align: center;
}
/* 修改为横排布局 */
.recharge-options {
    display: flex;
    flex-direction: row; /* 横向排列套餐 */
    gap: 25px; /* 套餐之间的间距 */
    justify-content: center; /* 水平居中排列 */
}

/* 套餐项 */
.recharge-option {
    display: flex;
    flex-direction: column;
    align-items: center; /* 套餐项内容居中 */
}

/* 充值按钮 */
.pay-button {
    margin-top: 12.5px;
    padding: 12.5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6.25px;
    cursor: pointer;
}

.pay-button:hover {
    background-color: #45a049;
}

.qr-code {
    margin: 25px 0;
}

.qr-code img {
    width: 187.5px;
    height: 187.5px;
}

.close-button {
    margin-top: 25px;
    padding: 12.5px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 6.25px;
    cursor: pointer;
}

.close-button:hover {
    background-color: #e53935;
}
        }
/* 其余样式保持不变，以上是充值界面 */
/* 下方是下拉框样式*/
.container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
}
.popup {
    position: absolute;
    top: 75px; /* 相对于用户图标的位置 */
    right: 12.5px; /* 靠右对齐 */
    width: 250px; 
    background-color: white;
    box-shadow: 0px 5px 7.5px rgba(0, 0, 0, 0.125);
    border-radius: 6.25px;
    padding: 18.75px; 
    display: none; /* 初始隐藏 */
    z-index: 5;
}
.popup p {
    margin-bottom: 12.5px;  
}
@media (max-width: 768px) {
    .custom-font-size {
        font-size: 10px; /* 自定义字体大小 */
    }
}
.logout-btn {
    width:100%;
    padding:10px; 
    background-color:#e74c3c; 
    color:white; 
    border:none; 
    border-radius:6.25px; 
    cursor:pointer
}
.logout-btn:hover {
    background-color:#c0392b
}
.userIcon {
    width: 50px;
    height: 50px;
    right:22.5px;
    top:18.75px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22.5px;
    cursor: pointer;
    position:fixed;
    overflow: hidden; /* 确保长文本不溢出 */
}
/*以上是“下拉框”*/
/*以下是导航框*/
/* 左侧导航窗格样式 */
.sidebar {
  width: 140px;
  height: 100vh;
  background-color: #000000;  /* 黑色背景 */
  color: #FFFFFF;  /* 白色字体 */
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 0;
  font-family: 'Helvetica', 'Arial', sans-serif;
  z-index: 9999; 
}

/* 导航链接样式 */
.sidebar .nav-link {
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  padding: 18.75px 25px;
  font-size: 16px;
  margin-bottom: 12.5px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar .nav-link:hover {
  background-color: #333333; /* 悬停时改变背景 */
  color: #FFD700;  /* 悬停时字体颜色为金色 */
}

/* 子菜单样式 */
.sub-menu {
  display: none;
  background-color: #222222;
  padding-left: 25px;
  border-radius: 5px;
}

.nav-item:hover .sub-menu {
  display: block;
}

.sub-menu a {
  color: #FFFFFF;
  text-decoration: none;
  padding: 12.5px 18.75px;
  display: block;
}

.sub-menu a:hover {
  background-color: #555555;
}

/* 响应式设计，确保在小屏幕上显示效果良好 */
@media (max-width: 768px) {
  .sidebar {
    width: 50px;  /* 小屏幕下稍微缩小导航栏宽度 */
  }

  .sidebar .nav-link {
    padding: 10px 15px;  /* 更小的内边距 */
    font-size: 16px;
  }

  .sidebar .sub-menu a {
    padding: 8px 15px;
  }
  .chat-container {
    flex: 1;
    margin-left:40px;
    width: 100%;  /* 确保宽度等于剩余的空间 */
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    padding-left: 0px;
    padding-right: 0px;
  }
  .chat-box, 
  .chat-message, 
  .user-message, 
  .bot-message,
  .chat-box,
  .promo-text,
  .input-container,
  textarea,
  input[type="text"],
  input[type="text1"] {
   font-size :12px;/* 在小分辨率下设置为10像素 */
  }
}

/* 在屏幕宽度更小（如 480px）时，进一步调整 */
@media (max-width: 480px) {
  .sidebar {
    width: 50px;  /* 更小的屏幕，宽度调整为 150px */
  }

  .sidebar .nav-link {
    font-size: 14px; /* 调整字体大小 */
  }
}

/* 动画效果 */
.sidebar .nav-link {
  transition: background-color 0.3s, color 0.3s;
}

.sidebar .nav-item:hover .nav-link {
  background-color: #333333;
  color: #FFD700; /* 悬停效果 */
}

.sub-menu a {
  transition: background-color 0.3s;
}

.sub-menu a:hover {
  background-color: #444444;
}




/* 主容器 */
.main-container {
    display: flex;
    justify-content: flex-start; /* 确保左侧导航栏和右侧聊天框平行 */
    width: 100%;
    min-height:100%;
}
/*宣传语*/
/* 添加宣传语的样式 */
.promo-text {
    margin-left:12.5px;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #4472c4;
    padding: 12.5px 25px;
    border-radius: 6.25px;
    box-shadow: 2.5px 2.5px 12.5px rgba(0, 0, 0, 0.375);
    font-family: 'Arial', sans-serif;
}

.hangcontainer {
    display: flex;
    align-items: center; /* 垂直居中，可选 */
    gap: 12.5px; /* 元素之间间距，可调 */
    padding-left: 25px;
    padding-right: 25px;
}
    /* 帮助文档样式 */
    #help-doc-container {
        position: relative;
        background-color: #ffffff;
        padding: 5px;
        border-radius: 12.5px;
        height: 100%;
        overflow-y: auto;
        margin-left: 0px;  /* 设置离左侧的距离为50px */
    }
  .help-log-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
  }

  .help-section, .log-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    flex: 0.9; /* 平均分配宽度 */
    min-width: 270px;
  }
    /* 帮助文档内容 */
    #help-docs {
        background-color: white;
        padding: 25px;
        border-radius: 12.5px;
        max-height: 100%;
        overflow-y: auto;
        box-sizing: border-box;
        font-size:16px;
        flex: 1; /* 平均分配宽度 */
        min-width: 300px;
    }
    .log-entry {
      margin-bottom: 15px;
      padding-bottom:10px;
      border-bottom:1px solid #ddd;
    }

    .date {
      font-weight: bold;
      color:#333;
      margin-bottom:4px;
    }

    /* 关闭按钮 */
    #close-help-btn {
        position: absolute;
        top: 12.5px;
        background-color: green;
        color: white;
        border: none;
        padding: 12.5px;
        cursor: pointer;
        border-radius: 50%;
    }
/* 浮动框样式 */
.contact-popup {
  display: none;
  position: fixed;
  left: 140px; /* 在导航右侧显示 */
  top: 182.5px; /* 根据“联系”按钮的位置微调 */
  background-color: #CC5500;
  color: white;
  padding: 12.5px;
  border-radius: 10px;
  box-shadow: 0 2.5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;  /* 设置浮动框的层级更高，确保浮动框在帮助文档之上 */
  font-size: 15px;
  border: 6.25px solid #CC5500; /* 浅橙色边框 */
}

/* 悬停显示浮动框 */
#contact:hover + #contact-popup {
  display: block;
}
/* 点击时浮动框仍然可以显示 */
#contact:active + #contact-popup {
  display: block;
}
#clearMemoryBtn {
    margin-left: 6.25px; /* 设置你希望的间距，比如10px */
}
@media (max-width: 768px) {
  .modal-dialog {
    width: 80% !important;   /* 小屏时宽度为90% */
    margin: auto;
  }
}

h2{
    font-size:32px;
}
/* 在小屏幕（如 768px 以下）时调整宣传语的样式 */
@media (max-width: 768px) {
  .promo-text {
    font-size: 12px; /* 小屏幕下字体设置为14像素 */
    padding: 10px 20px; /* 可以根据需要调整内边距 */
  }
  .userIcon{
      width: 40px;
      height: 40px;
  } 
  .username {
      font-size: 12px; /* 根据需要调整字体大小 */
  }
  .chat-containertop {
      width: 60%;
      margin: 18px auto 12.5px auto;
      background-color: white;
      border-radius: 10px;
      padding: 25px;
      box-shadow: 0 0 12.5px rgba(0, 0, 0, 0.125);
      cursor:default;
  }
  textarea {
      width: calc(100%);
  }
  input[type="text"] {
      width: calc(100%);
  }
  .chat-containertop {
      visibility: hidden;
  }
  .small-text {
      font-size:10px;
  }
  .footer {
      text-align: center;
      margin: 60px auto 25px auto;
      font-size: 11px;
      color: #666;
  }
  /* 子菜单样式 */
  .sub-menu {
    display: none;
    background-color: #222222;
    padding-left: 12px;
    border-radius: 5px;
  }
  h2{
    font-size:28px;
  }
  p{
    font-size:14px;
  }
}
/* 设置会话列表项的基本样式 */
.session-item {
  padding: 5px; /* 内部填充 */
  margin: 15px 0; /* 上下间距 */
  border: 1px solid #ddd; /* 边框样式 */
  border-radius: 5px; /* 圆角边框 */
  font-family: Arial, sans-serif; /* 字体样式 */
  font-size: 12px; /* 字体大小 */
  /* 背景颜色 */
}
.session-list {
   height: calc(250px); /* 根据需要调整 */
   overflow-y: scroll; /* 保持可以滚动 */
   scrollbar-width: none; /* Firefox隐藏滚动条 */
}

/* 悬停效果 */
.session-item:hover {
  background-color: #e0e0e0; /* 悬停时背景变色 */
  cursor: pointer; /* 鼠标指针变为手形 */
}
/*.promo-text,
.chat-containertop {
    visibility: hidden; 
}*/
