/* 游客态首页 + 登录弹窗（接手方新增，非原打包产物） */

/* 右上角套餐/用户胶囊：默认隐藏，仅登录后由 zm-guest.js 加 .zm-auth 才显示 */
html:not(.zm-auth) .my-info-container { display: none !important; }

/* ---------- 游客右上角「登录 / 注册」按钮 ---------- */
.zm-guest-bar {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 2000;
  display: none;
}
html.zm-guest .zm-guest-bar { display: block; }

.zm-guest-login {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .62em 1.5em;
  border: 0;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #2b1406;
  background: linear-gradient(135deg, #ffa94d, #f2762b);
  box-shadow: 0 .5rem 1.5rem rgba(242, 130, 50, .28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.zm-guest-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 .7rem 1.9rem rgba(242, 130, 50, .4);
}

/* ---------- 登录弹窗（左功能展示 / 右登录注册 两栏） ---------- */
.zm-auth-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 6, 8, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .22s ease;
}
.zm-auth-mask.zm-open { opacity: 1; }

.zm-auth-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: 58rem;
  max-width: 100%;
  height: 34rem;
  max-height: calc(100vh - 3rem);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 18, 20, .96);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .6);
  overflow: hidden;
  color: #fff;
  transform: translateY(1rem) scale(.985);
  transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}
.zm-auth-mask.zm-open .zm-auth-card { transform: none; }

.zm-auth-close {
  position: absolute;
  top: .9rem; right: 1rem;
  z-index: 5;
  width: 2rem; height: 2rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(255, 255, 255, .55);
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.zm-auth-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ── 左：功能展示，登录的同时看得到产品能做什么 ── */
.zm-auth-show {
  position: relative;
  overflow: hidden;
  background: #0b0e10;
}
.zm-auth-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .9s ease, transform 6s linear;
  pointer-events: none;
}
.zm-auth-slide.zm-on { opacity: 1; transform: scale(1); pointer-events: auto; }
.zm-auth-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.zm-auth-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 11, .95) 8%, rgba(6, 9, 11, .45) 48%, rgba(6, 9, 11, .12) 100%);
}
.zm-auth-slide-body {
  position: absolute;
  left: 2.2rem; right: 2.2rem; bottom: 3.4rem;
}
.zm-auth-kicker {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .22rem .7rem;
  border: 1px solid rgba(255, 169, 77, .35);
  border-radius: .4rem;
  background: rgba(255, 169, 77, .12);
  color: #ffa94d;
  font-size: .74rem;
  letter-spacing: .04em;
}
.zm-auth-slide-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
}
.zm-auth-slide-title em { font-style: normal; color: #ffa94d; }
.zm-auth-slide-desc {
  margin-top: .6rem;
  font-size: .87rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
}

.zm-auth-dots {
  position: absolute;
  left: 2.2rem; bottom: 1.8rem;
  display: flex;
  gap: .4rem;
}
.zm-auth-dot {
  width: 1.3rem; height: .18rem;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: width .22s ease, background .22s ease;
}
.zm-auth-dot.zm-on { width: 2.1rem; background: linear-gradient(90deg, #ffa94d, #f2762b); }

/* ── 右：登录注册 ── */
.zm-auth-form {
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2.2rem 1.6rem;
  overflow-y: auto;
}
.zm-auth-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.zm-auth-brand svg { width: 1.6rem; height: 1.6rem; }

.zm-auth-title { font-size: 1.5rem; font-weight: 700; }
.zm-auth-desc {
  margin-top: .35rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

.zm-auth-tabs {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.zm-auth-tab {
  position: relative;
  padding: 0 0 .7rem;
  border: 0;
  background: none;
  font-size: .92rem;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: color .16s ease;
}
.zm-auth-tab:hover { color: rgba(255, 255, 255, .85); }
.zm-auth-tab.zm-active { color: #fff; font-weight: 600; }
.zm-auth-tab.zm-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffa94d, #f2762b);
}

.zm-auth-pane { display: none; flex-direction: column; gap: .7rem; }
.zm-auth-pane.zm-active { display: flex; }

.zm-auth-field {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 .9rem;
  border-radius: .55rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  transition: border-color .16s ease, background .16s ease;
}
.zm-auth-field:focus-within {
  border-color: rgba(255, 169, 77, .55);
  background: rgba(255, 255, 255, .07);
}
.zm-auth-field input {
  flex: 1;
  min-width: 0;
  padding: .78rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .93rem;
  color: #fff;
}
.zm-auth-field input::placeholder { color: rgba(255, 255, 255, .35); }
/* 关掉浏览器自动填充的白底 */
.zm-auth-field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-out;
}
/* 记住我 */
.zm-auth-remember {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: -.2rem 0 .9rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .58);
  cursor: pointer;
  user-select: none;
}
.zm-auth-remember input {
  width: 15px; height: 15px;
  accent-color: #f2762b;
  cursor: pointer;
}
.zm-auth-remember:hover { color: rgba(255, 255, 255, .85); }

.zm-auth-code-btn {
  flex: none;
  border: 0;
  padding: 0 0 0 .8rem;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  font-size: .85rem;
  color: #ffa94d;
  white-space: nowrap;
  cursor: pointer;
}
.zm-auth-code-btn:disabled { color: rgba(255, 255, 255, .3); cursor: default; }

.zm-auth-submit {
  margin-top: .5rem;
  padding: .82rem;
  border: 0;
  border-radius: .55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2b1406;
  background: linear-gradient(135deg, #ffa94d, #f2762b);
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}
.zm-auth-submit:hover { filter: brightness(1.06); }
.zm-auth-submit:active { transform: translateY(1px); }
.zm-auth-submit:disabled { filter: grayscale(.5) brightness(.8); cursor: default; }

.zm-auth-msg {
  display: none;
  margin-top: .8rem;
  font-size: .85rem;
  line-height: 1.5;
  color: #ff8f8f;
}
.zm-auth-msg.zm-show { display: block; }

.zm-auth-foot {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: .76rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .38);
}
.zm-auth-foot a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.zm-auth-foot a:hover { color: #ffa94d; }

.zm-auth-icp {
  margin-top: .7rem;
  font-size: .72rem;
  color: rgba(255, 255, 255, .26);
}
.zm-auth-icp a { color: inherit; text-decoration: none; }
.zm-auth-icp a:hover { color: rgba(255, 255, 255, .5); }

/* 窄屏收起左栏，只留登录表单 */
@media (max-width: 860px) {
  .zm-auth-card { grid-template-columns: 1fr; width: 26rem; height: auto; }
  .zm-auth-show { display: none; }
  .zm-auth-form { padding: 2rem 1.5rem 1.4rem; }
}
@media (max-height: 620px) {
  .zm-auth-card { height: auto; }
}
