/* 手机备忘录 - 同步首页暖色调风格 */

/* 引入首页CSS变量 */
:root {
    --primary: #FFB800;
    --primary-light: #FFD93D;
    --primary-dark: #F5A623;
    --accent: #FF6B6B;
    --accent-light: #FF8E8E;
    --bg-gradient-start: #FFF9E6;
    --bg-gradient-end: #FFE4B5;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2D2D2D;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #FFE4B5;
    --success: #6BCB77;
    --shadow: 0 10px 40px rgba(255, 184, 0, 0.15);
    --shadow-hover: 0 20px 60px rgba(255, 184, 0, 0.25);
}

.memo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 50%, #FFD93D 100%);
}

/* 头部样式 - 卡片风格 */
.memo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 184, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.memo-header:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.memo-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    padding: 10px 18px;
    font-size: 0.95rem;
}

/* 快速输入区域 - 卡片风格 */
.quick-input-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 184, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-input-section:hover {
    box-shadow: var(--shadow-hover);
}

.input-wrapper {
    margin-bottom: 18px;
}

/* 快捷标签 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.quick-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: #856404;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quick-tag:hover {
    background: linear-gradient(135deg, #ffeeba 0%, #ffc107 100%);
    border-color: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.quick-tag:active {
    transform: translateY(0);
    box-shadow: none;
}

#memoInput {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.7;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    background: white;
    color: var(--text-primary);
}

#memoInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15);
}

#memoInput::placeholder {
    color: var(--text-light);
}

/* 图片预览区域包装器 */
.image-preview-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.image-preview-wrapper .image-preview {
    flex: 1;
    margin-bottom: 0;
}

/* 快速保存按钮（在图片预览旁边） */
.quick-save-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    min-width: auto;
    height: fit-content;
    align-self: flex-start;
    margin-top: 0;
}

/* 图片预览区域 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.2);
    border: 2px solid rgba(255, 184, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.3);
    border-color: var(--primary);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.preview-item .remove-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 暖色调按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 184, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 备忘录列表区域 */
.memo-list-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 184, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.memo-list-section:hover {
    box-shadow: var(--shadow-hover);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 184, 0, 0.2);
}

.list-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.btn-text-danger {
    background: rgba(255, 107, 107, 0.1);
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-text-danger:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff5252;
}

.btn-text {
    background: rgba(255, 184, 0, 0.1);
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-text:hover {
    background: rgba(255, 184, 0, 0.2);
}

/* 标签筛选栏 */
.tag-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tag-bar::-webkit-scrollbar {
    height: 4px;
}

.tag-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 184, 0, 0.5);
    border-radius: 2px;
}

.tag-bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}

.tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: white;
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-weight: 500;
}

.tag-item:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.2);
}

.tag-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.tag-count {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}

.tag-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

/* 笔记中的标签 */
.memo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.memo-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    color: var(--primary-dark);
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.memo-tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.memo-tag-select {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent);
    border: 1px dashed rgba(255, 107, 107, 0.4);
}

.memo-tag-select:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5252 100%);
    color: white;
    border-color: transparent;
}

/* 内容中的标签高亮 */
.content-tag {
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.content-tag:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* 多选工具栏 */
.select-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.15);
}

.toolbar-btn {
    background: white;
    border: 1px solid rgba(255, 184, 0, 0.4);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.toolbar-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.toolbar-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.toolbar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
}

.toolbar-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.selected-info {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* 复选框样式 */
.memo-checkbox {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 10;
}

.checkbox-icon {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 184, 0, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 14px;
    color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-icon.checked {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

/* 选中状态的笔记 */
.memo-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.3);
}

.memo-item.selected .memo-checkbox .checkbox-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
}

/* 多选模式下笔记项需要左边距 */
.memo-item:has(.memo-checkbox) {
    padding-left: 50px;
}

/* 备忘录列表 */
.memo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 备忘录卡片 - 首页卡片风格 */
.memo-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 184, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.4s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 184, 0, 0.25);
    transform: translateY(-4px);
}

/* 置顶样式 */
.memo-item.pinned {
    background: linear-gradient(135deg, #fff9e6 0%, #fffdf5 100%);
    border-color: #ffc107;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.25);
}

.memo-item.pinned:hover {
    box-shadow: 0 8px 35px rgba(255, 193, 7, 0.35);
}

.memo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.memo-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.memo-size {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.memo-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    word-break: break-word;
    white-space: pre-wrap;
}

.memo-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.memo-images img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 184, 0, 0.3);
}

.memo-images img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.3);
}

