* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1f1f1f;
    min-height: 100vh;
    background: url('../static/imgs/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px max(20px, 4vw);
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1;
    margin-bottom: 40px; /* 给页脚留出空间 */
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.memo-controls {
    margin-bottom: clamp(20px, 4vw, 30px);
    padding: 0 clamp(10px, 2vw, 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    max-width: min(500px, 90vw);
    min-width: min(200px, 90vw);
    width: 100%;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.clear-search:hover {
    color: #fff;
}

.search-input:not(:placeholder-shown) + .clear-search {
    opacity: 1;
}

/* 搜索结果高亮样式 */
.highlight {
    background-color: rgba(255, 236, 61, 0.4);
    border-radius: 3px;
    padding: 0 2px;
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease;
}

button {
    padding: 12px 24px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.icon {
    font-size: 1.2em;
    line-height: 1;
}

.memo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(15px, 3vw, 30px);
    padding: clamp(10px, 2vw, 20px);
    width: 100%;
}

.memo {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.65) 0%, 
        rgba(255, 255, 255, 0.55) 100%
    );
    padding: clamp(15px, 3vw, 25px);
    border-radius: 16px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: fit-content;
    break-inside: avoid;
    margin-bottom: clamp(15px, 3vw, 30px);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    width: 100%;
}

.memo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00C9FF 0%, #92FE9D 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memo:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.75) 0%, 
        rgba(255, 255, 255, 0.65) 100%
    );
    box-shadow: 
        0 12px 45px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.memo:hover::before {
    opacity: 1;
}

.memo-content-wrapper {
    position: relative;
    margin-bottom: 15px;
    min-height: 120px;
}

/* 更新便签内容输入框样式 */
.memo textarea {
    width: 100%;
    min-height: clamp(50px, 10vw, 80px);
    max-height: 500px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 450;
    letter-spacing: 0.2px;
    resize: none;
    overflow-y: hidden;
    line-height: 1.7;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    color: #34495e;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 移除之前的 backdrop-filter，因为已经在 .memo 上设置了 */
.memo textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 确保输入框在高亮层之上可以正常交互时不影响背景色 */
.memo-title,
.memo textarea {
    position: relative;
    z-index: 2;
}

.memo textarea::placeholder {
    color: rgba(44, 62, 80, 0.45);
    font-weight: 450;
}

.edit-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    color: rgba(52, 152, 219, 0.85);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
}

