/* 基础页面样式（对应原站 index.html 内联样式） */
html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
  color: #606266;
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* 轻提示（模拟 Element Plus 警告提示） */
.toast-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  pointer-events: none;
}

.toast {
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid #faecd8;
  border-radius: 6px;
  background: #fdf6ec;
  color: #e6a23c;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.toast-hide {
  opacity: 0;
  transform: translateY(-6px);
}

/* 协议预览弹窗 */
.agreement-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.agreement-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 750px;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.agreement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}

.agreement-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.agreement-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.agreement-body {
  padding: 12px 16px 16px;
  overflow-y: auto;
  color: #374151;
  font-size: 13px;
  line-height: 1.8;
}

.agreement-body h4 {
  margin: 16px 0 8px;
  color: #111827;
  font-size: 14px;
}

.agreement-body p {
  margin-bottom: 10px;
}

.agreement-placeholder {
  padding: 28px 16px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}
