/* 登录大容器：全屏居中 */
.login-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 登录卡片 */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    animation: fadeIn 0.4s ease;
}

/* 标题 */
.login-title {
    font-size: 26px;
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 6px;
    text-align: center;
}

.login-title i {
    margin-right: 6px;
}

/* 副标题 */
.login-sub {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

/* 表单 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-label {
    font-size: 14px;
    color: #444;
    margin-bottom: -4px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    outline: none;
    transition: all 0.25s;
}

.login-input:focus {
    border-color: #ff6b35;
    background: #fff;
    box-shadow: 0 4px 12px rgba(255,107,53,0.15);
}

/* 错误提示 */
.login-error {
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF6A3D, #FF8E53);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    box-shadow: 0 6px 18px rgba(255,106,61,0.35);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,106,61,0.45);
}

/* 底部链接 */
.login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}

.login-footer a {
    color: #ff6b35;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-register-link {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.login-register-link a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.login-register-link a:hover {
    text-decoration: underline;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 手机适配 */
@media (max-width: 768px) {
    .login-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .login-title {
        font-size: 22px;
    }
}

/*=============便签样式，从这里开始==============*/
.notes-toolbar {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        margin-bottom:10px;
        flex-wrap:wrap;
    }

    .notes-toolbar-left {
        display:flex;
        align-items:center;
        gap:10px;
        flex-wrap:wrap;
    }

    .notes-toolbar-right {
        display:flex;
        align-items:center;
        gap:8px;
        flex-wrap:wrap;
    }

    .btn-soft {
        border:none;
        border-radius:999px;
        padding:7px 14px;
        font-size:12px;
        cursor:pointer;
        display:flex;
        align-items:center;
        gap:6px;
        background:#f3f4f6;
        color:#374151;
        transition:background 0.15s, transform 0.08s;
    }

    .btn-soft-primary {
        background:#0f172a;
        color:#f9fafb;
    }

    .btn-soft-danger {
        background:#fef2f2;
        color:#b91c1c;
    }

    .btn-soft:hover {
        transform:translateY(-1px);
        background:#e5e7eb;
    }

    .btn-soft-primary:hover {
        background:#111827;
    }

    .btn-soft-danger:hover {
        background:#fee2e2;
    }

    .notes-hint {
        font-size:11px;
        color:#9ca3af;
    }
	/*新增note样式*/
/* ========== 便签双列布局 + 动画 + 拖拽 ========== */

/* 总容器：左右两列 */
.notes-list {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.notes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 空状态 */
.notes-empty {
    font-size: 12px;
    color: #9ca3af;
    padding: 4px 2px 0;
}

/* 单个便签卡片 */
.note-card {
    background:#fffbeb;
    border-radius:12px;
    padding:10px 10px 8px;
    border:1px solid #facc15;
    box-shadow:0 6px 16px rgba(250, 204, 21, 0.25);
    display:flex;
    flex-direction:column;
    gap:6px;
    position:relative;
    box-sizing: border-box;

    /* 淡入动画 + 轻微位移 */
    opacity: 0;
    transform: translateY(6px);
    animation: noteFadeIn 0.25s ease-out forwards;
    transition: box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

/* 小红点图钉 */
.note-pin {
    position:absolute;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ef4444;
    top:4px;
    left:10px;
    box-shadow:0 0 6px rgba(239,68,68,0.8);
}

/* 头部：日期 + 删除按钮 */
.note-card-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    flex-shrink:0;
    cursor: grab; /* 提示可以拖拽 */
}

.note-card-header:active {
    cursor: grabbing;
}

.note-date {
    font-size: 11px;
    color:#92400e;
    opacity:0.8;
}

.note-delete {
    border:none;
    background:transparent;
    color:#b91c1c;
    cursor:pointer;
    font-size:11px;
    padding:2px 4px;
    border-radius:8px;
}

.note-delete:hover {
    background:rgba(248,113,113,0.2);
}

/* 正文区域 */
.note-body {
    font-size:14px;
    color:#78350f;
    line-height:1.6;
    padding:6px 4px 4px;
    outline:none;
    white-space:pre-wrap;
    word-break:break-word;
    flex: none;  /* 高度完全由内容决定 */
}

.note-body:empty::before {
    content:"在这里输入内容...";
    color:#d97706;
    opacity:0.7;
}

/* 拖拽时的视觉效果 */
.note-card.dragging {
    opacity: 0.7;
    transform: scale(0.98);
    box-shadow: 0 12px 30px rgba(15,23,42,0.25);
}

/* 列被拖拽悬停时的提示效果 */
.notes-column.drag-over {
    outline: 2px dashed rgba(249,115,22,0.6);
    outline-offset: 4px;
}

/* 淡入 keyframes */
@keyframes noteFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 手机端：两列变一列，更好阅读 */
@media (max-width: 768px) {
    .notes-list {
        flex-direction: column;
    }
}	

/*============新增在这里===============*/

/* ========== 便签布局：双列 + 动画 + 标题 + 颜色 + 分页 ========== */

/* 双列区域 */
.notes-list {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.notes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 空状态 */
.notes-empty {
    font-size: 12px;
    color: #9ca3af;
    padding: 4px 2px 0;
}

/* 单个便签卡片 */
.note-card {
    background:#fffbeb;
    border-radius:12px;
    padding:10px 10px 8px;
    border:1px solid #facc15;
    box-shadow:0 6px 16px rgba(250, 204, 21, 0.25);
    display:flex;
    flex-direction:column;
    gap:6px;
    position:relative;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(6px);
    animation: noteFadeIn 0.25s ease-out forwards;
    transition: box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

/* 颜色主题：默认黄 + 其他可选 */
.note-card.note-color-yellow {
    background:#fffbeb;
    border-color:#facc15;
}
.note-card.note-color-blue {
    background:#eff6ff;
    border-color:#60a5fa;
}
.note-card.note-color-green {
    background:#ecfdf3;
    border-color:#4ade80;
}
.note-card.note-color-pink {
    background:#fdf2f8;
    border-color:#f9a8d4;
}

/* 小红点图钉 */
.note-pin {
    position:absolute;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ef4444;
    top:4px;
    left:10px;
    box-shadow:0 0 6px rgba(239,68,68,0.8);
}

/* 顶部：标题 + 颜色选择 */
.note-top-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:4px;
}

.note-title {
    font-size:17px;
    font-weight:600;
    color:#92400e;
    outline:none;
    padding:2px 2px 0;
    min-height:18px;
    max-height:40px;
    overflow:hidden;
    line-height:1.4;
}

.note-title:empty::before {
    content:"我是标题";
    color:#d97706;
    opacity:0.7;
    font-weight:500;
}

/* 颜色选择器 */
.note-color-bar {
    display:flex;
    align-items:center;
    gap:4px;
}

.note-color-dot {
    width:14px;
    height:14px;
    border-radius:999px;
    border:2px solid transparent;
    padding:0;
    background:transparent;
    cursor:pointer;
}

.note-color-dot-inner {
    display:block;
    width:100%;
    height:100%;
    border-radius:inherit;
}

/* 小圆点颜色 */
.note-color-yellow .note-color-dot-inner { background:#facc15; }
.note-color-blue   .note-color-dot-inner { background:#60a5fa; }
.note-color-green  .note-color-dot-inner { background:#4ade80; }
.note-color-pink   .note-color-dot-inner { background:#f9a8d4; }

/* 选中状态 */
.note-color-dot.active {
    border-color:#111827;
}

/* 中部：时间 + 删除 */
.note-card-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    flex-shrink:0;
    cursor: grab;
}

.note-card-header:active {
    cursor: grabbing;
}

.note-date {
    font-size: 11px;
    color:#6b7280;
}

.note-delete {
    border:none;
    background:transparent;
    color:#b91c1c;
    cursor:pointer;
    font-size:11px;
    padding:2px 4px;
    border-radius:8px;
}

.note-delete:hover {
    background:rgba(248,113,113,0.2);
}

/* 内容 */
.note-body {
    font-size:14px;
    color:#78350f;
    line-height:1.6;
    padding:6px 4px 4px;
    outline:none;
    white-space:pre-wrap;
    word-break:break-word;
    flex: none;
}

.note-body:empty::before {
    content:"在这里输入内容...";
    color:#d97706;
    opacity:0.7;
}

/* 拖拽态 */
.note-card.dragging {
    opacity: 0.7;
    transform: scale(0.98);
    box-shadow: 0 12px 30px rgba(15,23,42,0.25);
}

.notes-column.drag-over {
    outline: 2px dashed rgba(249,115,22,0.6);
    outline-offset: 4px;
}

/* 淡入动画 */
@keyframes noteFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分页 */
.notes-pagination {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    margin-top:10px;
}

.notes-page-btn {
    font-size:12px;
    padding:6px 14px;
}

.notes-page-info {
    font-size:12px;
    color:#9ca3af;
}

/* 手机端：改为单列 */
@media (max-width: 768px) {
    .notes-list {
        flex-direction: column;
    }
}

/*==============搜索记事本的开始=================*/
.notes-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;          /* 贴到 header 右侧 */
}

.notes-search-input {
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    min-width: 220px;
    outline: none;
}

.notes-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59,130,246,0.25);
}

.notes-search-clear {
    border: none;
    background: #f3f4f6;
    border-radius: 999px;
    height: 28px;
    padding: 0 10px;      /* 不再固定宽度，用 padding 控制 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.notes-search-clear:hover {
    background: #e5e7eb;
    color: #6b7280;
}

/*增加便签适配手机端*/

/* ========== 便签中心手机端整体适配 ========== */
@media (max-width: 768px) {

    /* 整体容器缩一点左右边距 */
    .container {
        padding: 10px 10px 20px;
    }

    /* 布局从左右改为上下堆叠 */
    .user-layout {
        flex-direction: column;
        max-width: 100%;
        margin: 0 auto 20px;
        gap: 16px;
    }

    .user-main {
        width: 100%;
        min-width: 0;
    }

    /* 标题 & 副标题稍微缩小 */
    .page-title {
        font-size: 18px;
        margin-top: 6px;
    }

    .page-desc {
        font-size: 13px;
        padding: 0 10px;
    }

    /* 卡片更紧凑一点 */
    .user-card {
        border-radius: 12px;
        padding: 14px 14px;
        box-shadow: 0 6px 18px rgba(15,23,42,0.06);
        margin-bottom: 16px;
    }

    .user-card-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .user-card-title {
        font-size: 15px;
    }

    .user-card-sub {
        font-size: 12px;
        line-height: 1.5;
    }

    /* 账户信息改成一列显示 */
    .user-info-grid {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .user-info-item-label {
        font-size: 12px;
    }

    .user-info-item-value {
        font-size: 13px;
    }

    /* 便签说明 + 搜索框：上下排、搜索占满宽度 */
    .user-card-header > div {
        width: 100%;
    }

    .notes-search {
        margin-top: 10px;
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .notes-search-input {
        flex: 1;
        min-width: 0;
        height: 32px;
        font-size: 13px;
    }

    .notes-search-clear {
        padding: 0 12px;
        height: 32px;
        font-size: 12px;
    }

    /* 工具栏按钮改为上下堆叠 */
    .notes-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .notes-toolbar-left,
    .notes-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    /* 手机上可以隐藏提示语，避免拥挤 */
    .notes-hint {
        display: none;
    }

    /* 按钮撑满一行，更像 App */
    .btn-soft {
        width: 100%;
        justify-content: center;
    }

    /* 便签列表单列显示（你原来的两处 .notes-list 手机样式会一起生效，不冲突） */
    .notes-list {
        flex-direction: column;
    }

    .notes-column {
        width: 100%;
    }

    /* 分页按钮居中，并缩小一点 */
    .notes-pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .notes-page-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .notes-page-info {
        font-size: 12px;
    }
}

/*====================提示语风格===============*/

/* ================== 顶部提示条（Flash Messages） ================== */
.flash-wrapper {
    max-width: 960px;
    margin: 18px auto 4px;
    padding: 0 16px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 999px;

    font-size: 13px;
    line-height: 1.5;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid transparent;
}

/* 成功提示：绿色渐变 */
.flash-success {
    background: linear-gradient(90deg, #ecfdf3, #dcfce7);
    border-color: #bbf7d0;
    color: #166534;
}

/* 警告提示：橙色 */
.flash-warning {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #92400e;
}

/* 错误提示：红色 */
.flash-danger {
    background: linear-gradient(90deg, #fef2f2, #fee2e2);
    border-color: #fecaca;
    color: #991b1b;
}

/* 左侧小圆点 */
.flash-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.7;
}

.flash-text {
    white-space: normal;
    text-align: center;
}


/*页头下拉菜单*/
/* 顶部导航 - 用户下拉菜单 */
.nav-user-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #0f172a;
    color: #f9fafb;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(15,23,42,0.25);
}

.nav-user-toggle i {
    font-size: 12px;
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.22);
    padding: 6px 0;
    border: 1px solid #e5e7eb;
    display: none;
    z-index: 1200;
}

.nav-user-menu.open {
    display: block;
}

.nav-user-menu a,
.nav-user-menu button {
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    text-align: left;
    border: none;
    background: transparent;
    color: #374151;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
    background: #f3f4f6;
    color: #111827;
}

/* 修改密码弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 16px;
}

.modal-dialog {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg,#0f172a,#111827);
    color: #f9fafb;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-body {
    padding: 16px 18px 10px;
}

.modal-label {
    display: block;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
}

.modal-input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.modal-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.1);
}

.modal-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

.modal-footer {
    padding: 10px 18px 14px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-error {
    background: #fef2f2;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/*==========修改密码样式===========*/
