:root {
  color-scheme: light;
}

body.account-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #0f172a;
  background: linear-gradient(180deg, #eef2f8 0%, #f5f7fb 100%);
}

.account-header {
  background: linear-gradient(112deg, #0e2439 0%, #132e4a 58%, #183a58 100%);
  border-bottom: 1px solid rgba(218, 184, 118, 0.42);
  box-shadow: 0 4px 18px rgba(12, 28, 48, 0.12);
}

.account-header-inner {
  max-width: 1040px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.account-header .brand-portrait {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid rgba(236, 204, 140, 0.72);
  box-shadow: 0 2px 10px rgba(6, 18, 32, 0.36);
  background: #10263b;
}

.account-header .brand-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.account-header .voyage-brand {
  display: grid;
  gap: 1px;
  color: #fff7e6;
  line-height: 1.15;
}

.account-header .voyage-brand strong {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.account-header .voyage-brand small {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #c8d6e3;
  white-space: nowrap;
}

.account-hdr-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.account-hdr-back:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(244, 214, 152, 0.6);
  color: #ffe8b3;
}

.account-header a:focus-visible {
  outline: 2px solid #ffe39b;
  outline-offset: 2px;
}

.account-main {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  width: min(920px, calc(100% - 36px));
  margin: clamp(24px, 5.5vh, 64px) auto;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 35, 71, 0.08);
}

.account-art {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: flex-end;
  padding: 26px 24px;
  border-right: 1px solid #e2e8f0;
  background:
    linear-gradient(180deg, rgba(12, 31, 52, 0.06) 0%, rgba(12, 31, 52, 0.35) 54%, rgba(10, 26, 45, 0.9) 100%),
    url('/voyage/coast.webp') 28% 18% / cover no-repeat;
  color: #ffffff;
}

.account-art-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(12, 29, 49, 0.72);
  border: 1px solid rgba(241, 212, 149, 0.32);
  backdrop-filter: blur(8px);
}

.account-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(243, 214, 150, 0.2);
  border: 1px solid rgba(243, 214, 150, 0.45);
  color: #fde6ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.account-art-title {
  font-size: 17px;
  font-weight: 800;
  color: #fffaf0;
  line-height: 1.3;
}

.account-perks {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  color: #dbe7f3;
}

.account-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-perks li::before {
  content: "•";
  color: #f6d285;
  font-weight: 800;
}

