/* ==========================================================================
   轻打包 · 账号中心（普通用户 + 代理人员）
   依赖 styles.css 的设计变量；本页只补账号相关的布局与表单。
   ========================================================================== */

body.acct-page {
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(79, 209, 197, 0.16), transparent 60%),
    radial-gradient(900px 520px at 92% 8%, rgba(29, 78, 216, 0.28), transparent 62%),
    linear-gradient(160deg, #070D18 0%, #0F1D34 52%, #10254A 100%);
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部条 ---------- */

.acct-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(7, 13, 24, 0.55);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.acct-top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.acct-top__brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.acct-top__back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s;
}

.acct-top__back:hover {
  color: var(--text);
}

/* ---------- 主体布局 ---------- */

.acct-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.acct-intro__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 197, 0.4);
  background: rgba(79, 209, 197, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.acct-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

.acct-intro h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7FA8FF, #4FD1C5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.acct-intro__desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 520px;
}

.acct-points {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.acct-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.acct-point__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, 0.18);
  border: 1px solid rgba(127, 168, 255, 0.3);
  color: var(--blue-soft);
  font-size: 13px;
}

/* ---------- 表单卡片 ---------- */

.acct-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(5, 15, 35, 0.35);
}

.acct-card__head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.acct-card__head p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.acct-field {
  margin-bottom: 16px;
}

.acct-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.acct-field input[type="text"],
.acct-field input[type="email"],
.acct-field input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 18, 34, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.acct-field input::placeholder {
  color: #5D6E88;
}

.acct-field input:focus {
  border-color: rgba(127, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.24);
  background: rgba(9, 18, 34, 0.92);
}

.acct-field--error input {
  border-color: rgba(239, 68, 68, 0.75);
}

.acct-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 16px;
}

.acct-hint--error {
  color: #FCA5A5;
}

.acct-hint--ok {
  color: #6EE7B7;
}

/* ---------- 提交按钮 ---------- */

.acct-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #2F6BFF, #1D4ED8);
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.34);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s;
}

.acct-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.42);
}

.acct-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.acct-submit--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: var(--text);
}

.acct-submit--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* ---------- 提示条 ---------- */

.acct-alert {
  display: none;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.acct-alert--show {
  display: block;
}

.acct-alert--error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.acct-alert--ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.acct-alert--info {
  background: rgba(29, 78, 216, 0.16);
  border: 1px solid rgba(127, 168, 255, 0.35);
  color: #BFD4FF;
}

/* ---------- 页脚链接 ---------- */

.acct-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.acct-foot a {
  color: var(--blue-soft);
  text-decoration: none;
}

.acct-foot a:hover {
  text-decoration: underline;
}

.acct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* ---------- 代理等级卡片 ---------- */

.acct-levels {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.acct-level {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 18, 34, 0.6);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.acct-level:hover {
  border-color: rgba(127, 168, 255, 0.55);
  transform: translateY(-1px);
}

.acct-level.is-active {
  border-color: rgba(127, 168, 255, 0.9);
  background: rgba(29, 78, 216, 0.2);
}

.acct-level input {
  accent-color: #2F6BFF;
  width: 16px;
  height: 16px;
}

.acct-level__name {
  font-weight: 600;
  font-size: 14px;
}

.acct-level__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.acct-level__fee {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.acct-level__fee b {
  display: block;
  font-size: 17px;
  color: var(--blue-soft);
}

.acct-level__fee span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- 费用确认条 ---------- */

.acct-fee {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(79, 209, 197, 0.45);
  background: rgba(79, 209, 197, 0.08);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.acct-fee b {
  color: var(--cyan);
  font-size: 15px;
}

.acct-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  cursor: pointer;
}

.acct-check input {
  margin-top: 3px;
  accent-color: #2F6BFF;
}

/* ---------- Tab（代理登录 / 注册） ---------- */

.acct-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(9, 18, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
}

.acct-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.acct-tab.is-active {
  background: linear-gradient(180deg, #2F6BFF, #1D4ED8);
  color: #fff;
}

/* ---------- 代理中心面板 ---------- */

.acct-panel {
  display: none;
}

.acct-panel.is-active {
  display: block;
}

.acct-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(9, 18, 34, 0.66);
  border: 1px solid var(--line-dark);
  margin-bottom: 16px;
}

.acct-profile__item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.acct-profile__item b {
  font-size: 14px;
}

.acct-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(29, 78, 216, 0.25);
  color: var(--blue-soft);
}

.acct-badge--ok {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
}

.acct-badge--warn {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.acct-orders {
  display: grid;
  gap: 10px;
}

.acct-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(9, 18, 34, 0.55);
  border: 1px solid var(--line-dark);
  font-size: 13px;
}

.acct-order__no {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
}

.acct-order__spacer {
  margin-left: auto;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .acct-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 30px;
  }

  .acct-intro {
    text-align: center;
  }

  .acct-intro__desc {
    margin: 0 auto;
  }

  .acct-points {
    max-width: 460px;
    margin: 22px auto 0;
  }
}

@media (max-width: 520px) {
  .acct-card {
    padding: 24px 20px 20px;
  }

  .acct-top {
    padding: 14px 16px;
  }
}
