/* 夏日留言板 v3 - 密码验证界面、深夜模式适配、时段主题标识 */
/* ==================== ĺŻç éŞčŻçé˘ ==================== */
.password-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: onboardingIn 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.password-content {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    text-align: center;
}

.password-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: iconFloat 3s ease-in-out infinite;
}

.password-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.password-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.password-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    font-size: 17px;
    text-align: center;
    letter-spacing: 3px;
    background: var(--bg-card);
    color: var(--text-primary);
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.password-input:focus {
    border-color: var(--mdb-primary);
    box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.12);
}

.password-input::placeholder {
    color: var(--text-tertiary);
    letter-spacing: normal;
    font-size: 16px;
}

.password-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.password-back,
.password-submit {
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    font-family: inherit;
}

.password-back {
    background: rgba(0,0,0,0.04);
    color: var(--text-secondary);
}

.password-submit {
    background: linear-gradient(135deg, var(--mdb-primary), var(--mdb-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(77, 208, 225, 0.3);
}

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

.password-back:active {
    background: rgba(0,0,0,0.08);
}

.password-submit:active:not(:disabled) {
    transform: scale(0.96);
}

/* FJD 用户的密码界面使用橘红色 */
body[data-identity="FJD"] .password-input:focus {
    border-color: var(--fjd-primary);
    box-shadow: 0 0 0 4px rgba(255, 138, 101, 0.12);
}

body[data-identity="FJD"] .password-submit {
    background: linear-gradient(135deg, var(--fjd-primary), var(--fjd-dark));
    box-shadow: 0 4px 16px rgba(255, 138, 101, 0.3);
}

@media (min-width: 768px) {
    .password-title {
        font-size: 28px;
    }
    .password-content {
        padding: 32px;
    }
}

/* ==================== ĺŻç éčŻŻćĺ¨ĺ¨çť ==================== */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* ==================== ćˇąĺ¤ć¨Ąĺźéé ==================== */
html[data-theme="night"] .skeleton-avatar,
html[data-theme="night"] .skeleton-line {
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
}

html[data-theme="night"] .header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .online-indicator {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="night"] .message-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="night"] .btn-like {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .sheet-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .sheet-close {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .preview-add-btn {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="night"] .btn-load-more {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="night"] .onboarding-bg {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

html[data-theme="night"] .identity-card.mdb {
    border-color: rgba(92, 107, 192, 0.4);
}

html[data-theme="night"] .identity-card.fjd {
    border-color: rgba(121, 134, 203, 0.35);
}

html[data-theme="night"] .password-input {
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="night"] .password-back {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] ::selection {
    background: rgba(92, 107, 192, 0.35);
}

/* ==================== č§Ść¸çŽć äźĺďźç§ťĺ¨çŤŻďź?=================== */
@media (pointer: coarse) {
    .btn-like {
        min-height: 44px;
        padding: 10px 18px;
    }
    .btn-delete {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .sheet-close {
        width: 44px;
        height: 44px;
    }
    .lightbox-close {
        width: 48px;
        height: 48px;
    }
    .lightbox-nav {
        width: 52px;
        height: 52px;
    }
    .images-grid img {
        cursor: pointer;
    }
}

/* ==================== ćśćŽľä¸ťé˘ć čŻčśĺ ==================== */
.theme-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    white-space: nowrap;
    font-family: inherit;
}

html[data-theme="night"] .theme-badge {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-badge:active {
    transform: scale(0.94);
}

.theme-badge-icon {
    font-size: 14px;
    line-height: 1;
}

/* ä¸ťé˘ĺć˘ćśç toast ć ˇĺź */
.toast.theme-toast {
    background: rgba(30, 34, 58, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E6E8F0;
}

 

