* {
  font-family: "Microsoft YaHei";
}

body {
  background: #f4f4f4;
}
/* 把我们所有标签的内外边距清零 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
/* em 和 i 斜体的文字都不倾斜 */
em,
i {
  font-style: normal;
}

/* 去掉每个li前面的小圆点 */
li {
  list-style: none;
}

img {
  border: 0; /* 为了照顾低版本浏览器,如果 图片的外面包含了链接 会出现边框的问题 */
  vertical-align: middle; /* 解决图片底侧出现空白缝隙的问题 */
}

button {
  cursor: pointer; /* 当我们鼠标经过button按钮时,鼠标变成小手的样子 */
}

a {
  text-decoration: none;
}

body {
  /* 抗锯齿性,避免文字被放大后会产生锯齿 */
  -webkit-font-smoothing: antialiased;
}

/* 清除浮动 */
.clearfix:after {
  visibility: hidden;
  clear: both;
  display: block;
  content: "";
  height: 0;
}
select input {
  border: 0;
}
select:focus {
  outline: none;
}
input:focus {
  outline: none;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* Header Styles */
.header {
  background-color: #fff;
  color: #1e40af;
  height: 72px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-left {
  display: flex;
  align-items: center;
  flex-direction: row;
  height: 72px;
}
.logo {
  margin-right: 6rem;
}
.logo img {
  height: 38px;
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: #6b7280;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s,
    border-color 0.3s;
  padding-top: 10px;
  line-height: 56px;
}
.nav-user {
  color: #6b7280;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s,
    border-color 0.3s;
  padding-top: 10px;
  line-height: 56px;
  cursor: pointer;
}
.nav-link:hover {
  color: #1e40af;
  border-color: white;
}
.nav-link.on {
  color: #1e40af;
  border-color: #1e40af;
}
.mine-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mine-box .exit {
  position: absolute;
  top: 72px;
  background: #fff;
  padding: 15px;
  left: 0;
  text-align: center;
  z-index: 10;
  font-size: 14px;
  color: #666;
  border-radius: 0 0 4px 4px;
  display: none;
  cursor: pointer;
  width: 100px;
  /* border: #eee 1px solid; */
  box-shadow: 0 2px 5px #eee;
  border-top: none;
}
.mine-box .exit:hover {
  color: #1d4ed8;
}
.mine-box:hover .exit {
  display: block;
}
.nav-menu .exit span {
  display: flex;
  align-items: center;
}
.nav-menu .exit .el-icon {
  font-size: 20px;
  margin-right: 8px;
}
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  border: none;
  outline: none;
}
.btn-primary {
  background-color: #2563eb;
  color: white;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}
.btn-secondary {
  background-color: white;
  color: #1e40af;
}
.btn-secondary:hover {
  background-color: #f3f4f6;
}
.btn-accent {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn-accent:hover {
  background-color: #2563eb;
}
.full-width {
  width: 100%;
}
/* Footer */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.footer-desc {
  color: #9ca3af;
}
.footer-subtitle {
  font-weight: bold;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}
.contact-info {
  list-style: none;
  padding: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #9ca3af;
}
.contact-info i {
  margin-right: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
}
/* Floating Service Button */
.floating-service {
  position: fixed;
  right: 2rem;
  bottom: 8rem;
  z-index: 50;
}
.service-btn {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: none;
  outline: none;
  cursor: pointer;
}
.service-btn:hover {
  background-color: #1d4ed8;
  transform: scale(1.1);
}
.service-btn img {
  width: 26px;
}

/* 图形验证码 */
.verify-code {
  display: block;
}
.code-img {
  position: relative;
}
.code-img span {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  border: #333 1px solid;
  border-radius: 10px;
  z-index: 10;
}
.verify-code img {
  width: 350px;
  height: 220px;
}
.verify-code .tips {
  height: 30px;
}
.verify-refresh {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
}
.verify-header {
  font-size: 14px;
  line-height: 26px;
}
.verify-header span {
  color: var(--el-color-error);
  margin-left: 10px;
  font-weight: bold;
}
.verify-header span.on {
  color: var(--el-color-primary);
}

.mg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.mg-modal-container {
  background: white;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}
.mg-modal-header {
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.mg-modal-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mg-modal-title-section {
  flex: 1;
}
.mg-modal-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 4px;
}
.mg-modal-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}
.mg-close-button {
  color: #6b7280;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.25rem;
  transition: color 0.2s;
}
.mg-close-button:hover {
  color: #374151;
}
.mg-tip-container {
  margin-top: 16px;
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
}
.mg-tip-icon {
  color: #3b82f6;
  margin-right: 8px;
  margin-top: 2px;
}
.mg-tip-content {
  flex: 1;
}
.mg-tip-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d4ed8;
}
.mg-tip-desc {
  font-size: 0.75rem;
  color: #1e40af;
  margin-top: 4px;
}
.mg-modal-body {
  padding: 24px;
}
.mg-input-group {
  margin-bottom: 20px;
}
.mg-textarea-group {
  margin-bottom: 24px;
}
.mg-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}
.mg-input-with-icon {
  position: relative;
}
.mg-input-field {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
  font-size: 1rem;
}
.mg-input-field:focus {
  ring: 2px solid #3b82f6;
  border-color: #3b82f6;
}
.mg-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.mg-error-message {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #ef4444;
}
.mg-textarea-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
  font-size: 1rem;
  resize: none;
}
.mg-textarea-field:focus {
  ring: 2px solid #3b82f6;
  border-color: #3b82f6;
}
.mg-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.mg-hint-text {
  font-size: 0.75rem;
  color: #6b7280;
}
.mg-char-count {
  font-size: 0.75rem;
  color: #9ca3af;
}
.mg-button-group {
  display: flex;
  gap: 12px;
}
.mg-submit-button {
  flex: 1;
  background: linear-gradient(to right, #3b82f6, #4f46e5);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.mg-submit-button:hover:not(:disabled) {
  background: linear-gradient(to right, #2563eb, #4338ca);
}
.mg-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mg-cancel-button {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  background: white;
  transition: background 0.2s;
  white-space: nowrap;
}
.mg-cancel-button:hover {
  background: #f9fafb;
}
.mg-loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-loading-icon {
  margin-right: 8px;
}
.mg-modal-footer {
  background: #f9fafb;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}
.mg-footer-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}
.mg-success-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 100;
}
/* 自定义滚动条 */
.mg-textarea-field::-webkit-scrollbar {
  width: 6px;
}
.mg-textarea-field::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.mg-textarea-field::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 3px;
}
.mg-textarea-field::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 左侧菜单 */
.left-menu {
  position: fixed;
  top: 160px;
  left: calc(50vw - 700px);
  transition: top 0.6s ease-in-out;
  max-width: 140px;
  min-width: 100px;
  padding-right: 0;
  background: hsla(0, 0%, 100%, 0.9);
  border: 2px solid #fff;
  box-shadow:
    4px 4px 20px rgba(55, 99, 170, 0.05),
    -4px -4px 20px rgba(55, 99, 170, 0.05);
  border-radius: 4px;
  text-align: left;
  overflow: visible;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.left-menu-item {
  padding-left: 15px;
  position: relative;
  line-height: 42px;
  border-left: transparent 2px solid;
  font-size: 14px;
}
.left-menu-item:hover {
  color: #1e40af;
}
.left-menu-item.on {
  color: #1e40af;
  border-color: #1e40af;
}
