/* Notes Section Styles */
.notes-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-color); /* 使用与项目区一致的背景色 */
    z-index: 1; /* 确保在动态背景之上 */
}

.note-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.note-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.note-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.note-item h3 {
    font-size: 1.25rem;
    color: var(--text-color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.note-meta {
    font-size: 0.8rem;
    color: var(--text-color-secondary);
    margin-bottom: 15px;
}

.note-excerpt {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* Note Modal Styles */
#note-modal .modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color); /* 使用不透明背景，修复布局错觉 */
}

#note-modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 30px;
    height: 100%;
}

/* Custom Scrollbar for Note Modal */
#note-modal-body::-webkit-scrollbar {
    width: 8px;
}

#note-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#note-modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 122, 255, 0.5); /* 使用半透明主题色 */
    border-radius: 4px;
}

#note-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 122, 255, 0.8);
}


#note-modal-body h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color-primary);
}

#note-modal-body .note-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

#note-modal-body .note-content {
    line-height: 1.7;
    color: var(--text-color-secondary);
}

#note-modal-body .note-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color-primary);
}

#note-modal-body .note-content p {
    margin-bottom: 15px;
}

#note-modal-body .note-content ul,
#note-modal-body .note-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

#note-modal-body .note-content code {
    background-color: rgba(135, 131, 120, 0.15);
    color: var(--text-color-primary);
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

#note-modal-body .note-content pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
}

#note-modal-body .note-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

#note-modal-body .note-content blockquote {
    border-left: 4px solid var(--glow-color-1);
    padding-left: 15px;
    margin-left: 0;
    color: var(--text-color-secondary);
    font-style: italic;
} 