/* 全局基础样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #1b254a;
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container-main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-main {
  min-height: 60vh;
  padding-top: var(--nav-h, 80px);
}

.partial-error {
  padding: 12px 16px;
  background: #fff3cd;
  color: #856404;
  font-size: 14px;
}

.app-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 99999;
  min-width: 200px;
  max-width: 80vw;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: #333;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  text-align: center;
}

.app-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast.is-success {
  background: #198754;
}

.app-toast.is-error {
  background: #dc3545;
}

.app-toast.is-info {
  background: #0d6efd;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: #667085;
  margin: 0 0 40px;
}

.btn-primary-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  background: #2f5bea;
  color: #fff;
  cursor: pointer;
}

.btn-primary-brand:hover {
  filter: brightness(1.05);
}

/* Element Plus 按钮近似（全站可用，对齐老项目 el-button type=primary） */
.el-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 32px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  text-decoration: none;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.el-button:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
  text-decoration: none;
}
.el-button--primary,
.el-button.el-button--primary {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}
.el-button--primary:hover,
.el-button.el-button--primary:hover {
  background: #79bbff;
  border-color: #79bbff;
  color: #fff;
}
.el-button--primary:active,
.el-button.el-button--primary:active {
  background: #337ecc;
  border-color: #337ecc;
  color: #fff;
}
.el-button--primary.is-plain,
.el-button.is-plain {
  background: #ecf5ff;
  border-color: #a0cfff;
  color: #409eff;
}
.el-button--primary.is-plain:hover,
.el-button.is-plain:hover {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}
.el-button--large,
.el-button.el-button--large {
  padding: 12px 19px;
  font-size: 14px;
  border-radius: 4px;
  height: 40px;
}

.bg-primary {
  background: #2f5bea !important;
}

.text-primary {
  color: #2f5bea !important;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page-main {
    padding-top: 60px;
  }

  .section-title {
    font-size: 24px;
  }
}