.account-card {
  padding: clamp(24px, 4vw, 42px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.account-card [hidden] {
  display: none !important;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-tab.is-active {
  background: #ffffff;
  color: #102a45;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.account-card h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.3vw, 27px);
  font-weight: 800;
  color: #0f233c;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.account-sublead {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #556577;
  line-height: 1.5;
}

.account-notice {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #eef4ff;
  border: 1px solid #cbdcfb;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.account-notice:empty {
  display: none;
}

.account-card .account-notice.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.account-card form {
  display: grid;
  gap: 13px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.account-card label {
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
}

.account-card input {
  width: 100%;
  min-height: 46px;
  padding: 9px 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.account-card input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.account-card input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2546a8;
  box-shadow: 0 0 0 3px rgba(37, 70, 168, 0.12);
}

.account-card :is(button, a):focus-visible {
  outline: 2.5px solid #2546a8;
  outline-offset: 2px;
}

.account-card .account-rules {
  margin: 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.5;
}

#accountSubmit,
.account-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #132f4c, #1e4268);
  border: 1px solid #132f4c;
  border-radius: 10px;
  color: #fff9eb;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(19, 47, 76, 0.18);
  transition: filter 0.15s ease, transform 0.15s ease;
}

#accountSubmit:hover:not(:disabled),
.account-primary-link:hover {
  filter: brightness(1.08);
}

.account-card button {
  cursor: pointer;
}

.account-card button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.account-secondary-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.account-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 6px;
  background: none;
  border: 0;
  color: #1e40af;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.account-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 6px 0 18px;
  padding: 14px 15px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.account-profile-meta {
  min-width: 0;
}

.account-profile strong {
  display: block;
  font-size: 16px;
  color: #0f233c;
  overflow-wrap: anywhere;
}

.account-profile p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #556577;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid #e5cfa0;
  background: linear-gradient(145deg, #fbf3df, #f2e2bc);
  color: #15314b;
  font-size: 1.18rem;
  font-weight: 800;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.account-logout-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.account-logout-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.account-footer-divider {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  display: flex;
}

.account-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d7e1ee;
  background: #f8fafd;
  color: #163352;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.account-back:hover {
  background: #eef4ff;
  border-color: #a9c0eb;
  color: #1e3a8a;
}

@media (max-width: 760px) {
  .account-header-inner {
    min-height: 56px;
    padding: 6px 12px;
  }

  .account-header .brand-portrait {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .account-header .voyage-brand strong {
    font-size: 16px;
  }

  .account-hdr-back {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .account-main {
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px);
    max-width: 440px;
    margin: 12px auto 20px;
    border-radius: 16px;
  }

  /* 移动端不强行把竖幅立绘裁成半截窄条，改为清爽紧凑的深海蓝权益横幅，确保 390/360 首屏完整呈现表单与游客入口 */
  .account-art {
    min-height: 0;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid #dce5f0;
    background: linear-gradient(115deg, #10283f 0%, #173a59 60%, #1d466a 100%);
  }

  .account-art-caption {
    width: 100%;
    padding: 0;
    gap: 4px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  .account-art-title {
    font-size: 14.5px;
  }

  .account-perks {
    display: none;
  }

  .account-card {
    padding: 18px 16px 16px;
  }

  .auth-tabs {
    margin-bottom: 14px;
  }

  .auth-tab {
    min-height: 38px;
    font-size: 13px;
  }

  .account-card h1 {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .account-sublead {
    font-size: 12.5px;
    margin-bottom: 13px;
  }

  .account-card form {
    gap: 11px;
  }

  .account-card input {
    min-height: 44px;
    font-size: 14px;
  }

  .account-secondary-row {
    justify-content: center;
    margin-top: 2px;
  }

  .account-footer-divider {
    margin-top: 8px;
    padding-top: 10px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .account-header .voyage-brand small {
    display: none;
  }

  .account-main {
    width: calc(100% - 20px);
    margin: 10px auto 16px;
  }

  .account-card {
    padding: 16px 14px 14px;
  }
}

/* ---------- 防刷人机校验、恢复口令与收藏防丢失工具箱 ---------- */
.sr-only-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.human-check-box {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #d5e0ec;
  border-radius: 11px;
  background: #f5f8fc;
}

.human-check-box[hidden] {
  display: none;
}

.human-check-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #294563;
}

.human-math-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.human-math-row[hidden] {
  display: none;
}

.human-math-prompt {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  background: #122c49;
  color: #fde68a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.human-math-row input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #bfcfe0;
  border-radius: 9px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.human-refresh-btn {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #c5d3e2;
  border-radius: 9px;
  background: #fff;
  color: #2c4a6b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.human-refresh-btn:hover {
  background: #eef4fa;
}

.account-secondary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
}

.recovery-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1.5px solid #e5b856;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
}

.recovery-box[hidden] {
  display: none;
}

.recovery-head strong {
  font-size: 13.5px;
  color: #92400e;
}

.recovery-tip {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #92400e;
}

.recovery-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recovery-code {
  flex: 1 1 auto;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid #e8c77a;
  background: #fff;
  color: #0f2540;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  user-select: all;
}

.recovery-copy-btn {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #183c63;
  border-radius: 8px;
  background: #183c63;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.recovery-copy-btn:hover {
  background: #244e78;
}

.account-safety-panel {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed #d3dde8;
  display: grid;
  gap: 9px;
}

.safety-panel-title {
  font-size: 12.5px;
  font-weight: 750;
  color: #36506d;
}

.safety-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.safety-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #cbd7e4;
  border-radius: 8px;
  background: #fff;
  color: #203a58;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}

.safety-btn:hover {
  background: #eef4fa;
}

.import-fav-box {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #f7fafd;
}

.import-fav-box[hidden] {
  display: none;
}

.import-tip {
  margin: 0;
  font-size: 12px;
  color: #4b617a;
}

.import-file-row input {
  width: 100%;
  font-size: 12px;
}

.import-fav-box textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #bfcfe0;
  border-radius: 8px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  resize: vertical;
}

.import-actions {
  display: flex;
  gap: 8px;
}
