/*!
 * publish-gate-modal.css
 * 发布项目 / 发布资源 —— 荣耀 SVIP 前置拦截弹窗
 * 由 resources/views/web/shared/_publish_gate_modal.blade.php 使用
 * 说明：layer 把弹窗插到 body 下，全局没有 box-sizing，这里自己补齐。
 */

.pgm-box {
  --pgm-ink: #1d2939;
  --pgm-text: #475467;
  --pgm-muted: #667085;
  --pgm-line: #eaecf0;
  --pgm-gold: #b8873b;
  --pgm-gold-deep: #8a641f;
  padding: 0;
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pgm-box *,
.pgm-box *::before,
.pgm-box *::after { box-sizing: border-box; }

/* ---------- 头部：金色皇冠区 ---------- */
.pgm-head {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  background:
    radial-gradient(70% 120% at 92% 0%, rgba(212, 169, 95, .30) 0%, rgba(212, 169, 95, 0) 62%),
    linear-gradient(135deg, #123a37 0%, #17514c 100%);
  color: #fff;
}
.pgm-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 100% 26px;
  pointer-events: none;
}
.pgm-head-in { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 13px; }

.pgm-ico {
  flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #d5a253, #a9762c);
  color: #fff; font-size: 17px;
  box-shadow: 0 8px 18px -8px rgba(184, 135, 59, .95);
}
.pgm-head-txt { min-width: 0; }
.pgm-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 5px;
  background: rgba(212, 169, 95, .18);
  border: 1px solid rgba(212, 169, 95, .40);
  color: #f3d9a6; font-size: 11px; font-weight: 600; letter-spacing: .3px;
}
.pgm-title {
  margin: 8px 0 0;
  font-size: 18px; font-weight: 700; line-height: 1.4;
  color: #fff; letter-spacing: .2px;
}
.pgm-title em { font-style: normal; color: #f4d094; }
.pgm-sub {
  margin: 6px 0 0;
  font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .74);
}
.pgm-sub b { color: #fff; font-weight: 600; }
.pgm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .82);
  font-size: 14px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pgm-close:hover { background: rgba(255, 255, 255, .20); color: #fff; }
.pgm-close:focus-visible { outline: 2px solid #f4d094; outline-offset: 2px; }

/* ---------- 权益清单 ---------- */
.pgm-body { padding: 18px 24px 4px; background: #fff; }
.pgm-rights { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pgm-rights li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; line-height: 1.55; color: var(--pgm-text);
}
.pgm-rights i {
  flex: 0 0 16px; margin-top: 2px;
  font-size: 12px; color: #0a8f88; text-align: center;
}
.pgm-rights b { color: var(--pgm-ink); font-weight: 600; }

.pgm-note {
  margin: 13px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--pgm-line);
  font-size: 12px; line-height: 1.6; color: var(--pgm-muted);
}

/* ---------- 价格 + 按钮 ---------- */
.pgm-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px 20px;
  background: #fff;
  border-top: 1px solid var(--pgm-line);
  margin-top: 14px;
}
.pgm-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pgm-price b {
  display: flex; align-items: baseline; gap: 2px;
  color: var(--pgm-gold-deep);
  font-size: 25px; font-weight: 800; letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
}
.pgm-price b em { font-style: normal; font-size: 14px; font-weight: 700; }
.pgm-price b i { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--pgm-muted); }
.pgm-price s { font-size: 11.5px; color: #98a2b3; text-decoration: line-through; }

.pgm-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.pgm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px;
  border: 0; border-radius: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.pgm-btn:focus-visible { outline: 2px solid #0a8f88; outline-offset: 2px; }
/* base.css 的 a:link/:visited 会压单类名，这里抬到 .pgm-box 前缀 */
.pgm-box a.pgm-btn--main {
  background: linear-gradient(135deg, #d5a253, #a9762c);
  color: #fff !important;
  box-shadow: 0 10px 20px -10px rgba(184, 135, 59, .95);
}
.pgm-box a.pgm-btn--main:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(184, 135, 59, 1);
}
.pgm-box button.pgm-btn--ghost {
  background: #f4f7f9;
  color: var(--pgm-text);
}
.pgm-box button.pgm-btn--ghost:hover { background: #eaeff3; color: var(--pgm-ink); }

/* ---------- 移动端 ---------- */
@media (max-width: 480px) {
  .pgm-head { padding: 18px 18px 16px; }
  .pgm-title { font-size: 16.5px; }
  .pgm-body { padding: 16px 18px 2px; }
  .pgm-foot { padding: 13px 18px 17px; flex-wrap: wrap; gap: 10px; }
  .pgm-acts { margin-left: 0; width: 100%; }
  .pgm-btn { flex: 1 1 0; padding: 0 12px; }
  .pgm-price b { font-size: 22px; }
}
