/* =========================================================
   ElecCalc 在线试用版：样式
   ========================================================= */

#ec-trial-bar {
  position: sticky;
  top: 0;
  z-index: 9998;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 16px;
  background: #1B3A6B;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

#ec-trial-bar .ec-trial-tag {
  flex: 0 0 auto;
  background: #E8A33D;
  color: #142B50;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 999px;
}

#ec-trial-bar .ec-trial-text {
  flex: 1 1 320px;
  min-width: 0;
  color: #E6EDF7;
}

#ec-trial-bar .ec-trial-text b { color: #fff; }

#ec-trial-bar .ec-trial-buy {
  flex: 0 0 auto;
  background: #E8A33D;
  color: #142B50;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

#ec-trial-bar .ec-trial-buy:hover { background: #C9862B; }

/* 剩余次数 */
#ec-trial-bar .ec-trial-left {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

#ec-trial-bar .ec-trial-left.is-out {
  background: #DC2626;
}

/* 用满之后的购买引导 */
#ec-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(16, 32, 58, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}

.ec-gate-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: #1A202C;
}

.ec-gate-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #1B3A6B;
}

.ec-gate-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
}

.ec-gate-lead {
  margin: 0 0 4px;
  font-size: 14px;
  color: #334155;
}

.ec-gate-en {
  margin: 0 0 14px;
  font-size: 13px;
  color: #94A3B8;
}

.ec-gate-list {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: #334155;
}

.ec-gate-list b { color: #1B3A6B; }

.ec-gate-buy {
  display: block;
  text-align: center;
  background: #E8A33D;
  color: #142B50;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
}

.ec-gate-buy:hover { background: #C9862B; }

.ec-gate-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #94A3B8;
}

/* 试用版不显示「导入许可证」这类入口 */
a[href="activate.html"].nav-activate,
.lic-machine,
#licImportBox { display: none !important; }

@media (max-width: 640px) {
  #ec-trial-bar { padding: 7px 12px; font-size: 12px; }
  #ec-trial-bar .ec-trial-text { flex: 1 1 100%; order: 3; }
}
