/* ===== 旺翔数科 - 导航增强：信息发布 / 收费标准 ===== */

/* 注入的导航项，复刻站点 .nav-links 样式（原样式为 scoped，需在此重写） */
.wx-nav-item .wx-nav-links {
  padding: 2px 20px 25px;
  color: #fff;
  font-size: 18px;
  position: relative;
  cursor: pointer;
  font-family: 'siyuanRegular', inherit;
  transition: color .2s;
}
.wx-nav-item .wx-nav-links:hover,
.wx-nav-item .wx-nav-links.wx-active {
  color: #6d85f5;
}
/* 滚动后导航变白底时，文字随之变深色 */
.navbar.menubg .wx-nav-item .wx-nav-links {
  color: #333;
}
.navbar.menubg .wx-nav-item .wx-nav-links:hover {
  color: #6d85f5;
}

/* ===== 弹窗 ===== */
.wx-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 24, .65);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  padding: 20px;
}
.wx-modal-mask.wx-show { opacity: 1; }

.wx-modal {
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #18223d 0%, #0b1531 100%);
  border: 1px solid rgba(109, 133, 245, .35);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(109, 133, 245, .12) inset;
  color: #fff;
  padding: 40px 44px 36px;
  position: relative;
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
  font-family: 'siyuanRegular', "Microsoft YaHei", sans-serif;
}
.wx-modal-mask.wx-show .wx-modal { transform: translateY(0) scale(1); }

.wx-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 22px;
  color: #8ea8d6;
  cursor: pointer;
  border-radius: 50%;
  transition: all .2s;
  user-select: none;
}
.wx-modal-close:hover { color: #fff; background: rgba(109, 133, 245, .25); }

.wx-modal-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 1px;
}
.wx-modal-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(-90deg, #654ff1 0%, #73aff7 100%);
}
.wx-modal-sub {
  font-size: 16px;
  color: #6d85f5;
  margin: 24px 0 4px;
  font-weight: 600;
}

