/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border-radius: 40px;
    padding: 32px 28px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========== 锁屏样式 ========== */
.lock-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
}

.lock-icon {
    font-size: 56px;
    margin-bottom: 10px;
}

.lock-screen h2 {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 4px;
}

.lock-screen .sub {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
}

.lock-screen input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 60px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    font-size: 18px;
    letter-spacing: 2px;
    outline: 2px solid transparent;
    transition: 0.2s;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lock-screen input:focus {
    outline: 2px solid #818cf8;
    background: rgba(30, 41, 59, 0.9);
}

.lock-screen input::placeholder {
    color: #64748b;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.btn-primary {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: scale(0.96);
}

.error-msg {
    color: #f87171;
    font-size: 14px;
    min-height: 26px;
    margin-top: 10px;
    text-align: center;
}

/* ========== 记事本样式 ========== */
.notepad {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.notepad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notepad-header h1 {
    color: #f1f5f9;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notepad-header h1 small {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    background: #1e293b;
    padding: 2px 14px;
    border-radius: 30px;
}

.btn-lock {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-lock:hover {
    background: rgba(255, 255, 255, 0.12);
}

.image-box {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 22px;
    background: #1e293b;
    aspect-ratio: 16 / 9;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.note-area {
    width: 100%;
    min-height: 130px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 18px 20px;
    color: #f1f5f9;
    font-size: 16px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: 0.2s;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.note-area:focus {
    border-color: #818cf8;
    background: rgba(30, 41, 59, 0.8);
}

.note-area::placeholder {
    color: #64748b;
}

.note-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    color: #475569;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 440px) {
    .container {
        padding: 24px 16px 28px;
    }
    .lock-screen h2 {
        font-size: 19px;
    }
    .btn-primary {
        font-size: 17px;
        padding: 14px;
    }
    .notepad-header h1 {
        font-size: 20px;
    }
}