/* IE 兼容组件样式：按钮、徽标、提示、表单、卡片、弹窗、下拉菜单等 */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

img { max-width: 100%; }

/* 按钮 */
.btn {
  display: inline-block;
  vertical-align: middle;
  padding: 0 18px;
  height: 40px;
  line-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #243044;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.btn-sm { height: 32px; line-height: 30px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; line-height: 46px; padding: 0 22px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-primary { border-color: #2467c9; color: #fff; background: #2467c9; }
.btn-primary:hover:not(:disabled) { background: #1d57ab; }
.btn-soft { border-color: #d8e0ec; color: #243044; background: #fff; }
.btn-soft:hover:not(:disabled) { background: #f6f9fd; }
.btn-ghost { border-color: rgba(18, 29, 51, 0.18); color: #243044; background: transparent; }
.btn-warning { border-color: #d97706; color: #fff; background: #d97706; }
.btn-warning-soft { border-color: #f3d9a4; color: #9a5b05; background: #fff7e6; }
.btn-error { border-color: #dc2626; color: #fff; background: #dc2626; }
.btn-error-soft { border-color: #fecaca; color: #b42318; background: #fff1f2; }
.btn-neutral-soft { border-color: #d8e0ec; color: #4b5563; background: #fff; }

/* 徽标 */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: middle;
  background: #f6f9fd;
}
.badge-sm { padding: 2px 8px; font-size: 11px; }
.badge-primary { border-color: rgba(36,103,201,0.25); color: #2467c9; background: rgba(36,103,201,0.08); }
.badge-success { border-color: rgba(22,163,74,0.25); color: #16a34a; background: rgba(22,163,74,0.08); }
.badge-warning { border-color: rgba(217,119,6,0.28); color: #b96a08; background: rgba(217,119,6,0.1); }
.badge-error { border-color: rgba(220,38,38,0.25); color: #dc2626; background: rgba(220,38,38,0.08); }
.badge-neutral { border-color: #d8e0ec; color: #4b5563; background: #f6f9fd; }

/* 提示条 */
.alert {
  padding: 14px 16px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  background: #f6f9fd;
}
.alert-success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.alert-error { border-color: #fecaca; color: #b42318; background: #fff1f2; }
.alert-warning { border-color: #fde68a; color: #92400e; background: #fffbeb; }
.alert .btn { margin-top: 8px; }

/* 表单 */
.field { width: 100%; margin-bottom: 18px; }
.field-label { display: inline-block; margin-bottom: 8px; color: #121d33; font-weight: 800; line-height: 1.3; }
.required { color: #ef2626; font-weight: 900; }
.input, .textarea, .select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  color: #111827;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 15px;
  background: #fff;
}
.textarea { height: auto; min-height: 104px; padding-top: 12px; padding-bottom: 12px; line-height: 1.7; resize: vertical; }
.select { height: 44px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: #2467c9; box-shadow: 0 0 0 3px rgba(36,103,201,0.12); }
.input:disabled, .textarea:disabled, .select:disabled { background: #f3f6fa; color: #9aa4b5; cursor: not-allowed; }

/* 卡片 */
.card {
  border: 1px solid rgba(36, 103, 201, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(18, 29, 51, 0.12);
}
.card-header { padding: 24px 28px 0; }
.card-body { padding: 24px 28px 28px; }
.card-footer { padding: 0 28px 28px; }

/* 封面图统一使用 img 标签 */
.article-cover-empty {
  min-height: 150px;
  text-align: center;
  line-height: 150px;
  color: #7b8ca8;
  font-size: 14px;
  font-weight: 700;
}
.hall-card-cover {
  display: block;
  width: 100%;
  height: 160px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #e7edf5;
  object-fit: cover;
}
.audit-card-img {
  display: block;
  width: 180px;
  height: 112px;
  border-radius: 8px;
  background: #e7edf5;
  object-fit: cover;
}
.audit-cover-empty {
  text-align: center;
  line-height: 112px;
  color: #7b8ca8;
  font-size: 13px;
  font-weight: 700;
}
.my-article-card-img {
  display: block;
  width: 180px;
  height: 112px;
  border-radius: 8px;
  background: #e7edf5;
  object-fit: cover;
}
.my-article-cover-empty {
  text-align: center;
  line-height: 112px;
  color: #7b8ca8;
  font-size: 13px;
  font-weight: 700;
}

/* 认证审核页资料图 */
.cert-audit-card .audit-content {
  overflow: hidden;
}
.cert-info-list {
  display: block;
  overflow: hidden;
  margin-top: 16px;
}
.cert-info-item {
  float: left;
  width: 48%;
  margin: 0 4% 12px 0;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f9fc;
  box-sizing: border-box;
}
.cert-info-item:nth-child(2n) {
  margin-right: 0;
}
.cert-info-label {
  display: block;
  margin-bottom: 4px;
  color: #8a95a6;
  font-size: 12px;
  font-weight: 700;
}
.cert-info-value {
  display: block;
  min-width: 0;
  text-align: left;
  color: #121d33;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-all;
}
.cert-images {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf1;
}
.cert-images:after {
  content: "";
  display: table;
  clear: both;
}
.cert-image-item {
  float: left;
  width: 48%;
  margin: 0 2% 16px 0;
}
.cert-image-item:nth-child(2n) {
  margin-right: 0;
}
.cert-images-single .cert-image-item {
  width: 100%;
  margin-right: 0;
}
.cert-image-label {
  display: block;
  margin-bottom: 8px;
  color: #121d33;
  font-size: 14px;
  font-weight: 800;
}
.cert-image-box {
  display: block;
  height: 190px;
  overflow: hidden;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  line-height: 190px;
  text-align: center;
  background: #eef2f7;
}
.cert-image-box img {
  display: inline-block;
  max-width: 100%;
  max-height: 180px;
  vertical-align: middle;
}
.cert-image-empty {
  display: block;
  height: 190px;
  border: 1px dashed #c4d0e0;
  border-radius: 8px;
  color: #7b8ca8;
  font-size: 13px;
  font-weight: 700;
  line-height: 190px;
  text-align: center;
  background: #f6f9fd;
}

/* 下拉菜单 */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 30;
  display: none;
  min-width: 168px;
  padding: 8px;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18,29,51,0.14);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  color: #243044;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(36,103,201,0.08); color: #2467c9; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.52);
}
.modal-mask.open { display: block; }
.modal {
  position: relative;
  width: 640px;
  max-width: calc(100% - 32px);
  max-height: 86%;
  overflow-y: auto;
  margin: 8% auto 0;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(18,29,51,0.24);
}
.modal-sm { width: 520px; }
.modal-lg { width: 760px; }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5eaf1;
}
.modal-header h3 { margin: 0; color: #111827; font-size: 20px; }
.modal-header p { margin: 6px 0 0; color: #6b7280; font-size: 14px; line-height: 1.6; }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 16px 24px 20px; border-top: 1px solid #e5eaf1; text-align: right; }
.modal-footer .btn { margin-left: 8px; }

/* 布局工具（IE 兼容，使用 flex 与浮动） */
.row { margin-left: -10px; margin-right: -10px; }
.row:after { content: ""; display: table; clear: both; }
.col { float: left; padding-left: 10px; padding-right: 10px; min-height: 1px; }
.col-12 { width: 100%; }
.col-8 { width: 66.666%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.flex { display: -ms-flexbox; display: flex; }
.flex-wrap { -ms-flex-wrap: wrap; flex-wrap: wrap; }
.items-center { -ms-flex-align: center; align-items: center; }
.justify-between { -ms-flex-pack: justify; justify-content: space-between; }
.justify-center { -ms-flex-pack: center; justify-content: center; }
.justify-end { -ms-flex-pack: end; justify-content: flex-end; }
.flex-1 { -ms-flex: 1 1 auto; flex: 1 1 auto; }
.gap-1 > * + * { margin-left: 8px; }
.gap-2 > * + * { margin-left: 12px; }
.gap-3 > * + * { margin-left: 16px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.hidden { display: none; }
