.post-attachment-gallery {
    max-width: 860px;
    margin: 32px auto 0;
    display: grid;
    gap: 24px;
}

.post-attachment-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.post-attachment-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.post-attachment-file-section {
    max-width: 860px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.post-attachment-file-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.post-attachment-file-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.post-attachment-file-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.post-attachment-file-list {
    display: grid;
    gap: 14px;
}

.post-attachment-file-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #dbe4ee;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-attachment-file-link:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.12);
}

.post-attachment-file-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-attachment-file-ext {
    flex-shrink: 0;
    min-width: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.08em;
}

.post-attachment-file-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-attachment-file-copy strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.post-attachment-file-copy span {
    color: #64748b;
    font-size: 12px;
}

.post-attachment-file-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .post-attachment-gallery {
        gap: 18px;
        margin-top: 24px;
    }

    .post-attachment-file-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-attachment-file-main {
        width: 100%;
    }

    .post-attachment-file-action {
        width: 100%;
    }
}