.memo-content-wrapper:hover .edit-icon {
    opacity: 1;
    transform: scale(1.1);
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover-effect:hover::after {
    width: 300px;
    height: 300px;
}

.memo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.memo-footer span {
    color: rgba(44, 62, 80, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.memo-footer i {
    color: rgba(52, 152, 219, 0.75);
}

.memo-footer button {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid rgba(231, 76, 60, 0.15);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.memo-footer button:hover {
    background: #e74c3c;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

/* 更新按钮组样式 */
.memo-buttons {
    display: flex;
    gap: clamp(8px, 2vw, 15px);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* 统一的按钮基础样式 */
.memo-buttons button,
.memo-buttons .import-btn {
    padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 28px);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    height: 48px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* 按钮内的图标样式 */
.memo-buttons button i,
.memo-buttons .import-btn i {
    font-size: 1.1em;
    /* 移除右边距，使用 gap 来控制间距 */
    /* margin-right: 8px; */
}

/* 确保按钮文本也居中对齐 */
.memo-buttons button span,
.memo-buttons .import-btn span {
    line-height: 1;
}

/* 新建按钮样式 */
#newMemo {
    background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    box-shadow: 
        0 4px 15px rgba(0, 201, 255, 0.2),
        0 8px 25px rgba(146, 254, 157, 0.15);
}

#newMemo:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 201, 255, 0.3),
        0 10px 30px rgba(146, 254, 157, 0.2);
}

/* 删除全部按钮样式 */
.delete-all {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    box-shadow: 
        0 4px 15px rgba(255, 65, 108, 0.2),
        0 8px 25px rgba(255, 75, 43, 0.15);
}

.delete-all:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(255, 65, 108, 0.3),
        0 10px 30px rgba(255, 75, 43, 0.2);
}

/* 按钮图标样式 */
.memo-buttons button i,
.memo-buttons .import-btn i {
    font-size: 1.1em;
    /* 移除右边距，使用 gap 来控制间距 */
    /* margin-right: 8px; */
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    
    .subtitle {
        font-size: clamp(0.9em, 2.5vw, 1.1em);
    }

    .memo-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* 修改按钮组布局为水平排列 */
    .memo-buttons {
        display: flex;
        flex-direction: row; /* 改为水平排列 */
        justify-content: space-between; /* 左右分布 */
        gap: 10px;
        width: 100%;
    }

    /* 调整按钮宽度 */
    .memo-buttons button {
        flex: 1; /* 让按钮平均分配空间 */
        min-width: 0; /* 允许按钮收缩 */
        padding: 12px 10px; /* 调整内边距 */
        font-size: 0.9rem; /* 稍微减小字体大小 */
    }
}

@media (max-width: 480px) {
    .memo-buttons button {
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .memo-buttons button i {
        font-size: 1em;
        margin-right: 4px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-buttons button {
        width: 100%;
    }

    .notification {
        width: 90%;
        margin: 0 auto;
        font-size: clamp(0.8rem, 2vw, 0.95rem);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .memo-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .memo {
        margin-bottom: 15px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: no-preference) {
    .memo {
        transform-origin: center top;
        backface-visibility: hidden;
    }
    
    .memo:hover {
        transform: translateY(-8px) scale(1.02) rotateX(2deg);
    }
    
    .memo::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .memo:hover::after {
        opacity: 1;
    }
}

/* 高亮显示的样式 */
.highlight {
    background-color: rgba(255, 236, 61, 0.4);
    border-radius: 3px;
    padding: 0 2px;
}

/* 高亮覆盖层样式 */
.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    user-select: none;
    padding: inherit;
    font: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: transparent;
}

.memo-title-wrapper,
.memo-content-wrapper {
    position: relative;
}

/* 更新标题包装器的样式 */
.memo-title-wrapper {
    margin-bottom: 8px;
}

/* 更新便签标题输入框样式 */
.memo-title {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -0.3px;
    background: rgba(255, 255, 255, 0.15);
    color: #2c3e50;
    transition: all 0.3s ease;
}

.memo-title:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.memo-title::placeholder {
    color: rgba(44, 62, 80, 0.45);
    font-weight: 500;
}

/* 按钮组样式 */
.memo-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.delete-all {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.delete-all:hover {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}

.modal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e74c3c;
    letter-spacing: -0.3px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content p {
    font-size: 1rem;
    color: #34495e;
    line-height: 1.6;
    font-weight: 450;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-buttons button {
    padding: 10px 20px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

#cancelDelete {
    background: rgba(149, 165, 166, 0.9);
}

#confirmDelete {
    background: rgba(231, 76, 60, 0.9);
}

#cancelDelete:hover {
    background: rgba(127, 140, 141, 0.95);
}

/* 顶部通知样式 */
.notification {
    position: fixed;
    top: -100px; /* 初始位置在屏幕外 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.notification.show {
    top: 20px;
}

.notification i {
    font-size: 1.2em;
}

/* 确保按钮内的图标和文字对齐 */
.memo-buttons button i {
    font-size: 1.1em;
    margin-right: 6px;
}

/* 更新时钟图标颜色 */
.memo-footer .far.fa-clock {
    color: rgba(44, 62, 80, 0.5); /* 使用和文字相近的颜色，但稍微淡一些 */
}

/* 更新删除按钮样式 */
.memo-footer button {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid rgba(231, 76, 60, 0.15);
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* 删除按钮的图标颜色 */
.memo-footer button i {
    color: inherit; /* 继承按钮文字的颜色 */
}

.memo-footer button:hover {
    background: #e74c3c;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

/* 导入导出按钮的基础样式 */
.export-btn,
.import-btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: none;
}

/* 导出按钮样式 */
.export-btn {
    background: linear-gradient(135deg, #20BF55 0%, #01BAEF 100%);
    box-shadow: 
        0 4px 15px rgba(32, 191, 85, 0.2),
        0 8px 25px rgba(1, 186, 239, 0.15);
}

.export-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(32, 191, 85, 0.3),
        0 10px 30px rgba(1, 186, 239, 0.2);
}

/* 导入按钮样式 */
.import-btn {
    background: linear-gradient(135deg, #21D4FD 0%, #2152FF 100%);
    box-shadow: 
        0 4px 15px rgba(33, 212, 253, 0.2),
        0 8px 25px rgba(33, 82, 255, 0.15);
}

.import-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(33, 212, 253, 0.3),
        0 10px 30px rgba(33, 82, 255, 0.2);
}

/* 确保按钮内的图标对齐 */
.export-btn i,
.import-btn i {
    font-size: 1.1em;
    margin-right: 8px;
}

/* 隐藏文件输入框 */
.import-btn input[type="file"] {
    display: none;
}

/* 统一所有顶部按钮的样式 */
.memo-buttons button,
.memo-buttons .import-btn {
    height: 48px; /* 确保所有按钮高度一致 */
    line-height: 1;
    white-space: nowrap;
}

/* 工具栏样式 */
.toolbar {
    position: absolute;
    top: 20px;
    right: 8px;
    z-index: 3;
}

.tool-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 240px;
}

/* 工具按钮基础样式 */
.tool-buttons .export-btn,
.tool-buttons .import-btn,
.tool-buttons button {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    height: 36px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap; /* 防止文本换行 */
}

/* 调整按钮顺序 */
#bgSettingBtn { order: 1; }
.import-btn { order: 2; }
#exportMemos { order: 4; }
#backupMemos { order: 3; }

/* 移动端布局 */
@media (max-width: 768px) {
    .toolbar {
        position: static;
        margin-top: 15px;
        padding: 0;
        order: 3;
    }

    .tool-buttons {
        width: 100%;
    }

    /* 重置移动端按钮顺序 */
    #bgSettingBtn { order: unset; }
    .import-btn { order: unset; }
    #exportMemos { order: unset; }
    #backupMemos { order: unset; }
}

/* 横屏模式的优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .tool-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 帮助按钮样式 */
.header-top {
    position: absolute;
    top: 20px;
    left: 8px;
    z-index: 3;
}

.help-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 帮助对话框样式 */
.help-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 Webkit 浏览器的滚动条 */
.help-content::-webkit-scrollbar {
    display: none;
}

/* 确保内容有足够的右侧间距，防止内容贴边 */
.help-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 15px 20px 0; /* 增加右侧内边距 */
}

.help-sections section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.help-sections h3 {
    color: #2ecc71;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.help-sections ul {
    list-style: none;
    padding-left: 20px;
}

.help-sections li {
    margin: 8px 0;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.help-sections li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 20px;
}

.help-sections p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .help-content {
        padding: 20px;
    }

    .help-sections {
        gap: 10px;
    }

    .help-sections section {
        padding: 10px;
    }
}

/* 更新响应式布局 */
@media (max-width: 768px) {
    .header-top {
        position: static;
        margin-bottom: 25px;
        text-align: left;
        padding: 0 8px; /* 减小内边距从20px到8px */
    }

    .help-btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    /* 调整标题间距 */
    header h1 {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .header-top {
        margin-bottom: 20px;
        padding: 0 6px; /* 在更小的屏幕上进一步减小内边距 */
    }

    .help-btn {
        width: auto;
        justify-content: center;
    }
}

/* 更新页脚样式 */
.site-footer {
    width: 100%;
    padding: 15px 0; /* 减小上下内边距 */
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 版权和备案信息容器 */
.footer-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* 减小间距 */
    margin-bottom: 8px; /* 减小底部间距 */
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem; /* 减小字体 */
    line-height: 1.5;
}

.icp-link {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* 减小图标和文字的间距 */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem; /* 减小字体 */
    padding: 4px 10px; /* 减小内边距 */
    border-radius: 6px; /* 减小圆角 */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.icp-icon {
    width: 12px; /* 进一步减小图标尺寸 */
    height: 12px;
    vertical-align: middle;
}

/* 描述文本容器 */
.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem; /* 减小字体 */
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-footer {
        padding: 12px 0; /* 移动端更小的内边距 */
    }

    .footer-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin-bottom: 8px;
    }

    .copyright,
    .icp-link {
        width: 100%;
        justify-content: center;
    }
}

/* 备份按钮样式 */
.backup-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    box-shadow: 
        0 4px 15px rgba(255, 107, 107, 0.2),
        0 8px 25px rgba(255, 142, 83, 0.15);
    padding: 8px 16px;
    font-size: 0.9rem;
    height: 36px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    color: white;
    border: none;
}

.backup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.3),
        0 10px 30px rgba(255, 142, 83, 0.2);
}

/* 备份表单样式 */
.backup-content {
    max-width: 500px;
}

.backup-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.backup-info {
    background: rgba(52, 152, 219, 0.1);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2980b9;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.backup-info i {
    font-size: 1.1em;
}

/* 背景设置按钮样式 */
.bg-setting-btn {
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    box-shadow: 0 4px 15px rgba(107, 115, 255, 0.2);
    padding: 8px 16px;
    font-size: 0.9rem;
    height: 36px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    color: white;
    border: none;
}

.bg-setting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 115, 255, 0.3);
}

/* 背景设置对话框样式 */
.bg-setting-content {
    max-width: 400px;
}

.bg-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.bg-option {
    width: 100%;
}

.bg-option button,
.custom-bg-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#defaultBgBtn {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

#defaultBgBtn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.custom-bg-btn {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.custom-bg-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

/* 悬浮新建按钮样式 */
.floating-new-btn {
    position: fixed;
    bottom: 100px; /* 增加距离，确保在页脚上方 */
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 201, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.floating-new-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 201, 255, 0.4);
}

.floating-new-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-new-btn {
        bottom: 100px; /* 保持与桌面端相同的距离 */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .floating-new-btn {
        bottom: 100px; /* 保持一致的距离 */
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* 导入模式选择样式 */
.import-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.import-options button {
    width: 100%;
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.import-options button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.import-options button small {
    font-size: 0.8em;
    opacity: 0.8;
    font-weight: normal;
}

#appendMode {
    color: #2ecc71;
}

#appendMode:hover {
    background: rgba(46, 204, 113, 0.2);
}

#overwriteMode {
    color: #e74c3c;
}

#overwriteMode:hover {
    background: rgba(231, 76, 60, 0.2);
} 