/* 官网账号：导航入口、登录/注册弹层、当前套餐面板。 */

.nav-account {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-account.is-authed {
  background: rgba(240, 233, 220, 0.1);
  color: var(--paper);
  border: 1px solid rgba(240, 233, 220, 0.2);
}
.nav-account.is-authed:hover { background: rgba(240, 233, 220, 0.16); }
.mobile-menu .nav-account-mobile {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

body.acct-open { overflow: hidden; }
.acct-modal [hidden] { display: none !important; }

.acct-modal[hidden] { display: none; }
.acct-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
}
.acct-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.acct-dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(139, 124, 255, 0.13), transparent 65%),
    #0d0e12;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  color: var(--text);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
}
.acct-modal.is-open .acct-dialog { transform: none; opacity: 1; }
.acct-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.acct-close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

.acct-kicker {
  margin: 0 0 8px;
  color: var(--lychee-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.acct-title { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.03em; }
.acct-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 「用荔枝AI助手账号登录」+ 或者分隔线 */
.acct-sso {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(244, 63, 94, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(249, 115, 22, 0.08));
  color: var(--text);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.acct-sso:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 63, 94, 0.56);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.24), rgba(249, 115, 22, 0.12));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.16);
}
.acct-sso:disabled { opacity: 0.6; cursor: default; transform: none; }
.acct-sso-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.32);
}
.acct-sso-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-sso-copy strong { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.01em; line-height: 1.3; }
.acct-sso-copy em { color: var(--muted); font-size: 11.5px; font-style: normal; line-height: 1.3; }
.acct-sso-arrow { flex: 0 0 auto; color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 1; }
.acct-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: var(--dim);
  font-size: 11.5px;
}
.acct-or::before,
.acct-or::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--line);
}
.acct-or span { flex: 0 0 auto; white-space: nowrap; }

.acct-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.acct-tabs button {
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.acct-tabs button.active { background: var(--paper); color: #171410; font-weight: 600; }

.acct-field { display: block; margin-bottom: 13px; }
.acct-field > span,
.acct-field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.acct-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.acct-field input:focus { border-color: rgba(240, 233, 220, 0.5); background: rgba(255, 255, 255, 0.055); }
.acct-field input::placeholder { color: #625f5b; }

.acct-code { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }
.acct-code button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.acct-code button:disabled { opacity: 0.5; cursor: default; }

.acct-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 11px;
  background: var(--paper);
  color: #171410;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.acct-submit:hover { transform: translateY(-1px); }
.acct-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.acct-error {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(229, 67, 75, 0.35);
  border-radius: 9px;
  background: rgba(229, 67, 75, 0.09);
  color: #ff9a9c;
  font-size: 12px;
}
.acct-hint { margin: 12px 0 0; color: var(--dim); font-size: 11px; line-height: 1.7; }
.acct-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.acct-link:hover { color: var(--text); }
.acct-forgot { margin-top: 14px; text-align: center; }

.acct-panel[hidden] { display: none; }
.acct-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.acct-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e5434b, #8b3a4a);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.acct-profile-copy { min-width: 0; flex: 1; }
.acct-profile-copy b { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.acct-profile-copy span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.acct-logout { border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); padding: 7px 10px; font-size: 11px; cursor: pointer; }
.acct-logout:hover { color: var(--text); }

.acct-plan-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(240, 233, 220, 0.16);
  border-radius: 15px;
  background: rgba(240, 233, 220, 0.045);
}
.acct-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-plan-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.acct-badge { padding: 4px 9px; border-radius: 999px; background: rgba(123, 163, 109, 0.16); color: #a9cba0; font-size: 10px; }
.acct-plan-meta { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.acct-plan-meta b { color: var(--text); font-weight: 500; }

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.acct-item { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.02); }
.acct-item span { display: block; color: var(--muted); font-size: 10px; }
.acct-item b { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; }
.acct-item b small { color: var(--dim); font-size: 10px; font-weight: 400; }

.acct-note { margin: 14px 0 0; color: var(--dim); font-size: 11px; line-height: 1.7; }
.acct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.acct-actions button {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.acct-actions button.primary { border: 0; background: var(--paper); color: #171410; font-weight: 600; }
.acct-actions button:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.acct-actions button.primary:hover { color: #171410; }

.acct-loading { padding: 34px 0; color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 560px) {
  .acct-dialog { padding: 24px 20px; border-radius: 18px; }
  .acct-title { font-size: 23px; }
  .acct-grid { grid-template-columns: 1fr; }
}

/* 内测阶段：下载按钮禁用与注册引导 */
.is-disabled,
.btn.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.download-closed {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.download-signup { margin-top: 14px; }

/* 弹层底部链接与协议 */
.acct-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.acct-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.acct-links button:hover { color: var(--text); }
.acct-links button[hidden] { display: none; }
.acct-fine {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.acct-fine a { color: var(--muted); }
.acct-error.is-ok {
  border-color: rgba(123, 163, 109, 0.4);
  background: rgba(123, 163, 109, 0.1);
  color: #b8d6b0;
}
