.account-page {
    min-height: 100vh;
    background: #f5f5f7;
    color: #1d1d1f;
}

.account-form[hidden],
.account-panel[hidden],
.account-field-extra[hidden] {
    display: none !important;
}

/* 未登录：居中认证 */
.account-auth-layout {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
    padding: 32px 20px 48px;
}

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

.account-auth-card {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 32px 28px 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.account-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.account-auth-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    /* 账户页浅底：白线船需反色才看得见 */
    filter: invert(1);
}

.account-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: invert(1);
}

.account-auth-brand span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.account-auth-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.account-auth-subtitle {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.account-auth-lead {
    margin: 0 0 22px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e73;
}

.account-auth-seg {
    display: flex;
    gap: 0;
    padding: 3px;
    background: #ececf0;
    border-radius: 11px;
    margin-bottom: 22px;
}

.account-auth-seg-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.account-auth-seg-btn.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.account-form--auth {
    gap: 12px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-field > span {
    font-size: 13px;
    font-weight: 500;
    color: #6e6e73;
}

.account-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-field input:focus {
    outline: none;
    border-color: #5e6ad2;
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.12);
}

.account-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.account-pass-wrap input {
    padding-right: 44px;
}

.account-pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #86868b;
    cursor: pointer;
    padding: 0;
}

.account-pass-toggle:hover,
.account-pass-toggle.is-on {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.05);
}

.account-remember {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    font-size: 13px;
    color: #3a3a3c;
    cursor: pointer;
    user-select: none;
    margin: -2px 0 2px;
}

.account-remember span {
    white-space: nowrap;
    color: inherit;
}

/* 必须压过后面的 .account-form input { width:100% }，否则复选框被拉满整行 */
.account-form .account-remember input,
.account-form .account-check-row input {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin: 0;
    padding: 0;
    border: none;
    accent-color: #5e6ad2;
    box-sizing: border-box;
}

.account-btn-primary {
    margin-top: 4px;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #5e6ad2;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.account-btn-primary:hover {
    background: #4e5ac0;
}

.account-btn-primary:active {
    transform: scale(0.99);
}

.account-auth-links {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.account-auth-links a {
    color: #5e6ad2;
    text-decoration: none;
}

.account-auth-links a:hover {
    text-decoration: underline;
}

.account-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    border: none;
    background: none;
    padding: 0;
    color: #5e6ad2;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.account-auth-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 13px;
    color: #86868b;
}

.account-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.account-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.account-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-logout-btn {
    border: none;
    background: transparent;
    color: #5e6ad2;
    font: inherit;
    cursor: pointer;
}

.account-shell {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-nav-item {
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font: inherit;
    color: #515154;
    cursor: pointer;
    text-decoration: none;
}

.account-nav-item.active,
.account-nav-item:hover {
    background: #fff;
    color: #1d1d1f;
}

.account-main {
    min-width: 0;
}

.account-panel {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-panel h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.account-lead {
    margin: 0 0 20px;
    color: #6e6e73;
}

.account-upload-preview img,
.account-upload-preview-list img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.account-upload-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.account-dev-profile {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.account-dev-profile-save {
    align-self: flex-start;
}

.account-forgot-row {
    margin: 0;
    text-align: center;
}

.account-forgot-lead {
    margin-top: 0;
}

.account-text-btn {
    border: none;
    background: transparent;
    color: #5e6ad2;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.account-text-btn:hover {
    text-decoration: underline;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-auth-tabs {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 4px;
}

.account-auth-tab {
    border: none;
    background: #f0f0f5;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}

.account-auth-tab.active {
    background: #5e6ad2;
    color: #fff;
}

.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font: inherit;
}

.account-form--narrow {
    max-width: 420px;
}

.account-label {
    font-size: 13px;
    color: #6e6e73;
}

.account-library {
    display: grid;
    gap: 10px;
}

.account-library-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ececf0;
    border-radius: 12px;
}

.account-library-item img,
.account-library-item .account-library-fallback {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.account-library-meta h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.account-library-meta p {
    margin: 0;
    color: #6e6e73;
    font-size: 13px;
}

.account-open-btn {
    margin-left: auto;
    width: auto;
    padding: 8px 14px;
    text-decoration: none;
    border: none;
    background: rgba(94, 106, 210, 0.12);
    color: #5e6ad2;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.account-verify-banner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff8e6;
    border-bottom: 1px solid #f0e0b0;
    color: #6b5a2e;
    font-size: 14px;
}

.account-verify-resend {
    border: none;
    background: #5e6ad2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.account-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #515154;
}

.account-dev-apps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.account-dev-apps-head h2 {
    margin: 0;
    font-size: 18px;
}

.account-dev-new-btn {
    width: auto;
    padding: 8px 14px;
}

.account-dev-wizard {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ececf0;
}

.account-wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.account-wizard-step {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f0f5;
    font-size: 13px;
    color: #6e6e73;
}

.account-wizard-step.active {
    background: #5e6ad2;
    color: #fff;
}

.account-wizard-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.account-wizard-back {
    border: none;
    background: transparent;
    color: #5e6ad2;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 720px) {
    .account-shell {
        grid-template-columns: 1fr;
    }

    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
