.memo-item {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .avatar-container {
            flex: 0 0 50px;
            height: 50px;
        }

        .avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #e5e7eb;
            overflow: hidden;
        }

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

        .memo-card {
            flex: 1;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            padding: 15px;
            position: relative;
            min-width: 0;
        }
   
        .memo-card::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 15px;
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            border-right: 8px solid #fff;
            filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.1));
        }
       
        .memo-header {
            display: flex;
            align-items: baseline;
            margin-bottom: 8px;
        }

        .author-name {
            font-weight: 600;
            color: #1a1a1a;
            margin-right: 10px;
            font-size: 16px;
        }

        .memo-time {
            color: #999;
            font-size: 0.85em;
        }

        .memo-body {
            color: #333;
            line-height: 1.6;
            word-break: break-word;
        }

        .memo-body img {
            max-width: 100%;
            border-radius: 8px;
            margin-top: 10px;
        }

        .memo-resources {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .resource-item {
            margin-top: 10px;
        }

        .load-more {
            display: block;
            width: fit-content;
            padding: 12px;
            background: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            margin:20px auto 0 auto;
        }

        .load-more:hover {
            background: #f8f8f8;
        }
.memo-body {
  color: #374151;
  line-height: 1.75;
  font-size: 16px;
}

.memo-body h1 {
  font-size: 2em;
  margin: 1.2em 0 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
}

.memo-body h2 {
  font-size: 1.5em;
  margin: 1.5em 0 0.8em;
  color: #1f2937;
}

.memo-body p {
  margin: 1em 0;
}

.memo-body strong {
  color: #1f2937;
  font-weight: 600;
}

.memo-body em {
  color: #4b5563;
  font-style: italic;
}

.memo-body ul,
.memo-body ol {
  padding-left: 1.5em;
  margin: 1em 0;
}


.memo-body ul {
  list-style: none;
}

.memo-body ol {
  list-style: decimal;
}

.memo-body pre {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1.25em;
  margin: 1.5em 0;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  border: 1px solid #e5e7eb;
}

.memo-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: rgba(156,163,175,0.15);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #3b82f6;
  font-size: 0.9em;
  margin:0 5px 0 5px;
}

.memo-body pre code {
  background: transparent;
  padding: 0;
  color: #1f2937;
  font-size: 0.95em;
  line-height: 1.5;
}

.memo-body a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid #bfdbfe;
}

.memo-body a:hover {
  color: #2563eb;
  border-bottom-color: currentColor;
}

.memo-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.memo-body blockquote {
  border-left: 4px solid #e5e7eb;
  margin: 1.5em 0;
  padding: 0.5em 1em;
  color: #4b5563;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
}

.memo-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.memo-body th,
.memo-body td {
  padding: 0.75em;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.memo-body th {
  background: #f3f4f6;
  font-weight: 600;
}

.memo-body tr:nth-child(even) {
  background: #f8fafc;
}

.memo-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}
.memo-body .code-toolbar,
.memo-body .code-toolbar:before{
    all: unset!important;
}


.memo-location {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.location-icon {
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"/></svg>');
}

.location-text {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.emoji-reaction{
    margin-top:8px;
}



[data-theme="dark"] .memo-item {
    --bg-color: #1f2937;
    --text-color: #e5e7eb;
    --border-color: #374151;
    --muted-color: #9ca3af;
    --code-bg: #374151;
    --hover-bg: #111827;
}

[data-theme="dark"] .avatar {
    background: #374151;
}

[data-theme="dark"] .memo-card {
    background: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .memo-card::before {
    border-right-color: var(--bg-color);
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.3));
}

[data-theme="dark"] .author-name {
    color: #f3f4f6;
}

[data-theme="dark"] .memo-time {
    color: var(--muted-color);
}

[data-theme="dark"] .memo-body {
    color: var(--text-color);
}

[data-theme="dark"] .memo-body h1,
[data-theme="dark"] .memo-body h2 {
    color: #f3f4f6;
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .memo-body strong {
    color: #f3f4f6;
}

[data-theme="dark"] .memo-body pre {
    background: var(--code-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .memo-body code {
    background: #374151;
    color: #93c5fd;
}

[data-theme="dark"] .memo-body a {
    color: #93c5fd;
    border-bottom-color: #1e3a8a;
}

[data-theme="dark"] .memo-body a:hover {
    color: #60a5fa;
}

[data-theme="dark"] .memo-body img {
    background: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .memo-body blockquote {
    border-left-color: var(--border-color);
    background: #111827;
    color: var(--muted-color);
}

[data-theme="dark"] .memo-body table th {
    background: var(--code-bg);
}

[data-theme="dark"] .memo-body td {
    border-color: var(--border-color);
}

[data-theme="dark"] .memo-body tr:nth-child(even) {
    background: #111827;
}

[data-theme="dark"] .memo-body hr {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .memo-resources,
[data-theme="dark"] .memo-location {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .location-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%239ca3af" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"/></svg>');
}

[data-theme="dark"] .memo-location {
    color: var(--muted-color);
}

[data-theme="dark"] .load-more {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .load-more:hover {
    background: var(--hover-bg);
}