body {
    background: url('./bg6.png') no-repeat center center fixed;
    background-size: cover;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 800px;
    margin: 40px auto 40px auto;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 223, 235, 0.6);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 32px 32px 32px;
    word-break: break-word;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
p, ul, ol, pre, code, blockquote, table {
    margin-bottom: 1em;
}
p {
    text-indent: 2em;
}
pre, code {
    background: #f3f3f3;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
}
pre {
    padding: 12px;
    overflow-x: auto;
}
code {
    padding: 2px 6px;
}
a {
    color: #0070f3;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
blockquote {
    border-left: 4px solid #e0e0e0;
    padding-left: 1em;
    color: #666;
    background: #fafafa;
}
table {
    border-collapse: collapse;
    width: 100%;
}
td, th {
    border: 1px solid #e0e0e0;
    padding: 8px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
}

.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 2px solid #e0e0e0;
}

.tags-label {
    font-weight: 600;
    color: #555;
    align-self: center;
    margin-right: 5px;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 223, 235, 0.7);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-frame:hover img {
    transform: scale(1.02);
    filter: saturate(1.06);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.lightbox__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lightbox-in 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes lightbox-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox__header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.lightbox__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.lightbox__close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.lightbox__close:hover {
    color: #333;
    background: #f0f0f0;
}

.lightbox__body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(90vh - 140px);
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lightbox__footer {
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #eee;
}

.lightbox__caption {
    margin: 0;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