/* 计费模式列表 */
.wx-fee-list { margin: 14px 0 8px; }
.wx-fee-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(142, 168, 214, .12);
}
.wx-fee-row:last-child { border-bottom: none; }
.wx-fee-badge {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: center;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(-90deg, #654ff1 0%, #73aff7 100%);
}
.wx-fee-text { flex: 1; line-height: 1.6; }
.wx-fee-en {
  display: block;
  font-size: 13px;
  color: #8ea8d6;
  margin-bottom: 2px;
}
.wx-fee-desc { font-size: 15px; color: #e6ebf7; }

.wx-modal-note {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(109, 133, 245, .12);
  border-left: 3px solid #6d85f5;
  font-size: 15px;
  color: #cdd6ee;
  line-height: 1.6;
}

.wx-modal-empty {
  font-size: 16px;
  color: #cdd6ee;
  line-height: 1.8;
  margin: 18px 0 4px;
}

@media (max-width: 640px) {
  .wx-modal { padding: 30px 22px 26px; }
  .wx-modal-title { font-size: 22px; }
  .wx-fee-row { flex-direction: column; gap: 8px; }
}

/* ===== 信息发布 全页表单（首页暗色风格） ===== */
.wx-page {
  position: fixed;
  inset: 0;
  /* 首页存在 z-index 高达 99999 的元素，需盖在其上以免穿透；导航再单独浮于本页之上 */
  z-index: 100000;
  overflow-y: auto;
  padding: 110px 20px 60px;
  color: #fff;
  background: #0b1531 url(../img/banner1.7734f76a.png) fixed no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity .25s ease;
  font-family: 'siyuanRegular', "Microsoft YaHei", sans-serif;
}
.wx-page.wx-show { opacity: 1; }
/* 打开信息发布页时，让首页固定导航浮于本页之上，保持完整首页风格与导航可用 */
body.wx-info-open .navbar { z-index: 100001 !important; }
.wx-page::before { /* 压暗背景，保证表单可读 */
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 35, .72);
  z-index: -1;
}

.wx-page-card {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(160deg, rgba(24, 34, 61, .92) 0%, rgba(11, 21, 49, .94) 100%);
  border: 1px solid rgba(109, 133, 245, .3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  padding: 0 48px 44px;
}
.wx-page-head {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin: -1px auto 30px;
  padding: 14px 40px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  color: #fff;
  background: linear-gradient(-90deg, #654ff1 0%, #73aff7 100%);
  border-radius: 0 0 12px 12px;
}
.wx-page-close {
  position: absolute;
  top: 16px;
  right: 18px;
}

.wx-form { padding: 0 8px; }
.wx-field { margin-bottom: 26px; }
.wx-row {
  display: flex;
  gap: 40px;
}
.wx-row .wx-field { flex: 1; min-width: 0; }
.wx-field-placeholder { visibility: hidden; }

.wx-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  color: #cdd6ee;
}
.wx-label i {
  color: #ff5b5b;
  font-style: normal;
  margin-right: 4px;
}

.wx-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  color: #fff;
  background-color: rgba(85, 102, 139, .2);
  border: 1px solid rgba(142, 168, 214, .28);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.wx-input::placeholder { color: #7e8cb0; }
.wx-input:focus {
  border-color: #6d85f5;
  box-shadow: 0 0 0 2px rgba(109, 133, 245, .18);
}
.wx-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

/* 文件上传 */
.wx-upload { display: flex; align-items: center; gap: 16px; }
.wx-file-btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  background: linear-gradient(-90deg, #654ff1 0%, #73aff7 100%);
  transition: opacity .2s;
}
.wx-file-btn:hover { opacity: .9; }
.wx-file-name { font-size: 14px; color: #9fb0d6; }

/* 分隔线 */
.wx-divider {
  height: 0;
  border-top: 1px dashed rgba(142, 168, 214, .3);
  margin: 6px 0 30px;
}

/* 错误态 */
.wx-field.wx-error .wx-input,
.wx-field.wx-error .wx-file-btn {
  border: 1px solid #ff5b5b;
}
.wx-field.wx-error .wx-label { color: #ff8a8a; }
.wx-agree.wx-error { color: #ff8a8a; }

/* 服务协议 */
.wx-agree {
  margin: 4px 0 30px;
  font-size: 14px;
  color: #cdd6ee;
}
.wx-agree label { cursor: pointer; user-select: none; }
.wx-agree input { margin-right: 6px; vertical-align: middle; accent-color: #6d85f5; }

/* 提交按钮 */
.wx-submit-wrap { text-align: center; }
.wx-submit-btn {
  min-width: 200px;
  padding: 13px 40px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: linear-gradient(-90deg, #654ff1 0%, #73aff7 100%);
  box-shadow: 0 8px 20px rgba(101, 79, 241, .35);
  transition: transform .15s, box-shadow .2s;
  font-family: inherit;
}
.wx-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(101, 79, 241, .5); }
.wx-submit-btn:active { transform: translateY(0); }

@media (max-width: 700px) {
  .wx-page { padding: 90px 12px 40px; }
  .wx-page-card { padding: 0 22px 32px; }
  .wx-row { flex-direction: column; gap: 0; }
  .wx-field-placeholder { display: none; }
}

/* ===== 通用提示 ===== */
.wx-toast {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translate(-50%, -12px) scale(.96);
  z-index: 100050; /* 高于信息发布页(100000)与导航(100001)，确保提示始终可见 */
  padding: 18px 34px;
  font-size: 17px;
  color: #fff;
  background: rgba(11, 21, 49, .95);
  border: 1px solid rgba(109, 133, 245, .4);
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
  font-family: 'siyuanRegular', "Microsoft YaHei", sans-serif;
}
.wx-toast.wx-show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.wx-toast-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(-90deg, #654ff1 0%, #73aff7 100%);
  vertical-align: middle;
}
