/* 账号入口延续原网站的朱红与米金色。 */
[hidden] { display: none !important; }
.account-area { margin-left: auto; text-align: right; }
.account-actions { display: flex; align-items: center; gap: 12px; }
.account-actions button { font: inherit; font-size: 14px; cursor: pointer; border-radius: 5px; padding: 9px 16px; }
.account-login { color: var(--red-900); background: white; border: 1px solid var(--line); }
.account-register { color: white; background: var(--red-900); border: 1px solid var(--red-900); }
.account-actions button:hover { box-shadow: 0 3px 12px #7a11131a; }
.account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--red-900); }
.account-status { display: block; font-size: 12px; color: var(--muted); max-width: 260px; }
.account-status:empty { display: none; }
.auth-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.auth-dialog::backdrop { background: #1d1b19a6; backdrop-filter: blur(3px); }
.auth-panel { position: relative; padding: 32px; }
.auth-close { position: absolute; right: 12px; top: 8px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.auth-eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--red-900); }
.auth-panel h2 { font-family: var(--serif); font-size: 28px; margin: 10px 0 8px; }
.auth-panel > p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.auth-tabs { display: flex; gap: 4px; background: var(--ivory); padding: 4px; border-radius: 7px; margin: 22px 0; }
.auth-tabs button { flex: 1; border: 0; padding: 10px; border-radius: 5px; background: transparent; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-pressed="true"] { color: var(--red-900); background: white; box-shadow: 0 1px 5px #0000000d; font-weight: 600; }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: 13px; margin-bottom: 7px; font-weight: 600; }
.auth-field input { display: block; width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; font-size: 14px; color: var(--ink); background: white; }
.auth-field input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.auth-message { min-height: 21px; font-size: 13px; color: var(--red-700); line-height: 1.6; margin: 5px 0 12px; }
.auth-submit { width: 100%; background: var(--red-900); color: white; border: 0; border-radius: 6px; padding: 13px; font: inherit; font-weight: 600; cursor: pointer; }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-panel .auth-note { margin-top: 16px; }
.auth-panel .auth-data-note { font-size: 12px; margin-top: 8px; }
body.auth-open { overflow: hidden; }
@media (max-width: 1100px) { .masthead-meta { display: none; } }
@media (max-width: 600px) {
  .masthead-inner { flex-wrap: wrap; gap: 16px; }
  .account-area { width: 100%; margin-left: 0; text-align: left; }
  .account-actions { justify-content: flex-end; }
  .account-status { text-align: right; margin-left: auto; }
  .auth-panel { padding: 28px 22px 22px; }
}

.auth-code-row { display: flex; align-items: stretch; gap: 8px; }
.auth-code-row input { min-width: 0; flex: 1; }
.auth-send-code { flex: 0 0 124px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ivory); color: var(--red-900); font: inherit; font-size: 13px; cursor: pointer; }
.auth-send-code:disabled { opacity: .65; cursor: default; }
.auth-code-hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 7px 0 0; }
.auth-message[data-kind="success"] { color: var(--green-700); }
@media (max-width: 380px) { .auth-send-code { flex-basis: 108px; font-size: 12px; } }
