* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
  min-height: 100vh;
}
.BigPictureBox {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background-color: #fff;
  display: flex;
  flex-direction: column; /* 子元素垂直排列（主体 + 页脚） */
  min-height: 83vh; /* 最小高度 = 视口高度，确保内容不足时占满屏幕 */
}
/* 表单卡片 */
.form-card {
  height: 100vh;
  background: white;
  /*border-radius: 32px;*/
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.form-card-1{
  background: white;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

/* 头部 */
.form-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 32px 32px 28px;
  color: white;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.form-header p {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

/* 表单主体 */
.form-body {
  padding: 32px;
}

/* 表单项 */
.form-group {
  margin-bottom: 28px;
}

/* 标签样式 */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-label .required {
  color: #ef4444;
  margin-left: 4px;
}

/* 输入框 */
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #0f172a;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* 文本域 */
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 100px;
}

.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea::placeholder {
  color: #94a3b8;
}

/* 标签按钮组 */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.tag-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 40px;
  background: white;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.tag-btn:hover {
  border-color: #667eea;
  background: #f8fafc;
  transform: translateY(-1px);
}

.tag-btn:active {
  transform: translateY(0);
}

/* 高亮样式 */
.tag-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 按钮组 */
.button-group {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* 下一步按钮 */
.btn-next {
  flex: 1;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-next:active {
  transform: translateY(0);
}

/* 重置按钮（可选） */
.btn-reset {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* 响应式 */
@media (max-width: 640px) {
  body {
    padding: 20px 16px;
  }

  .form-header {
    padding: 24px 24px 20px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .form-body {
    padding: 24px;
  }

  .tag-btn {
    padding: 8px 18px;
    font-size: 13px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn-next, .btn-reset {
    width: 100%;
  }
}

/* 聚焦时移除默认轮廓，用自定义阴影代替 */
.form-input:focus-visible,
.form-textarea:focus-visible,
.tag-btn:focus-visible {
  outline: none;
}

/* 简单动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card {
  animation: fadeIn 0.4s ease-out;
}

.captcha-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.captcha-input {
  flex: 1;
  min-width: 150px;
}

.captcha-image {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-code {
  background: linear-gradient(135deg, #f0f4fa 0%, #e6ecf3 100%);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 4px;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.captcha-code:hover {
  background: linear-gradient(135deg, #e6ecf3 0%, #dce5ef 100%);
  transform: scale(1.02);
}

.refresh-captcha {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.refresh-captcha:hover {
  background: #f8fafc;
  border-color: #667eea;
  transform: rotate(15deg);
}
/*留言板*/
.message_body{
  padding: 20px;
}
.message_card{
  background: #f8fafc;
  border-radius: 16px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.message_header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
}
.message-author{
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}
.message-time {
  font-size: 11px;
  color: #94a3b8;
}
.message-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: #fed7aa;
  color: #ea580c;
}
.message-content {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: white;
}
.message-content p {
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

/* 回复区域 */
.replies-section {
  background: #f8f9fa;
  padding: 15px 20px;
}

.replies-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.replies-list {
  margin-bottom: 15px;
}

.reply-item {
  background: white;
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.reply-content {
  flex: 1;
}

.reply-author {
  font-weight: 600;
  color: #667eea;
  font-size: 13px;
  margin-bottom: 5px;
}

.reply-text {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.reply-time {
  font-size: 11px;
  color: #999;
  margin-top: 5px;
}

.delete-reply {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  transition: color 0.2s;
}

.delete-reply:hover {
  color: #dc2626;
}

/* 添加回复表单 */
.add-reply-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 20px;
}

.add-reply-form input {
  flex: 1;
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s;
}

.add-reply-form input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-reply {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-reply:hover {
  background: #5a67d8;
}

.message-actions {
  padding: 12px 20px;
  display: flex;
  gap: 15px;
  border-top: 1px solid #f0f0f0;
}

.action-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 15px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-btn:hover {
  background: #f0f0f0;
  color: #667eea;
}

.delete-message {
  color: #dc2626;
}

.delete-message:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* 空状态 */
.empty-state {
  background: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  color: #999;
}

/* 统计信息 */
.stats {
  background: white;
  border-radius: 20px;
  padding: 15px 25px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats span {
  color: #667eea;
  font-weight: bold;
}

@media (max-width: 600px) {
  .message-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-reply {
    align-self: flex-end;
  }
}
.add-reply-kong{
  width: 100%;
  height: 20px;
  background-color: white;
  border-radius: 0px 0px 16px 16px;
}

.FooterBar{
  background-color: white!important;
  text-align: center;
  padding: 10px 25px;
  color: #5a6268;
  /*color: white;*/
  font-size: 14px;
}
.FooterBar>a{
  color: #5a6268;
  /*color: white;*/
  text-decoration: none;
}