.memo-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 184, 0, 0.2);
}

/* 更多按钮（手机端展开操作菜单） */
.memo-more-btn {
    background: rgba(255, 184, 0, 0.15);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    color: var(--primary-dark);
    cursor: pointer;
    display: none; /* 桌面端默认隐藏 */
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.memo-more-btn:hover {
    background: rgba(255, 184, 0, 0.3);
}

.memo-btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.memo-btn-pin {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.memo-btn-pin:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.memo-btn-pin.pinned {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.memo-btn-pin.pinned:hover {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 2px solid rgba(255, 193, 7, 0.3);
    box-shadow: none;
}

.memo-btn-copy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.memo-btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.memo-btn-edit {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    color: var(--primary-dark);
    border: 2px solid rgba(255, 184, 0, 0.3);
}

.memo-btn-edit:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.memo-btn-delete {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent);
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.memo-btn-delete:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5252 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.memo-btn-download {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.memo-btn-download:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* 空状态 */
.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 50px 20px;
    font-size: 1rem;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 图片查看弹窗 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-modal.show {
    display: flex;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border: 2px solid var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}

.close-modal:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: rotate(90deg);
}

/* 图片导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: -70px;
}

.nav-next {
    right: -70px;
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* 响应式适配 */
@media (max-width: 600px) {
    .memo-container {
        padding: 12px;
    }

    .memo-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .memo-header h1 {
        font-size: 1.2rem;
        order: 2;
        width: 100%;
        text-align: center;
    }

    .btn-back {
        order: 1;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .header-actions {
        order: 3;
    }

    .btn-icon {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .quick-input-section,
    .memo-list-section {
        padding: 20px;
        border-radius: 20px;
    }

    #memoInput {
        min-height: 100px;
        font-size: 15px;
        padding: 16px;
    }

    .input-actions {
        flex-direction: column;
        gap: 10px;
    }

    .status-text {
        font-size: 0.8rem;
    }

    .btn-primary {
        width: 100%;
        padding: 12px 24px;
    }

    .list-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .list-header h2 {
        font-size: 1.1rem;
    }

    .list-actions {
        width: 100%;
        justify-content: space-between;
    }

    .memo-list {
        gap: 14px;
    }

    .memo-item {
        padding: 16px;
        border-radius: 16px;
    }

    .memo-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .memo-time {
        font-size: 0.8rem;
    }

    .memo-size {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .memo-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .memo-actions {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        display: none; /* 手机端默认隐藏 */
    }

    .memo-actions.show {
        display: flex; /* 展开时显示 */
    }

    .memo-more-btn {
        display: flex; /* 手机端显示更多按钮 */
    }

    .memo-btn {
        flex: 1 1 calc(50% - 4px);
        text-align: center;
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 0;
    }

    .memo-btn-copy {
        flex: 1 1 100%;
    }

    .memo-images {
        gap: 8px;
        margin-top: 12px;
    }

    .memo-images img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    .preview-item {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }

    .preview-item .remove-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 4px;
        right: 4px;
    }

    .count-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .btn-text-danger {
        font-size: 0.8rem;
    }

    .btn-text {
        font-size: 0.8rem;
    }

    .toast {
        font-size: 0.85rem;
        padding: 12px 20px;
        bottom: 70px;
    }

    .select-toolbar {
        padding: 12px 14px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .toolbar-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .selected-info {
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
    }

    .memo-checkbox {
        top: 12px;
        left: 12px;
        width: 24px;
        height: 24px;
    }

    .checkbox-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .memo-item:has(.memo-checkbox) {
        padding-left: 42px;
    }

    .tag-bar {
        padding: 10px 14px;
        gap: 8px;
    }

    .tag-bar-label {
        font-size: 0.8rem;
    }

    .tag-item {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .memo-tags {
        gap: 6px;
    }

    .memo-tag {
        padding: 3px 10px;
        font-size: 0.75rem;
    }

    .content-tag {
        font-size: 0.9rem;
    }

    /* 快速保存按钮移动端样式 */
    .quick-save-btn {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    .image-preview-wrapper {
        align-items: center;
    }

    /* 图片导航按钮移动端样式 */
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .nav-prev {
        left: 10px;
    }

    .nav-next {
        right: 10px;
    }

    .image-counter {
        bottom: -35px;
        font-size: 12px;
    }
}

/* 返回按钮样式 */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 184, 0, 0.3);
}

.btn-back:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.3);
}

/* 按钮通用样式 */
.btn-secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--text-primary);
    transform: translateY(-2px);
}
