/* 页面基础样式 */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; 
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* Tab 样式 */
#tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

#tabs button {
  padding: 8px 15px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  transition: background 0.2s;
}

#tabs button:hover {
  background-color: #e6f0ff;
}

/* 内容区样式 */
#content {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
}

/* 标题 */
#title {
  margin-bottom: 15px;
  font-size: 24px;
}

/* 输入框和描述 */
#demands,
#description {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

/* 勾选证据列表 */
#evidence-list {
  margin-bottom: 15px;
}

/* 每条证据样式 */
.evidence-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.evidence-group label {
  flex: 1;
  cursor: pointer;
}

/* 添加描述按钮 */
.add-desc-btn {
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f2f2f2;
}

.add-desc-btn:hover {
  background-color: #e6f0ff;
}

/* 隐藏的描述框 */
.evidence-desc {
  width: 100%;
  display: none;
  margin-top: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  resize: vertical;
}

/* 操作按钮 */
.actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.actions button {
  width: 200px;
  height: 30px;
  padding: 8px 15px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #0078d7;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;

  display: flex;
  justify-content: center;
  align-items: center;
}

.actions button:hover {
  background-color: #005ea2;
}

/* 输出 AI 审核结果 */
#ai-result {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f7ff;
  border-left: 4px solid #0078d7;
  border-radius: 4px;
  white-space: pre-wrap; /* 保留换行 */
  display: none; /* 初始隐藏 */
}

#page-result {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-top: 50px;
  display: none; /* 初始隐藏 */
  color: #0078d7;
}

footer
{
    text-align: center;
    color: black;
    padding: 0.5px;
    margin-top: auto;
}

#consult-btn {
  position: fixed;
  top: 20px;
  right: 120px;        /* 离右边稍远，避免和返回首页按钮重叠 */
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: transparent;
  color: black;
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
  font-weight: bold;
}

#consult-btn:hover {
  background-color: #f0f0f0;
}

#wechat-bind-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f2f2f2;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

#wechat-bind-btn:hover {
    background-color: #e6e6e6;
}

#top-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;         /* 按钮间距 */
  flex-direction: row;
  z-index: 1000;
}

.top-btn {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f2f2f2;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.top-btn:hover {
  background-color: hsl(0, 3%, 80%);
}

/* Tab 容器 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 普通 Tab 样式 */
.tab {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f2f2f2; /* 默认浅灰 */
    cursor: pointer;
    color: black;
    transition: background-color 0.2s, color 0.2s;
}

.tab:hover {
    background-color: #e0e0e0;
}

/* 选中 Tab */
.tab.active {
    background-color: #cce0ff !important; /* 加 !important 确保生效 */
    color: black !important;
    border-color: #cce0ff !important;
}