.account-page {
  --account-ink: #20262d;
  --account-muted: #59656d;
  --account-line: #dce3e3;
  --account-accent: #176b5b;
  --account-accent-dark: #105448;
  --account-field-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2359656d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  min-height: 100vh;
  background: #eef2f2;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--account-ink);
}

.account-page [hidden] { display: none !important; }
.account-page a { text-underline-offset: 4px; }
.account-page :is(a, button, summary):focus-visible { outline: 3px solid #176b5b; outline-offset: 4px; }
.account-skip { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-160%); padding: 10px 16px; background: #fff; color: var(--account-accent); border-radius: 4px; }
.account-skip:focus { transform: translateY(0); }
.account-scene { position: fixed; inset: 0; background: #536461 url("library.jpg") center / cover no-repeat; }
.account-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 38%); min-height: 100vh; min-height: 100dvh; }
.account-story { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 40px 48px 28px; color: #fff; }
.account-story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 22, .35), transparent 40%, rgba(11, 26, 22, .8)); pointer-events: none; }
.account-brand { position: relative; display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 22px; line-height: 1.3; font-weight: 700; text-decoration: none; }
.account-brand:hover, .account-photo-credit:hover { color: #fff; }
.account-brand__mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; }
.account-brand__mark img { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.account-brand__caption { display: block; font-size: 12px; margin-top: 4px; font-weight: 400; }
.account-story__copy { position: relative; margin-top: auto; padding: 96px 0 28px; }
.account-story__name { margin: 0 0 12px; font-size: 36px; font-weight: 700; line-height: 1.3; }
.account-story__line { font-size: 22px; line-height: 1.75; margin: 0; font-weight: 400; }
.account-photo-credit { position: relative; font-size: 11px; color: #fff; text-decoration: none; }
.account-surface { background: #fff; display: flex; flex-direction: column; min-width: 0; padding: 0 48px; }
.account-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; flex-shrink: 0; font-size: 13px; border-bottom: 1px solid #edf0f0; }
.account-topbar__label { color: var(--account-muted); }
.account-topbar a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.account-topbar .account-icon { width: 16px; height: 16px; }
.account-mobile-brand { display: none !important; }
.account-content { width: 100%; max-width: 400px; margin: auto; padding: 44px 0; }
.account-intro { margin-bottom: 30px; }
.account-intro__mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--account-accent); background: #eaf4f0; border-radius: 8px; margin-bottom: 20px; }
.account-intro h1 { font-size: 28px; line-height: 1.35; margin: 0 0 10px; font-weight: 700; letter-spacing: 0; }
.account-intro p { color: var(--account-muted); margin: 0; font-size: 14px; }
.account-form { display: grid; gap: 20px; }
.account-field { min-width: 0; }
.account-field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.account-input { position: relative; }
.account-page .form-control { border: 1px solid var(--account-line); border-radius: 6px; background: #fbfcfc; color: var(--account-ink); min-height: 48px; padding: 12px 14px; font: inherit; box-shadow: none; transition: border-color 150ms ease, background-color 150ms ease; }
.account-page .form-control::placeholder { color: #68757b; opacity: 1; }
.account-page .form-control:hover { border-color: #a8b8b4; }
.account-page .form-control:focus { background: #fff; border-color: var(--account-accent); outline: 3px solid rgba(23, 107, 91, .16); outline-offset: 1px; box-shadow: none; }
.account-page .form-control[aria-invalid=true] { border-color: #b42318; background: #fffafa; }
.account-input--combobox .form-control { padding-right: 46px; }
.account-combobox-toggle { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--account-muted); cursor: pointer; }
.account-combobox-toggle:hover { color: var(--account-accent); background: #eaf4f0; }
.account-combobox-caret { width: 12px; height: 8px; background: var(--account-field-caret) center / contain no-repeat; transition: transform 150ms ease; }
.account-combobox-toggle[aria-expanded=true] .account-combobox-caret { transform: rotate(180deg); }
.account-combobox { position: absolute; z-index: 6; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--account-line); border-radius: 6px; box-shadow: 0 12px 28px rgba(16, 32, 28, .14); max-height: 216px; overflow-y: auto; }
.account-combobox [role=option] { padding: 10px 12px; border-radius: 4px; cursor: pointer; }
.account-combobox [role=option]:hover, .account-combobox [role=option].is-active { background: #eaf4f0; color: var(--account-accent-dark); }
.account-input--password .form-control { padding-right: 52px; }
.account-password-toggle { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: var(--account-muted); border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.account-password-toggle:hover { color: var(--account-accent); background: #eaf4f0; }
.account-password-toggle .account-icon { width: 20px; height: 20px; }
.account-hint { color: var(--account-muted); font-size: 12px; margin-top: 6px; line-height: 1.6; }
.account-field-errors { color: #b42318; font-size: 12px; margin-top: 6px; }
.account-field-errors p { margin: 0; }
.account-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #efc6c3; background: #fff3f2; color: #a3261d; border-radius: 6px; font-size: 13px; }
.account-alert .account-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.account-alert ul { margin: 0; padding-left: 16px; }
.account-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--account-accent); border-radius: 6px; background: var(--account-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background-color 150ms ease; }
.account-submit:hover { background: var(--account-accent-dark); border-color: var(--account-accent-dark); }
.account-submit:disabled { cursor: wait; background: #47766c; border-color: #47766c; }
.account-submit .account-icon { width: 18px; height: 18px; }
.account-help { margin-top: 20px; font-size: 13px; color: var(--account-muted); }
.account-help summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; list-style: none; }
.account-help summary::-webkit-details-marker { display: none; }
.account-help summary::after { content: "+"; font-size: 16px; }
.account-help[open] summary::after { content: "−"; }
.account-help p { margin: 8px 0 0; font-size: 12px; max-width: 36ch; }
.account-divider { height: 1px; background: #edf0f0; margin: 28px 0 22px; }
.account-bottom-link { color: var(--account-muted); margin: 0; text-align: center; font-size: 13px; }
.account-bottom-link a { font-weight: 600; margin-left: 6px; }
.account-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--account-muted); font-size: 11px; padding: 20px 0 24px; border-top: 1px solid #edf0f0; }
.account-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.account-form legend { width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--account-muted); font-size: 12px; font-weight: 600; }
.account-form legend::after { content: ""; flex: 1; height: 1px; background: #edf0f0; }
.account-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.account-credentials { display: grid; gap: 16px; }
.account-register .account-content { max-width: 420px; padding: 28px 0; }
.account-register .account-intro { margin-bottom: 24px; }
.account-register .account-intro__mark { margin-bottom: 16px; }
.account-register .account-form { gap: 22px; }
.account-register .account-divider { margin: 20px 0 18px; }
.account-register .account-hint { max-width: 52ch; }
/* 桌面端授权：账号选择页 */
.account-alert--info { border-color: #c3dcd3; background: #eef7f3; color: #14584b; }
.account-choice .account-form { gap: 0; }
.account-choice-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--account-line); border-radius: 8px; background: #fbfcfc; }
.account-choice-avatar { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #eaf4f0; color: var(--account-accent-dark); font-size: 18px; font-weight: 700; }
.account-choice-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.account-choice-text strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.account-choice-text span { color: var(--account-muted); font-size: 12px; overflow-wrap: anywhere; }
.account-choice-pick { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 16px; border: 1px solid var(--account-accent); border-radius: 6px; background: var(--account-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background-color 150ms ease; }
.account-choice-pick:hover { background: var(--account-accent-dark); border-color: var(--account-accent-dark); }
.account-choice-pick:disabled { cursor: wait; background: #47766c; border-color: #47766c; }
.account-choice-pick .account-icon { width: 16px; height: 16px; }
.account-choice-switch-form { margin-top: 12px; }
.account-choice-switch { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px dashed #b6c7c2; border-radius: 6px; background: transparent; color: var(--account-accent-dark); font: inherit; font-weight: 600; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.account-choice-switch:hover { border-color: var(--account-accent); background: #f2f9f6; }
.account-choice-switch .account-icon { width: 18px; height: 18px; }
.account-choice .account-hint { margin-top: 10px; }
.account-choice-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--account-muted); font-size: 12px; line-height: 1.6; }
.account-choice-note .account-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--account-accent); }
@media (max-width: 480px) {
  .account-choice-row { flex-wrap: wrap; }
  .account-choice-pick { width: 100%; justify-content: center; }
}
@media (min-width: 1800px) { .account-layout { grid-template-columns: minmax(0, 1fr) 640px; } .account-surface { padding: 0 72px; } }
@media (max-width: 1100px) { .account-layout { grid-template-columns: minmax(0, 1fr) 480px; } .account-story { padding: 32px; } .account-surface { padding: 0 32px; } .account-story__line { font-size: 20px; } }
@media (max-width: 800px) {
  .account-layout { display: block; }
  .account-story { display: none; }
  .account-scene { display: none; }
  .account-surface { min-height: 100vh; min-height: 100dvh; padding: 0 28px; }
  .account-topbar { min-height: 80px; width: 100%; max-width: 460px; margin: 0 auto; }
  .account-mobile-brand { display: inline-flex !important; align-items: center; gap: 8px; color: var(--account-ink); font-size: 17px; }
  .account-mobile-brand img { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
  .account-topbar__label { display: none; }
  .account-content { max-width: 400px; padding: 40px 0; }
  .account-footer { width: 100%; max-width: 460px; margin: 0 auto; }
  .account-register .account-content { max-width: 400px; }
}
@media (max-width: 380px) { .account-surface { padding: 0 20px; } .account-field-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .account-intro h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .account-page *, .account-page *::before, .account-page *::after { transition: none !important; animation: none !important; } }
