/* ============================================================
 * Microwants 会员相关样式 · auth.css （P0）
 * 沿用站点主色 #e02020 与浅底 #faf6f5
 * 未配置身份服务时入口容器为空，由 :empty 规则收起，不占位。
 * ============================================================ */

.mw-auth-entry { display: inline-flex; align-items: center; gap: 6px; }
.mw-auth-entry:empty { display: none; }

.mw-auth-link {
  font-size: 13px;
  color: #e02020;
  text-decoration: none;
  border: 1px solid #e02020;
  border-radius: 3px;
  padding: 3px 11px;
  line-height: 1.6;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.mw-auth-link:hover { background: #e02020; color: #fff; }

.mw-auth-lvl {
  font-size: 11.5px;
  color: #6b6b6b;
  border: 1px solid #e6dcda;
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* 抽屉内的入口：占满一行，与抽屉条目对齐 */
.nav-drawer .mw-auth-entry { display: flex; padding: 12px 16px; }
.nav-drawer .mw-auth-link { display: block; width: 104px; text-align: center; padding: 8px 8px; }
li.mw-auth-li { list-style: none; }

/* ---- 受控链接徽标 ---- */
.mw-gate-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 6px;
  border-radius: 3px;
  color: #e02020;
  background: #fdeceb;
  border: 1px solid #f5c9c7;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 400;
}
.mw-gate-tag.is-ok { color: #1f7a3f; background: #eaf5ee; border-color: #bcdcc7; }
a.is-loading { opacity: .55; pointer-events: none; }

/* ---- 提示条 ---- */
.mw-auth-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  max-width: min(560px, calc(100vw - 32px));
  background: #2a2020;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 10px 18px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
}
.mw-auth-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 会员页容器 ---- */
.mw-page { background: #faf6f5; padding: 44px 20px 72px; }
.mw-card {
  max-width: 860px;
  margin: 0 auto 18px;
  background: #fff;
  border: 1px solid #e6dcda;
  border-radius: 6px;
  padding: 26px 30px;
}
.mw-card h1 { font-size: 24px; margin: 0 0 6px; line-height: 1.35; }
.mw-card h2 {
  font-size: 17px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid #e02020;
  line-height: 1.4;
}
.mw-card h3 { font-size: 15.5px; margin: 22px 0 8px; }
.mw-card .sub { color: #6b6b6b; font-size: 13.5px; margin: 0 0 18px; line-height: 1.75; }
.mw-card p { font-size: 14px; line-height: 1.9; }
.mw-card ul { font-size: 14px; line-height: 1.9; padding-left: 22px; }

.mw-btn {
  display: inline-block;
  background: #e02020;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 20px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.6;
}
.mw-btn:hover { background: #b71c1c; }
.mw-btn.ghost { background: transparent; color: #e02020; border: 1px solid #e02020; }
.mw-btn.ghost:hover { background: #e02020; color: #fff; }
.mw-btn[disabled] { opacity: .5; cursor: default; }

.mw-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.mw-kv th, .mw-kv td { border-bottom: 1px solid #e6dcda; padding: 9px 4px; text-align: left; }
.mw-kv th { width: 120px; color: #6b6b6b; font-weight: 400; }

.mw-doclist { list-style: none; margin: 0; padding: 0; }
.mw-doclist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #e6dcda;
  font-size: 14px;
}
.mw-doclist li:last-child { border-bottom: 0; }
.mw-doclist .meta { color: #6b6b6b; font-size: 12.5px; }

.mw-consent { font-size: 13px; color: #6b6b6b; line-height: 1.75; }
.mw-consent a { color: #e02020; }

@media (max-width: 640px) {
  .mw-page { padding: 30px 14px 52px; }
  .mw-card { padding: 20px 16px; }
  .mw-doclist li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mw-kv th { width: 92px; }
}
